/* Modern Premium Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #001f3f 0%, #000 70%);
    opacity: 0.8;
}

.preloader-mesh {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(at 0% 0%, hsla(205,100%,50%,0.15) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,100%,50%,0.15) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,100%,50%,0.1) 0, transparent 50%);
    filter: blur(80px);
    z-index: 1;
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.loader-logo-wrap {
    position: relative;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    opacity: 0;
}

.loader-logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 145, 255, 0.5));
    margin-bottom: 30px;
}

.loader-bar-wrap {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0091FF, #00D1FF);
    box-shadow: 0 0 15px rgba(0, 145, 255, 0.8);
}

.loader-percentage {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* Neural pulse animation */
.loader-logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 40px;
    border: 1px solid rgba(0, 145, 255, 0.3);
    animation: loaderPulse 2s infinite;
}

@keyframes loaderPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}
