/* corekreatif.com/backend/static/css/animations.css */

/* Keyframes Definitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 10px rgba(212, 175, 55, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
    }
}

/* Immediate Animation (No JS wait) */
.animate-immediate {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Base Animation Classes */
.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
    opacity: 1;
}

/* Animation Variants */
.fade-in-up {
    transform: translate3d(0, 40px, 0);
}

.fade-in-up.is-visible {
    transform: translate3d(0, 0, 0);
}

.scale-in {
    transform: scale(0.9);
}

.scale-in.is-visible {
    transform: scale(1);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Interactive Hover Effects */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.5);
    border-color: var(--accent-color);
}

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

/* Text Effects */
/* Text Effects - Luxury Gold Shimmer */
.text-gradient-animate {
    background: linear-gradient(to right,
            #bf953f,
            #fcf6ba,
            #b38728,
            #fbf5b7,
            #aa771c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}