/* Custom Styles for Hole Lotta Doughnuts */

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

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

::-webkit-scrollbar-track {
  background: #1A1A2E;
}

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

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

/* Selection color */
::selection {
  background: #D4A574;
  color: #0D0D14;
}

/* Navbar scroll effect */
#navbar {
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(13, 13, 20, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text animation */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.text-shimmer {
  background: linear-gradient(
    90deg,
    #D4A574 0%,
    #FFD700 25%,
    #D4A574 50%,
    #FFD700 75%,
    #D4A574 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

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

/* Button ripple effect */
button, a {
  position: relative;
  overflow: hidden;
}

button::after, a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::after, a:active::after {
  width: 300px;
  height: 300px;
}

/* Image lazy load fade */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

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

#mobile-menu.open {
  max-height: 400px;
}

/* Decorative pulse animation */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s 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;
  }
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid #D4A574;
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

/* Print styles */
@media print {
  #navbar,
  #mobile-menu,
  button {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
