/* Pre-loader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
    visibility: visible;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    position: relative;
}

/* Animated Circle */
.preloader-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.preloader-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #ffd700;
    border-right-color: #df25e2;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 
                0 0 60px rgba(223, 37, 226, 0.3);
}

.preloader-circle::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid transparent;
    border-bottom-color: #ffd700;
    border-left-color: #df25e2;
    border-radius: 50%;
    animation: spin-reverse 2s linear infinite;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.3);
}

.preloader-circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.2), transparent);
    animation: pulse 2s ease-in-out infinite;
}

/* Stage Icon */
.stage-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 1.5s ease-in-out infinite;
}

.stage-icon span {
    display: inline-block;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Loading Text */
.preloader-text {
    color: #ffd700;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 20px;
    animation: fadeInOut 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(223, 37, 226, 0.5);
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3), 
                    inset 0 0 10px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 
                    inset 0 0 20px rgba(255, 215, 0, 0.4);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .preloader-circle {
        width: 100px;
        height: 100px;
    }
    
    .stage-icon {
        font-size: 40px;
    }
    
    .preloader-text {
        font-size: 14px;
    }
}
