/* =========================================
   PREMIUM LOADING OVERLAY - PORTHOLE CONCEPT
   ========================================= */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 20, 40, 0.95); /* Deep Corporate Blue/Black */
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    color: white;
    font-family: 'Outfit', sans-serif;
}

.loading-overlay.active {
    display: flex;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Porthole Container */
.porthole-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    /* Realistic Window Frame border */
    border: 12px solid #e0e0e0;
    background: linear-gradient(to bottom, #4facfe 0%, #00f2fe 100%); /* Bright sky gradient */
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 
        inset 5px 5px 15px rgba(0,0,0,0.2), /* Inner depth */
        0 0 0 4px #c0c0c0, /* Outer rim details */
        0 0 30px rgba(0, 102, 204, 0.3); /* Outer glow */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clouds Track */
.clouds-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%; /* Triple width for seamless loop */
    height: 100%;
    display: flex;
    align-items: center;
    animation: flightSpeed 4s linear infinite; /* Rapid movement */
}

.cloud {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 40px;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.1));
}

.c1 { transform: scale(1.0) translateY(-10px); }
.c2 { transform: scale(1.3) translateY(20px); opacity: 0.9; }
.c3 { transform: scale(0.9) translateY(-25px); opacity: 0.7; }

/* Plane Center */
.plane-center {
    font-size: 3.5rem;
    color: #fff;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); /* Shadow on "ground"/clouds */
    animation: bobbing 2s ease-in-out infinite;
}

/* Text Styling */
.loader-content {
    text-align: center;
    max-width: 600px;
    padding: 0 1rem;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    background: linear-gradient(90deg, #fff, #a5c9ff, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 3s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes flightSpeed {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move left half-way (seamless if repeated) */
}

@keyframes bobbing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shineText {
    to { background-position: 200% center; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .porthole-container {
        width: 140px;
        height: 140px;
        border-width: 8px; /* Slightly thinner frame */
    }

    .plane-center {
        font-size: 2.5rem; /* Smaller plane */
    }

    .cloud {
        font-size: 2rem; /* Smaller clouds */
    }

    .loader-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}
