/* Custom styles for 51Vape and CBD */

/* Scroll reveal base - content is visible by default, JS adds animation class */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animation states applied by JS */
.scroll-reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        transition: none;
    }
    .scroll-reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth hover for product cards */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* Navbar glass effect */
nav.glass {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Gradient text utility */
.text-gradient-coral {
    background: linear-gradient(135deg, #F97316, #EA580C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
    background: #D6D6DD;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B0B0BC;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Subtle floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(-50%) translateY(-50%); }
    50% { transform: translateY(-20px) translateX(-50%) translateY(-50%); }
}

/* Pulse animation for hero badge */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-soft-pulse {
    animation: soft-pulse 3s ease-in-out infinite;
}

/* Fade in for hero on load */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }
.hero-content > *:nth-child(5) { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
    .hero-content > * {
        animation: none;
        opacity: 1;
    }
    .scroll-reveal {
        transition: none;
    }
}
