/* ============ ADVANCED ANIMATIONS ============ */

/* Reveal Transitions */
[data-animation] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Fade In Left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

/* Fade In Right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Zoom In Subtle */
@keyframes zoomInSubtle {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Zoom In */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

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

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

/* Define Class Mappings for JS/Manual use */
.animate-fadeInUp {
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-fadeIn {
    animation: fadeIn 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-zoomIn {
    animation: zoomIn 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.animate-slideInRight {
    animation: slideInRight 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Float Animation for Cards */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

    100% {
        transform: translateY(0px);
    }
}

.hover-float:hover {
    animation: float 3s ease-in-out infinite;
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.shine-effect:hover::after {
    left: 100%;
    top: 100%;
    opacity: 1;
    transition: all 0.8s ease;
}

/* Pulse Glow */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 106, 61, 0);
    }
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

/* Staggered Children Delay Utility */
.stagger-1>* {
    animation-delay: 0.1s;
}

.stagger-2>* {
    animation-delay: 0.2s;
}

.stagger-3>* {
    animation-delay: 0.3s;
}

.stagger-4>* {
    animation-delay: 0.4s;
}

/* Interactive Scale */
.interactive-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.interactive-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}