
/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: #ffffff;
}

.loading-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    position: relative;
    animation: logoFloat 2s ease-in-out infinite alternate;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.loading-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 140px;
    height: 140px;
    border: 3px solid transparent;
    border-top: 3px solid #00ff88;
    border-right: 3px solid #00ccff;
    border-radius: 50%;
    animation: ringRotate 1.5s linear infinite;
}

.loading-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.loading-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ccff, #00ff88);
    background-size: 200% 100%;
    border-radius: 20px;
    width: 0%;
    animation: progressAnimation 3s ease-in-out, gradientMove 2s linear infinite;
}

.loading-text {
    font-size: 1rem;
    color: #00ff88;
    font-weight: 500;
    margin-top: 1rem;
}

.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    opacity: 0.7;
    animation: particleFloat 4s linear infinite;
}

.particle:nth-child(2n) {
    background: #00ccff;
    animation-duration: 5s;
}

.particle:nth-child(3n) {
    width: 2px;
    height: 2px;
    animation-duration: 6s;
}

/* Animations */
@keyframes logoFloat {
    from {
        transform: translateY(-10px);
    }
    to {
        transform: translateY(10px);
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.9));
    }
}

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

@keyframes progressAnimation {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loading-logo {
        width: 80px;
        height: 80px;
    }
    
    .loading-ring {
        width: 100px;
        height: 100px;
        top: -10px;
        left: -10px;
    }
    
    .loading-title {
        font-size: 2rem;
    }
    
    .loading-subtitle {
        font-size: 1rem;
    }
    
    .loading-progress {
        width: 250px;
    }
}
