/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ─── HERO GRADIENT ─── */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(94, 234, 212, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(94, 234, 212, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(10, 37, 64, 0.95) 0%, rgba(5, 20, 35, 1) 100%);
}

/* ─── NAV ─── */
#nav {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}
#nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.06);
}
.nav-logo-text { transition: color 0.5s ease; }
#nav.scrolled .nav-logo-text { color: #0a2540; }

/* ─── MOBILE MENU ─── */
#mobileMenu.open { opacity: 1; pointer-events: all; }
#mobileMenu.closed { opacity: 0; pointer-events: none; }
.mobile-link { transition: opacity 0.3s ease, transform 0.3s ease; opacity: 0; transform: translateY(20px); }
#mobileMenu.open .mobile-link { opacity: 1; transform: translateY(0); }
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ─── HERO ANIMATIONS ─── */
.hero-badge {
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}
.hero-title {
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}
.hero-cta-primary {
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}
.hero-cta-secondary {
  opacity: 0;
  animation: fadeUp 0.8s 1.0s forwards;
}
.hero-scroll {
  opacity: 0;
  animation: fadeIn 0.8s 1.3s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MENU LINES ANIMATION ─── */
.menu-line { transition: transform 0.3s ease, opacity 0.3s ease; }
#menuBtn.active .menu-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 20px; }

/* ─── FOCUS STYLES ─── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── SELECTION ─── */
::selection { background: rgba(94, 234, 212, 0.3); color: #0a2540; }
