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

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

body {
  overflow-x: hidden;
}

/* ========== NAVBAR ========== */
#navbar {
  background: rgba(251, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#navbar.scrolled {
  background: rgba(251, 249, 246, 0.95);
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.08);
}

/* ========== CARD GLOW ========== */
.card-glow {
  background: white;
  border-radius: 1.5rem;
  padding: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(27, 67, 50, 0.06);
}

.card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(27, 67, 50, 0.12);
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    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; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ========== MOBILE MENU ========== */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(27, 67, 50, 0.06);
}

.mobile-link:last-child {
  border-bottom: none;
}

#mobile-menu.open .mobile-link:hover {
  color: #4E946E;
  padding-left: 0.5rem;
  transition: padding-left 0.2s ease, color 0.2s ease;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #4E946E;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: #95D5B2;
}

/* ========== SELECTION ========== */
::selection {
  background: #D8F3DC;
  color: #1B4332;
}
