/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; }
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Navbar ── */
#nav {
  background: rgba(242, 253, 249, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(125, 211, 192, 0.2);
  transition: background 0.4s, box-shadow 0.4s;
}
#nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(15, 43, 52, 0.06);
}

/* ── Mobile menu ── */
#mobile-menu.open { opacity: 1 !important; pointer-events: all !important; }

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
  .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* ── Float animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* ── Selection ── */
::selection { background: rgba(125, 211, 192, 0.3); color: #0f2b3c; }

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

/* ── Smooth image loading ── */
img { background-color: rgb(224, 247, 237); }
