/* =====================================================
   PRELOADER / SPLASHSCREEN STYLES
   ===================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #BC1D24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    pointer-events: auto;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader.hidden {
    display: none;
}

.preloader-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.preloader-logo {
    margin-bottom: 30px;
}

/* Circle Animation */
@keyframes circleRotate {
    from { stroke-dashoffset: 283; }
    to { stroke-dashoffset: 0; }
}

/* Pulse Animation for Star */
@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.15); 
        opacity: 0.8; 
    }
}

/* Rotate Animation */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-logo .circle-animation {
    animation: circleRotate 2s ease-in-out forwards;
    transform-origin: center;
}

.preloader-logo .star-animation {
    animation: pulse 1.5s ease-in-out infinite;
    transform-origin: center;
}

.preloader-title {
    font-size: 48px;
    font-weight: 700;
    color: #BC1D24;
    margin-bottom: 10px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-shadow: 0 2px 10px rgba(188, 29, 36, 0.3);
}

.preloader-subtitle {
    font-size: 18px;
    color: #E0E0E0;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.preloader-loader {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.preloader-bar {
    height: 100%;
    background: linear-gradient(90deg, #BC1D24, #ff4757, #BC1D24);
    background-size: 200% 100%;
    width: 0;
    border-radius: 4px;
    animation: loadingBar 2s ease-in-out forwards, shimmer 1.5s linear infinite;
}

@keyframes loadingBar {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .preloader-title {
        font-size: 36px;
    }
    
    .preloader-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .preloader-loader {
        width: 160px;
    }
    
    .preloader-logo svg {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .preloader-title {
        font-size: 28px;
    }
    
    .preloader-subtitle {
        font-size: 14px;
    }
    
    .preloader-loader {
        width: 140px;
    }
    
    .preloader-logo svg {
        width: 70px;
        height: 70px;
    }
}
