/* ==========================================================================
   ANIMATIONS & MOTION EFFECTS - GHARZOLHASANEH MOTAHARI ESFAHAN
   Designed for smooth scroll-driven experiences & interactive hero banner
   ========================================================================== */

/* Keyframe Animations */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1.5deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(197, 155, 39, 0.25), 0 0 30px rgba(15, 77, 60, 0.15);
    }
    50% {
        box-shadow: 0 0 35px rgba(197, 155, 39, 0.6), 0 0 60px rgba(16, 117, 89, 0.35);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes counterPop {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes timelineFill {
    from {
        height: 0%;
    }
    to {
        height: 100%;
    }
}

@keyframes badgePing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    80%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Reusable Animation Utility Classes */
.animate-float {
    animation: floatSlow 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spinSlow 40s linear infinite;
}

.badge-live-dot {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
}

.badge-live-dot::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #22c55e;
    animation: badgePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.badge-closed-dot {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ef4444;
}

/* Scroll-triggered reveal classes */
.reveal-on-scroll {
    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;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

/* Hero Badge & Shimmer Text */
.gold-shimmer-text {
    background: linear-gradient(90deg, #d4af37 0%, #fff2b2 40%, #c59b27 70%, #d4af37 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 5s linear infinite;
}

/* Interactive Timeline Styles */
.timeline-track-fill {
    transition: height 0.3s ease-out, width 0.3s ease-out;
}

.timeline-step {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step.active-milestone {
    transform: scale(1.03);
}

.timeline-step.active-milestone .milestone-marker {
    background: linear-gradient(135deg, #d4af37, #996515);
    color: #fff;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    border-color: #fff;
}

/* Mouse Parallax Canvas / Container */
.parallax-item {
    transition: transform 0.12s cubic-bezier(0.2, 0, 0.3, 1);
    will-change: transform;
}
