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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations — progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Initial hidden state for scroll-reveal elements (enhancement only) */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
  background: rgba(254, 253, 248, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #6EE7B7;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

/* Selection color */
::selection {
  background: #A7F3D0;
  color: #064E3B;
}
</style>
