/* Custom styles for Double Barrel Saloon */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #120b16;
}
::-webkit-scrollbar-thumb {
  background: #2D1B36;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a244a;
}

/* Scroll line animation */
.scroll-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to bottom, transparent, #D4A84B);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(400%); opacity: 0; }
}

/* Floating card animations */
.floating-card-1 {
  animation: float1 6s ease-in-out infinite;
}
.floating-card-2 {
  animation: float2 5s ease-in-out infinite;
}
.floating-card-3 {
  animation: float3 7s ease-in-out infinite;
}
.floating-card-4 {
  animation: float4 5.5s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(0.5deg); }
}

@keyframes float4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-0.5deg); }
}

/* Reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal-left {
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal-right {
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal-up.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal-left.hidden-reveal {
    opacity: 0;
    transform: translateX(-30px);
  }
  .reveal-right.hidden-reveal {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* Navbar styles */
.navbar-scrolled {
  background: rgba(18, 11, 22, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(212, 168, 75, 0.1) !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #D4A84B;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Mobile menu */
.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  position: relative;
}

.mobile-menu-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #D4A84B;
  transition: width 0.3s ease;
}

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

/* Mobile menu button animation */
.mobile-menu-line.active-1 {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-line.active-2 {
  opacity: 0;
}
.mobile-menu-line.active-3 {
  width: 24px;
  margin-left: 0;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Date input styling */
input[type="date"] {
  color-scheme: dark;
}

/* Selection color */
::selection {
  background: rgba(212, 168, 75, 0.3);
  color: #f5f0f7;
}

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #D4A84B;
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-card-1,
  .floating-card-2,
  .floating-card-3,
  .floating-card-4 {
    display: none;
  }
}
