/* Custom styles for Popular Smoke & Vape LLC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #14161a;
}
::-webkit-scrollbar-thumb {
    background: #373c43;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ee4f30;
}

/* Selection color */
::selection {
    background: #ee4f30;
    color: #ffffff;
}

/* Reveal animations - progressive enhancement, only with JS/media query */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Without reduced motion preference, also ensure visibility */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(10, 11, 13, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(55, 60, 67, 0.5);
}

nav.scrolled .menu-line {
    background: #e2e3e5;
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

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

/* Subtle glow effects */
.glow-coral {
    box-shadow: 0 0 40px rgba(238, 79, 48, 0.15);
}

/* Print styles */
@media print {
    nav, .reveal { display: none; }
    body { background: white; color: black; }
}
