
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 60, 114, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Loading Container */
.loading-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Main Loader */
.loader {
    position: relative;
    width: 120px;
    height: 120px;
}

/* Outer Ring */
.outer-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #ff6b6b;
    border-right: 3px solid #4ecdc4;
    border-radius: 50%;
    animation: spinClockwise 2s linear infinite;
}

/* Inner Ring */
.inner-ring {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 90px;
    height: 90px;
    border: 3px solid transparent;
    border-bottom: 3px solid #45b7d1;
    border-left: 3px solid #f9ca24;
    border-radius: 50%;
    animation: spinCounterClockwise 1.5s linear infinite;
}

/* Center Pulse */
.center-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite alternate;
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 0.5s;
    animation-duration: 3s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 2.8s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1.5s;
    animation-duration: 3.2s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 60%;
    animation-delay: 2s;
    animation-duration: 2.7s;
}

/* Loading Text */
.loading-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-percentage {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 200;
    margin-top: 0.5rem;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

/* Progress Bar */
.progress-container {
    width: 250px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24) !important;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 2s ease-in-out infinite;
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5) !important;
}
/* Main Content (hidden initially) */
.loading-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.loading-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse {
    0% { 
        transform: translate(-50%, -50%) scale(0.8);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .loader {
        width: 80px;
        height: 80px;
    }

    .inner-ring {
        top: 10px;
        left: 10px;
        width: 60px;
        height: 60px;
    }

    .center-pulse {
        width: 25px;
        height: 25px;
    }

    .loading-text {
        font-size: 1.2rem;
    }

    .loading-content h1 {
        font-size: 2rem;
    }

    .loading-content p {
        font-size: 1rem;
    }
}




