/* =========================================================
   ANIMATIONS
   ========================================================= */

.fade-up {
    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}


.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


.fade-in {
    opacity: 0;
    transition: opacity 0.7s ease;
}


.fade-in.visible {
    opacity: 1;
}


.scale-in {
    opacity: 0;
    transform: scale(0.96);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}


.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}


.float {
    animation: floating 5s ease-in-out infinite;
}


@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


.pulse {
    animation: pulse-animation 2s infinite;
}


@keyframes pulse-animation {

    0% {
        box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.35);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(22, 119, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 119, 255, 0);
    }
}


/* Respect accessibility preferences */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}