/* =========================================================================
   PAYROLL SERVICES PAGE SPECIFIC ANIMATIONS - PREMIUM
========================================================================= */

.payroll-hero {
    animation: heroFadeIn 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.payroll-hero .hero-bg {
    transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.payroll-hero .hero-bg.zoom {
    animation: payrollHeroZoom 11s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.payroll-hero .hero-animate {
    transform: translateY(46px);
    transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.payroll-hero.text-show .hero-title {
    transition-delay: 0.2s;
    animation: titleGlowIn 1.35s ease-out both 0.2s;
}

.payroll-hero.text-show .hero-subtitle {
    transition-delay: 0.55s;
}

.payroll-hero.text-show .hero-btns {
    transition-delay: 0.85s;
}

@keyframes payrollHeroZoom {
    from {
        transform: scale(1);
        filter: brightness(1);
    }
    to {
        transform: scale(1.12);
        filter: brightness(0.92);
    }
}

/* TIMELINE ANIMATION - Staggered Slide */
.timeline-item {
    animation: timelineSlide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:nth-child(1) { animation-delay: 0.0s; }
.timeline-item:nth-child(2) { animation-delay: 0.15s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.45s; }
.timeline-item:nth-child(5) { animation-delay: 0.6s; }

@keyframes timelineSlide {
    from {
        opacity: 0;
        transform: translateX(-40px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

.timeline-item:hover {
    transform: none;
    filter: drop-shadow(0 10px 20px rgba(108, 111, 255, 0.2));
}

/* COMPLIANCE BADGE GLOW - Premium */
.compliance-badge {
    animation: complianceGlow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    position: relative;
    transition: all 0.3s ease;
}

@keyframes complianceGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(108, 111, 255, 0.3),
                    inset 0 0 10px rgba(108, 111, 255, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(108, 111, 255, 0.6),
                    inset 0 0 15px rgba(108, 111, 255, 0.2);
        transform: scale(1.03);
    }
}

.compliance-badge::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(108, 111, 255, 0.1);
    border-radius: 12px;
    animation: badgeHalo 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes badgeHalo {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* PAYROLL CALCULATION EFFECT - Pulsing */
.calculation-demo {
    animation: calculationFlow 3s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

@keyframes calculationFlow {
    0% {
        opacity: 0.7;
        transform: scale(0.98);
        filter: brightness(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
        filter: brightness(1.1);
    }
    100% {
        opacity: 0.7;
        transform: scale(0.98);
        filter: brightness(0.9);
    }
}

/* BENEFIT CARDS - Flat Motion */
.benefit-card {
    animation: benefitCardEntry 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.25s; }
.benefit-card:nth-child(3) { animation-delay: 0.4s; }
.benefit-card:nth-child(4) { animation-delay: 0.55s; }

@keyframes benefitCardEntry {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.benefit-card:hover {
    transform: none;
    box-shadow: 0 25px 60px rgba(108, 111, 255, 0.3);
}

/* PROCESS STEP FLOW - Cascade */
.process-step {
    animation: processStepFlow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-step:nth-child(1) { animation-delay: 0.0s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.4s; }

@keyframes processStepFlow {
    from {
        opacity: 0;
        transform: translateY(30px) translateX(-20px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
        filter: blur(0);
    }
}

.process-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    animation: processBar 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.process-step:nth-child(1)::before { animation-delay: 0.0s; }
.process-step:nth-child(2)::before { animation-delay: 0.2s; }
.process-step:nth-child(3)::before { animation-delay: 0.4s; }

@keyframes processBar {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 100%;
        opacity: 1;
    }
}

.process-step:hover {
    transform: none;
    background: linear-gradient(135deg, rgba(108, 111, 255, 0.1), rgba(143, 240, 251, 0.05));
}

