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

body {
  overflow-x: hidden;
}

/* Scroll reveal — progressive enhancement: hidden by default, shown via JS */
@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);
  }
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

/* Mobile menu animation */
.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
  width: 6px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
  background: #6EE7B7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #34D399;
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}
