/* Modern Neon Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(ellipse at center, rgba(0, 255, 136, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Background Animation */
.preloader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(0, 255, 136, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 70% 80% at 80% 20%, rgba(0, 255, 136, 0.06) 0%, transparent 75%),
        radial-gradient(ellipse 60% 70% at 40% 40%, rgba(0, 255, 136, 0.04) 0%, transparent 80%);
    filter: blur(3px);
    animation: backgroundPulse 6s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% { 
        transform: scale(1); 
        opacity: 0.3;
        filter: blur(4px);
    }
    50% { 
        transform: scale(1.02); 
        opacity: 0.5;
        filter: blur(3px);
    }
    100% { 
        transform: scale(1); 
        opacity: 0.3;
        filter: blur(4px);
    }
}

/* Logo Container */
.preloader-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    animation: logoFloat 3s ease-in-out infinite;
}

.preloader-logo img {
    height: 120px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6))
            drop-shadow(0 0 40px rgba(0, 255, 136, 0.3))
            drop-shadow(0 0 60px rgba(0, 255, 136, 0.15));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

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

@keyframes logoGlow {
    0% { 
        filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5))
                drop-shadow(0 0 30px rgba(0, 255, 136, 0.25))
                drop-shadow(0 0 45px rgba(0, 255, 136, 0.1));
    }
    100% { 
        filter: drop-shadow(0 0 25px rgba(0, 255, 136, 0.8))
                drop-shadow(0 0 50px rgba(0, 255, 136, 0.4))
                drop-shadow(0 0 75px rgba(0, 255, 136, 0.2));
    }
}

/* Loading Text */
.preloader-text {
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8),
                 0 0 20px rgba(0, 255, 136, 0.4),
                 0 0 30px rgba(0, 255, 136, 0.2);
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Progress Container */
.progress-container {
    position: relative;
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(0, 255, 136, 0.7) 0%,
        rgba(0, 255, 136, 0.9) 50%,
        rgba(136, 255, 170, 0.8) 100%);
    border-radius: 2px;
    position: relative;
    animation: progressGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6),
                0 0 30px rgba(0, 255, 136, 0.3),
                0 0 45px rgba(0, 255, 136, 0.1);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 55%,
        transparent 70%,
        transparent 100%);
    border-radius: 2px;
    filter: blur(1px);
    animation: progressShine 3s ease-in-out infinite;
}

@keyframes progressGlow {
    0% { 
        box-shadow: 0 0 12px rgba(0, 255, 136, 0.5),
                    0 0 25px rgba(0, 255, 136, 0.25),
                    0 0 40px rgba(0, 255, 136, 0.1);
    }
    100% { 
        box-shadow: 0 0 18px rgba(0, 255, 136, 0.7),
                    0 0 35px rgba(0, 255, 136, 0.35),
                    0 0 55px rgba(0, 255, 136, 0.15);
    }
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Progress Percentage */
.progress-percentage {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #88ffaa;
    text-shadow: 0 0 10px rgba(136, 255, 170, 0.8);
}

/* Loading Status */
.loading-status {
    position: relative;
    z-index: 2;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #a0b0a0;
    text-align: center;
    letter-spacing: 1px;
    animation: statusFade 2s ease-in-out infinite;
}

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

/* Particle Effects */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 136, 0.8);
    border-radius: 50%;
    animation: float 6s linear infinite;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.8);
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Orbital Rings */
.orbital-ring {
    position: absolute;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    filter: blur(0.5px);
    opacity: 0.7;
}

.orbital-ring:nth-child(1) {
    width: 200px;
    height: 200px;
    animation-duration: 15s;
    border-color: rgba(0, 255, 136, 0.15);
    opacity: 0.6;
}

.orbital-ring:nth-child(2) {
    width: 300px;
    height: 300px;
    animation-duration: 25s;
    animation-direction: reverse;
    border-color: rgba(0, 255, 136, 0.1);
    opacity: 0.4;
}

.orbital-ring:nth-child(3) {
    width: 400px;
    height: 400px;
    animation-duration: 35s;
    border-color: rgba(0, 255, 136, 0.08);
    opacity: 0.3;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .preloader-logo img {
        height: 80px;
    }
    
    .preloader-text {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .progress-container {
        width: 250px;
    }
    
    .orbital-ring:nth-child(1) {
        width: 150px;
        height: 150px;
    }
    
    .orbital-ring:nth-child(2) {
        width: 220px;
        height: 220px;
    }
    
    .orbital-ring:nth-child(3) {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .preloader-logo img {
        height: 60px;
    }
    
    .preloader-text {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .progress-container {
        width: 200px;
    }
}
