/* ========================================
   MAHALAXMI AGARBATTI - Animations
   ======================================== */

/* ========== SMOKE PARTICLES ========== */
.smoke-particle {
    position: absolute;
    bottom: 10%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: smokeRise linear infinite;
}

.smoke-1 {
    left: 45%;
    animation-duration: 8s;
    animation-delay: 0s;
    width: 60px;
    height: 60px;
}

.smoke-2 {
    left: 50%;
    animation-duration: 10s;
    animation-delay: 2s;
    width: 90px;
    height: 90px;
}

.smoke-3 {
    left: 48%;
    animation-duration: 7s;
    animation-delay: 4s;
    width: 50px;
    height: 50px;
}

.smoke-4 {
    left: 52%;
    animation-duration: 9s;
    animation-delay: 1s;
    width: 70px;
    height: 70px;
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(0.5) translateX(0);
        opacity: 0;
        filter: blur(5px);
    }
    10% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.2;
        filter: blur(12px);
    }
    100% {
        transform: translateY(-500px) scale(3) translateX(30px);
        opacity: 0;
        filter: blur(25px);
    }
}

/* ========== SCROLL INDICATOR BOUNCE ========== */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ========== FLOATING WHATSAPP PULSE ========== */
.floating-whatsapp {
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8), 0 0 0 12px rgba(37, 211, 102, 0.15);
    }
}

/* ========== SCROLL REVEAL ========== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid children */
.quality-card.reveal-on-scroll:nth-child(1) { transition-delay: 0s; }
.quality-card.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.quality-card.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.quality-card.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.quality-card.reveal-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.quality-card.reveal-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ========== OFFER BADGE PULSE ========== */
.offer-badge {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========== NAVBAR TRANSITION ========== */
.navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* ========== HERO CONTENT ENTRANCE ========== */
.hero-content {
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    animation: heroLogoIn 1s ease-out 0.2s both;
}

@keyframes heroLogoIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== PRODUCT CARD HOVER ========== */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ========== GALLERY HOVER ========== */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(232, 117, 26, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(232, 117, 26, 0.1);
}

/* ========== FORM INPUT FOCUS ========== */
.form-group input,
.form-group textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-1px);
}

/* ========== BUTTON HOVER EFFECTS ========== */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* ========== SOCIAL BUTTON BOUNCE ========== */
.social-btn {
    transition: all 0.3s ease;
}

.social-btn:hover {
    animation: socialBounce 0.4s ease;
}

@keyframes socialBounce {
    0%, 100% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* ========== FOOTER LINK SLIDE ========== */
.footer-links a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    left: -0.75rem;
    opacity: 1;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    transition: all 0.3s ease;
}

.back-to-top:hover i {
    animation: arrowUp 0.4s ease infinite;
}

@keyframes arrowUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ========== LIGHTBOX TRANSITIONS ========== */
.lightbox {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content img {
    transition: transform 0.3s ease;
}

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

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }

    .smoke-particle {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }
}
