/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ── Reveal animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    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.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* ── Navbar scroll state ── */
.navbar-scrolled {
  box-shadow: 0 1px 20px rgba(0, 20, 153, 0.08);
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #001499; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #1a47ff; }

/* ── Select styling ── */
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='%236b7280' stroke-width='2' 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 12px center;
  padding-right: 40px;
}

/* ── Floating card animations ── */
@media (prefers-reduced-motion: no-preference) {
  .float-slow { animation: float 6s ease-in-out infinite; }
  .float-medium { animation: float 4.5s ease-in-out infinite; }
  .float-fast { animation: float 3.5s ease-in-out infinite; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ── Hero card stagger ── */
.hero-card-1 { animation-delay: 0.2s; }
.hero-card-2 { animation-delay: 0.5s; }
.hero-card-3 { animation-delay: 0.8s; }
.hero-card-4 { animation-delay: 1.1s; }

@media (prefers-reduced-motion: no-preference) {
  .hero-card-1, .hero-card-2, .hero-card-3, .hero-card-4 {
    animation: float 5s ease-in-out infinite;
  }
  .hero-card-2 { animation-delay: 0.3s; animation-duration: 5.5s; }
  .hero-card-3 { animation-delay: 0.6s; animation-duration: 4.5s; }
  .hero-card-4 { animation-delay: 0.9s; animation-duration: 6s; }
}
