/* Custom styles for Turtle Nutrition */

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

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

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Only animate on scroll when reduced motion is not preferred */
@media (prefers-reduced-motion: no-preference) {
  .reveal.animated {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.animated.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
  padding-top: 0;
  padding-bottom: 0;
}

#navbar.scrolled .font-display {
  color: #064e3b !important;
}

#navbar.scrolled a:not(.bg-emerald-700):not(.bg-emerald-400) {
  color: #065f46 !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9f0;
}
::-webkit-scrollbar-thumb {
  background: #a7f3d0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6ee7b7;
}

/* Selection color */
::selection {
  background: #a7f3d0;
  color: #064e3b;
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

/* Hero text animation - only below the fold content gets scroll animations */
/* Hero is always visible, no animation needed */

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}
