/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  color: #0a1628;
  background-color: #e8eef7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Scroll Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(30px);
  }

  .reveal-up.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed {
    opacity: 1;
    transform: none;
  }
}

/* ===== Navbar Scroll State ===== */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

#navbar.scrolled .font-display {
  color: #0a1628;
}

#navbar.scrolled a:not(.bg-midnight-800):not(.bg-white\/10) {
  color: #24396e;
}

#navbar.scrolled a:not(.bg-midnight-800):not(.bg-white\/10):hover {
  color: #10b981;
}

/* ===== Mobile Menu ===== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e8eef7;
}
::-webkit-scrollbar-thumb {
  background: #9fb3e0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7891d2;
}

/* ===== Selection ===== */
::selection {
  background: #bbf7d0;
  color: #0a1628;
}
