// resources/scss/_animations.scss
// Keyframes
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

// Animation classes
.animate-fadeInLeft {
    animation: fadeInLeft 1s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 1s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 1s ease-out;
}

.animate-slideInUp {
    animation: slideInUp 0.5s ease-out;
}

// Scroll animations
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;

    &.animate-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

// Hover animations
.hover-lift {
    @include transition-all;

    &:hover {
        transform: translateY(-4px);
        box-shadow: $shadow-xl;
    }
}
