/* ============================================
   Hookah Heaven Smoke Shop — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4a843, #0d9488);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e6c160, #14b8a6);
}

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

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

/* --- Navbar --- */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .menu-line {
    background: #fff;
}

#navbar.scrolled .menu-line:last-child {
    background: #e6c160;
}

/* --- Mobile Menu --- */
#mobileMenu.active {
    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.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

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

/* Mobile menu button animation */
.menu-btn-active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn-active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}
.menu-btn-active .menu-line:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* --- Reveal Animations --- */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* --- Gold Shimmer on Hero --- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero-shimmer {
    background: linear-gradient(
        90deg,
        #5eead4 0%,
        #2dd4bf 25%,
        #f5d68a 50%,
        #2dd4bf 75%,
        #5eead4 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* --- Card Glow Effects --- */
.glow-gold:hover {
    box-shadow: 0 0 40px rgba(212, 168, 67, 0.15);
}

.glow-mint:hover {
    box-shadow: 0 0 40px rgba(20, 184, 166, 0.15);
}

/* --- Floating Animation --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-slow {
    animation: float 4s ease-in-out infinite;
}

.float-medium {
    animation: float 3s ease-in-out infinite;
}

/* --- Pulse Ring --- */
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: pulseRing 2s ease-out infinite;
}

/* --- Image Hover Zoom --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .font-display {
        line-height: 1.2;
    }
}

@media (min-width: 768px) {
    /* Subtle parallax-like effect for hero on scroll handled by JS */
}
