/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }

/* ── Hero Gradient ──────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #050f40 0%, #081961 25%, #1438c4 50%, #0d278e 75%, #050f40 100%);
}
.hero-scrim {
  background: radial-gradient(ellipse at 30% 50%, rgba(94,184,147,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(66,104,255,0.2) 0%, transparent 50%);
}

/* ── Navbar ─────────────────────────────────────────── */
#nav {
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
#nav.scrolled {
  background: rgba(5,15,64,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #5eb893;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #fff; }

/* ── Reveal Animations (progressive enhancement) ───── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Default visible state — JS enhances from here */
.reveal-up, .reveal-left, .reveal-right {
  will-change: opacity, transform;
}

/* ── Scroll indicator pulse ────────────────────────── */
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #f4faf8, transparent);
  pointer-events: none;
}

/* ── Smooth section transitions ─────────────────────── */
section { position: relative; }

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

/* ── Mobile menu animation ──────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  #mobile-menu {
    animation: slideDown 0.3s ease forwards;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── Custom scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050f40; }
::-webkit-scrollbar-thumb { background: #1438c4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1b4af5; }

/* ── Selection ──────────────────────────────────────── */
::selection { background: rgba(94,184,147,0.3); color: #050f40; }
