/* ===== Custom Styles for Flow Hookah Lounge ===== */

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background-color: rgba(255, 107, 74, 0.3);
  color: #fff;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal-delay="100"] {
  transition-delay: 100ms;
}

.reveal[data-reveal-delay="200"] {
  transition-delay: 200ms;
}

.reveal[data-reveal-delay="300"] {
  transition-delay: 300ms;
}

/* Hidden state for JS-enhanced reveals (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Reduced motion - keep everything visible */
@media (prefers-reduced-motion: reduce) {
  .reveal-hidden {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Scroll Indicator Animation ===== */
@keyframes scrollIndicator {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(200%);
  }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ===== Navbar Glass Effect ===== */
.navbar-scrolled {
  background: rgba(13, 13, 13, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

/* ===== Gold Gradient Text Utility ===== */
.text-gradient-gold {
  background: linear-gradient(135deg, #D4AF61, #C8A96E, #B8944D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #141414;
}

::-webkit-scrollbar-thumb {
  background: #2E2E2E;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C8A96E;
}

/* ===== Hover Glow Effects ===== */
.glow-coral:hover {
  box-shadow: 0 0 40px rgba(255, 107, 74, 0.15);
}

.glow-gold:hover {
  box-shadow: 0 0 40px rgba(200, 169, 110, 0.15);
}

/* ===== Image hover zoom wrapper ===== */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* ===== Card shimmer on hover ===== */
.card-shimmer {
  position: relative;
  overflow: hidden;
}

.card-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 169, 110, 0.03),
    transparent
  );
  transition: left 0.6s ease;
}

.card-shimmer:hover::after {
  left: 100%;
}

/* ===== Input focus animations ===== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ===== Mobile menu transition ===== */
#mobileMenu {
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}

#mobileMenu.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobileMenu:not(.hidden) {
  max-height: 400px;
  opacity: 1;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
  .font-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* ===== Loading state for form ===== */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Parallax-lite for hero ===== */
.hero-bg {
  will-change: transform;
}

/* ===== Gold line accent ===== */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #C8A96E, transparent);
}
