/* ============================================
   Matt Ganim Website - Premium Blue/Black Theme
   Blue accent with purple-violet highlights
   ============================================ */

/* ── CSS Variables ── */
:root {
  /* Backgrounds */
  --bg-primary: #050510;
  --bg-secondary: #0A0A1A;
  --bg-tertiary: #0F0F23;
  --bg-card: rgba(59, 130, 246, 0.06);
  --bg-card-hover: rgba(59, 130, 246, 0.1);
  --bg-card-solid: #0D0D20;
  --bg-glass: rgba(10, 10, 26, 0.7);

  /* Borders */
  --border-color: rgba(59, 130, 246, 0.15);
  --border-hover: rgba(59, 130, 246, 0.3);
  --border-glow: rgba(59, 130, 246, 0.4);

  /* Accent Colors */
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --blue-light: #60A5FA;
  --purple: #8B5CF6;
  --purple-light: #A78BFA;
  --cyan: #06B6D4;

  /* Glow */
  --blue-glow: rgba(59, 130, 246, 0.3);
  --blue-glow-strong: rgba(59, 130, 246, 0.5);
  --purple-glow: rgba(139, 92, 246, 0.3);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & Radius */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  /* Shadows */
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  --shadow-blue: 0 4px 30px rgba(59, 130, 246, 0.15);
  --shadow-blue-strong: 0 8px 40px rgba(59, 130, 246, 0.25);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ── Subtle noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Subtle grid pattern overlay ── */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.02;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   Floating Music Notes Background
   ============================================ */
.bg-notes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.music-note {
  position: absolute;
  font-size: 20px;
  color: rgba(59, 130, 246, 0.06);
  animation: floatNote linear infinite;
  pointer-events: none;
}

@keyframes floatNote {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================
   Floating Particles (CSS-only)
   ============================================ */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-particles::before,
.bg-particles::after {
  content: '';
  position: fixed;
  width: 2px;
  height: 2px;
  background: transparent;
  border-radius: 50%;
}

.bg-particles::before {
  box-shadow:
    50px 80px rgba(59, 130, 246, 0.5),
    150px 200px rgba(139, 92, 246, 0.4),
    300px 50px rgba(6, 182, 212, 0.5),
    450px 300px rgba(59, 130, 246, 0.3),
    600px 150px rgba(139, 92, 246, 0.6),
    750px 400px rgba(59, 130, 246, 0.4),
    900px 100px rgba(6, 182, 212, 0.3),
    1050px 350px rgba(139, 92, 246, 0.5),
    1200px 50px rgba(59, 130, 246, 0.4),
    200px 450px rgba(59, 130, 246, 0.3),
    500px 500px rgba(139, 92, 246, 0.4),
    800px 250px rgba(6, 182, 212, 0.5),
    1100px 480px rgba(59, 130, 246, 0.6),
    350px 120px rgba(139, 92, 246, 0.3),
    650px 380px rgba(59, 130, 246, 0.5),
    950px 420px rgba(6, 182, 212, 0.4),
    100px 350px rgba(139, 92, 246, 0.5),
    400px 80px rgba(59, 130, 246, 0.4),
    700px 200px rgba(139, 92, 246, 0.3),
    1000px 300px rgba(6, 182, 212, 0.5);
  animation: particleDrift1 30s linear infinite;
}

.bg-particles::after {
  box-shadow:
    80px 120px rgba(139, 92, 246, 0.4),
    250px 280px rgba(59, 130, 246, 0.5),
    420px 60px rgba(6, 182, 212, 0.4),
    580px 320px rgba(139, 92, 246, 0.3),
    720px 180px rgba(59, 130, 246, 0.6),
    870px 450px rgba(139, 92, 246, 0.5),
    1020px 130px rgba(6, 182, 212, 0.4),
    130px 500px rgba(59, 130, 246, 0.3),
    380px 220px rgba(139, 92, 246, 0.5),
    630px 100px rgba(59, 130, 246, 0.4),
    880px 350px rgba(6, 182, 212, 0.6),
    1080px 200px rgba(139, 92, 246, 0.3),
    280px 400px rgba(59, 130, 246, 0.5),
    530px 80px rgba(139, 92, 246, 0.4),
    780px 280px rgba(59, 130, 246, 0.3),
    1030px 450px rgba(6, 182, 212, 0.5),
    180px 180px rgba(139, 92, 246, 0.4),
    480px 480px rgba(59, 130, 246, 0.6),
    730px 50px rgba(139, 92, 246, 0.3),
    980px 380px rgba(6, 182, 212, 0.4);
  animation: particleDrift2 25s linear infinite;
}

@keyframes particleDrift1 {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-25vh) translateX(15px); }
  50% { transform: translateY(-50vh) translateX(-10px); }
  75% { transform: translateY(-75vh) translateX(20px); }
  100% { transform: translateY(-100vh) translateX(0); }
}

@keyframes particleDrift2 {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-25vh) translateX(-20px); }
  50% { transform: translateY(-50vh) translateX(15px); }
  75% { transform: translateY(-75vh) translateX(-10px); }
  100% { transform: translateY(-100vh) translateX(0); }
}

/* ============================================
   Piano Keys Background (CSS-only)
   ============================================ */
.piano-keys-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  height: 180px;
  opacity: 0.04;
  overflow: hidden;
  z-index: 0;
}

.piano-keys-bg .key.white {
  flex: 1;
  background: var(--text-primary);
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  position: relative;
  transform: perspective(500px) rotateX(45deg);
  transform-origin: bottom center;
}

/* Black keys using nth-child pseudo-positioning */
.piano-keys-bg .key.white:nth-child(1)::after,
.piano-keys-bg .key.white:nth-child(2)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 65%;
  width: 55%;
  height: 55%;
  background: #000;
  z-index: 2;
  border-radius: 0 0 3px 3px;
}

.piano-keys-bg .key.white:nth-child(3)::after,
.piano-keys-bg .key.white:nth-child(4)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 60%;
  width: 55%;
  height: 55%;
  background: #000;
  z-index: 2;
  border-radius: 0 0 3px 3px;
}

.piano-keys-bg .key.white:nth-child(5)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 62%;
  width: 55%;
  height: 55%;
  background: #000;
  z-index: 2;
  border-radius: 0 0 3px 3px;
}

.piano-keys-bg .key.white:nth-child(6)::after,
.piano-keys-bg .key.white:nth-child(7)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 64%;
  width: 55%;
  height: 55%;
  background: #000;
  z-index: 2;
  border-radius: 0 0 3px 3px;
}

.piano-keys-bg .key.white:nth-child(8)::after,
.piano-keys-bg .key.white:nth-child(9)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 60%;
  width: 55%;
  height: 55%;
  background: #000;
  z-index: 2;
  border-radius: 0 0 3px 3px;
}

.piano-keys-bg .key.white:nth-child(10)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 62%;
  width: 55%;
  height: 55%;
  background: #000;
  z-index: 2;
  border-radius: 0 0 3px 3px;
}

.piano-keys-bg .key.white:nth-child(11)::after,
.piano-keys-bg .key.white:nth-child(12)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 64%;
  width: 55%;
  height: 55%;
  background: #000;
  z-index: 2;
  border-radius: 0 0 3px 3px;
}

/* Piano key shimmer animation */
.piano-keys-bg .key.white:nth-child(odd) {
  animation: keyShimmer 4s ease-in-out infinite;
}

.piano-keys-bg .key.white:nth-child(even) {
  animation: keyShimmer 4s ease-in-out infinite 2s;
}

@keyframes keyShimmer {
  0%, 100% { background: rgba(255, 255, 255, 0.6); }
  50% { background: rgba(255, 255, 255, 1); }
}

/* ============================================
   Hero Piano Keys Background - VISIBLE
   ============================================ */
.hero-piano {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  z-index: 0;
  display: flex;
  opacity: 0.40;
  transform: perspective(600px) rotateX(35deg);
  transform-origin: bottom center;
  overflow: hidden;
}

.hero-piano .pkey {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
  border-right: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.15s ease;
}

.hero-piano .pkey:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0.15) 100%);
}

.hero-piano .pkey.is-playing,
.hero-piano .pkey.is-hovered {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.hero-piano:hover .pkey.is-playing:not(:hover) {
  animation: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
}

/* Black keys */
.hero-piano .pkey .black {
  position: absolute;
  top: 0;
  width: 60%;
  height: 58%;
  background: linear-gradient(180deg, #1a1a2e 0%, #0a0a15 100%);
  border-radius: 0 0 4px 4px;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

.hero-piano .pkey .black:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.6) 0%, rgba(59, 130, 246, 0.3) 100%);
}

/* Position black keys correctly for each white key */
/* Pattern: C#, D#, (skip E-F), F#, G#, A#, (skip B-C) */
.hero-piano .pkey:nth-child(1) .black { left: 65%; }  /* C# */
.hero-piano .pkey:nth-child(2) .black { left: 60%; }  /* D# */
/* No black key between E and F */
.hero-piano .pkey:nth-child(4) .black { left: 65%; }  /* F# */
.hero-piano .pkey:nth-child(5) .black { left: 60%; }  /* G# */
.hero-piano .pkey:nth-child(6) .black { left: 58%; }  /* A# */
/* No black key between B and C */
.hero-piano .pkey:nth-child(8) .black { left: 65%; }  /* C# */
.hero-piano .pkey:nth-child(9) .black { left: 60%; }  /* D# */
.hero-piano .pkey:nth-child(11) .black { left: 65%; } /* F# */
.hero-piano .pkey:nth-child(12) .black { left: 60%; } /* G# */
.hero-piano .pkey:nth-child(13) .black { left: 58%; } /* A# */

/* Page header piano (smaller) */
.page-header-piano {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 0;
  display: flex;
  opacity: 0.08;
  transform: perspective(500px) rotateX(30deg);
  transform-origin: bottom center;
  overflow: hidden;
}

.page-header-piano .pkey {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
  border-right: 1px solid rgba(59, 130, 246, 0.15);
  transition: all 0.2s ease;
}

.page-header-piano .pkey:hover,
.page-header-piano .pkey.is-playing,
.page-header-piano .pkey.is-hovered {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.42) 0%, rgba(59, 130, 246, 0.16) 100%);
}

.page-header-piano:hover .pkey.is-playing:not(:hover) {
  animation: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
}

.page-header-piano .pkey .black {
  position: absolute;
  top: 0;
  width: 60%;
  height: 58%;
  background: linear-gradient(180deg, #1a1a2e 0%, #0a0a15 100%);
  border-radius: 0 0 3px 3px;
  z-index: 2;
}

.page-header-piano .pkey:nth-child(1) .black,
.page-header-piano .pkey:nth-child(4) .black,
.page-header-piano .pkey:nth-child(8) .black,
.page-header-piano .pkey:nth-child(11) .black { left: 65%; }

.page-header-piano .pkey:nth-child(2) .black,
.page-header-piano .pkey:nth-child(5) .black,
.page-header-piano .pkey:nth-child(9) .black,
.page-header-piano .pkey:nth-child(12) .black { left: 60%; }

.page-header-piano .pkey:nth-child(6) .black,
.page-header-piano .pkey:nth-child(13) .black { left: 58%; }

.hero-piano .pkey.is-playing,
.page-header-piano .pkey.is-playing {
  animation: pianoKeyPress 1.15s ease-out;
}

@keyframes pianoKeyPress {
  0%, 100% {
    filter: brightness(1);
  }
  32% {
    filter: brightness(1.25);
  }
}

/* ============================================
   Gradient Mesh Background
   ============================================ */
.gradient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  animation: meshShift 15s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% {
    background:
      radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  }
  50% {
    background:
      radial-gradient(ellipse at 60% 30%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse at 40% 80%, rgba(59, 130, 246, 0.07) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 40%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
      radial-gradient(ellipse at 20% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.nav-logo:hover {
  color: var(--text-primary);
  transform: scale(1.02);
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--blue);
  text-shadow: 0 0 20px var(--blue-glow);
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { text-shadow: 0 0 10px var(--blue-glow); }
  100% { text-shadow: 0 0 30px var(--blue-glow), 0 0 60px rgba(59, 130, 246, 0.15); }
}

.logo-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.08);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 60%;
}

.nav-link.active {
  color: var(--blue);
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: var(--transition);
}

.hamburger:hover {
  opacity: 0.8;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--blue);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--blue);
}

/* ── Nav Overlay ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 16, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    var(--bg-primary);
}

.hero-bg-animation {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  animation: heroGlowPulse 6s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-50%) scale(1.15);
    opacity: 1;
  }
}

/* Secondary glow orb */
.hero-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlowPulse2 8s ease-in-out infinite;
}

@keyframes heroGlowPulse2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
  padding: 6px 20px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue) 40%, var(--purple) 70%, var(--text-primary) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroShimmer 6s ease-in-out infinite;
}

@keyframes heroShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 300% center; }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ── Hero Wave Separator ── */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Button shine effect */
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Primary: Blue gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--blue-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow-strong);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Gold / Secondary: Blue outline */
.btn-gold {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: inset 0 0 0 0 var(--blue);
}

.btn-gold:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.05);
}

/* Streaming: Glass card style */
.btn-streaming {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-streaming:hover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
  color: var(--text-primary);
}

/* Glow button */
.btn-glow:hover {
  box-shadow:
    0 0 20px var(--blue-glow),
    0 0 40px rgba(59, 130, 246, 0.15);
}

/* Size modifiers */
.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-icon {
  display: flex;
  align-items: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-full-width {
  width: 100%;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Streaming Cards - Premium Design
   ============================================ */
.streaming-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

.streaming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.streaming-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient on hover */
.streaming-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius);
}

.streaming-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue-strong);
  color: var(--text-primary);
}

.streaming-card:hover::before {
  opacity: 1;
}

.streaming-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  flex-shrink: 0;
  color: var(--blue);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.streaming-card:hover .streaming-card-icon {
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 20px var(--blue-glow);
}

.streaming-card-icon svg {
  width: 24px;
  height: 24px;
}

.streaming-card-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.streaming-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streaming-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streaming-card-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.streaming-card:hover .streaming-card-arrow {
  color: var(--blue);
  transform: translateX(4px);
}

/* ============================================
   Real Brand SVG Icons
   ============================================ */

/* Icon base container for brand logos */
.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  position: relative;
  z-index: 1;
}

.brand-icon img.brand-logo-img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.brand-icon:hover {
  transform: scale(1.1);
}

/* Spotify - Green */
.icon-spotify {
  background: #1DB954;
  color: #fff;
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
  border-radius: 22%;
}
.icon-spotify:hover { box-shadow: 0 6px 25px rgba(29, 185, 84, 0.5); }

/* Apple Music - Pink/Red gradient */
.icon-apple-music {
  background: linear-gradient(135deg, #FC3C44, #D12E6A);
  color: #fff;
  box-shadow: 0 4px 15px rgba(252, 60, 68, 0.3);
  border-radius: 22%;
}
.icon-apple-music:hover { box-shadow: 0 6px 25px rgba(252, 60, 68, 0.5); }

/* SoundCloud - Orange */
.icon-soundcloud {
  background: #FF5500;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
  border-radius: 12px;
}
.icon-soundcloud:hover { box-shadow: 0 6px 25px rgba(255, 85, 0, 0.5); }

.icon-spotify img.brand-logo-img,
.icon-apple-music img.brand-logo-img,
.icon-soundcloud img.brand-logo-img,
.icon-snapchat img.brand-logo-img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

/* YouTube - Red */
.icon-youtube {
  background: #FF0000;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  border-radius: 12px;
}
.icon-youtube:hover { box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5); }

/* Instagram - Gradient */
.icon-instagram {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  color: #fff;
  box-shadow: 0 4px 15px rgba(221, 42, 123, 0.3);
  border-radius: 50%;
}
.icon-instagram:hover { box-shadow: 0 6px 25px rgba(221, 42, 123, 0.5); }

/* TikTok - Black */
.icon-tiktok {
  background: #010101;
  color: #fff;
  box-shadow: 0 4px 15px rgba(1, 1, 1, 0.3);
  border-radius: 12px;
}
.icon-tiktok:hover { box-shadow: 0 6px 25px rgba(1, 1, 1, 0.5); }

/* Snapchat - Yellow */
.icon-snapchat {
  background: #FFFC00;
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 252, 0, 0.3);
  border-radius: 22%;
}
.icon-snapchat:hover { box-shadow: 0 6px 25px rgba(255, 252, 0, 0.5); }

/* Playlist - Blue gradient (custom, not a brand) */
.icon-playlist {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 4px 15px var(--blue-glow);
  border-radius: 50%;
}

/* Piano - Blue gradient (custom) */
.icon-piano {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 4px 15px var(--purple-glow);
  border-radius: 50%;
}

/* Generic music icon */
.icon-music {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 15px var(--blue-glow);
  border-radius: 50%;
}

/* Smaller icon for streaming cards overlay */
.streaming-card-image .brand-icon {
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: 8px;
  right: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.streaming-card-image .brand-icon svg,
.streaming-card-image .brand-icon img.brand-logo-img {
  width: 20px;
  height: 20px;
}

/* Social icon for about/contact cards */
.about-social-icon .brand-icon,
.contact-social-icon .brand-icon {
  width: 48px;
  height: 48px;
}

/* Footer icon sizing */
.footer-social .brand-icon,
.footer-streaming .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-social .brand-icon svg,
.footer-social .brand-icon img.brand-logo-img,
.footer-streaming .brand-icon svg,
.footer-streaming .brand-icon img.brand-logo-img {
  width: 18px;
  height: 18px;
}

/* Icon in footer links */
.streaming-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: var(--transition);
}

.streaming-link-with-icon:hover {
  color: var(--blue-light);
}

/* Platform chip icon sizing */
.platform-chip .brand-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.platform-chip .brand-icon svg,
.platform-chip .brand-icon img.brand-logo-img {
  width: 12px;
  height: 12px;
}

.brand-icon.icon-spotify img.brand-logo-img,
.brand-icon.icon-apple-music img.brand-logo-img,
.brand-icon.icon-soundcloud img.brand-logo-img,
.brand-icon.icon-snapchat img.brand-logo-img {
  width: 100%;
  height: 100%;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
  opacity: 0.3;
}

.stats-section .section-label {
  color: #93C5FD;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

.stats-section .section-title {
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #F8FAFC;
  -webkit-text-fill-color: #F8FAFC;
  background: none;
  text-shadow: 0 2px 18px rgba(96, 165, 250, 0.28);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   Playlist Section
   ============================================ */
.playlist-section {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    var(--bg-primary);
}

.playlist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  gap: 40px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.playlist-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
  border-radius: var(--radius-lg);
}

.playlist-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-blue);
}

.playlist-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.playlist-label {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--purple);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.playlist-card-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.playlist-card-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* ── Vinyl Record ── */
.vinyl-record {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #0A0A1A, #1a1a2e,
    #0A0A1A, #1a1a2e,
    #0A0A1A, #1a1a2e,
    #0A0A1A, #1a1a2e,
    #0A0A1A
  );
  border: 3px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vinylSpin 8s linear infinite;
  box-shadow:
    0 0 40px var(--blue-glow),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Vinyl grooves */
.vinyl-record::before {
  content: '';
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.08);
  position: absolute;
  box-shadow:
    0 0 0 10px rgba(59, 130, 246, 0.03),
    0 0 0 20px rgba(59, 130, 246, 0.05),
    0 0 0 30px rgba(59, 130, 246, 0.03),
    0 0 0 40px rgba(59, 130, 246, 0.04);
}

.vinyl-inner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 0 20px var(--blue-glow);
  position: relative;
  z-index: 1;
}

.vinyl-inner::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes vinylSpin {
  100% { transform: rotate(360deg); }
}

.music-playlist-card {
  margin-top: 40px;
}

/* ============================================
   Guess the Song Preview
   ============================================ */
.guess-preview-section {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

.guess-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  gap: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.guess-preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: var(--radius-lg);
}

.guess-preview-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-blue);
}

.guess-preview-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.guess-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px var(--blue-glow);
}

.guess-preview-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 8px;
}

.guess-preview-content p {
  color: var(--text-muted);
  margin-bottom: 8px;
  max-width: 500px;
}

.guess-day-info {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 20px;
}

.guess-preview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.guess-preview-visual {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ── Music Note Animation ── */
.music-note-animation {
  display: flex;
  gap: 12px;
  font-size: 3rem;
}

.music-note-animation span {
  animation: bounceNote 2s ease-in-out infinite;
  display: inline-block;
}

.music-note-animation span:nth-child(1) {
  color: var(--blue);
  text-shadow: 0 0 20px var(--blue-glow);
}

.music-note-animation span:nth-child(2) {
  animation-delay: 0.3s;
  color: var(--purple);
  text-shadow: 0 0 20px var(--purple-glow);
}

.music-note-animation span:nth-child(3) {
  animation-delay: 0.6s;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.music-note-animation span:nth-child(4) {
  animation-delay: 0.9s;
  color: var(--blue-light);
  text-shadow: 0 0 20px var(--blue-glow);
}

@keyframes bounceNote {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

/* ============================================
   Page Headers
   ============================================ */
.page-header {
  text-align: center;
  padding: 140px 0 40px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
    var(--bg-primary);
}

.page-header .section-label {
  margin-bottom: 8px;
}

.page-header h1,
.page-header-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-light) 60%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p,
.page-header-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

/* Page-specific header accents */
.music-page-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
  opacity: 0.3;
}

.guess-page-header {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.about-page-header {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.contact-page-header {
  background:
    radial-gradient(ellipse at 40% 40%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
    var(--bg-primary);
}

/* ============================================
   Music Page - Category Tabs
   ============================================ */
.music-content-section {
  background:
    radial-gradient(ellipse at 60% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    var(--bg-primary);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.category-tab {
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-body);
}

.category-tab:hover,
.category-tab.active {
  border-color: var(--blue);
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

/* ── Category Groups ── */
.category-group {
  margin-bottom: 40px;
}

.category-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.category-group-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* ============================================
   Guess the Song Page - Active Challenge
   ============================================ */
.challenge-section {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

.active-challenge-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.active-challenge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
}

.challenge-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.challenge-card-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  flex: 1;
}

.challenge-card-day {
  font-size: 1rem;
  color: var(--text-muted);
}

.day-count {
  font-weight: 700;
  color: var(--blue);
  font-size: 1.2rem;
}

.challenge-card-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.challenge-card-visual {
  margin: 24px 0;
}

/* Challenge Status Badges */
.challenge-status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.status-guessed {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 15px var(--blue-glow);
}

.status-closed {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Platform Chips */
.challenge-platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.platform-chip:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* ── No Challenge Card ── */
.no-challenge-card {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.no-challenge-visual {
  margin-bottom: 24px;
}

.no-challenge-icon {
  font-size: 4rem;
  color: var(--blue);
  text-shadow: 0 0 40px var(--blue-glow);
  animation: noteReveal 3s ease-in-out infinite;
}

@keyframes noteReveal {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.no-challenge-card h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.no-challenge-card p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ── Challenge Timeline ── */
.challenge-timeline {
  margin: 30px 0;
  position: relative;
  padding-left: 20px;
}

/* Connecting line */
.challenge-timeline::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--purple), var(--cyan));
  opacity: 0.3;
}

.timeline-day {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  align-items: flex-start;
  position: relative;
}

.day-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.timeline-day.revealed .day-number {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 0 20px var(--blue-glow);
}

.timeline-day.upcoming .day-number {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
}

.day-dot {
  display: none;
}

.day-content {
  flex: 1;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.timeline-day.revealed .day-content {
  border-color: rgba(59, 130, 246, 0.2);
}

.timeline-day.revealed .day-content:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-blue);
}

.day-content h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.day-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Mini notes in timeline */
.day-notes {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mini-note {
  display: inline-block;
  color: var(--blue);
  font-size: 1rem;
  animation: notePop 0.5s ease-out;
  text-shadow: 0 0 10px var(--blue-glow);
}

.mini-note:nth-child(2) { animation-delay: 0.1s; color: var(--purple); }
.mini-note:nth-child(3) { animation-delay: 0.2s; color: var(--cyan); }
.mini-note:nth-child(4) { animation-delay: 0.3s; color: var(--blue-light); }
.mini-note:nth-child(5) { animation-delay: 0.4s; color: var(--purple-light); }

@keyframes notePop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

.note-more {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 6px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 4px;
}

.day-reveal-info {
  font-size: 0.85rem;
  color: var(--blue);
}

.day-upcoming-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   Forms
   ============================================ */

.form-header {
  margin-bottom: 28px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.required {
  color: var(--blue);
}

.form-input {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(59, 130, 246, 0.03);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Legacy form input selectors (for old EJS class names) */
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Legacy form classes */
.form-grid .form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-message {
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.flash-icon {
  font-weight: 700;
  flex-shrink: 0;
}

.flash-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.flash-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

/* ============================================
   Previous Challenges
   ============================================ */
.previous-challenges-section {
  background:
    radial-gradient(ellipse at 40% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    var(--bg-primary);
}

.previous-challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.previous-challenge-card {
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.previous-challenge-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.prev-challenge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.prev-challenge-days {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.prev-challenge-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.prev-challenge-answer {
  font-size: 0.9rem;
  margin-top: 8px;
}

.answer-label {
  color: var(--blue);
  font-weight: 600;
}

/* ============================================
   About Page
   ============================================ */
.about-bio-section {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

.about-bio-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.about-bio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0.5;
}

.about-photo {
  display: flex;
  justify-content: center;
}

.about-photo-placeholder {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 60px var(--blue-glow),
    0 0 120px rgba(139, 92, 246, 0.1);
  position: relative;
}

.about-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.3);
  animation: photoRing 3s ease-in-out infinite alternate;
}

@keyframes photoRing {
  0% { border-color: rgba(59, 130, 246, 0.2); }
  100% { border-color: rgba(139, 92, 246, 0.4); }
}

.photo-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.photo-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.about-bio-content {
  position: relative;
}

.about-bio-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.about-bio-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.about-bio-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── About Social Grid ── */
.about-social-section {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    var(--bg-primary);
}

.about-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.about-social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.about-social-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
  color: var(--text-primary);
}

.about-social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  color: var(--blue);
  flex-shrink: 0;
  transition: var(--transition);
}

.about-social-card:hover .about-social-icon {
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 15px var(--blue-glow);
}

.about-social-info {
  flex: 1;
  min-width: 0;
}

.about-social-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.about-social-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-social-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.about-social-card:hover .about-social-arrow {
  color: var(--blue);
  transform: translateX(4px);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-section {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    var(--bg-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-form-wrapper,
.contact-info-wrapper {
  width: 100%;
}

.contact-form-card,
.contact-info-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.contact-form-card::before,
.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0.4;
}

.contact-form-card h3,
.contact-form-card h2,
.contact-info-card h3,
.contact-info-card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.contact-info-header h2 {
  margin-bottom: 8px;
}

.contact-info-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Contact Social Grid */
.contact-social-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-social-card:hover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-primary);
}

.contact-social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-social-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-social-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-social-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: auto;
}

.contact-social-card:hover .contact-social-arrow {
  color: var(--blue);
  transform: translateX(4px);
}

/* Booking Card */
.contact-booking-card {
  margin-top: 24px;
  text-align: center;
  padding: 32px 24px;
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.15);
}

.booking-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--purple);
  text-shadow: 0 0 30px var(--purple-glow);
}

.booking-title {
  color: var(--purple-light);
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.booking-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.booking-highlights {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.highlight-check {
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* Legacy contact classes */
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:last-child {
  border-bottom: none;
}

.contact-link:hover {
  color: var(--blue);
}

.booking-card {
  margin-top: 24px;
  padding: 24px;
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius);
}

.booking-card h4 {
  color: var(--purple-light);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.booking-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
  opacity: 0.3;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4,
.footer-streaming h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--blue-light);
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-icons a:hover {
  border-color: var(--blue);
  color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--blue-glow);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.footer-social .social-icons .brand-icon.icon-snapchat {
  box-shadow: none;
}

.footer-social .social-icons .brand-icon.icon-snapchat:hover {
  box-shadow: 0 4px 15px var(--blue-glow);
}

.footer-social .social-icons .brand-icon.icon-snapchat img.brand-logo-img {
  width: 18px;
  height: 18px;
  border-radius: 0;
  object-fit: contain;
}

.streaming-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.streaming-links a:hover {
  color: var(--blue-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   404 Error Page
   ============================================ */
.error-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
    var(--bg-primary);
}

.error-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.error-visual {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}

.error-number {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.error-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  z-index: -1;
  animation: errorGlow 3s ease-in-out infinite alternate;
}

@keyframes errorGlow {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.error-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.error-subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.error-suggestions {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.error-suggestions-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.error-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.error-link {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.error-link:hover {
  color: var(--blue-light);
}

.error-link-divider {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Legacy error page class */
.error-page {
  text-align: center;
  padding: 140px 0 80px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: 6rem;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 40px var(--blue-glow));
  margin-bottom: 8px;
}

.error-page h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.error-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for grid items */
.streaming-grid [data-animate]:nth-child(1) { transition-delay: 0.05s; }
.streaming-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.streaming-grid [data-animate]:nth-child(3) { transition-delay: 0.15s; }
.streaming-grid [data-animate]:nth-child(4) { transition-delay: 0.2s; }
.streaming-grid [data-animate]:nth-child(5) { transition-delay: 0.25s; }
.streaming-grid [data-animate]:nth-child(6) { transition-delay: 0.3s; }
.streaming-grid [data-animate]:nth-child(7) { transition-delay: 0.35s; }
.streaming-grid [data-animate]:nth-child(8) { transition-delay: 0.4s; }

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.3) var(--bg-primary);
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
}

/* ============================================
   Focus Styles (Accessibility)
   ============================================ */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ============================================
   Responsive Design
   ============================================ */

/* ── Large tablets / Small desktops ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-bio-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px;
  }

  .about-photo {
    margin: 0 auto;
  }

  .about-bio-cta {
    justify-content: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .playlist-card,
  .guess-preview-card {
    flex-direction: column;
    text-align: center;
  }

  .guess-preview-actions {
    justify-content: center;
  }

  .vinyl-record {
    width: 120px;
    height: 120px;
  }
}

/* ── Tablets ── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 26, 0.98);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    gap: 4px;
    z-index: 999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    padding: 14px 18px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .streaming-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .challenge-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-header {
    padding: 100px 0 30px;
  }

  .about-social-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card,
  .contact-info-card {
    padding: 24px;
  }

  .active-challenge-card {
    padding: 24px;
  }

  .about-bio-card {
    padding: 24px;
  }

  .playlist-card,
  .guess-preview-card {
    padding: 24px;
  }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-label {
    font-size: 0.8rem;
    padding: 4px 14px;
  }

  .music-note-animation {
    font-size: 2rem;
  }

  .previous-challenges-grid {
    grid-template-columns: 1fr;
  }

  .error-number {
    font-size: 6rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .streaming-grid {
    grid-template-columns: 1fr;
  }

  .streaming-card {
    padding: 16px;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Category music page grid (legacy) */
.music-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Challenge status (legacy from old guess page) ── */
.challenge-status {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.challenge-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.challenge-status.guessed {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.challenge-status.closed {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Challenge card public (legacy) ── */
.challenge-card-public {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Challenge timeline (legacy) ── */
.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
}

.timeline-marker.revealed {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 0 20px var(--blue-glow);
}

.timeline-marker.upcoming {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
}

.timeline-content {
  flex: 1;
  padding: 12px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.timeline-content h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-line {
  width: 2px;
  background: var(--border-color);
  margin-left: 19px;
  min-height: 8px;
}


/* ── Previous challenges (legacy) ── */
.previous-challenges {
  margin-top: 40px;
}

.previous-challenges h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.previous-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.previous-card {
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.previous-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.previous-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.previous-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.previous-card .winner {
  color: var(--blue);
  font-weight: 600;
}

/* ── About (legacy) ── */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.about-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 60px var(--blue-glow);
  overflow: hidden;
}

.about-image-placeholder {
  font-size: 5rem;
  color: var(--bg-primary);
  opacity: 0.5;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.about-text .subtitle {
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.about-text .bio {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.about-social a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-social a:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
  color: var(--text-primary);
}

/* ── Contact grid (legacy) ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .navbar,
  .footer,
  .bg-notes,
  .bg-particles,
  .gradient-mesh,
  .hero-bg-animation,
  .page-header-bg,
  .hamburger {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  body::before,
  body::after {
    display: none;
  }

  a {
    color: #0066cc;
  }
}
