/* Custom styles beyond Tailwind */

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

/* Nav scroll effect */
nav.scrolled {
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(5, 150, 105, 0.1);
}

/* Scroll reveal base — always visible */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animated states — applied by JS only */
.reveal-up.animate {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-left.animate {
  opacity: 0;
  transform: translateX(-24px);
}

.reveal-right.animate {
  opacity: 0;
  transform: translateX(24px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Selection color */
::selection {
  background: rgba(5, 150, 105, 0.2);
  color: #064e3b;
}

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

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #f0fdf4 inset !important;
  -webkit-text-fill-color: #064e3b !important;
}
</style>
