/* ==========================================================================
   Industrial Park Template Kit - Motion & Animation CSS
   ========================================================================== */

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(15, 76, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 25px 8px rgba(15, 76, 129, 0.2);
    }
}

@keyframes shimmerEffect {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes popDown {
    from {
        top: -100vh;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

@keyframes lineDraw {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes rotateInfinite {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.anim-fade { animation: fadeIn 0.8s ease forwards; }
.anim-up { animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-down { animation: fadeInDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-left { animation: fadeInLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-right { animation: fadeInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-scale { animation: scaleUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.anim-float { animation: floatAnim 4s ease-in-out infinite; }
.anim-pulse { animation: pulseGlow 2.5s infinite; }

/* Stagger Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Scroll Trigger Active Observer Classes */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

[data-aos].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-40px);
}
[data-aos="fade-left"].is-visible {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(40px);
}
[data-aos="fade-right"].is-visible {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}
[data-aos="zoom-in"].is-visible {
    transform: scale(1);
}

/* Hover transitions */
.hover-lift {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.hover-zoom {
    overflow: hidden;
}
.hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-zoom:hover img {
    transform: scale(1.08);
}
