/* ==========================================
   Bharat FinSecure
   Animations Stylesheet
========================================== */

/* Hero Entrance */

.hero-left{
    animation:heroLeftIn .8s ease both;
}

.hero-right{
    animation:heroRightIn .9s ease both;
}

@keyframes heroLeftIn{

    from{
        opacity:0;
        transform:translateX(-40px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}

@keyframes heroRightIn{

    from{
        opacity:0;
        transform:translateX(40px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}


/* Callback Badge Pulse */

.callback-badge{
    animation:badgePulse 2.2s ease-in-out infinite;
}

@keyframes badgePulse{

    0%,
    100%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(37,99,235,.25);
    }

    50%{
        transform:scale(1.03);
        box-shadow:0 0 0 10px rgba(37,99,235,0);
    }

}


/* Floating WhatsApp Animation */

.whatsapp-btn{
    animation:whatsappFloat 2.5s ease-in-out infinite;
}

@keyframes whatsappFloat{

    0%,
    100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-8px);
    }

}

.whatsapp-btn:hover{
    animation:none;
}


/* Card Hover Icon Animation */

.service-card:hover img,
.partner-card:hover img{
    animation:iconBounce .5s ease;
}

@keyframes iconBounce{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.12);
    }

    100%{
        transform:scale(1.06);
    }

}


/* CTA Button Attention */

.cta-button{
    animation:ctaGlow 2.5s ease-in-out infinite;
}

@keyframes ctaGlow{

    0%,
    100%{
        box-shadow:0 14px 30px rgba(244,180,0,.24);
    }

    50%{
        box-shadow:0 18px 42px rgba(244,180,0,.45);
    }

}


/* Loader Safety */

#loader.loader-hidden .spinner{
    animation:none;
}


/* Accessibility */

@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        scroll-behavior:auto !important;
        transition-duration:.01ms !important;
    }

}