/* ============================================
   VIDA RELAX — Premium Animation Layer
   Performance-first, elegant & subtle
   ============================================ */

/* -----------------------------------------------
   1. HERO ENTRANCE ANIMATIONS
   ----------------------------------------------- */

/* Override existing hero animations with refined versions */
.hero-content .hero-badge,
.hero-content h1,
.hero-content .hero-subtitle,
.hero-content .hero-ctas,
.hero-benefits {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.8s ease-out forwards;
}

.hero-content .hero-badge   { animation-delay: 0s; }
.hero-content h1            { animation-delay: 0.15s; }
.hero-content .hero-subtitle { animation-delay: 0.3s; }
.hero-content .hero-ctas    { animation-delay: 0.45s; }

/* Hero right column — benefits cards enter from right */
.hero-benefits {
    animation-name: heroFadeRight;
    animation-duration: 1.2s;
    animation-delay: 0.3s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ken Burns effect on hero background decorative blobs */
.hero::before {
    animation: kenburns 20s ease-in-out infinite alternate !important;
}

@keyframes kenburns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-10px, -8px); }
}


/* -----------------------------------------------
   2. SCROLL REVEAL — Base Classes
   (Applied via JS IntersectionObserver)
   ----------------------------------------------- */

.sr-hidden {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.sr-hidden.sr-from-left   { transform: translateX(-40px); }
.sr-hidden.sr-from-right  { transform: translateX(40px); }
.sr-hidden.sr-from-bottom { transform: translateY(40px); }
.sr-hidden.sr-from-top    { transform: translateY(-40px); }

.sr-visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}


/* -----------------------------------------------
   3. PRODUCT CARDS — Hover Effects
   ----------------------------------------------- */

.model-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(155, 114, 176, 0.18);
}

/* Image zoom inside card on hover */
.model-card .model-carousel {
    overflow: hidden;
}

.model-card .carousel-slide img {
    transition: transform 0.4s ease;
}

.model-card:hover .carousel-slide img {
    transform: scale(1.05);
}

/* CTA button inside cards — color transition */
.model-cta {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.model-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.model-cta:hover::before {
    left: 0;
}

.model-cta:hover {
    box-shadow: 0 10px 25px rgba(155, 114, 176, 0.35);
}


/* -----------------------------------------------
   4. BUTTONS & CTAs — Sliding Fill Effect
   ----------------------------------------------- */

.cta-primary,
.cta-header,
.cta-button-white {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-primary::after,
.cta-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-primary:hover::after,
.cta-header:hover::after {
    left: 0;
}

.cta-primary:hover,
.cta-header:hover {
    transform: translateY(-3px) scale(1.03);
}

.cta-button-white::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(155, 114, 176, 0.08);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button-white:hover::after {
    left: 0;
}

.cta-button-white:hover {
    transform: translateY(-3px) scale(1.03);
}

.cta-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-secondary:hover::after {
    left: 0;
}

.cta-secondary:hover {
    color: white;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(45, 27, 61, 0.25);
}


/* -----------------------------------------------
   5. WhatsApp FLOAT — Refined Pulse
   ----------------------------------------------- */

.whatsapp-float {
    animation: waPulseRefined 2.5s ease-in-out infinite;
}

@keyframes waPulseRefined {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 4px 28px rgba(37, 211, 102, 0.5),
                    0 0 0 12px rgba(37, 211, 102, 0.1);
    }
}


/* -----------------------------------------------
   6. SECTION HEADERS — Scroll Reveal Titles
   ----------------------------------------------- */

.section-header .section-tag,
.section-header .section-title,
.section-header .section-description {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


/* -----------------------------------------------
   7. BENEFIT CARDS — Enhanced Hover
   ----------------------------------------------- */

.benefit-card {
    transition: all 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

/* Hero benefit cards stagger */
.hero-benefit-card {
    transition: all 0.3s ease;
}

.hero-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(155, 114, 176, 0.22);
}


/* -----------------------------------------------
   8. FAQ — Smooth transitions
   ----------------------------------------------- */

.faq-item {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 18px rgba(155, 114, 176, 0.14);
}


/* -----------------------------------------------
   9. PAYMENT CARDS — Enhanced hover
   ----------------------------------------------- */

.payment-card {
    transition: all 0.4s ease;
}

.payment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(155, 114, 176, 0.18);
}


/* -----------------------------------------------
   10. PARTICLES CANVAS (Desktop only)
   ----------------------------------------------- */

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}


/* -----------------------------------------------
   11. ACCESSIBILITY: prefers-reduced-motion
   ----------------------------------------------- */

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

    .sr-hidden {
        opacity: 1 !important;
        transform: none !important;
    }

    .whatsapp-float {
        animation: none !important;
    }

    #particles-canvas {
        display: none !important;
    }
}


/* -----------------------------------------------
   12. MOBILE: Disable heavy animations
   ----------------------------------------------- */

@media (max-width: 768px) {
    #particles-canvas {
        display: none !important;
    }

    .hero::before {
        animation: float 6s ease-in-out infinite !important;
    }

    /* Simplify scroll reveals on mobile */
    .sr-hidden.sr-from-left,
    .sr-hidden.sr-from-right {
        transform: translateY(30px);
    }
}
