/* ===== Custom Styles for Lisa's Sports Bar ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #14b8a6;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0d9488;
}

/* Selection color */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f0fdfa;
}

/* ===== Hero Animations ===== */
.hero-element {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s ease forwards;
}

.hero-element:nth-child(1) { animation-delay: 0.1s; }
.hero-element:nth-child(2) { animation-delay: 0.25s; }
.hero-element:nth-child(3) { animation-delay: 0.4s; }
.hero-element:nth-child(4) { animation-delay: 0.55s; }
.hero-element:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-orb {
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 10s;
}

.hero-orb:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== Scroll Reveal Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  [data-reveal="left"] {
    transform: translateX(-40px);
  }

  [data-reveal="right"] {
    transform: translateX(40px);
  }

  [data-reveal="up"] {
    transform: translateY(40px);
  }

  [data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* Fallback: ensure content is visible without JS */
.no-js [data-reveal],
[data-reveal] {
  opacity: 1;
  transform: none;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #14b8a6;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #fff;
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu .mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu button active state */
#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Card Hover Effects ===== */
.reveal-up .group {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.reveal-up .group:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== Button Focus States ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 4px;
  border-radius: 0.5rem;
}

/* ===== Image Hover ===== */
.rounded-3xl.overflow-hidden img,
.rounded-2xl.overflow-hidden img {
  transition: transform 0.6s ease;
}

.rounded-3xl.overflow-hidden:hover img,
.rounded-2xl.overflow-hidden:hover img {
  transform: scale(1.03);
}

/* ===== Gradient Text Utility ===== */
.text-gradient-teal {
  background: linear-gradient(135deg, #5eead4, #14b8a6, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Divider ===== */
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.3), transparent);
}

/* ===== Mobile responsiveness tweaks ===== */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}
