/* Custom styles for Zoom Hookah Lounge */

/* Scroll reveal base — content always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated state — only applied by JS for users with JS enabled */
.js-enabled .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .group:hover img,
  img {
    transition: none !important;
  }
}

/* Navbar glass effect when scrolled */
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(15, 43, 76, 0.06);
}

/* Smooth image loading */
img {
  image-rendering: auto;
}

/* Selection color */
::selection {
  background: rgba(167, 243, 208, 0.4);
  color: #0f2b4c;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf9ed;
}
::-webkit-scrollbar-thumb {
  background: #bbf7d0;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #86efac;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle floating animation for decorative blobs */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -16px) scale(1.04); }
  66% { transform: translate(-8px, 8px) scale(0.97); }
}

/* Apply float to hero blobs */
section:has(#top) > div:nth-child(2),
section:has(#top) > div:nth-child(3),
section:has(#top) > div:nth-child(4) {
  animation: float 8s ease-in-out infinite;
}

section:has(#top) > div:nth-child(3) {
  animation-delay: -2.5s;
  animation-duration: 10s;
}

section:has(#top) > div:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 12s;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
  border-radius: 4px;
}
</script>
