/* ── Base & Utilities ── */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: rgba(229, 181, 56, 0.3);
  color: #152952;
}

/* ── 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.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(13, 29, 60, 0.08);
}

#navbar.scrolled .nav-link {
  color: #1e3a6e;
}

#navbar.scrolled .logo-text {
  color: #152952;
}

/* ── Floating Cards ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

.floating-card-1 {
  animation: float-slow 4s ease-in-out infinite;
}

.floating-card-2 {
  animation: float-medium 3.5s ease-in-out infinite;
}

.floating-card-3 {
  animation: float-fast 3s ease-in-out infinite;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fdf8f0;
}

::-webkit-scrollbar-thumb {
  background: #d4a017;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8860b;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e5b538;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Button Hover Lift ── */
button, a {
  transition: all 0.2s ease;
}

/* ── Section Spacing ── */
section {
  position: relative;
}

/* ── Image Hover ── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Form Inputs ── */
input, select, textarea {
  font-family: 'Nunito', system-ui, sans-serif;
}

/* ── Subtle pattern for warm sections ── */
.bg-warm-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(229, 181, 56, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(67, 101, 168, 0.05) 0%, transparent 50%);
}
