/* Custom styles for Iconic Vape & Tobacco */

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

/* Scroll reveal base - always visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state when animation class is active AND reduced motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(139, 26, 67, 0.08);
}

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

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

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

/* Hamburger animation */
.menu-line {
    display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

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

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

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

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

/* Selection color */
::selection {
    background: #f9d0d9;
    color: #6d1334;
}

/* Image loading placeholder */
img {
    background-color: #fce7eb;
}

/* Subtle floating animation for decorative dots */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

/* Button focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #c42a54;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Product card hover tilt effect */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}
