/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #EFF4FB; }
img, svg { display: block; max-width: 100%; }

/* ─── NAVBAR ───────────────────────────────────────────── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 31, 68, 0.08);
}

/* ─── SCROLL REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── MOBILE MENU ──────────────────────────────────────── */
.mobile-link {
  display: block;
}
.mobile-link:hover {
  background: rgba(239, 244, 251, 0.8);
}

/* ─── CUSTOM SCROLLBAR ─────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #EFF4FB; }
::-webkit-scrollbar-thumb { background: #B8860B; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #926008; }

/* ─── SELECTION ────────────────────────────────────────── */
::selection { background: rgba(212, 160, 23, 0.2); color: #0A1F44; }

/* ─── FOCUS VISIBLE ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #D4A017;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── INPUT STYLES ─────────────────────────────────────── */
input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #D4A017 !important;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15) !important;
}

/* ─── ANIMATIONS ───────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.hero-float-1 { animation: float 4s ease-in-out infinite; }
.hero-float-2 { animation: float-slow 5s ease-in-out infinite; }
.hero-float-3 { animation: float 4.5s ease-in-out infinite 0.5s; }
.hero-float-4 { animation: float-slow 5.5s ease-in-out infinite 1s; }

/* ─── RESPONSIVE TWEAKS ────────────────────────────────── */
@media (max-width: 640px) {
  .font-display { font-size: clamp(1.75rem, 8vw, 2.5rem); }
}
