/* ===== Globe Hero Section ===== */
.globe-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1b2a 40%, #1b2838 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 48px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.globe-hero-content {
    position: relative;
    z-index: 10;
    max-width: 55%;
    text-align: left;
}

.globe-hero-content .hero-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6ec1e4;
    background: rgba(110, 193, 228, 0.1);
    border: 1px solid rgba(110, 193, 228, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.globe-hero-content .hero-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 12px 0;
    font-family: 'Libre Baskerville', Georgia, serif;
}

.globe-hero-content .hero-title span {
    color: #6ec1e4;
}

.globe-hero-content .hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.globe-hero-canvas-wrap {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    pointer-events: auto;
}

.globe-hero-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 0.8s ease;
    cursor: grab;
    contain: layout paint size;
}

.globe-hero-canvas-wrap canvas:active {
    cursor: grabbing;
}

/* Soft glow behind globe */
.globe-hero-canvas-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(110, 193, 228, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ===== Fallback state (CDN import failed or network unavailable) ===== */
/* When JS adds .globe-fallback, show a static globe-like illustration   */
.globe-hero-canvas-wrap.globe-fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 38%, rgba(110,193,228,0.28) 0%, transparent 55%),
        radial-gradient(circle at 62% 62%, rgba(44,114,79,0.18) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(110,193,228,0.10) 0%, rgba(13,27,42,0.85) 70%);
    border: 1px solid rgba(110,193,228,0.18);
    box-shadow: 0 0 40px rgba(110,193,228,0.12);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .globe-hero {
        flex-direction: column;
        padding: 32px 24px;
        min-height: 460px;
        text-align: center;
    }

    .globe-hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .globe-hero-content .hero-title {
        font-size: 22px;
    }

    .globe-hero-canvas-wrap {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .globe-hero {
        padding: 24px 16px;
        min-height: 340px;
        justify-content: center;
    }

    .globe-hero-content .hero-title {
        font-size: 18px;
    }

    .globe-hero-content .hero-subtitle {
        font-size: 13px;
    }

    /* On small screens keep the canvas-wrap present but compact;
       the fallback ::after pseudo-element fills it if JS/WebGL fails */
    .globe-hero-canvas-wrap {
        width: 180px;
        height: 180px;
        min-height: 180px;
    }

    /* Ensure fallback is always visible on mobile even without the class */
    .globe-hero-canvas-wrap canvas {
        min-height: 180px;
    }
}