/* ============================================
   ALISTER BANK - Animations
   ============================================ */

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In */
.animate-fade-in {
    animation: fadeInAnim 0.8s ease forwards;
}
@keyframes fadeInAnim {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide Up */
.animate-slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpAnim 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes slideUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

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

/* Scale In */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleInAnim 0.8s ease forwards;
}
@keyframes scaleInAnim {
    to { opacity: 1; transform: scale(1); }
}

/* Pulse */
.pulse-green {
    animation: pulseGreen 1.5s infinite;
}
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(0, 200, 83, 0); }
}

/* Shake */
.shake-animation {
    animation: shakeAnim 0.6s ease;
}
@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Number Count Animation */
.count-animate {
    transition: all 0.5s ease;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* Card Hover Glow */
.glow-hover {
    transition: box-shadow 0.3s ease;
}
.glow-hover:hover {
    box-shadow: 0 0 20px var(--primary-glow), var(--shadow-lg);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* UPI Typing Animation */
@keyframes typeText {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Success Checkmark Scale */
.success-checkmark {
    animation: checkmarkBounce 0.6s ease;
}
@keyframes checkmarkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Slide in from left */
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}