/* =============================================
   SCROLL ANIMATIONS - Dedicated Styles
   Great Ocean Road & Airport Transfer animations
   ============================================= */

/* =============================================
   GREAT OCEAN ROAD ANIMATION
   ============================================= */

.gor-scroll-section {
    height: 400vh; /* 4x viewport for scroll length */
    position: relative;
}

.gor-scroll-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.gor-scene {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        #87CEEB 0%, 
        #B0E0E6 40%, 
        #5B8A9A 70%, 
        #3D6A7A 100%
    );
}

/* Sky elements */
.gor-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
}

.gor-sun {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, 
        #FFD700 0%, 
        #FFA500 40%, 
        rgba(255, 165, 0, 0.3) 60%, 
        transparent 70%
    );
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.5);
}

.gor-cloud {
    position: absolute;
    opacity: 0.9;
    animation: floatCloud 30s linear infinite;
}

.cloud-1 { top: 12%; left: 10%; animation-duration: 35s; }
.cloud-2 { top: 18%; left: 45%; animation-duration: 28s; animation-delay: -10s; }
.cloud-3 { top: 8%; left: 75%; animation-duration: 40s; animation-delay: -20s; }

@keyframes floatCloud {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

/* Ocean */
.gor-ocean {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(180deg, 
        rgba(91, 138, 154, 0.8) 0%, 
        #2E5A6B 50%,
        #1E3A4B 100%
    );
    overflow: hidden;
}

.gor-wave {
    position: absolute;
    width: 200%;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 Q150,20 300,60 T600,60 T900,60 T1200,60 L1200,120 L0,120 Z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    background-size: 600px 30px;
    animation: waveMove 8s linear infinite;
}

.wave-1 { bottom: 60%; opacity: 0.3; animation-duration: 10s; }
.wave-2 { bottom: 40%; opacity: 0.2; animation-duration: 8s; animation-delay: -2s; }
.wave-3 { bottom: 20%; opacity: 0.15; animation-duration: 6s; animation-delay: -4s; }

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Landscape container that moves */
.gor-landscape {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 400%;
    height: 45%;
    transition: transform 0.1s linear;
}

.gor-cliffs {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gor-road {
    position: absolute;
    bottom: 25%;
    left: 0;
    width: 100%;
    height: 40%;
}

/* Twelve Apostles */
.gor-apostles {
    position: absolute;
    bottom: 45%;
    right: 8%;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.apostle {
    background: linear-gradient(180deg, #C9A962 0%, #8B7355 100%);
    border-radius: 40% 40% 5% 5%;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.3);
}

.apostle.a1 { width: 18px; height: 50px; }
.apostle.a2 { width: 25px; height: 70px; }
.apostle.a3 { width: 15px; height: 40px; }
.apostle.a4 { width: 30px; height: 85px; }
.apostle.a5 { width: 20px; height: 55px; }
.apostle.a6 { width: 22px; height: 65px; }

/* Landmarks */
.gor-landmark {
    position: absolute;
    bottom: 75%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.gor-landmark.active {
    opacity: 1;
}

.landmark-marker {
    width: 12px;
    height: 12px;
    background: #C9A962;
    border-radius: 50%;
    margin: 0 auto 8px;
    box-shadow: 0 0 10px rgba(201, 169, 98, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(201, 169, 98, 0.8); }
    50% { transform: scale(1.2); box-shadow: 0 0 20px rgba(201, 169, 98, 1); }
}

.gor-landmark span {
    display: block;
    background: rgba(44, 44, 44, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Car */
.gor-car-container {
    position: absolute;
    bottom: 28%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.gor-car {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
    animation: carBounce 0.3s ease-in-out infinite;
}

@keyframes carBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.wheel-dust {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 10px;
    background: radial-gradient(ellipse, rgba(139, 115, 85, 0.4), transparent);
    opacity: 0;
    animation: dustPuff 0.5s ease-out infinite;
}

.left-dust { left: 15px; animation-delay: 0.1s; }
.right-dust { right: 35px; animation-delay: 0.25s; }

@keyframes dustPuff {
    0% { opacity: 0.6; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(2) translateY(5px); }
}

/* Progress info */
.gor-progress-info {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 44, 44, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    text-align: center;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.progress-location {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #C9A962;
    margin-bottom: 10px;
}

.progress-bar-container {
    width: 200px;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #C9A962, #E8B86D);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-distance {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Scroll prompt */
.gor-scroll-prompt {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 20;
    animation: fadeInOut 2s ease-in-out infinite;
}

.gor-scroll-prompt p {
    font-size: 0.875rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.gor-scroll-prompt svg {
    animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* =============================================
   AIRPORT ANIMATION
   ============================================= */

.airport-scroll-section {
    height: 400vh;
    position: relative;
}

.airport-scroll-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.airport-scene {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        #0a0a1a 0%, 
        #1a1a2e 30%, 
        #16213e 60%, 
        #1e3a5f 100%
    );
}

/* Sky */
.airport-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.airport-moon {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, 
        #FFFACD 0%, 
        #F0E68C 50%, 
        #DAA520 100%
    );
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 250, 205, 0.4);
}

/* City skyline */
.city-skyline {
    position: absolute;
    bottom: 30%;
    left: 0;
    width: 100%;
    height: 20%;
}

.skyline-svg {
    width: 100%;
    height: 100%;
}

/* Ground */
.airport-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, #2D2D2D 0%, #1a1a1a 100%);
}

/* Terminal */
.terminal-building {
    position: absolute;
    bottom: 40%;
    right: 10%;
    width: 200px;
}

.terminal-roof {
    height: 15px;
    background: linear-gradient(180deg, #4A4A4A 0%, #3D3D3D 100%);
    border-radius: 5px 5px 0 0;
}

.terminal-body {
    height: 80px;
    background: linear-gradient(180deg, #3D3D3D 0%, #2D2D2D 100%);
    padding: 10px;
}

.terminal-windows-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.terminal-window {
    width: 20px;
    height: 25px;
    background: #FFE4B5;
    border-radius: 2px;
    opacity: 0.8;
    animation: windowFlicker 4s ease-in-out infinite;
}

.terminal-window:nth-child(even) {
    animation-delay: -2s;
}

@keyframes windowFlicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.5; }
}

.terminal-sign {
    text-align: center;
    color: #C9A962;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Control tower */
.control-tower {
    position: absolute;
    bottom: 40%;
    left: 15%;
}

.tower-cabin {
    width: 50px;
    height: 25px;
    background: #3D3D3D;
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tower-light-beacon {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #FF4444;
    border-radius: 50%;
    animation: beaconBlink 1s infinite;
    box-shadow: 0 0 10px #FF4444;
}

@keyframes beaconBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.tower-shaft {
    width: 20px;
    height: 70px;
    background: linear-gradient(180deg, #4A4A4A 0%, #3D3D3D 100%);
    margin: 0 auto;
}

/* Runway */
.runway {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 25%;
}

.runway-surface {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #2a2a2a;
    border-radius: 3px;
}

.runway-centerline {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 3px;
    background: repeating-linear-gradient(90deg, 
        #FFF 0px, #FFF 30px, 
        transparent 30px, transparent 50px
    );
    transform: translateY(-50%);
}

.runway-threshold {
    position: absolute;
    left: 2%;
    top: 20%;
    width: 15px;
    height: 60%;
    background: repeating-linear-gradient(180deg, 
        #FFF 0px, #FFF 8px, 
        transparent 8px, transparent 12px
    );
}

.runway-lights {
    position: absolute;
    bottom: 55px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
}

.runway-light {
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    animation: runwayLightBlink 1s infinite;
    box-shadow: 0 0 8px #FFD700;
}

.runway-light:nth-child(even) {
    animation-delay: 0.5s;
}

@keyframes runwayLightBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.approach-lights {
    position: absolute;
    bottom: 80px;
    left: -10%;
    display: flex;
    gap: 30px;
}

.approach-light {
    width: 6px;
    height: 6px;
    background: #FF4444;
    border-radius: 50%;
    animation: approachBlink 0.5s infinite;
    box-shadow: 0 0 10px #FF4444;
}

.approach-light:nth-child(1) { animation-delay: 0s; }
.approach-light:nth-child(2) { animation-delay: 0.1s; }
.approach-light:nth-child(3) { animation-delay: 0.2s; }
.approach-light:nth-child(4) { animation-delay: 0.3s; }
.approach-light:nth-child(5) { animation-delay: 0.4s; }

@keyframes approachBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Waiting car */
.airport-car {
    position: absolute;
    bottom: 30%;
    left: 20%;
    opacity: 0.7;
    transition: all 0.5s ease;
}

.airport-car.active {
    opacity: 1;
    left: 35%;
}

.car-headlights {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 20px;
    background: radial-gradient(ellipse at left, 
        rgba(255, 215, 0, 0.6), 
        transparent 70%
    );
    opacity: 0;
}

.airport-car.active .car-headlights {
    opacity: 1;
}

/* Airplane */
.airplane-container {
    position: absolute;
    z-index: 10;
    transition: all 0.05s linear;
}

.airplane-svg {
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.engine-trail {
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.3), 
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.left-trail {
    bottom: 45%;
    right: 100%;
}

.right-trail {
    bottom: 35%;
    right: 100%;
}

.airplane-container.flying .engine-trail {
    opacity: 1;
}

.airplane-container.landing .landing-gear {
    opacity: 1;
}

.airplane-container.landing .landing-light {
    opacity: 1;
    animation: landingLightFlash 0.3s infinite;
}

@keyframes landingLightFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.airplane-container.landed .plane-shadow {
    opacity: 0.4;
}

/* Progress info */
.airport-progress-info {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 15px;
    color: white;
    text-align: center;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 1px solid rgba(201, 169, 98, 0.3);
}

.flight-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-icon {
    font-size: 1.25rem;
}

.status-text {
    font-weight: 600;
    color: #C9A962;
}

.altitude-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.altitude-label {
    font-size: 0.75rem;
    opacity: 0.7;
}

.altitude-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.altitude-unit {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Scroll prompt */
.airport-scroll-prompt {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 20;
    animation: fadeInOut 2s ease-in-out infinite;
}

.airport-scroll-prompt p {
    font-size: 0.875rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.airport-scroll-prompt svg {
    animation: bounceDown 1.5s ease-in-out infinite;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

@media (max-width: 768px) {
    .gor-car-container {
        bottom: 25%;
    }
    
    .gor-car {
        width: 80px;
    }
    
    .gor-progress-info,
    .airport-progress-info {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .progress-bar-container {
        width: 150px;
    }
    
    .airplane-svg {
        width: 120px;
    }
    
    .terminal-building {
        width: 120px;
        right: 5%;
    }
    
    .tower-shaft {
        height: 50px;
    }
}
