/* ========================================
   ANIMATIONS.CSS — Scroll & Effects
   ======================================== */

/* ---- Fade-in on Scroll ---- */
.cpr-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cpr-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.cpr-fade-in-delay-1 {
    transition-delay: 0.1s;
}

.cpr-fade-in-delay-2 {
    transition-delay: 0.2s;
}

.cpr-fade-in-delay-3 {
    transition-delay: 0.3s;
}

.cpr-fade-in-delay-4 {
    transition-delay: 0.4s;
}

/* ---- Fade-in from Left ---- */
.cpr-fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cpr-fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Fade-in from Right ---- */
.cpr-fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.cpr-fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Scale Up ---- */
.cpr-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cpr-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ---- Gold Shimmer Sweep ---- */
@keyframes goldShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.cpr-shimmer-text {
    background: linear-gradient(90deg, #C9A84C 0%, #F5E6A0 40%, #C9A84C 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s linear infinite;
}

/* ---- Counter Scale-in ---- */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cpr-stat-number {
    animation: countUp 0.6s ease forwards;
}

/* ---- Gold Divider Line ---- */
.cpr-gold-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C9A84C, #E8C97A);
    margin: 16px auto 32px;
    border-radius: 2px;
}

/* ---- Pulse Glow ---- */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(201, 168, 76, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(201, 168, 76, 0.5);
    }
}

.cpr-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ---- Float ---- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.cpr-float {
    animation: float 3s ease-in-out infinite;
}

/* ---- Rotate In ---- */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.cpr-rotate-in.visible {
    animation: rotateIn 0.6s ease forwards;
}

/* ---- Slide Up Border ---- */
@keyframes slideUpBorder {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

/* ---- Background Noise / Grain Texture ---- */
.cpr-bg-grain::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ---- Hero Background Ken Burns ---- */
@keyframes kenBurns {
    0% {
        transform: scale(1.0);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1.0);
    }
}

.cpr-ken-burns {
    animation: kenBurns 20s ease-in-out infinite;
}