/*
    EverAfter Wedding Platform
    Animation System

    All reusable animations live here.

    Keep animations subtle and elegant.
    Wedding UI should feel premium, not distracting.
*/


/* =====================================
   Loading Animation
===================================== */


@keyframes heartbeat {

    0% {

        transform: scale(1);

    }


    25% {

        transform: scale(1.15);

    }


    50% {

        transform: scale(1);

    }


    75% {

        transform: scale(1.15);

    }


    100% {

        transform: scale(1);

    }

}



/* =====================================
   Fade Animations
===================================== */


.fade-in {

    animation:

        fadeIn

        var(--transition-slow)

        ease

        forwards;

}



@keyframes fadeIn {


    from {

        opacity: 0;

    }


    to {

        opacity: 1;

    }

}



/* =====================================
   Slide Animations
===================================== */


.slide-up {

    animation:

        slideUp

        var(--transition-slow)

        ease

        forwards;

}



@keyframes slideUp {


    from {

        opacity: 0;

        transform:

            translateY(40px);

    }


    to {

        opacity: 1;

        transform:

            translateY(0);

    }

}




.slide-down {

    animation:

        slideDown

        var(--transition-slow)

        ease

        forwards;

}



@keyframes slideDown {


    from {

        opacity: 0;

        transform:

            translateY(-40px);

    }


    to {

        opacity: 1;

        transform:

            translateY(0);

    }

}





/* =====================================
   Scale Animation
===================================== */


.scale-in {

    animation:

        scaleIn

        var(--transition-normal)

        ease

        forwards;

}



@keyframes scaleIn {


    from {

        opacity: 0;

        transform:

            scale(0.9);

    }


    to {

        opacity: 1;

        transform:

            scale(1);

    }

}



/* =====================================
   Floating Effect
===================================== */


.float {


    animation:

        floating

        4s

        ease-in-out

        infinite;


}



@keyframes floating {


    0% {

        transform:

            translateY(0);

    }


    50% {

        transform:

            translateY(-10px);

    }


    100% {

        transform:

            translateY(0);

    }

}



/* =====================================
   Gold Shine Effect
===================================== */


.shimmer {


    background:

        linear-gradient(

            90deg,

            transparent,

            rgba(255,255,255,0.6),

            transparent

        );


    background-size:

        200%

        100%;


    animation:

        shimmer

        3s

        infinite;

}



@keyframes shimmer {


    from {

        background-position:

            -200%

            0;

    }


    to {

        background-position:

            200%

            0;

    }

}



/* =====================================
   Gentle Page Reveal
===================================== */


.reveal {


    opacity: 0;


    transform:

        translateY(20px);


    transition:

        opacity

        var(--transition-slow),


        transform

        var(--transition-slow);


}



.reveal.active {


    opacity: 1;


    transform:

        translateY(0);

}



/* =====================================
   Button Interaction
===================================== */


.button-pulse {


    animation:

        buttonPulse

        2.5s

        infinite;

}



@keyframes buttonPulse {


    0% {


        box-shadow:

            0 0 0 0

            rgba(201,162,39,0.5);


    }


    70% {


        box-shadow:

            0 0 0 15px

            rgba(201,162,39,0);


    }


    100% {


        box-shadow:

            0 0 0 0

            rgba(201,162,39,0);


    }

}



/* =====================================
   Reduced Motion Support
===================================== */


@media (prefers-reduced-motion: reduce) {


    *,

    *::before,

    *::after {


        animation-duration:

            0.01ms !important;


        animation-iteration-count:

            1 !important;


        transition-duration:

            0.01ms !important;


        scroll-behavior:

            auto !important;


    }


}