/* ===== Custom Styles for 718 Cafe & Grill ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0c0f1e;
}
::-webkit-scrollbar-thumb {
  background: #2b8a6e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3fa888;
}

/* Selection color */
::selection {
  background: rgba(63, 168, 136, 0.3);
  color: #f0f3fa;
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated state — applied by JS only */
.reveal-up.is-hidden {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-left.is-hidden {
  opacity: 0;
  transform: translateX(-40px);
}
.reveal-right.is-hidden {
  opacity: 0;
  transform: translateX(40px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up.is-hidden,
  .reveal-left.is-hidden,
  .reveal-right.is-hidden {
    opacity: 0;
    transform: translateY(40px);
  }
  .reveal-left.is-hidden {
    transform: translateX(-40px);
  }
  .reveal-right.is-hidden {
    transform: translateX(40px);
  }
}

/* ===== Navbar ===== */
#navbar.scrolled {
  background: rgba(12, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(63, 168, 136, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

#mobile-menu.open .mobile-link {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 1;
}

#mobile-menu .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu .mobile-link:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Hamburger Animation ===== */
.menu-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menu-toggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 5rem;
}

/* ===== Menu Card Hover ===== */
#menu .rounded-2xl {
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
#menu .rounded-2xl:hover {
  box-shadow: 0 8px 40px rgba(63, 168, 136, 0.08);
}

/* ===== Button Focus ===== */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #3fa888;
  outline-offset: 2px;
}

/* ===== Image loading placeholder ===== */
img {
  background: linear-gradient(135deg, #141b33 0%, #1c2749 100%);
}

/* ===== Subtle glow effects ===== */
.glow-mint {
  box-shadow: 0 0 60px rgba(63, 168, 136, 0.15);
}

/* ===== Counter animation ===== */
.counter-value {
  display: inline-block;
}
