/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Color Palette (Theme Tier 1 & 2) */
  --bg-dark: #050508;
  --bg-card: rgba(10, 10, 15, 0.6);
  --border-glow: rgba(255, 255, 255, 0.05);
  
  --neon-cyan: #00f3ff;
  --neon-purple: #b922ff;
  --neon-blue: #0055ff;
  
  --text-primary: #f1f1f3;
  --text-secondary: #9a9ab0;
  --text-muted: #5e5e70;

  /* Typography (Theme Tier 3) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scroll timeline supports flags */
  --in-oklab: ;
}

@supports (linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
  }
}

/* ==========================================================================
   RESET & GLOBAL BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar - Responsive & Branded */
html {
  scrollbar-color: var(--neon-purple) var(--bg-dark);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple));
  border-radius: 4px;
}

/* Selection colors */
::selection {
  background: rgba(185, 34, 255, 0.3);
  color: var(--neon-cyan);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance; /* Prevent awkward wrap headers */
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty; /* Orphans control */
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* ==========================================================================
   LAYOUT & REUSABLE COMPONENTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* High Contrast Fallback */
@media (forced-colors: active) {
  .glass-panel {
    border: 1px solid CanvasText;
  }
}

/* Modern Glowing Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  color: #000;
  background: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.6), 0 0 50px rgba(185, 34, 255, 0.3);
}

.btn-secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Focus styling */
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 4px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

/* Scrolled state — added by JS when user scrolls down */
.header-nav.scrolled {
  background: rgba(5, 5, 8, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.logo-symbol {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 4rem;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-glow-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(185, 34, 255, 0.08) 0%, rgba(0, 85, 255, 0.04) 50%, transparent 100%);
  filter: blur(80px);
  z-index: 2;
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-pretitle {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.hero-title {
  font-size: clamp(3rem, 1.5rem + 6.5vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 2rem;
  max-width: 900px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* Waveform Visualizer in Hero */
.hero-waveform-container {
  width: 100%;
  max-width: 500px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.65;
  pointer-events: none;
}

.waveform-bar {
  width: 3px;
  height: 10px;
  background: linear-gradient(to top, var(--neon-blue), var(--neon-cyan));
  border-radius: 2px;
  animation: equalize 1.2s ease-in-out infinite alternate;
}

/* Stagger bar animations dynamically */
.waveform-bar:nth-child(2n) { animation-delay: 0.2s; animation-duration: 0.9s; }
.waveform-bar:nth-child(3n) { animation-delay: 0.4s; animation-duration: 1.5s; }
.waveform-bar:nth-child(4n) { animation-delay: 0.1s; animation-duration: 1.1s; }
.waveform-bar:nth-child(5n) { animation-delay: 0.6s; animation-duration: 1.3s; }

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(0, 243, 255, 0.2);
  position: relative;
  animation: spin 30s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-circle-inner {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(185, 34, 255, 0.3);
  animation: spin-reverse 20s linear infinite;
  position: absolute; /* Keep inside parent flow without affecting layout */
}

.about-center-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  opacity: 0.15;
  filter: blur(20px);
}

.about-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.about-title {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  margin-bottom: 2rem;
}

.about-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  margin-bottom: 1.2rem;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 3rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  border-color: rgba(0, 243, 255, 0.25);
  box-shadow: 0 10px 40px 0 rgba(0, 243, 255, 0.1);
  transform: translateY(-5px);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--neon-cyan);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
  background: rgba(0, 243, 255, 0.05);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.service-icon-box svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.5s ease;
}

.service-card:hover .service-icon-box svg {
  transform: rotateY(180deg);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FEATURED ARTISTS SECTION
   ========================================================================== */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  justify-content: center;
}

.artist-card {
  overflow: hidden;
  position: relative;
}

.artist-card:hover {
  border-color: rgba(185, 34, 255, 0.3);
  box-shadow: 0 10px 40px 0 rgba(185, 34, 255, 0.15);
}

.artist-image-container {
  position: relative;
  height: 380px;
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.4) 0%, rgba(5, 5, 8, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dynamic visualizer aesthetic for artist */
.artist-bg-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
  opacity: 0.3;
  filter: blur(30px);
  z-index: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.artist-card:hover .artist-bg-glow {
  transform: scale(1.5);
  opacity: 0.5;
}

.artist-graphic {
  z-index: 2;
  width: 160px;
  height: 160px;
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 1;
  opacity: 0.7;
  filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.3));
  transition: all 0.5s ease;
}

.artist-card:hover .artist-graphic {
  stroke: var(--neon-purple);
  opacity: 0.9;
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(185, 34, 255, 0.6));
}

.artist-info {
  padding: 2rem;
  position: relative;
  z-index: 10;
  background: rgba(10, 10, 15, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.artist-role {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.artist-name {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   AUDIO DEMOS SECTION
   ========================================================================== */
.audio-dashboard {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.audio-console {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.console-title {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-indicator {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: blink 2s infinite ease-in-out;
}

.console-controls {
  display: flex;
  gap: 15px;
}

.console-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.console-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.3s ease;
}

.track-item:hover, .track-item.active {
  background: rgba(0, 243, 255, 0.03);
  border-color: rgba(0, 243, 255, 0.15);
}

.track-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.track-play-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.track-item:hover .track-play-icon, .track-item.active .track-play-icon {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.track-name {
  font-weight: 600;
  font-size: 1rem;
}

.track-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.track-wave {
  width: 120px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0.4;
}

.track-item.active .track-wave {
  opacity: 0.8;
}

.track-wave span {
  flex: 1;
  height: 40%;
  background: var(--text-muted);
  border-radius: 1px;
}

.track-item.active .track-wave span {
  background: var(--neon-cyan);
  animation: track-wave-dance 1s ease-in-out infinite alternate;
}

/* Stagger static mini wave animations */
.track-item.active .track-wave span:nth-child(2) { animation-delay: 0.1s; }
.track-item.active .track-wave span:nth-child(3) { animation-delay: 0.3s; }
.track-item.active .track-wave span:nth-child(4) { animation-delay: 0.2s; }
.track-item.active .track-wave span:nth-child(5) { animation-delay: 0.5s; }

.track-duration {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
}

/* Embedded Media feeds */
.embeds-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.embed-box {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.embed-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.embed-label svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.embed-iframe-placeholder {
  width: 100%;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  position: relative;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.embed-iframe-placeholder:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.02);
}

.embed-iframe-placeholder.youtube-h {
  min-height: 180px;
}

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: clamp(3rem, 2rem + 3.5vw, 4.5rem);
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.8rem;
  /* text-shadow removed: incompatible with background-clip: text */
  filter: drop-shadow(0 0 12px rgba(0, 85, 255, 0.25));
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 200px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-panel h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info-panel p {
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.contact-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--neon-cyan);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Contact Form styling */
.contact-form-panel {
  padding: 3.5rem 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 12px 4px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-family: inherit; /* Prevents textarea defaulting to monospace */
  resize: vertical; /* Only allow vertical resize on textarea */
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
}

.form-label {
  position: absolute;
  top: 12px;
  left: 4px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -12px;
  font-size: 0.8rem;
  color: var(--neon-cyan);
}

/* User inputs validation based on :user-valid & :user-invalid */
.form-input:user-valid {
  border-color: #00ff66;
}

.form-input:user-invalid {
  border-color: #ff3366;
}

.form-feedback {
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.form-input:user-invalid ~ .form-feedback {
  display: block;
  color: #ff3366;
}

.form-input:user-valid ~ .form-feedback {
  display: block;
  color: #00ff66;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #020204;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 6rem 0 3rem;
  font-size: 0.95rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.footer-desc {
  color: var(--text-secondary);
  max-width: 250px;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(255, 255, 255, 0.05);
}

.newsletter-btn {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--neon-cyan);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.newsletter-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

/* ==========================================================================
   INTERACTIVE EXTRA VISUALS
   ========================================================================== */
/* Glowing Custom Cursor */
.pointer-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.04) 0%, rgba(185, 34, 255, 0.02) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  display: none;
}

@media (pointer: fine) {
  .pointer-glow {
    display: block;
  }
}

/* Page Loader Transition */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 243, 255, 0.1);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   SCROLL-DRIVEN ENTRY/EXIT ANIMATIONS (COMPOSITOR THREAD)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-in-up {
      from {
        opacity: 0;
        transform: translateY(60px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Apply scroll-driven reveal to sections */
    .scroll-reveal {
      animation: fade-in-up linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
  }
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes equalize {
  0% { height: 10px; }
  100% { height: 50px; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes track-wave-dance {
  0% { height: 30%; }
  100% { height: 95%; }
}

/* ==========================================================================
   PERFORMANCE: CONTENT-VISIBILITY FOR OFF-SCREEN SECTIONS
   ========================================================================== */
/* Defers rendering of off-screen sections to improve INP and LCP */
.section {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 700px;
}

/* Hero is always on-screen — never defer it */
.hero-section {
  content-visibility: visible;
  contain-intrinsic-block-size: auto;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-visual {
    height: 300px;
    order: -1;
  }

  .audio-dashboard {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 6rem 0;
  }

  .nav-links {
    display: none; /* Toggled by .nav-open class via JS */
  }

  /* Mobile nav open state — driven by JS toggling .nav-open on the <ul> */
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 8, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    gap: 1.5rem;
    align-items: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: slide-down 0.25s ease forwards;
  }

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

  .nav-menu-btn {
    display: block;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
