/* From the :root element you can easily change the colors of the design, its size and so on. */
:root {

  /* You can change the font family in the whole design here. (You need to add the font family to the codes.) */
  --font_family: 'Inter', sans-serif;

  /* You can change the font size here, is proportional to all texts. */
  --font_size: 16px;

  /* You can change the background color by typing the color code. (If you do not enter a background-image image, the background-color will be active.) */
  --background_color: #000;
  
  /* Cyan color for music controls */
  --accent_cyan: #00ffff;

  /* You can change the frame thickness and color of the picture by typing the number of pixels and the color code. */
  --image_border_color: #000;
  --image_border_px: 3px;

  /* You can change the width and size of the picture by typing the number of pixels. */
  --image_width: 140px;
  --image_height: 140px;

  /* You can change the colors of the title and description section by typing the color codes. */
  --title_color: #fff;
  --description_color: #f1c40f;

  /* You can change the colors of social media icons by changing the color code. */
  --svg_color: #fff;

  /* You can change the background, text color and active color of the menu by changing the color codes. */
  --menu_background_color: #0e0e0e;
  --menu_text_color: #fff;
  --menu_active_text_color: #f1c40f;

  /* You can change the button's background, text color and active color by changing the color codes. */
  --button_background_color: #0e0e0e;
  --button_text_color: #fff;
  --button_text_hover_color: #f1c40f;

  /* You can change the background, text color and active color of the text field by changing the color codes. */
  --textarea_background_color: #0e0e0e;
  --textarea_text_color: #fff;
  --textarea_link_text_color: #f1c40f;

  /* You can change the background, text color and active color of the footer area by changing the color codes. */
  --footer_background_color: #0e0e0e;
  --footer_text_color: #fff;
  --footer_link_text_color: #f1c40f;
}

/* Basic Codes */

body {
  font: var(--font_size) var(--font_family);
  font-weight: 400;
  line-height: 1.5;
  background: var(--background_color);
  min-height: 100vh;
  min-height: 100dvh; /* Modern viewport unit for mobile */
  margin: 0;
  overflow-x: hidden; /* Only hide horizontal overflow */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#bg_video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Better video coverage */
  z-index: -100;
}

.centered_container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100vw;
  position: relative;
  z-index: 1;
  padding: 2em 0; /* Add some padding for scrollable content on mobile */
}

header {
  padding: 1em; /* Reduced from 2em */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.flex_column_center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flex_row_center {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.flex_no_wrap_row_center {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

/* Logo, Title and Description Codes */

.header_img {
  padding-top: 0.5em;
  margin-bottom: 1em;
}

.header_img img {
  height: var(--image_height);
  width: var(--image_width);
  border: var(--image_border_px) solid var(--image_border_color);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header_img img:hover {
  transform: scale(1.05) rotate(3deg);
}

.beckham_glow {
  color: #fff; /* Changed to white */
  font-weight: 700;
  display: inline-block;
  position: relative;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: rgbGlitch 3s infinite;
}

@keyframes rgbGlitch {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translate(0);
  }
  2% {
    text-shadow: 2px 0 #ff0000, -2px 0 #00ff00, 0 2px #0000ff;
    transform: translate(1px, -1px);
  }
  4% {
    text-shadow: -2px 0 #ff0000, 2px 0 #00ff00, 0 -2px #0000ff;
    transform: translate(-1px, 1px);
  }
  6% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translate(0);
  }
}

.beckham_glow::before,
.beckham_glow::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.beckham_glow::before {
  animation: glitchTop 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  color: #ff0000;
  z-index: -1;
}

.beckham_glow::after {
  animation: glitchBottom 3s infinite linear alternate-reverse;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  color: #0000ff;
  z-index: -2;
}

@keyframes glitchTop {
  0%, 100% { transform: translate(0); }
  2% { transform: translate(-2px, -1px); }
  4% { transform: translate(2px, 1px); }
  6% { transform: translate(0); }
}

@keyframes glitchBottom {
  0%, 100% { transform: translate(0); }
  2% { transform: translate(2px, 1px); }
  4% { transform: translate(-2px, -1px); }
  6% { transform: translate(0); }
}

.dot {
  color: #00ff00;
  font-size: 0.8em;
  margin-left: 2px;
}

.header_text {
  width: 100%;
}

.header_text h2 {
  color: var(--description_color);
  font-size: 1.5em;
}

.profile_card {
  padding: 2.5em;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 28px; /* Slightly more rounded */
  backdrop-filter: blur(16px); /* More blur for premium look */
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
  max-width: 480px;
  width: 92vw;
  margin-bottom: 2em;
  animation: fadeInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.location_views {
  margin-bottom: 0.8em;
  gap: 1.2em;
  font-size: 0.85em;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.location_item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

.views_item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

.views_item svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  opacity: 0.9;
}

.header_h_item {
  color: var(--title_color);
  font-size: 2.2em;
  margin-bottom: 0.3em;
  text-align: center;
}

.description_text {
  line-height: 1.5;
  font-size: 0.95em !important;
  max-width: 100%;
  text-align: center;
  opacity: 0.9;
  margin-bottom: 0.5em; /* Reduced margin to make room for Discord card */
}

/* Discord Card Styles */
.discord_card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly brighter border */
  border-radius: 20px;
  padding: 1.2em;
  width: 100%;
  max-width: 100%;
  margin: 1.2em 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05), inset 0 0 10px rgba(255, 255, 255, 0.05); /* Initial glow */
  animation: cardGlowPulse 4s infinite alternate;
}

@keyframes cardGlowPulse {
  from { box-shadow: 0 0 10px rgba(255, 255, 255, 0.05), inset 0 0 5px rgba(255, 255, 255, 0.02); }
  to { box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.08); }
}

.discord_card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.discord_card.hidden {
  display: none;
}

.discord_header {
  display: flex;
  align-items: center;
  gap: 1em;
}

.discord_avatar_container {
  position: relative;
  width: 48px;
  height: 48px;
}

#discord_avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.status_dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #0e0e0e;
  background: #747f8d; /* offline */
}

.status_dot.online { background: #3ba55d; }
.status_dot.idle { background: #faa81a; }
.status_dot.dnd { background: #ed4245; }

.discord_user_info {
  display: flex;
  flex-direction: column;
}

.discord_name {
  color: #fff;
  font-weight: 700;
  font-size: 1em;
}

.discord_status_text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85em;
  text-transform: capitalize;
}

.discord_activity {
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1em;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.activity_item {
  display: flex;
  align-items: center;
  gap: 1em;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.activity_icon_container {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#spotify_album_art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.activity_item:hover #spotify_album_art {
  transform: scale(1.1);
}

.voice_icon {
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3ba55d;
}

.voice_icon svg {
  width: 24px;
  height: 24px;
}

.voice_icon {
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3ba55d;
}

.voice_icon svg {
  width: 24px;
  height: 24px;
}

.activity_details {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Allow truncation */
}

.activity_label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7em;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.activity_title {
  color: #fff;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity_subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity_item.hidden {
  display: none;
}

.discord_activity.hidden {
  display: none;
}

.activity_details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.activity_label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7em;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.activity_title {
  color: #fff;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity_subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header_svg_list {
  padding-top: 1.5em;
  gap: 1em; /* Optimized gap */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping for mobile */
  max-width: 100%;
}

/* Smoother social icons */
.header_svg_item {
  width: 3.8em; /* Slightly bigger for touch targets */
  height: 3.8em;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header_svg_item:hover {
  transform: translateY(-8px) scale(1.08);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.header_svg_item + .header_svg_item {
  margin-left: 0;
}

.header_svg_item i {
  font-size: 1.8em;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.header_svg_item:hover i {
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1));
}

/* Tap to Start Overlay Codes */

/* Tap Overlay Polish */
#tap_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0,0,0,0.85) 0%, rgba(0,0,0,1) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  cursor: pointer;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(25px);
}

.tap_content {
  text-align: center;
  position: relative;
}

.glitch {
  font-family: 'Syncopate', sans-serif;
  color: #fff;
  font-size: 3em;
  font-weight: 700;
  letter-spacing: 12px;
  text-transform: uppercase;
  text-align: center;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch 650ms infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-0.025em, -0.0125em);
  opacity: 0.8;
}

.glitch::after {
  animation: glitch 375ms infinite;
  clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
  transform: translate(0.0125em, 0.025em);
  opacity: 0.8;
}

.subtext {
  display: block;
  font-family: 'Syncopate', sans-serif;
  color: var(--accent_cyan);
  font-size: 0.8em;
  letter-spacing: 8px;
  margin-top: 20px;
  opacity: 0.6;
  animation: breathe 3s infinite ease-in-out;
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  14% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  15% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  49% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  50% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75),
      0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  99% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75),
      0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  100% {
    text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; transform: scale(0.98); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

/* Music Control Codes */

#music_control {
  display: flex;
  align-items: center;
  gap: 1em;
  position: relative;
}

#volume_icon_container {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Slightly smaller for footer */
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

#volume_icon_container:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

#volume_icon {
  width: 20px;
  height: 20px;
  fill: var(--accent_cyan);
}

/* Music Control Polish */
#volume_bar_container {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 0.6em 1.2em;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#volume_bar_container.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

#volume_slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 8px; /* Thicker bar */
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
}

#volume_slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent_cyan);
  cursor: pointer;
  box-shadow: -100px 0 0 100px var(--accent_cyan);
}

#volume_slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  background: var(--accent_cyan);
  cursor: pointer;
  border: none;
}

/* Footer Codes */

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 100;
}

/* Footer Polish */
.footer_div_item {
  color: var(--footer_text_color);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.8em 1.5em;
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

.footer_a_item {
  color: var(--footer_link_text_color);
  text-decoration: none;
}

/* Responsive Codes */

/* Responsive Overrides */
@media (max-width: 768px) { 
  .profile_card {
    padding: 1.8em;
    width: 94vw;
    border-radius: 24px;
    margin-bottom: 5em; /* Space for footer */
  }

  .header_h_item {
    font-size: 1.9em;
  }

  .header_svg_list {
    gap: 0.8em;
  }

  .header_svg_item {
    width: 3.2em;
    height: 3.2em;
  }

  .glitch {
    font-size: 1.8em;
    letter-spacing: 6px;
  }
}

@media (max-width: 400px) {
  .header_svg_item {
    width: 2.8em;
    height: 2.8em;
  }
  
  .header_svg_item svg {
    width: 1.4em;
    height: 1.4em;
  }
}

/* Landscape and small screens */
@media (max-height: 500px) {
  .profile_card {
    margin-top: 2em;
    margin-bottom: 4em;
  }
  
  body {
    overflow-y: auto;
  }
}
