:root {
  color-scheme: dark;
  --bg: #05070c;
  --panel: rgba(8, 10, 15, 0.85);
  --line: rgba(255, 255, 255, 0.25);
  --glow: rgba(130, 178, 255, 0.45);
  --text: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.7);
  --accent: #79a7ff;
  --accent-strong: #a6c4ff;
  --font-display: "Unbounded", "Space Mono", sans-serif;
  --font-body: "Space Mono", "Unbounded", sans-serif;
  --banner-image: url("assets/banner.gif");
  --avatar-image: url("https://cdn.discordapp.com/avatars/460879172944789504/a_5582baf884fa0429ecc5b2884014dc54.gif");
  --server-image: url("https://cdn.discordapp.com/icons/1298347727234666516/b3ea2c05cde648389391a5950afb1f30");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(90, 120, 180, 0.2), transparent 55%),
    radial-gradient(circle at 20% 70%, rgba(56, 120, 190, 0.16), transparent 60%),
    linear-gradient(150deg, #040507, #070a12 55%, #040508);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0.2px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 48px 16px;
}

.video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(5, 7, 12, 0.2), rgba(5, 7, 12, 0.75)),
    linear-gradient(160deg, rgba(5, 7, 12, 0.6), rgba(5, 7, 12, 0.85));
  pointer-events: none;
  z-index: 1;
}

.audio-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(5, 7, 12, 0.7);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  z-index: 4;
}

.audio-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 12px rgba(120, 170, 255, 0.35);
}

.audio-toggle:focus-visible {
  outline: 2px solid rgba(121, 167, 255, 0.8);
  outline-offset: 2px;
}

.audio-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: none;
}

.audio-toggle.is-muted .audio-off {
  display: block;
}

.audio-toggle:not(.is-muted) .audio-on {
  display: block;
}

.audio-toggle:not(.is-muted) .audio-off {
  display: none;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.4;
  animation: float 14s ease-in-out infinite;
}

.orb-1 {
  width: 220px;
  height: 220px;
  left: 6%;
  top: 18%;
  background: radial-gradient(circle, rgba(121, 167, 255, 0.5), transparent 70%);
}

.orb-2 {
  width: 300px;
  height: 300px;
  right: 8%;
  top: 12%;
  background: radial-gradient(circle, rgba(150, 130, 255, 0.35), transparent 70%);
  animation-delay: -4s;
}

.orb-3 {
  width: 260px;
  height: 260px;
  left: 10%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(120, 210, 255, 0.25), transparent 70%);
  animation-delay: -7s;
}

.orb-4 {
  width: 180px;
  height: 180px;
  right: 12%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(90, 120, 190, 0.3), transparent 70%);
  animation-delay: -2s;
}

.card {
  position: relative;
  z-index: 3;
  width: min(420px, 92vw);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6), 0 0 45px rgba(83, 113, 165, 0.35);
  backdrop-filter: blur(12px);
  overflow: hidden;
  animation: card-in 0.9s ease-out forwards;
}

.banner {
  height: 120px;
  background-image: var(--banner-image),
    linear-gradient(135deg, rgba(150, 150, 150, 0.25), rgba(10, 10, 10, 0.6)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 4px, transparent 4px, transparent 12px);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile {
  padding: 0 26px 20px;
  text-align: center;
  transform: translateY(-36px);
}

.avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background-image: var(--avatar-image),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(145deg, rgba(38, 44, 70, 0.9), rgba(8, 12, 20, 0.9));
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.6);
}

.profile h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.profile p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.socials {
  display: inline-flex;
  gap: 10px;
}

.icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(120, 170, 255, 0.45);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  margin: -12px 24px 18px;
}

.links {
  display: grid;
  gap: 12px;
  padding: 0 20px 24px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  text-decoration: none;
  background: rgba(10, 12, 18, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: fade-up 0.8s ease forwards;
  opacity: 0;
  transform: translateY(12px);
  animation-delay: var(--delay, 0s);
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 14px rgba(120, 170, 255, 0.2);
}

.link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(140deg, rgba(70, 80, 120, 0.8), rgba(30, 40, 70, 0.9));
}

.thumb-server {
  background-image: var(--server-image),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(140deg, rgba(70, 80, 120, 0.8), rgba(30, 40, 70, 0.9));
  background-size: cover;
  background-position: center;
}

.thumb-user {
  border-radius: 50%;
  background-image: var(--avatar-image),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(140deg, rgba(70, 80, 120, 0.8), rgba(30, 40, 70, 0.9));
  background-size: cover;
  background-position: center;
}

.link-title {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.link-meta {
  font-size: 0.7rem;
  color: var(--muted);
}

.link-action {
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.link-card.wide {
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.spotify-embed {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 12, 18, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  animation: fade-up 0.8s ease forwards;
  opacity: 0;
  transform: translateY(12px);
  animation-delay: var(--delay, 0s);
}

.spotify-embed iframe {
  display: block;
  border: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-18px) translateX(12px);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

@media (max-width: 420px) {
  .profile {
    padding: 0 20px 16px;
  }

  .links {
    padding: 0 16px 22px;
  }

  .link-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .link-card.wide {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .link-card,
  .card {
    animation: none;
  }
}
