/* ==========================================
   KEYFRAME ANIMATIONS
========================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(176, 141, 62, 0.25);
    }
    50% {
        box-shadow: 0 0 35px rgba(176, 141, 62, 0.45);
    }
}

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

@keyframes shimmerSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.35);
        opacity: 0.5;
    }
}

/* ==========================================
   COMPONENT ANIMATION ASSIGNMENTS
========================================== */

.image-wrapper {
    animation: floating 5s ease-in-out infinite;
}

.hero-badge i {
    animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.btn-primary:hover::after {
    animation: shimmerSweep 1s ease-in-out;
}

#typing::after {
    content: "|";
    color: var(--primary);
    font-weight: 400;
    animation: blink 0.9s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

body {
    animation: fadeIn 0.4s ease-out;
}

/* ==========================================
   REDUCED MOTION ACCESSIBILITY
========================================== */
@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;
    }

    .image-wrapper,
    .hero-badge i,
    #typing::after {
        animation: none !important;
    }
}