:root {
  --radius: 0.75rem;

  /* Brand palette */
  --navy: 7, 27, 52; /* #071B34 */
  --navy-deep: 4, 15, 30;
  --cyan: 0, 229, 255; /* #00E5FF */
  --cyan-soft: 128, 242, 255;
  --gold: 255, 215, 0; /* #FFD700 */
  --ice: 244, 247, 246;

  /* Semantic */
  --background: var(--navy);
  --foreground: 255, 255, 255;
  --card: 10, 35, 70;
  --card-foreground: 255, 255, 255;
  --popover: 10, 35, 70;
  --popover-foreground: 255, 255, 255;
  --primary: var(--cyan);
  --primary-foreground: var(--navy-deep);
  --secondary: 15, 45, 90;
  --secondary-foreground: 255, 255, 255;
  --muted: 15, 45, 90;
  --muted-foreground: 180, 190, 210;
  --border: 255, 255, 255, 0.1;
}

body {
  background-color: rgb(var(--background));
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(var(--cyan), 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(var(--cyan), 0.08), transparent 25%),
    url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop');
  background-size: cover, cover, cover;
  background-attachment: fixed;
  background-blend-mode: normal, normal, overlay;
  color: rgb(var(--foreground));
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.container-x {
  width: 100%;
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container-x {
    padding-inline: 2rem;
  }
}

.glow-cyan {
  box-shadow: 0 0 40px -10px rgba(var(--cyan), 0.6);
}

.text-gradient-cyan {
  background: linear-gradient(135deg, rgb(var(--cyan)) 0%, rgb(var(--ice)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.surface-card {
  background: linear-gradient(180deg, rgba(var(--cyan), 0.05), transparent), rgb(var(--card));
  border: 1px solid rgba(var(--border));
  border-radius: var(--radius);
}

/* Hamburger Animation */
.hamburger-line {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
.menu-open .hamburger-line-1 {
  transform: translateY(6px) rotate(45deg);
}
.menu-open .hamburger-line-2 {
  opacity: 0;
}
.menu-open .hamburger-line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Side Drawer Overlay */
#mobile-menu-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Side Drawer Panel */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(4, 15, 30, 1) !important;
}
#mobile-menu.open {
  transform: translateX(0);
}

/* Drawer Nav Link Styles (Minimalist Agency) */
.drawer-link {
  position: relative;
  display: block;
  padding: 0.5rem 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transform: translateX(40px);
  opacity: 0;
  transition: color 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.drawer-link:hover {
  color: rgba(255, 255, 255, 1);
}
.drawer-link.active {
  color: rgba(255, 255, 255, 1);
}
.drawer-link.active::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: rgb(var(--cyan));
}
#mobile-menu.open .drawer-link {
  transform: translateX(0);
  opacity: 1;
}
/* Staggered delays for waterfall effect */
#mobile-menu.open .drawer-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .drawer-link:nth-child(2) { transition-delay: 0.10s; }
#mobile-menu.open .drawer-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .drawer-link:nth-child(4) { transition-delay: 0.20s; }
#mobile-menu.open .drawer-link:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.open .drawer-link:nth-child(6) { transition-delay: 0.30s; }
#mobile-menu.open .drawer-link:nth-child(7) { transition-delay: 0.35s; }
#mobile-menu.open .drawer-link:nth-child(8) { transition-delay: 0.40s; }
#mobile-menu.open .drawer-link:nth-child(9) { transition-delay: 0.45s; }
#mobile-menu.open .drawer-link:nth-child(10) { transition-delay: 0.50s; }

/* -------------------------------------------------------------------------- */
/* GLOBAL PREMIUM ANIMATIONS */
/* -------------------------------------------------------------------------- */

/* Scroll Reveal (Fade Up) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Spotlight Card Effect */
.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(var(--cyan), 0.08), transparent 40%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.spotlight-card:hover::before {
  opacity: 1;
}
.spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* Magnetic Button */
.magnetic-btn {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Smooth Page Transition Overlay */
#page-transition-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 15, 30, 1);
  z-index: 99999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
#page-transition-overlay.loaded {
  opacity: 0;
}

@keyframes pulse-attention {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 15px 5px rgba(0, 229, 255, 0); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); transform: scale(1); }
}

.pulse-attention {
  animation: pulse-attention 2s infinite cubic-bezier(0.66, 0, 0, 1);
  display: inline-flex;
  transition: transform 0.2s ease;
}

.headline-outline {
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.9);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 2px 4px 6px rgba(0, 0, 0, 0.8);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}
