/* Custom styles for Gerri's Tavern */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

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

.floating-card {
  animation: float 3.5s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -1.2s;
  animation-duration: 4s;
}

.floating-card:nth-child(3) {
  animation-delay: -2.4s;
  animation-duration: 3.2s;
}

/* Scroll reveal base — progressive enhancement */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Nav active state */
#nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Image hover effects */
img {
  display: block;
  max-width: 100%;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #9d174d;
}

/* Selection color */
::selection {
  background: rgba(245, 199, 123, 0.3);
  color: #fff;
}
