/* ===== Scroll Reveal System ===== */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default visible state (no-JS friendly) */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Smooth Scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdf9;
}
::-webkit-scrollbar-thumb {
  background: #2fd4a0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1ab886;
}

/* ===== Selection ===== */
::selection {
  background: #ccfbef;
  color: #0b1535;
}

/* ===== Mobile Menu Transition ===== */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 500px;
}

/* ===== Header Shadow on Scroll ===== */
#header.scrolled {
  box-shadow: 0 4px 20px rgba(11, 21, 53, 0.08);
}

/* ===== Button Focus ===== */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #2fd4a0;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* ===== Input Focus ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(47, 212, 160, 0.2);
}
