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

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

.loading-logo {
    margin-bottom: 2rem;
}

.loading-logo h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-logo p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    letter-spacing: 2px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 2rem;
    font-size: 1rem;
    opacity: 0.9;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Hide body content until loaded */
body.loading {
    overflow: hidden;
}

body.loading .navbar,
body.loading main,
body.loading section,
body.loading footer {
    opacity: 0;
}
