/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ===== NAVBAR SCROLL STATE ===== */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ===== REVEAL ANIMATIONS ===== */
/* Default state: visible (no JS fallback) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== HOVER UTILITIES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== SMOOTH SCROLLBAR (subtle teal accent) ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0fdfa; }
::-webkit-scrollbar-thumb { background: #99f6e4; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #5eead4; }

/* ===== MOBILE MENU TRANSITION ===== */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== SELECTION ===== */
::selection { background: #99f6e4; color: #134e4a; }
