/**
 * Animation Styles
 *
 * @package My_Theme_Core
 */

/* Base Animation Classes */
.mtc-animate {
    opacity: 0;
}

.mtc-animate.animated {
    opacity: 1;
}

/* Fade Animations */
@keyframes mtcFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mtc-animate-fadeIn {
    animation: mtcFadeIn 1s ease forwards;
}

.mtc-animate-fadeInUp {
    animation: mtcFadeInUp 1s ease forwards;
}

@keyframes mtcFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mtc-animate-fadeInDown {
    animation: mtcFadeInDown 1s ease forwards;
}

@keyframes mtcFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mtc-animate-fadeInLeft {
    animation: mtcFadeInLeft 1s ease forwards;
}

@keyframes mtcFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mtc-animate-fadeInRight {
    animation: mtcFadeInRight 1s ease forwards;
}

@keyframes mtcFadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide Animations */
.mtc-animate-slideInUp {
    animation: mtcSlideInUp 1s ease forwards;
}

@keyframes mtcSlideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mtc-animate-slideInDown {
    animation: mtcSlideInDown 1s ease forwards;
}

@keyframes mtcSlideInDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.mtc-animate-slideInLeft {
    animation: mtcSlideInLeft 1s ease forwards;
}

@keyframes mtcSlideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.mtc-animate-slideInRight {
    animation: mtcSlideInRight 1s ease forwards;
}

@keyframes mtcSlideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Zoom Animations */
.mtc-animate-zoomIn {
    animation: mtcZoomIn 1s ease forwards;
}

@keyframes mtcZoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mtc-animate-zoomOut {
    animation: mtcZoomOut 1s ease forwards;
}

@keyframes mtcZoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Bounce Animations */
.mtc-animate-bounce {
    animation: mtcBounce 1s ease forwards;
}

@keyframes mtcBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.mtc-animate-pulse {
    animation: mtcPulse 2s ease infinite;
}

@keyframes mtcPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.mtc-animate-shake {
    animation: mtcShake 0.5s ease forwards;
}

@keyframes mtcShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.mtc-animate-rotateIn {
    animation: mtcRotateIn 1s ease forwards;
}

@keyframes mtcRotateIn {
    from {
        opacity: 0;
        transform: rotate(-200deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* Delay Classes */
.mtc-animate-delay-100 {
    animation-delay: 100ms;
}

.mtc-animate-delay-200 {
    animation-delay: 200ms;
}

.mtc-animate-delay-300 {
    animation-delay: 300ms;
}

.mtc-animate-delay-400 {
    animation-delay: 400ms;
}

.mtc-animate-delay-500 {
    animation-delay: 500ms;
}

.mtc-animate-delay-600 {
    animation-delay: 600ms;
}

.mtc-animate-delay-700 {
    animation-delay: 700ms;
}

.mtc-animate-delay-800 {
    animation-delay: 800ms;
}

.mtc-animate-delay-900 {
    animation-delay: 900ms;
}

.mtc-animate-delay-1000 {
    animation-delay: 1000ms;
}

/* Duration Classes */
.mtc-animate-duration-500 {
    animation-duration: 500ms;
}

.mtc-animate-duration-1000 {
    animation-duration: 1000ms;
}

.mtc-animate-duration-1500 {
    animation-duration: 1500ms;
}

.mtc-animate-duration-2000 {
    animation-duration: 2000ms;
}

/* Scroll Animations */
.mtc-scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.mtc-scroll-animate.animated {
    opacity: 1;
}

.mtc-scroll-animate-fadeInUp {
    transform: translateY(50px);
}

.mtc-scroll-animate-fadeInUp.animated {
    transform: translateY(0);
}

.mtc-scroll-animate-fadeInLeft {
    transform: translateX(-50px);
}

.mtc-scroll-animate-fadeInLeft.animated {
    transform: translateX(0);
}

.mtc-scroll-animate-fadeInRight {
    transform: translateX(50px);
}

.mtc-scroll-animate-fadeInRight.animated {
    transform: translateX(0);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .mtc-animate,
    .mtc-scroll-animate {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

