/* === Custom Styles for Yusma Café & Bar === */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9f4;
}
::-webkit-scrollbar-thumb {
  background: #a11c38;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #841d35;
}

/* Navbar transition states */
.navbar-scrolled {
  background: rgba(254, 253, 251, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 0 rgba(161, 28, 56, 0.08);
}

.navbar-scrolled .nav-logo-color {
  color: #3d0b16 !important;
}

.navbar-scrolled .menu-line {
  background: #3d0b16 !important;
}

/* Nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #a11c38;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu-open #mobile-menu {
  transform: translateX(0);
}

.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(0, 5px);
}
.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(0, -5px);
}

.mobile-nav-link {
  position: relative;
}
.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #a11c38;
  transition: width 0.3s ease;
}
.mobile-nav-link:hover::after {
  width: 80%;
}

/* Menu tabs */
.menu-tab {
  background: transparent;
  color: rgba(254, 253, 251, 0.5);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.menu-tab.active {
  background: rgba(161, 28, 56, 0.6);
  color: #fefdfb;
}
.menu-tab:hover:not(.active) {
  color: rgba(254, 253, 251, 0.8);
}

/* Scroll reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal-animated.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal-animated.reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll line animation */
@keyframes scrollLine {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* Image hover zoom container */
img {
  display: block;
}

/* Selection color */
::selection {
  background: rgba(161, 28, 56, 0.15);
  color: #3d0b16;
}

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

/* 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;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  .menu-tab {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}
