* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    overflow: hidden;
    height: 100vh;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-screen {
    position: relative;
    text-align: center;
    color: white;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 4s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
    animation-duration: 5s;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle:nth-child(4) {
    bottom: 20%;
    right: 30%;
    animation-delay: 3s;
    animation-duration: 4.5s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 10%;
    animation-delay: 1.5s;
    animation-duration: 5.5s;
}

.particle:nth-child(6) {
    top: 60%;
    right: 10%;
    animation-delay: 2.5s;
    animation-duration: 4s;
}

.particle:nth-child(7) {
    top: 10%;
    left: 50%;
    animation-delay: 0.5s;
    animation-duration: 6s;
}

.particle:nth-child(8) {
    bottom: 10%;
    right: 50%;
    animation-delay: 3.5s;
    animation-duration: 5s;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.spinner-container {
    position: relative;
}

.spinner {
    width: 80px;
    height: 80px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top: 3px solid #00d4ff;
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(2) {
    border-right: 3px solid #0099cc;
    animation-duration: 2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    border-bottom: 3px solid #66e0ff;
    animation-duration: 2.5s;
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
}

.loading-text {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 300px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff 0%, #0099cc 50%, #66e0ff 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.progress-text {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.main-content {
    padding: 50px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4ff, #66e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.main-content p {
    font-size: 18px;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-out {
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    100% { 
        opacity: 0; 
        transform: scale(0.9);
    }
}

@media (max-width: 768px) {
    .spinner {
        width: 60px;
        height: 60px;
    }
    
    .spinner-ring:nth-child(3) {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
    }
    
    .loading-text {
        font-size: 24px;
    }
    
    .progress-container {
        width: 250px;
    }
    
    .main-content h1 {
        font-size: 36px;
    }
}