/* ============================================================
   ANIMATIONS CSS — Custom keyframes & motion classes
   ============================================================ */

/* ─── Marquee ─────────────────────────────────────────────── */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Fade variants ───────────────────────────────────────── */
@keyframes fadeInUp {
    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); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}

/* ─── Floating badge on hero ─────────────────────────────── */
@keyframes floatBadge {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

.float-badge { animation: floatBadge 3s ease-in-out infinite; }

/* ─── Pulse glow for CTA button ──────────────────────────── */
@keyframes pulseGlow {
    0%   { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.pulse-cta { animation: pulseGlow 2.4s ease-out infinite; }

/* ─── Spinner (loading state) ─────────────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin { animation: spin 1s linear infinite; }

/* ─── Shimmer effect (skeleton loading) ───────────────────── */
@keyframes shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position:  800px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md, 16px);
}

/* ─── WhatsApp button ripple ─────────────────────────────── */
@keyframes waRipple {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: waRipple 2s ease-out infinite;
    z-index: -1;
}

/* ─── Stagger children utility ───────────────────────────── */
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 100ms; }
.stagger-children > *:nth-child(3) { animation-delay: 200ms; }
.stagger-children > *:nth-child(4) { animation-delay: 300ms; }
.stagger-children > *:nth-child(5) { animation-delay: 400ms; }
.stagger-children > *:nth-child(6) { animation-delay: 500ms; }

/* ─── AOS overrides for smoother performance ─────────────── */
[data-aos] {
    transition-property: transform, opacity !important;
}

/* ─── Reduced-motion: disable animations ─────────────────── */
@media (prefers-reduced-motion: reduce) {
    .float-badge,
    .pulse-cta,
    .spin,
    .skeleton,
    .whatsapp-float::before {
        animation: none !important;
    }
}
