/* ── Base ── */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ── Navbar ── */
#navbar { transition: box-shadow 0.3s ease, background 0.3s ease; }
#navbar.scrolled { box-shadow: 0 4px 30px rgba(10, 37, 64, 0.08); }

/* ── Reveal animations ── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.revealed { opacity: 1; transform: translate(0) !important; }

/* Stagger children */
.reveal-up:nth-child(2) { transition-delay: 80ms; }
.reveal-up:nth-child(3) { transition-delay: 160ms; }
.reveal-up:nth-child(4) { transition-delay: 240ms; }

/* ── Mobile menu ── */
#mobile-menu { animation: slideDown 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb { background: #bbf7d0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #86efac; }

/* ── Select arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a2540' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

/* ── Selection ── */
::selection { background: #bbf7d0; color: #0a2540; }
