/* ============================================
   HUMANPRO PRELOADER v2.0 - BIGGER LOGO
   ============================================ */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050a30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Neural Sphere - BIGGER */
.neural-sphere {
    width: 280px;
    height: 280px;
    position: relative;
    margin-bottom: 2rem;
}

.sphere-canvas {
    width: 100%;
    height: 100%;
}

/* Logo - MUCH BIGGER */
.preloader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.preloader-logo img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(35, 61, 255, 0.5));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 30px rgba(35, 61, 255, 0.5));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 50px rgba(0, 212, 255, 0.7));
        transform: scale(1.02);
    }
}

/* Loading Text */
.loading-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.loading-text span {
    animation: loadingDots 1.5s infinite;
}

.loading-text span:nth-child(2) { animation-delay: 0.2s; }
.loading-text span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

/* Progress Bar */
.preloader-progress {
    width: 250px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #233dff, #00d4ff, #233dff);
    background-size: 200% 100%;
    animation: progressGradient 1.5s linear infinite, progressWidth 2s ease-out forwards;
    width: 0%;
    border-radius: 4px;
}

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

@keyframes progressWidth {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   NEURAL NETWORK BACKGROUND
   ============================================ */

.neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.neural-bg canvas {
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

/* Gradient Overlay */
.neural-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(35,61,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0,212,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(124,58,237,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.preloader.is-hidden{opacity:0;pointer-events:none;}
