/* Custom styles for New York Diner */

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

/* Blob animation */
@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(20px, 50px) scale(1.05);
  }
}

.animate-blob {
  animation: blob 7s ease-in-out infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Scroll reveal base - always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal animated - only when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
  }
  .scroll-reveal.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar styles */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
  background: rgba(254, 253, 249, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(4, 120, 87, 0.08);
}

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

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

/* Button hover effects */
a[href^="tel:"]:hover {
  transform: scale(1.02);
}

/* Image hover zoom container */
.rounded-2xl.overflow-hidden {
  overflow: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #34d399;
}

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