/* ==========================================================================
   Vexigate Staggered Page Element Entrance & Loading Progress System
   ========================================================================== */

/* Top Loading Progress Line */
#vxi-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8 0%, #06b6d4 50%, #3b82f6 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8), 0 0 20px rgba(6, 182, 212, 0.5);
    z-index: 999999;
    pointer-events: none;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-out;
    will-change: width, opacity;
}

#vxi-loading-bar.vxi-done {
    width: 100% !important;
    opacity: 0;
}

/* Base state for elements to be animated */
.vxi-animate {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    will-change: opacity, transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Triggered state */
.vxi-animated {
    animation: vxiSlideUpFade 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes vxiSlideUpFade {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    70% {
        opacity: 0.95;
        transform: translateY(-2px) scale(1.003);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger delays helper classes */
.vxi-delay-1 { animation-delay: 40ms !important; }
.vxi-delay-2 { animation-delay: 80ms !important; }
.vxi-delay-3 { animation-delay: 120ms !important; }
.vxi-delay-4 { animation-delay: 160ms !important; }
.vxi-delay-5 { animation-delay: 200ms !important; }
.vxi-delay-6 { animation-delay: 240ms !important; }

@media (prefers-reduced-motion: reduce) {
    .vxi-animate, .vxi-animated {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}
