/* ==================== MOTION SYSTEM ==================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatSoft {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes glowSoft {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(2, 132, 199, 0);
    }
    50% {
        box-shadow: 0 0 34px rgba(2, 132, 199, 0.25);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease both;
}

.animate-fade-in-up {
    animation: fadeInUp 0.65s ease both;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.65s ease both;
}

.animate-fade-in-right {
    animation: fadeInRight 0.65s ease both;
}

.animate-scale-in {
    animation: scaleIn 0.55s ease both;
}

.animate-glow {
    animation: glowSoft 3.5s ease-in-out infinite;
}

.animate-float {
    animation: floatSoft 3.8s ease-in-out infinite;
}

.stagger-1 {
    animation-delay: 0.08s;
}

.stagger-2 {
    animation-delay: 0.16s;
}

.stagger-3 {
    animation-delay: 0.24s;
}

.stagger-4 {
    animation-delay: 0.32s;
}

.stagger-5 {
    animation-delay: 0.4s;
}

.stagger-6 {
    animation-delay: 0.48s;
}

/* Scroll reveal is enabled only when JS adds .active */
.scroll-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}