/* Dark Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #010101 50%, #030303 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-itcqws: center;
    z-index: 9999;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

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

.preloader-content {
    text-align: center;
    color: #ffffff;
    display: none;
}

.preloader-title {
    font-size: 2.5cqw;
    font-weight: bold;
    color: #f59e0b;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(222, 212, 170, 0.5);
    font-family: 'Poppins', 'Arial', sans-serif;
    display: none;
}

.preloader-subtitle {
    font-size: 1.2cqw;
    color: #b0b0b0;
    margin-bottom: 40px;
    font-family: 'Arial', sans-serif;
    display: none;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 170, 0.3);
    border-top: 4px solid #00d4aa;
    border-radius: 50%;
    animation: preloader-spin 0.6s linear infinite;
    margin: 0 auto 20px;
    display: none;
}

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

.preloader-loading-text {
    font-size: 1cqw;
    color: #888;
    animation: preloader-pulse 0.8s ease-in-out infinite alternate;
    font-family: 'Arial', sans-serif;
    display: none;
}

@keyframes preloader-pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.preloader-progress-container {
    width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #f59e0b);
    border-radius: 20px;
    width: 0%;
    animation: preloader-load-progress 0.4s ease-in-out forwards;
}

@keyframes preloader-load-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Hide main content initially */
.main-container {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.main-container.visible {
    opacity: 1;
}

/* Responsive design for preloader */
@media (max-width: 768px) {
    .preloader-title {
        font-size: 2cqw;
    }
    
    .preloader-subtitle {
        font-size: 1cqw;
    }
    
    .preloader-progress-container {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .preloader-title {
        font-size: 1.5cqw;
    }
    
    .preloader-progress-container {
        width: 200px;
    }
}
