:root {
  --bg: #000000;
  --text: #f7faff;
  --muted: rgba(247, 250, 255, 0.76);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.1);
  --panel: rgba(13, 15, 19, 0.68);
  --panel-2: rgba(26, 29, 35, 0.62);
  --glow: rgba(255, 192, 155, 0.52);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--text);
}

/* Define custom cursor */
.custom-cursor {
  cursor: url('./assets/cursor/pointer.png'), auto !important;
}

/* Terminal styles */
#terminal {
  position: fixed;
  top: 50px;
  left: 50px;
  width: min(92vw, 620px);
  height: min(70vh, 420px);
  background: linear-gradient(180deg, rgba(23, 25, 30, 0.95) 0%, rgba(11, 13, 17, 0.95) 100%);
  color: #ffffff;
  border-radius: 14px;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

@media screen and (max-width: 600px) {
  /* Adjust styles for smaller screens, such as phones */
  #terminal {
      max-width: 90%; /* Increase width for smaller screens */
  }
}
/* Terminal header styles */
#terminal-header {
  background-color: rgba(255, 255, 255, 0.04);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 14px;
  display: flex;
  justify-content: flex-start;
  transition: background-color 0.3s;
}

/* Terminal header hover effect */
#terminal-header:hover {
  background-color: #333333;
}

/* Terminal buttons styles */
#terminal-buttons {
  display: flex; /* Use flexbox for layout */
  gap: 10px; /* Add gap between buttons */
}

/* Individual terminal button styles */
.terminal-button {
  width: 15px; /* Adjust width as needed */
  height: 15px; /* Adjust height as needed */
  border-radius: 50%; /* Circular shape */
  cursor: pointer; /* Set cursor to pointer */
  transition: background-color 0.3s; /* Smooth transition for background color */
}

/* Terminal button hover effect */
.terminal-button:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background on hover */
}

/* Close button styles */
#close-button {
  background-color: #FF5F57; /* Close button color */
}

/* Minimize button styles */
#minimize-button {
  background-color: #FFBD2E; /* Minimize button color */
}

/* Maximize button styles */
#maximize-button {
  background-color: #28CA42; /* Maximize button color */
}

/* Terminal content styles */
#terminal-content {
  padding: 22px;
  height: calc(100% - 42px);
  overflow-y: auto;
  user-select: none;
}

/* Terminal text styles */
#terminal-text {
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  white-space: pre-line;
}

/* Video background styles */
#video-background {
  position: fixed; /* Fixed position to cover the entire viewport */
  top: 0;
  left: 0;
  width: 100vw; /* 100% of viewport width */
  height: 100vh; /* 100% of viewport height */
  z-index: -1; /* Behind other content */
  pointer-events: none;
}

/* Scan lines effect */
#video-background::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 2px);
  z-index: 1;
  pointer-events: none;
}

#video-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  z-index: 1;
  pointer-events: none;
}

/* Video styles */
#myVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Positioning classes */
.top-left {
  top: 0;
  left: 0;
}

.top-right {
  top: 0;
  right: 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
}

.bottom-right {
  bottom: 0;
  right: 0;
}

/* Blurred box styles */
#blurred-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 670px);
  max-height: none;
  background: linear-gradient(150deg, var(--panel), var(--panel-2));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 18px rgba(255, 255, 255, 0.14), 0 0 40px rgba(255, 255, 255, 0.08), 0 0 10px rgba(100, 100, 100, 0.5);
  backdrop-filter: blur(14px);
  z-index: 999;
  display: none;
  padding: 24px 26px 22px;
  text-align: center;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  animation: card-glow 2.2s ease-in-out infinite alternate;
  overflow: visible;
}

/* Blurred box hover effect */
#blurred-box:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 22px rgba(255, 255, 255, 0.18), 0 0 56px rgba(255, 255, 255, 0.12), 0 0 10px rgba(100, 100, 100, 0.5);
}

.discord-banner-wrap {
  position: relative;
  height: 172px;
  margin: -24px -26px 0;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(38, 64, 92, 0.5), rgba(25, 33, 48, 0.74));
}

.discord-banner-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

#discord-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.discord-banner-wrap.has-banner #discord-banner {
  display: block;
}

@keyframes card-glow {
  from {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 14px rgba(255, 255, 255, 0.11), 0 0 28px rgba(120, 205, 255, 0.08), 0 0 44px rgba(120, 205, 255, 0.05), 0 0 10px rgba(100, 100, 100, 0.45);
  }

  to {
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 24px rgba(255, 255, 255, 0.18), 0 0 50px rgba(120, 205, 255, 0.12), 0 0 82px rgba(120, 205, 255, 0.08), 0 0 10px rgba(100, 100, 100, 0.55);
  }
}

/* Profile picture styles */
#profile-picture {
  display: block;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
  margin: -34px auto 20px;
  border: 4px solid rgba(9, 12, 16, 0.9);
  box-shadow: none;
  position: relative;
  z-index: 2;
}

#avatar-frame {
  position: absolute;
  top: 146px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 124px;
  height: 124px;
  z-index: 1000;
  pointer-events: none;
  display: none;
  margin: 0;
}

.username-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin: 10px 0 26px;
}

#username {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(1.45rem, 2.25vw, 1.9rem);
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.88), 0 0 22px rgba(255, 255, 255, 0.6), 0 0 42px rgba(120, 205, 255, 0.62), 0 0 68px rgba(120, 205, 255, 0.3);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.38)) drop-shadow(0 0 22px rgba(120, 205, 255, 0.3));
  animation: username-glow 2.2s ease-in-out infinite alternate;
}

/* Profile badges */
.profile-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -8px 0 20px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.18);
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.profile-badge i {
  font-size: 0.82rem;
}

.badge-verified {
  background: linear-gradient(135deg, #0d1117 60%, rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25), 0 0 22px rgba(255, 255, 255, 0.12), inset 0 0 8px rgba(255, 255, 255, 0.05);
}

.badge-verified i {
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

.badge-easter {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.28), 0 0 20px rgba(255, 255, 255, 0.14);
}

.badge-easter i {
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

@keyframes username-glow {
  from {
    text-shadow: 0 0 7px rgba(255, 255, 255, 0.6), 0 0 14px rgba(255, 255, 255, 0.34), 0 0 28px rgba(120, 205, 255, 0.28), 0 0 44px rgba(120, 205, 255, 0.16);
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.26)) drop-shadow(0 0 14px rgba(120, 205, 255, 0.18));
  }

  to {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.98), 0 0 26px rgba(255, 255, 255, 0.7), 0 0 50px rgba(120, 205, 255, 0.72), 0 0 82px rgba(120, 205, 255, 0.38);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.42)) drop-shadow(0 0 24px rgba(120, 205, 255, 0.32));
  }
}

/* Links styles */
.links {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 1002;
  margin-top: 8px;
  pointer-events: auto;
}

.links a,
.links button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 52px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none;
  will-change: transform;
  transition: transform 0.15s ease, opacity 0.15s ease;
  pointer-events: auto !important;
  z-index: 1002;
  position: relative;
}

.links button {
  padding: 0;
}

/* Link hover effect */
.links a:hover,
.links button:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.links a i,
.links button i {
  margin-right: 0;
  font-size: 1.42rem;
}

/* Hover styles for links */
.links a:hover,
.links button:hover {
  text-decoration: none;
}

.links a:focus-visible,
.links button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

/* User Description styles */
.user-description {
  margin-bottom: 18px;
  display: grid;
  gap: 10px;
}

.user-description p {
  margin: 0;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: background-color 0.3s, border-color 0.3s;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
}

/* User description hover effect */
.user-description:hover p {
  background-color: rgba(255, 255, 255, 0.17);
  border-color: var(--line);
}

.discord-presence {
  display: grid;
  gap: 10px;
  margin: 0 auto 18px;
  width: 100%;
}

.presence-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.23);
  backdrop-filter: blur(8px);
}

.presence-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bdc8da;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.presence-top .fa-discord,
.presence-top .fa-spotify {
  font-size: 1rem;
  opacity: 0.85;
}

.status-dot {
  margin-left: -1px;
  margin-right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(14, 17, 21, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.status-dot.online {
  background: #43b581;
  box-shadow: 0 0 9px rgba(67, 181, 129, 0.65);
}

.status-dot.idle {
  background: #faa61a;
  box-shadow: 0 0 9px rgba(250, 166, 26, 0.55);
}

.status-dot.dnd {
  background: #f04747;
  box-shadow: 0 0 9px rgba(240, 71, 71, 0.55);
}

.status-dot.offline {
  background: #747f8d;
}

.presence-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.presence-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.presence-icon.hidden {
  display: none;
}

.presence-text {
  min-width: 0;
  text-align: left;
}

.presence-text p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#discord-activity-title,
#spotify-track {
  color: #f3f6ff;
  font-size: 1.1rem;
  font-weight: 700;
}

#discord-activity-subtitle,
#spotify-artist {
  color: #aab5c8;
  font-size: 1rem;
  margin-top: 2px;
  white-space: normal;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.spotify-card {
  display: none;
}

.spotify-card.show {
  display: block;
}



.spotify-progress-wrap {
  margin-top: 11px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: #8f9bb1;
  font-size: 0.9rem;
}

.spotify-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.spotify-progress {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8fd2ff, #d9f0ff);
  box-shadow: 0 0 12px rgba(143, 210, 255, 0.45);
}

@media screen and (max-width: 860px) {
  .discord-banner-wrap {
    height: 154px;
    margin: -20px -16px 0;
    border-radius: 18px 18px 0 0;
  }

  #profile-picture {
    margin-top: -30px;
  }

  #avatar-frame {
    top: 132px;
  }

  #blurred-box {
    width: min(92vw, 620px);
    padding: 20px 16px 18px;
    border-radius: 18px;
  }

  .user-description p {
    font-size: 0.95rem;
  }

  .links a,
  .links button {
    width: 50px;
    height: 46px;
  }
}

@media screen and (max-width: 520px) {
  .discord-banner-wrap {
    height: 132px;
  }

  #terminal-content {
    padding: 16px;
  }

  #terminal-text {
    font-size: 12px;
  }

  #blurred-box {
    width: 94vw;
  }

  #profile-picture {
    width: 84px;
    height: 84px;
    margin-top: -24px;
  }

  #avatar-frame {
    top: 116px;
    width: 108px;
    height: 108px;
  }

  .user-description p {
    font-size: 0.88rem;
    padding: 11px 9px;
  }
}