/* Custom Styles for Delicious Restaurant */

/* Base Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes float-delayed {
  0% { transform: translateY(0px) rotate(45deg); }
  50% { transform: translateY(-15px) rotate(45deg); }
  100% { transform: translateY(0px) rotate(45deg); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-marquee {
  animation: marquee 20s linear infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: #d37456;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a6452d;
}

/* Utility for text shadows on images */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Form Focus Styles */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 116, 86, 0.2);
}

/* Mobile Menu Transition */
#mobile-menu {
  transition: opacity 0.3s ease-in-out;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Navbar Glass Effect */
.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hero Text Color Transition */
.nav-link {
  color: white;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #f6dbaa; /* sand-300 */
}

/* When scrolled, nav links might need to be dark if background becomes light */
.scrolled .nav-link {
  color: #292524; /* stone-800 */
}

.scrolled .nav-link:hover {
  color: #d37456; /* terracotta-600 */
}

.scrolled .logo-text {
  color: #a6452d; /* terracotta-700 */
}

/* Ensure mobile menu button is visible */
#menu-btn {
  color: white;
}

.scrolled #menu-btn {
  color: #292524;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .font-serif {
    font-size: 2.5rem;
  }
}
