/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; }

/* ── Navbar ── */
#navbar { background: transparent; transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
#navbar.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(13,43,78,0.08); }
#navbar.scrolled .nav-link { color: #264472; }
#navbar.scrolled .font-serif { color: #0d2b4e; }

/* ── Nav links ── */
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: #6dd3ad; border-radius: 1px; transition: width 0.25s; }
.nav-link:hover::after { width: 100%; }

/* ── Mobile menu ── */
.mobile-link { position: relative; }
.mobile-link::after { content: ''; display: block; height: 1px; background: #d5e0ed; margin-top: 4px; }

/* ── Floating cards ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 5.5s ease-in-out infinite; }

/* ── Reveal on scroll (progressive enhancement) ── */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(30px); }
  .reveal.visible { opacity: 1; transform: translateY(0); }
}

/* ── Selection ── */
::selection { background: #a8e6cf; color: #071a30; }

/* ── Focus visible ── */
:focus-visible { outline: 2px solid #6dd3ad; outline-offset: 2px; border-radius: 4px; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f2faf5; }
::-webkit-scrollbar-thumb { background: #a8e6cf; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6dd3ad; }
</style>
