html, body.explore-depth-page {
    overflow-x: hidden !important;
    max-width: 100vw;
}
html.lock-scroll, body.explore-depth-page.lock-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

@media (max-width: 767px) {
    body.explore-depth-page {
        padding-bottom: 100px !important;
    }
}

/* UI Overlays */
.depth-indicator, .region-indicator, .mission-indicator {
    position: fixed;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 10px 20px;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    color: #fff;
    font-weight: 600;
}

.depth-indicator {
    top: 110px;
    right: 30px;
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.region-indicator {
    top: 110px;
    left: 30px;
    font-size: 1.2rem;
}

.mission-indicator {
    bottom: 30px;
    left: 30px;
    font-size: 1rem;
    border-color: #ffaa00;
    color: #ffaa00;
}

.discovery-ui {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 200px;
    z-index: 100;
    text-align: right;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    transition: width 0.3s ease;
}

.discovery-count {
    color: #fff;
    font-size: 0.9rem;
}

.discovery-notification {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.2), rgba(0, 85, 255, 0.2));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--primary-cyan);
    border-radius: 15px;
    padding: 15px 30px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.discovery-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.discovery-notification h4 {
    color: #fff;
    margin-bottom: 5px;
}

.discovery-notification p {
    color: var(--primary-cyan);
    font-weight: bold;
}

/* No custom scroll container — uses native body scroll */

/* Zones */
.zone {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: background-color 1s ease;
}

/* Spacing logic - each zone is tall */
.zone-content {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.zone-info-btn {
    pointer-events: auto;
    background: var(--glass-bg);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0,240,255,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-top: 20px;
}
.zone-info-btn:hover {
    box-shadow: 0 0 25px var(--primary-cyan);
    transform: scale(1.05);
    background: rgba(0,240,255,0.1);
}

.zone-title {
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    color: var(--primary-cyan);
    text-shadow: 0 0 15px var(--primary-cyan);
    margin-bottom: 10px;
    pointer-events: auto;
}

/* Center Line */
.center-line {
    position: fixed;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 50;
    transform: translateX(-50%);
    pointer-events: none;
}
.line-glow {
    position: absolute; top: 0; left: 0; width: 100%;
    background: var(--primary-cyan);
    box-shadow: 0 0 15px var(--primary-cyan);
    height: 0%;
}
.mini-submarine {
    position: absolute; top: 0; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    background: #ffaa00; border-radius: 50%;
    box-shadow: 0 0 15px #ffaa00;
}

/* Flashlight */
.flashlight {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 40;
    background: radial-gradient(circle 200px at 50% 50%, transparent 0%, rgba(0,0,0,0.98) 100%);
    opacity: 0; transition: opacity 1s ease;
}

/* Creatures */
.creatures {
    position: absolute; width: 100%; height: 100%;
    pointer-events: none; top: 0; left: 0;
}
.creature {
    position: absolute;
    pointer-events: auto; cursor: pointer;
    transition: all 0.3s ease;
    animation: float 6s infinite ease-in-out;
}
.creature img {
    width: 150px; height: 150px; object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.5s ease;
}
.creature:hover {
    transform: scale(1.1);
}
.creature:hover img {
    filter: grayscale(100%) drop-shadow(0 0 15px rgba(255,255,255,0.4)) opacity(0.8);
}
.creature.discovered img {
    filter: drop-shadow(0 0 25px var(--primary-cyan)) drop-shadow(0 0 10px #fff) brightness(1.2) !important;
}

.trash {
    position: absolute; font-size: 2rem;
    pointer-events: auto; cursor: pointer;
    transition: all 0.3s ease;
    animation: float 8s infinite ease-in-out reverse;
}
.trash:hover { transform: scale(1.2); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Popups are styled globally in style.css */

/* Ambient Container for bubbles and particles */
#ambient-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 992px) {
    .depth-indicator {
        top: 85px;
        right: 20px;
        font-size: 1.3rem;
    }
    .region-indicator {
        top: 85px;
        left: 20px;
        font-size: 1.1rem;
    }
    .mission-indicator {
        bottom: 25px;
        left: 20px;
        font-size: 0.9rem;
    }
    .discovery-ui {
        bottom: 25px;
        right: 20px;
        width: 170px;
    }
}

@media (max-width: 767px) {
    .region-indicator {
        display: none !important;
    }
    
    .depth-indicator {
        top: 75px;
        right: 15px;
        font-size: 1.1rem;
        padding: 6px 12px;
        border-radius: 12px;
    }
    
    .mission-indicator {
        bottom: 145px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 360px !important;
        text-align: center !important;
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
    }
    
    .discovery-ui {
        bottom: 85px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 360px !important;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 8px 15px !important;
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    }
    
    .discovery-notification {
        top: 85px;
        padding: 10px 20px;
    }

    .center-line {
        top: 60px !important;
        bottom: 70px !important;
        width: 1px !important;
    }

    .mini-submarine {
        width: 14px !important;
        height: 14px !important;
        box-shadow: 0 0 10px #ffaa00 !important;
    }

    .creature img {
        width: 80px !important;
        height: 80px !important;
    }

    .trash {
        font-size: 1.3rem !important;
    }

    .zone-title {
        font-size: 1.6rem !important;
        text-align: center;
        padding: 0 15px;
    }

    .zone-info-btn {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
        margin-top: 15px;
    }

    .flashlight {
        background: radial-gradient(circle 120px at 50% 50%, transparent 0%, rgba(0,0,0,0.98) 100%) !important;
    }
}

@media (max-width: 576px) {
    .zone-title {
        font-size: 1.3rem !important;
    }
    .mission-indicator {
        max-width: calc(100vw - 160px) !important;
    }
}

/* -------------------------------------------------------------
   NEW SCENE LAYOUT & CINEMATIC TRANSITIONS
   ------------------------------------------------------------- */

/* Scenes */
.scene {
    position: relative;
    width: 100%;
    overflow: hidden;
}


#dynamic-zones {
    position: relative;
    width: 100%;
    min-height: 500vh;
}

.zone {
    position: relative;
    width: 100%;
    overflow: visible;
}

.hero-island-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    z-index: 10;
    flex-shrink: 0;
    overflow: hidden; /* Ensure nothing spills out of the hero section */
}

@media (max-width: 768px) {
    .hero-island-section {
        height: 100dvh;
        min-height: 100dvh;
    }
}

/* Dark overlay for text readability on bright island images */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15), rgba(0,0,0,0.65));
    z-index: 6;
    pointer-events: none;
}

.intro-sky {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, var(--sky-color-top, #0a1f33) 0%, var(--sky-color-bottom, #005588) 100%);
    z-index: 1;
}

.intro-bg-layered {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;
    will-change: transform;
}

#intro-bg-back {
    transform: scale(1.05);
    filter: brightness(0.85) contrast(1.1) saturate(1.1) blur(0.5px);
    z-index: 2;
}

#intro-bg-front {
    z-index: 3;
    filter: brightness(0.95) contrast(1.15) saturate(1.15);
}

.ocean-surface {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 140px;
    z-index: 5;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0; left: 0; width: 200%; height: 100%;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    transform-origin: center bottom;
}

.wave-1 {
    background-image: linear-gradient(to top, rgba(0, 20, 50, 0.95), rgba(0, 240, 255, 0.25));
    animation: wave-move 12s linear infinite;
    z-index: 5;
    opacity: 0.8;
}

.wave-2 {
    background-image: linear-gradient(to top, rgba(0, 11, 24, 1), rgba(0, 150, 255, 0.15));
    animation: wave-move 8s linear infinite reverse;
    z-index: 6;
    height: 85%;
    opacity: 0.9;
}

@keyframes wave-move {
    0% { transform: translateX(0) translateZ(0) scaleY(1); }
    50% { transform: translateX(-25%) translateZ(0) scaleY(1.08); }
    100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

.intro-clouds {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 4;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.cloud-1 {
    width: 350px; height: 120px;
    top: 15%; left: -10%;
    animation: float-cloud 45s linear infinite;
}

.cloud-2 {
    width: 250px; height: 80px;
    top: 25%; right: -5%;
    animation: float-cloud 35s linear infinite reverse;
    opacity: 0.7;
}

.cloud-3 {
    width: 400px; height: 150px;
    top: 8%; left: 30%;
    animation: float-cloud 55s linear infinite;
    opacity: 0.5;
}

@keyframes float-cloud {
    0% { transform: translateX(-100px); }
    50% { transform: translateX(100px); }
    100% { transform: translateX(-100px); }
}

.intro-content {
    position: relative;
    z-index: 8;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
}

.intro-title {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 30px var(--region-glow, rgba(0, 240, 255, 0.6)), 0 4px 15px rgba(0, 0, 0, 0.95);
    animation: pulse-glow 3s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { text-shadow: 0 0 15px var(--region-glow, rgba(0, 240, 255, 0.4)), 0 4px 15px rgba(0, 0, 0, 0.95); }
    100% { text-shadow: 0 0 35px var(--region-glow, rgba(0, 240, 255, 0.8)), 0 0 10px #fff, 0 4px 20px rgba(0, 0, 0, 1); }
}

.intro-cinematic-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00f0ff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 2px 10px rgba(0, 0, 0, 0.98), 0 0 15px rgba(0, 240, 255, 0.5);
}

.intro-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #e0f7fa;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 3px 12px rgba(0, 0, 0, 0.98), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.scroll-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    animation: pulse-scroll 2s infinite;
}

@keyframes pulse-scroll {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(8px); }
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.mouse-icon .wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.6s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 6px; }
    50% { opacity: 0.3; top: 18px; }
    100% { opacity: 0; top: 22px; }
}

.prompt-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.intro-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 7;
}

/* Transition Scene */
#transition-scene {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0, 11, 24, 0.95) 0%, rgba(0, 10, 30, 1) 100%);
}

.transition-bubbles-container {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
}

.transition-message {
    position: relative;
    z-index: 3;
    text-align: center;
}

.dive-text {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-cyan);
    text-shadow: 0 0 15px var(--primary-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: glow-text 2s ease-in-out infinite alternate;
}

@keyframes glow-text {
    0% { opacity: 0.5; text-shadow: 0 0 5px var(--primary-cyan); }
    100% { opacity: 1; text-shadow: 0 0 25px var(--primary-cyan), 0 0 10px #fff; }
}

/* Fixed Transition Overlays */
#dive-blur-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    z-index: 14;
    transition: backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease;
}

#dive-transition-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000b18;
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#dive-water-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.18) 0%, rgba(0, 8, 20, 0.95) 100%);
    pointer-events: none;
    z-index: 16;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Region-specific Atmosphere Styles */
.theme-raja-ampat {
    --sky-color-top: #0d3855;
    --sky-color-bottom: #0088aa;
    --region-glow: rgba(0, 240, 255, 0.7);
}

.theme-laut-banda {
    --sky-color-top: #060914;
    --sky-color-bottom: #1a153b;
    --region-glow: rgba(140, 80, 255, 0.7);
}

.theme-laut-jawa {
    --sky-color-top: #0a2533;
    --sky-color-bottom: #3b5b66;
    --region-glow: rgba(255, 170, 0, 0.7);
}

.theme-laut-sulawesi {
    --sky-color-top: #052636;
    --sky-color-bottom: #00aa88;
    --region-glow: rgba(0, 255, 170, 0.7);
}

.theme-laut-flores {
    --sky-color-top: #0a101b;
    --sky-color-bottom: #4a2222;
    --region-glow: rgba(255, 80, 80, 0.7);
}

.theme-laut-natuna {
    --sky-color-top: #0c2b45;
    --sky-color-bottom: #0a738c;
    --region-glow: rgba(0, 210, 255, 0.7);
}

.theme-laut-arafura {
    --sky-color-top: #0f1c24;
    --sky-color-bottom: #2b454f;
    --region-glow: rgba(0, 180, 200, 0.7);
}

.theme-laut-maluku {
    --sky-color-top: #0b1424;
    --sky-color-bottom: #1d3354;
    --region-glow: rgba(80, 150, 255, 0.7);
}

/* Premium Atmospheric Shimmer & Caustics */
.caustics {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 80%),
                conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,0.05) 0deg, transparent 90deg, rgba(255,255,255,0.05) 180deg, transparent 270deg, rgba(255,255,255,0.05) 360deg);
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: caustic-shimmer 12s linear infinite;
    z-index: 0;
}

@keyframes caustic-shimmer {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); opacity: 0.35; }
    50% { transform: scale(1.15) translate(1%, 2%) rotate(180deg); opacity: 0.65; }
    100% { transform: scale(1) translate(0, 0) rotate(360deg); opacity: 0.35; }
}

/* Reverse Ascension Bubbles */
@keyframes transition-bubble-sink {
    0% { transform: translateY(-20vh) scale(1) translateX(0); opacity: 0; }
    5% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(120vh) scale(1.4) translateX(var(--drift, 50px)); opacity: 0; }
}

/* Ultrawide Monitor Optimization for HUD */
@media (min-width: 1440px) {
    .depth-indicator {
        right: calc((100vw - 1300px) / 2 + 30px) !important;
    }
    .region-indicator {
        left: calc((100vw - 1300px) / 2 + 30px) !important;
    }
    .mission-indicator {
        left: calc((100vw - 1300px) / 2 + 30px) !important;
    }
    .discovery-ui {
        right: calc((100vw - 1300px) / 2 + 30px) !important;
    }
}

/* Ambient Background Bubbles & Bioluminescent Plankton */
.particle {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45) 0%, rgba(0, 240, 255, 0.08) 70%, rgba(0, 240, 255, 0.45) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.15), inset 0 0 5px rgba(255,255,255,0.3);
    animation-name: ambient-bubble-rise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    pointer-events: none;
    will-change: transform;
    opacity: 0.55;
    z-index: 1;
}

/* Make alternate particles render as glowing bioluminescent plankton */
.particle:nth-child(2n) {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.8) 0%, rgba(0, 80, 255, 0.2) 75%, transparent 100%);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
    border: none;
}

@keyframes ambient-bubble-rise {
    0% { transform: translateY(0) scale(0.7) translateX(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-120vh) scale(1.15) translateX(45px); opacity: 0; }
}

/* Mobile Performance Optimization for Ambient Elements */
@media (max-width: 768px) {
    .particle {
        opacity: 0.35;
        filter: none !important; /* Disable heavy CSS blur repaints on mobile */
    }
    .particle:nth-child(3n) {
        display: none !important; /* Hide 1/3 of the bubbles to reduce DOM workload */
    }
}

/* Submersible Loader UI */
.submersible-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, #001228 0%, #00050f 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}
.submersible-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.submersible-loader .glass-card {
    background: rgba(0, 11, 24, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(0, 240, 255, 0.25);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 460px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 35px rgba(0, 240, 255, 0.15);
}
.loader-scanner {
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.8), transparent);
    animation: scanLine 2.2s linear infinite;
}
@keyframes scanLine {
    0% { transform: translateY(0); top: 0; }
    50% { transform: translateY(100%); top: 100%; }
    100% { transform: translateY(0); top: 0; }
}
.loader-sub-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6));
    animation: pulseSub 2.2s ease-in-out infinite;
}
@keyframes pulseSub {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}
.loader-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.loader-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}
.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00b7ff, #00f0ff);
    box-shadow: 0 0 12px #00f0ff;
    border-radius: 3px;
    transition: width 0.15s ease-out;
}
.loader-status {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    min-height: 20px;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Tagline text style */
.intro-cinematic-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-cyan);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 25px;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    animation: pulseTagline 4s ease-in-out infinite alternate;
}
@keyframes pulseTagline {
    0% { opacity: 0.7; text-shadow: 0 0 8px rgba(0, 240, 255, 0.3); }
    100% { opacity: 1; text-shadow: 0 0 16px rgba(0, 240, 255, 0.7); }
}

/* Underwater Entry Simulation Dimmer Overlay */
#dive-overlay-dimmer {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(180deg, rgba(0, 5, 15, 0) 0%, rgba(0, 11, 24, 0) 50%, rgba(0, 110, 255, 0) 100%);
    pointer-events: none;
    z-index: 98;
    mix-blend-mode: multiply;
    transition: background 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#dive-overlay-dimmer.active {
    background: linear-gradient(180deg, rgba(0, 5, 15, 0.95) 0%, rgba(0, 11, 24, 0.98) 60%, rgba(0, 29, 64, 0.95) 100%);
}

#dive-overlay-tint {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 240, 255, 0);
    pointer-events: none;
    z-index: 97;
    mix-blend-mode: color-burn;
    transition: background 2.5s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 2.5s ease;
}
#dive-overlay-tint.active {
    background: rgba(0, 180, 255, 0.45);
    backdrop-filter: blur(2px) contrast(1.1);
}

.dive-distorted {
    animation: diveDistortion 2.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes diveDistortion {
    0% { filter: none; }
    50% { filter: blur(1.5px) contrast(1.15) saturate(1.2) skewY(0.5deg) scale(1.02); }
    100% { filter: blur(3.5px) contrast(1.3) saturate(1.4) skewY(1.2deg) scale(1.06); }
}

/* Glassmorphic Surface Dive Button */
.surface-dive-btn {
    position: relative;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 30px;
    padding: 12px 35px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 10;
    margin-top: 15px;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.surface-dive-btn:hover {
    background: rgba(0, 240, 255, 0.18);
    border-color: rgba(0, 240, 255, 0.8);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.45), inset 0 0 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.03);
}

.surface-dive-btn:active {
    transform: translateY(1px) scale(0.98);
}

.surface-dive-btn .btn-glow {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,240,255,0.2) 0%, transparent 70%);
    pointer-events: none;
    transform: scale(0.5);
    transition: transform 0.5s ease;
}

.surface-dive-btn:hover .btn-glow {
    transform: scale(1);
}

/* Navbar transition */
.navbar {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   SECTION 2 — BUBBLE TRANSITION SECTION
   Visual bridge between Hero Island and Underwater World.
   Scroll through bubbles to descend into the ocean.
   ============================================================ */

.bubble-transition-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Deep ocean gradient from surface to abyss */
    background: linear-gradient(180deg,
        #000b18 0%,
        #002244 15%,
        #0077b6 35%,
        #023e8a 60%,
        #03045e 80%,
        #000d1a 100%
    );
}

/* Top edge blender — fades from the hero's dark ocean bottom */
.bubble-transition-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%;
    height: 25%;
    background: linear-gradient(180deg, #000b18 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

/* Bottom edge blender — fades into the underwater section color */
.bubble-transition-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    height: 25%;
    background: linear-gradient(0deg, #003b5c 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

/* Background tint that deepens as this section enters view */
.bubble-section-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 11, 24, 0.6) 0%,
        rgba(0, 100, 180, 0.3) 30%,
        rgba(2, 62, 138, 0.5)  55%,
        rgba(0, 13, 26, 0.85) 100%
    );
    z-index: 1;
}

/* Bubble video fills the section naturally */
.bubble-video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0.75;
    pointer-events: none;
}

/* Ambient CSS bubbles live inside the section */
.transition-bubbles-container {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

/* Depth-darkening vignette overlay on top of video */
.bubble-section-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background:
        radial-gradient(ellipse at center, transparent 20%, rgba(0, 5, 20, 0.5) 100%),
        linear-gradient(180deg, transparent 0%, rgba(0, 5, 20, 0.4) 100%);
    pointer-events: none;
}

/* ── Underwater exploration section ── */
#underwater-exploration-scene {
    position: relative;
    width: 100%;
    min-height: 500vh;
    overflow: visible !important;
    /* Top color matches bubble section bottom for seamless join */
    background: linear-gradient(180deg,
        #003b5c 0%,
        #006994 8%,
        #003b5c 40%,
        #001d2e 100%
    );
}

/* ── Fixed-UI transition for HUD elements ── */
.fixed-ui {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
.fixed-ui.show {
    opacity: 1;
    pointer-events: auto;
}

/* Smooth Depth Indicator & Points */
html { scroll-behavior: smooth; }
.depth-point {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 55;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.depth-point.active {
    background: #ffaa00;
    box-shadow: 0 0 15px #ffaa00;
    transform: translate(-50%, -50%) scale(1.6);
}
.depth-point-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}
.depth-point.active .depth-point-label {
    opacity: 1;
    color: #ffaa00;
    transform: translateY(-50%) translateX(5px);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}
.depth-indicator {
    transition: top 0.1s linear; /* Smoothly follow the lerped indicator */
}

