/* =========================================
   NEW TECH PRELOADER (NEURAL STYLE)
   With Progress Bar
   ========================================= */

/* --- OVERLAY --- */
#neural-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0f19; /* Dark Void */
    z-index: 99999; /* Always on top */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#neural-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- THE NEURAL LOADER --- */
.neural-loader {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

/* Outer Glow Ring */
.neural-loader::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #00f2ff; /* Cyan */
    border-bottom-color: #00f2ff;
    animation: spin 3s linear infinite;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

/* Middle Pulse Ring */
.neural-loader::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-left-color: #0066ff; /* Blue */
    border-right-color: #0066ff;
    animation: spin-reverse 2s linear infinite;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
}

/* Inner Core */
.neural-core {
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, #00f2ff 0%, #0066ff 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px #00f2ff;
    animation: pulse 1.5s ease-in-out infinite;
}

/* --- PROGRESS BAR --- */
.neural-progress-container {
    width: 280px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.neural-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0066ff, #00f2ff, #0066ff);
    background-size: 200% 100%;
    border-radius: 3px;
    transition: width 0.3s ease-out;
    animation: gradient-shift 2s linear infinite;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.neural-progress-text {
    margin-top: 15px;
    font-family: 'Inter', 'Russo One', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- ANIMATIONS --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 50px #00f2ff; }
    100% { transform: scale(0.8); opacity: 0.7; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
