
/* =========================================
   WORDSMITH ANIMATIONS
========================================= */

/* Floating objects */

@keyframes ws-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes ws-particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(15px, -25px) scale(1.5);
        opacity: 1;
    }
}

/* Scroll reveal */

[data-reveal] {
    opacity: 0;
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

[data-reveal="left"] {
    transform: translateX(-45px);
}

[data-reveal="right"] {
    transform: translateX(45px);
}

[data-reveal="up"] {
    transform: translateY(35px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Accessibility */

@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;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

}
