/* ============================================
   LOADING SCREEN FIXES
   ============================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    /* Prevents distortion */
    border-radius: 50%;
    /* Circular if desired, or remove */
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00a8ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00a8ff, #8b5cf6);
    animation: loading 1s ease-in-out infinite;
    transform-origin: left;
}

@keyframes loading {
    0% {
        transform: scaleX(0);
    }

    50% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(0, 168, 255, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
    }
}