/* Custom styles — built on top of Tailwind */

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

/* Remove default focus outline and use custom */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #34D4A8;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove underline from all links */
a.no-underline {
  text-decoration: none;
}

/* Navbar scroll state */
.nav-scrolled {
  box-shadow: 0 1px 12px rgba(10, 22, 40, 0.06);
}

/* Scroll reveal base — content is visible by default */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only animate when JS is enabled and preference allows */
@media (prefers-reduced-motion: no-preference) {
  .reveal.is-hidden {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #c5d0e8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9db3d6;
}

/* Selection color */
::selection {
  background: #d8f5e8;
  color: #0A1628;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle image hover */
img {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
