/* ============================================
   Eduzentra — Animations
   ============================================ */

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

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

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Bar chart animate on scroll */
.bar-chart .bar {
    height: 0 !important;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-chart.animated .bar {
    height: var(--bar-height, 50%) !important;
}

/* Pipeline bars */
.pipeline-stage .stage-bar {
    width: 0 !important;
    transition: width 1.2s ease;
}
.pipeline-panel.animated .stage-bar {
    width: var(--stage-width, 100%) !important;
}

/* Hero mockup subtle animation */
.dashboard-mockup {
    animation: fadeInUp 1s ease 0.3s both;
}

/* Gradient text animation */
.gradient-text {
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
