/* ============================================
   AFFLUENT WELLNESS & VAPOR LOUNGE
   Custom Styles
   ============================================ */

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf5fb;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a855a8, #f0a500);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b3d8b, #c47f00);
}

/* --- Selection Color --- */
::selection {
  background: rgba(168, 85, 168, 0.2);
  color: #3e1a3e;
}

/* --- Base Typography --- */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Hero Parallax-like subtle effect --- */
#hero {
  perspective: 1px;
}

/* --- Button Focus Styles --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #f0a500;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* --- Card hover lift --- */
.group:hover .group-hover\\:scale-105 {
  transform: scale(1.05);
}

/* --- Gradient text fallback --- */
.text-transparent {
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

/* --- Mobile menu transitions --- */
#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);
  }
}

/* --- Navbar scroll state --- */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
}

/* --- Subtle shimmer on amber elements --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- Pulse animation for hero dot --- */
@keyframes soft-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.animate-pulse {
  animation: soft-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- Reduce motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Tablet and up adjustments --- */
@media (min-width: 768px) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
