/* Custom styles for Donut King Palace */

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

/* Floating animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.navbar-scrolled .nav-link {
  color: #44403c !important;
}

.navbar-scrolled .nav-link:hover {
  color: #7B2D8E !important;
}

.navbar-scrolled .logo-text {
  color: #1a1a2e !important;
}

/* Mobile menu transitions */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobileMenu.open {
  max-height: 500px;
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #7B2D8E;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: #7B2D8E;
  color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #7B2D8E;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-float,
  .animate-float-delayed {
    animation: none;
  }
}
