/* ==========================================================================
   Cinematic 3D Geography Quiz Preloader — Sunrise Coaching Centre
   Clean Animated Text Drop from Top, Full Screen WebGL Earth
   ========================================================================== */

#geo-3d-preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    background: #020617;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 24px 16px;
    user-select: none;
    -webkit-user-select: none;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

#geo-3d-preloader.geo-preloader-hidden {
    opacity: 0 !important;
    transform: scale(1.05) !important;
    pointer-events: none !important;
}

/* Background 3D Canvas */
#geo-canvas-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#geo-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Radial Vignette */
.geo-vignette-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 35%, rgba(2, 6, 23, 0.45) 70%, rgba(2, 6, 23, 0.9) 100%);
    pointer-events: none;
}

/* Center Content: Animated Text Drop from Top */
.geo-center-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 760px;
    width: 100%;
    pointer-events: none;
    margin-top: -60px; /* Positioned nicely above the Earth center */
    animation: geoDropInFromTop 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

@keyframes geoDropInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-90px) scale(0.92);
        filter: blur(10px);
    }
    60% {
        opacity: 1;
        transform: translateY(6px) scale(1.015);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.geo-pre-tag {
    display: inline-block;
    font-size: clamp(11px, 2.2vw, 13px);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #38bdf8;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 5px 16px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
    margin-bottom: 12px;
}

.geo-main-title {
    margin: 0;
    line-height: 1.15;
    text-transform: uppercase;
}

.geo-title-small {
    display: block;
    font-size: clamp(17px, 3.5vw, 26px);
    font-weight: 800;
    letter-spacing: 2px;
    color: #bae6fd;
    text-shadow: 0 2px 15px rgba(2, 132, 199, 0.6);
    margin-bottom: 4px;
}

.geo-title-large {
    display: block;
    font-size: clamp(34px, 7vw, 66px);
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #cffafe 45%, #38bdf8 75%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(56, 189, 248, 0.6));
}

.geo-hindi-subtitle {
    font-size: clamp(14px, 2.7vw, 20px);
    font-weight: 700;
    color: #e0f2fe;
    letter-spacing: 0.8px;
    margin-top: 14px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .geo-center-content {
        margin-top: -80px;
        padding: 0 12px;
    }
    .geo-pre-tag {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 4px 12px;
        margin-bottom: 8px;
    }
    .geo-title-small {
        font-size: 15px;
        letter-spacing: 1.5px;
    }
    .geo-title-large {
        font-size: 32px;
        letter-spacing: 1.8px;
    }
    .geo-hindi-subtitle {
        font-size: 13.5px;
        margin-top: 10px;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #geo-3d-preloader {
        transition: opacity 0.25s ease !important;
    }
    .geo-center-content {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
