/*
 * Modern Cab Booking Template - Animations Stylesheet
 * Custom CSS Transitions, Keyframe Animations, Hover effects, and Visual micro-interactions
 */

/* ----------------------------------
   Core Slide & Fade Animations
---------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.anim-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.anim-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.anim-fade-down {
    animation: fadeInDown 0.8s ease forwards;
}

.anim-fade-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.anim-fade-right {
    animation: fadeInRight 0.8s ease forwards;
}

/* ----------------------------------
   Button Hover & Ripple Effects
---------------------------------- */
.hover-grow {
    transition: transform var(--transition-fast);
}

.hover-grow:hover {
    transform: scale(1.03);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

/* ----------------------------------
   Floating Pulse Animations
---------------------------------- */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.float-whatsapp {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseYellowGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.pulse-primary-cta {
    animation: pulseYellowGlow 2s infinite;
}

/* ----------------------------------
   Shake micro-animation for CTA buttons
---------------------------------- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.btn-shake:hover {
    animation: shake 0.6s ease;
}

/* ----------------------------------
   Card Hover Zoom & Glow
---------------------------------- */
.glow-on-hover {
    transition: all var(--transition-normal);
}

.glow-on-hover:hover {
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15); /* Soft blue shadow */
    border-color: rgba(37, 99, 235, 0.2);
}

/* ----------------------------------
   Loading Indicator Animations
---------------------------------- */
@keyframes skeletonLoading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 37%, #F3F4F6 63%);
    background-size: 400% 100%;
    animation: skeletonLoading 1.4s ease infinite;
}
