/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Candle Flicker Glow */
@keyframes candleFlicker {
    0%, 100% {
        box-shadow: 0 0 20px rgba(252, 211, 77, 0.15);
    }
    25% {
        box-shadow: 0 0 25px rgba(252, 211, 77, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(252, 211, 77, 0.12);
    }
    75% {
        box-shadow: 0 0 30px rgba(252, 211, 77, 0.18);
    }
}

/* Smooth Scroll Sections */
section {
    will-change: transform;
}

/* Button Pulse on Hover */
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(252, 211, 77, 0.2);
}

/* Image Zoom on Product Hover */
.product-card {
    will-change: transform;
}

/* Nav Link Underline */
.nav-link {
    will-change: color;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1;
        transform: none;
    }

    .particle {
        display: none;
    }

    .hero-glow {
        animation: none;
    }

    .hero-float-card {
        animation: none;
    }
}