/* ============================================
   ANIMATIONS.CSS — Scroll reveals & micro-animations
   ============================================ */

/* ── Scroll Reveal ── */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate].is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ── Pulse glow for WhatsApp ── */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
}
@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ── Stat counter animation ── */
.stat-number { transition: all 0.3s ease; }

/* ── Shimmer for loading states ── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, #e2e8f0 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ── Hero floating animation ── */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.about-float-card { animation: floatSlow 4s ease-in-out infinite; }

/* ── Stagger children on reveal ── */
[data-animate].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-animate].is-visible > *:nth-child(2) { transition-delay: 50ms; }
[data-animate].is-visible > *:nth-child(3) { transition-delay: 100ms; }
[data-animate].is-visible > *:nth-child(4) { transition-delay: 150ms; }
[data-animate].is-visible > *:nth-child(5) { transition-delay: 200ms; }
[data-animate].is-visible > *:nth-child(6) { transition-delay: 250ms; }
