/* ==========================================================================
   DIGITAL ATIF — AWARDS-GRADE LUXURY DARK GLASS DESIGN SYSTEM
   Theme: Cosmic Obsidian & Radiant Holographic Aurora
   Palette:
   - Void Canvas: #030712 -> #080E1A
   - Radiant Aurora Lights: Electric Violet #8B5CF6, Neon Cyan #06B6D4, Mint #10B981, Coral #F43F5E
   - Luxury Glass: Multi-stop linear glass fills, specular top-edge highlights, 24px blur
   - High-Contrast Typography: Pure White #FFFFFF with holographic gradient accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg-void: #030712;
  --bg-surface: #080D1A;
  --aurora-violet: #8B5CF6;
  --aurora-cyan: #06B6D4;
  --aurora-emerald: #10B981;
  --aurora-rose: #F43F5E;
  --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
  --glass-fill-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(139, 92, 246, 0.45);
  --glass-blur: 20px;
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --accent-color: #8B5CF6;
}

/* Global Reset & Typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--bg-void);
  color: #F8FAFC;
  accent-color: var(--aurora-violet);
}

body {
  background: radial-gradient(circle at 50% -10%, #111A33 0%, #060913 55%, var(--bg-void) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
}

/* ==========================================================================
   DYNAMIC AURORA BACKGROUND MESH
   ========================================================================== */
.ambient-aurora-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb-1 {
  position: absolute;
  top: -15%;
  left: 20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(99, 102, 241, 0.08) 45%, transparent 70%);
  filter: blur(80px);
  animation: auroraFloat 22s ease-in-out infinite alternate;
}

.aurora-orb-2 {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 75%);
  filter: blur(85px);
  animation: auroraFloatReverse 26s ease-in-out infinite alternate;
}

.aurora-orb-3 {
  position: absolute;
  top: 52%;
  left: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.03) 55%, transparent 75%);
  filter: blur(90px);
  animation: auroraFloat 30s ease-in-out infinite alternate;
}

.aurora-orb-4 {
  position: absolute;
  top: 78%;
  right: 5%;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.14) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 75%);
  filter: blur(95px);
  animation: auroraFloatReverse 24s ease-in-out infinite alternate;
}

/* Subtle Film Grain / Grid Mesh */
.bg-subtle-mesh {
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.15) 75%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.15) 75%, transparent 100%);
}

@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 45px) scale(1.12); }
  100% { transform: translate(-40px, 80px) scale(0.92); }
}

@keyframes auroraFloatReverse {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 50px) scale(1.1); }
  100% { transform: translate(45px, -40px) scale(0.95); }
}

/* ==========================================================================
   ELITE GLASS SURFACES WITH SPECULAR HIGHLIGHTS
   ========================================================================== */
.glass-card {
  position: relative;
  background: var(--glass-fill);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Specular Top-Edge Light Reflection */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  pointer-events: none;
}

.glass-card:hover {
  background: var(--glass-fill-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-5px);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.15);
}

.glass-card-interactive:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 0 0 35px rgba(6, 182, 212, 0.2);
}

/* Floating Navigation Pill */
.glass-nav-pill {
  background: rgba(11, 17, 32, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Input Styles */
.glass-input {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #FFFFFF;
  transition: all 0.25s ease;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
  outline: none;
}

.glass-input::placeholder {
  color: #64748B;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
/* Radiant Master CTA */
.btn-radiant {
  position: relative;
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 50%, #06B6D4 100%);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.85rem 1.85rem;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.btn-radiant::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-radiant:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 45px rgba(139, 92, 246, 0.65), 0 10px 25px rgba(6, 182, 212, 0.3);
}

.btn-radiant:hover::after {
  transform: translateX(100%);
}

/* Secondary Ghost Glass Button */
.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
  transform: translateY(-2px);
}

/* Status Micro-Pills */
.glass-pill-badge {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.glass-pill-badge:hover {
  border-color: #8B5CF6;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
}

/* ==========================================================================
   GRADIENT TEXT
   ========================================================================== */
.text-gradient-aurora {
  background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 40%, #A5B4FC 60%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-vibrant {
  background: linear-gradient(135deg, #A78BFA 0%, #818CF8 30%, #38BDF8 70%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-silver {
  background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulsing Status Dot */
.pulse-aurora {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  position: relative;
  display: inline-block;
}

.pulse-aurora::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #34D399;
  opacity: 0.6;
  animation: pulsePing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulsePing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Accessibility: Forced colors mode fallback */
@media (forced-colors: active) {
  .glass-card,
  .glass-nav-pill,
  .glass-input,
  .glass-pill-badge {
    border: 2px solid CanvasText !important;
    background: Canvas !important;
  }
  .btn-radiant {
    background: Highlight !important;
    color: HighlightText !important;
    border: 2px solid HighlightText !important;
  }
}

/* Custom Scrollbar matching Void Canvas */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #030712;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* ==========================================================================
   SCROLL PROGRESS BAR & ADVANCED SCROLL-TRIGGERED ANIMATIONS
   ========================================================================== */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B5CF6 0%, #06B6D4 50%, #10B981 100%);
  z-index: 9999;
  width: 0%;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.9), 0 0 6px rgba(139, 92, 246, 0.8);
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* Navigation Desktop Display */
@media (min-width: 768px) {
  .nav-links-desktop {
    display: flex !important;
  }
  #mobileDrawer {
    display: none !important;
  }
}

/* Scroll-Triggered Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered Child Delays */
.reveal-delay-1 { transition-delay: 70ms; }
.reveal-delay-2 { transition-delay: 140ms; }
.reveal-delay-3 { transition-delay: 210ms; }
.reveal-delay-4 { transition-delay: 280ms; }
.reveal-delay-5 { transition-delay: 350ms; }
.reveal-delay-6 { transition-delay: 420ms; }

/* Scale & Pop Variation */
.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(24px);
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-scale.is-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* Slide in from Left/Right on Scroll */
.reveal-slide-left {
  opacity: 0;
  transform: translateX(-36px);
  filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-slide-right {
  opacity: 0;
  transform: translateX(36px);
  filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* Mouse-Driven Glass Spotlight Glow */
.glass-spotlight {
  position: relative;
}

.glass-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(139, 92, 246, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glass-spotlight:hover::after {
  opacity: 1;
}

/* Active Navigation Pill State */
.nav-link.is-active {
  color: #FFFFFF !important;
  background: rgba(139, 92, 246, 0.25) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Floating Navigation Pill Scrolled Backdrop */
.glass-nav-pill.is-scrolled {
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(139, 92, 246, 0.18);
}

