/* ===== Base & Typography ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
}

/* ===== Scroll Reveal Animations (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
  background: rgba(27, 58, 92, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-scrolled .font-display,
.navbar-scrolled .font-body {
  color: #F4F7FB !important;
}

/* ===== Custom Selection ===== */
::selection {
  background: #D4A84B;
  color: #0F2439;
}

/* ===== Button Focus Styles ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #D4A84B;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Image Loading ===== */
img {
  max-width: 100%;
  height: auto;
}

/* ===== Smooth Hover Transitions ===== */
a, button {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

/* ===== Card Tilt on Hover ===== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ===== Gold Accent Line Animation ===== */
@keyframes expandWidth {
  from { width: 0; }
  to { width: 3rem; }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0F2439;
}

::-webkit-scrollbar-thumb {
  background: #1B3A5C;
  border-radius: 5px;
}

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