/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Airplane Window Container */
.airplane-window-outer {
    position: relative;
    width: 300px;
    height: 400px; /* Vertically long */
    overflow: hidden;
    border-radius: 80px;
    background: #e0e0e0; /* Initial frame-like background */
    border: 10px solid #ccc; /* Frame-like border */
}

/* Video Overlay (Window Inner) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit; /* Inherit border-radius from parent */
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Intro Airplane */
.intro-airplane {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(260px, 42vw, 520px);
    height: auto;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

/* Clouds */
.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    opacity: 0;
}

.cloud:before {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud:after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud1 {
    width: 80px;
    height: 40px;
    top: 20%;
    left: -100px;
    animation: float1 10s infinite linear;
}

.cloud1:before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud1:after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud2 {
    width: 60px;
    height: 30px;
    top: 60%;
    left: -80px;
    animation: float2 8s infinite linear;
    animation-delay: 2s;
}

.cloud2:before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 5px;
}

.cloud2:after {
    width: 50px;
    height: 30px;
    top: -10px;
    right: 5px;
}

@keyframes float1 {
    0% { left: -100px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 350px; opacity: 0; }
}

@keyframes float2 {
    0% { left: -80px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 330px; opacity: 0; }
}

/* Main Content */
.main-content {
    opacity: 0;
    visibility: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .airplane-window-outer {
        width: 225px;
        height: 300px;
    }

    .intro-airplane {
        width: min(68vw, 300px);
    }
}
