html {
  scroll-behavior: smooth;
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.animate-visible.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.animate-visible.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.animate-visible.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.animate-visible.delay-4 { transition-delay: 0.4s; }

/* Fade in from left */
.animate-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-slide-left.animate-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade in from right */
.animate-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-slide-right.animate-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.animate-bounce-slow {
  animation: bounce 2s ease-in-out infinite;
}

/* Pulse for CTA emphasis */
@keyframes pulse-shadow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); }
}
.pulse-cta {
  animation: pulse-shadow 2.5s ease-in-out infinite;
}

/* Menu card image container */
.menu-card-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* Category pills scrollbar */
.category-pills::-webkit-scrollbar {
  height: 4px;
}
.category-pills::-webkit-scrollbar-track {
  background: transparent;
}
.category-pills::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(22, 163, 74, 0.65) 100%);
}

/* Sticky nav transition */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

/* Line clamp for descriptions */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient text effect for headings */
.gradient-text {
  background: linear-gradient(135deg, #16a34a 0%, #1e3a5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Alpine.js x-cloak directive */
[x-cloak] {
  display: none !important;
}

/* Fade in animation for hero logo */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out;
}

/* Slide up animation for hero elements */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.8s ease-out;
}

.animate-slide-up.delay-1 {
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.animate-slide-up.delay-2 {
  animation-delay: 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}
