/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
} */

/* Preloader Overlay */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #272730; /* fallback for old browsers */
    background: -webkit-linear-gradient(
        135deg,
        #1a1a2e ,
        #0f0c29,
        #272730,
        #24243e
    ); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(135deg, #1a1a2e, #0f0c29, #272730, #272730);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Loading Animation Container */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Spinning Rings Loader */
.spinner {
    width: 80px;
    height: 80px;
    position: relative;
}

.spinner::before,
.spinner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    animation: spin 1.5s linear infinite;
}

.spinner::before {
    width: 80px;
    height: 80px;
}

.spinner::after {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: rgba(255, 255, 255, 0.6);
    animation-duration: 1s;
    animation-direction: reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pulsing Dots */
.dots {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes pulse {
    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Loading Text */
.loading-text {
    color: white;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Progress Bar */
.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    width: 0%;
    animation: loading 3s ease-out forwards;
}

@keyframes loading {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Main Content */
.main-content {
    display: none;
    padding: 50px;
    text-align: center;
    color: white;
}

.main-content.show {
    display: block;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.main-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .spinner {
        width: 60px;
        height: 60px;
    }

    .spinner::after {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }

    .loading-text {
        font-size: 18px;
    }

    .progress-container {
        width: 250px;
    }

    .main-content h1 {
        font-size: 2rem;
    }

    .main-content p {
        font-size: 1rem;
        padding: 0 20px;
    }
}
