/* ============================================
   PREMIUM DIGITAL GLOBE HERO SECTION
   ============================================ */

/* ---- Hero Section Layout ---- */
.hero-earth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* ---- Deep Space Background ---- */
.hero-space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at 70% 50%, #0a0e27 0%, #050710 40%, #020204 100%);
}

.hero-nebula-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(122, 0, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 65% 20%, rgba(0, 100, 200, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.04) 0%, transparent 40%);
    animation: hero-nebula-shift 25s ease-in-out infinite alternate;
}

@keyframes hero-nebula-shift {
    0% { transform: scale(1) translate(0, 0); opacity: 1; }
    50% { transform: scale(1.05) translate(-10px, 5px); opacity: 0.85; }
    100% { transform: scale(1.02) translate(5px, -8px); opacity: 1; }
}

.hero-stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-light-beam {
    position: absolute;
    top: -20%;
    right: 5%;
    width: 600px;
    height: 140%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 215, 0, 0.015) 20%,
        rgba(255, 215, 0, 0.03) 40%,
        rgba(255, 200, 0, 0.02) 60%,
        transparent 100%
    );
    transform: rotate(-15deg);
    pointer-events: none;
    animation: beam-pulse 8s ease-in-out infinite alternate;
}

@keyframes beam-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ---- Earth System (right side) ---- */
.hero-earth-system {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 750px;
    height: 750px;
    z-index: 1;
    will-change: transform;
}

/* ---- Orbit Rings ---- */
.earth-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.06);
    transform: translate(-50%, -50%);
    animation: orbit-ring-pulse 6s ease-in-out infinite;
    pointer-events: none;
}

.orbit-ring-1 {
    width: 110%;
    height: 110%;
    border-color: rgba(255, 215, 0, 0.08);
    animation-delay: 0s;
}

.orbit-ring-2 {
    width: 130%;
    height: 130%;
    border-color: rgba(255, 215, 0, 0.05);
    animation-delay: -2s;
    border-style: dashed;
}

.orbit-ring-3 {
    width: 155%;
    height: 155%;
    border-color: rgba(255, 215, 0, 0.03);
    animation-delay: -4s;
}

@keyframes orbit-ring-pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.02); }
}

/* ---- Floating Satellites ---- */
.floating-satellite {
    position: absolute;
    z-index: 5;
    will-change: transform;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
    opacity: 0;
    animation: sat-appear 1s ease-out forwards;
}

.floating-satellite svg rect {
    fill: rgba(255, 215, 0, 0.8);
}

.floating-satellite svg rect:nth-child(2),
.floating-satellite svg rect:nth-child(3) {
    fill: rgba(255, 200, 0, 0.6);
}

.sat-1 {
    top: 12%;
    left: 25%;
    animation-delay: 1.8s;
    animation-name: sat-appear, sat-float-1;
    animation-duration: 1s, 18s;
    animation-timing-function: ease-out, ease-in-out;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
    animation-delay: 1.8s, 2.8s;
}

.sat-2 {
    top: 70%;
    left: 15%;
    animation-delay: 2.2s;
    animation-name: sat-appear, sat-float-2;
    animation-duration: 1s, 22s;
    animation-timing-function: ease-out, ease-in-out;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
    animation-delay: 2.2s, 3.2s;
}

.sat-3 {
    top: 30%;
    left: 5%;
    animation-delay: 2.5s;
    animation-name: sat-appear, sat-float-3;
    animation-duration: 1s, 15s;
    animation-timing-function: ease-out, ease-in-out;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
    animation-delay: 2.5s, 3.5s;
}

@keyframes sat-appear {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes sat-float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, -30px) rotate(-3deg); }
    75% { transform: translate(20px, -10px) rotate(4deg); }
}

@keyframes sat-float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, 15px) rotate(-4deg); }
    50% { transform: translate(10px, 25px) rotate(3deg); }
    75% { transform: translate(-15px, 10px) rotate(-5deg); }
}

@keyframes sat-float-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(12px, -18px) rotate(6deg); }
    66% { transform: translate(-8px, 12px) rotate(-4deg); }
}

/* ---- Three.js Globe Canvas Container ---- */
.earth-threejs-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.earth-threejs-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
}

/* ---- Earth Viewport (Clipped) — CSS FALLBACK ---- */
.earth-viewport {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    border-radius: 50%;
    overflow: hidden;
    will-change: transform;
}

.earth-viewport.threejs-active {
    display: none;
}

/* ---- Globe Glow Effects ---- */
.earth-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 670px;
    height: 670px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    box-shadow:
        0 0 80px 25px rgba(255, 215, 0, 0.1),
        0 0 160px 60px rgba(255, 215, 0, 0.05),
        0 0 240px 100px rgba(255, 180, 0, 0.02);
    animation: glow-ring-breathe 5s ease-in-out infinite alternate;
}

@keyframes glow-ring-breathe {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

.earth-glow-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 215, 0, 0.06) 40%,
        rgba(255, 215, 0, 0.03) 55%,
        transparent 70%
    );
    pointer-events: none;
    animation: glow-outer-breathe 5s ease-in-out infinite alternate;
}

@keyframes glow-outer-breathe {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.earth-glow-atmosphere {
    position: absolute;
    top: -3%;
    left: -3%;
    width: 106%;
    height: 106%;
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 40%,
        transparent 45%,
        rgba(255, 215, 0, 0.1) 55%,
        rgba(255, 200, 0, 0.06) 65%,
        rgba(255, 180, 0, 0.03) 75%,
        transparent 85%
    );
    pointer-events: none;
    z-index: 4;
}

.earth-glow-rim {
    position: absolute;
    top: -1%;
    left: -1%;
    width: 102%;
    height: 102%;
    border-radius: 50%;
    box-shadow:
        inset -30px 0 60px -20px rgba(255, 215, 0, 0.2),
        inset -10px 0 30px -10px rgba(255, 200, 0, 0.1),
        0 0 80px 20px rgba(255, 215, 0, 0.06),
        0 0 150px 50px rgba(255, 180, 0, 0.03);
    pointer-events: none;
    z-index: 5;
}

/* ---- Earth Sphere (CSS Fallback — Digital Style) ---- */
.earth-sphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    will-change: transform;
    animation: earth-spin 60s linear infinite;
    opacity: 0;
    transform: scale(0.6);
    background: radial-gradient(circle at 35% 35%, rgba(255, 215, 0, 0.08) 0%, transparent 60%);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.earth-sphere.earth-entered {
    animation: earth-entry 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, earth-spin 60s linear infinite;
    animation-delay: 0.3s, 1.7s;
}

@keyframes earth-entry {
    0% {
        opacity: 0;
        transform: scale(0.6) translateX(80px);
    }
    60% {
        opacity: 1;
        transform: scale(1.04) translateX(-5px);
    }
    80% {
        transform: scale(0.98) translateX(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes earth-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* CSS Fallback Surface Layer — Digital Grid */
.earth-surface-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 49px,
            rgba(255, 215, 0, 0.06) 49px,
            rgba(255, 215, 0, 0.06) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 49px,
            rgba(255, 215, 0, 0.06) 49px,
            rgba(255, 215, 0, 0.06) 50px
        );
    animation: surface-scroll 60s linear infinite;
}

.earth-surface-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 15% 35%, rgba(255, 215, 0, 0.25) 0%, transparent 12%),
        radial-gradient(ellipse at 18% 42%, rgba(255, 215, 0, 0.2) 0%, transparent 8%),
        radial-gradient(ellipse at 40% 25%, rgba(255, 215, 0, 0.2) 0%, transparent 14%),
        radial-gradient(ellipse at 42% 35%, rgba(255, 215, 0, 0.25) 0%, transparent 10%),
        radial-gradient(ellipse at 45% 50%, rgba(255, 215, 0, 0.2) 0%, transparent 18%),
        radial-gradient(ellipse at 60% 60%, rgba(255, 215, 0, 0.2) 0%, transparent 16%),
        radial-gradient(ellipse at 78% 55%, rgba(255, 215, 0, 0.2) 0%, transparent 20%),
        radial-gradient(ellipse at 82% 62%, rgba(255, 215, 0, 0.15) 0%, transparent 12%);
}

@keyframes surface-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Earth Cloud Layer — data particles in CSS fallback */
.earth-cloud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 25%, rgba(255, 215, 0, 0.15) 0%, transparent 3%),
        radial-gradient(circle at 30% 60%, rgba(255, 215, 0, 0.12) 0%, transparent 2%),
        radial-gradient(circle at 50% 20%, rgba(255, 215, 0, 0.18) 0%, transparent 3%),
        radial-gradient(circle at 65% 45%, rgba(255, 215, 0, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.15) 0%, transparent 3%),
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.12) 0%, transparent 2%),
        radial-gradient(circle at 45% 75%, rgba(255, 215, 0, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 70% 15%, rgba(255, 215, 0, 0.14) 0%, transparent 2.5%),
        radial-gradient(circle at 90% 40%, rgba(255, 215, 0, 0.12) 0%, transparent 2%),
        radial-gradient(circle at 5% 55%, rgba(255, 215, 0, 0.1) 0%, transparent 1.5%);
    animation: cloud-scroll 45s linear infinite;
    opacity: 0.8;
    z-index: 2;
}

@keyframes cloud-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Specular Highlight — golden sheen */
.earth-specular-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 30% 35%,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 200, 0, 0.03) 30%,
        transparent 60%
    );
    z-index: 3;
    pointer-events: none;
}

/* ---- Hero Content (left side) ---- */
.hero-earth-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-content-inner {
    max-width: 580px;
}

.hero-earth-section .hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.hero-earth-section .hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 0 36px 0;
    line-height: 1.75;
}

.hero-earth-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #ffd700;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-earth-section .hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* ---- Trust Badges ---- */
.hero-trust-badges {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.trust-info {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--electric-blue);
    line-height: 1.2;
}

.trust-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.trust-divider {
    width: 1px;
    height: 36px;
    background: var(--glass-border);
}

/* ---- Scroll Indicator ---- */
.hero-earth-section .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    animation: fade-in-up 1s ease 2.5s both;
}

/* ---- Hero Mini Stars ---- */
.hero-star-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(230, 241, 255, 0.8);
    pointer-events: none;
    animation: star-twinkle 3s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   RESPONSIVE - HERO GLOBE
   ============================================ */
@media (max-width: 1200px) {
    .hero-earth-system {
        width: 600px;
        height: 600px;
        right: -15%;
    }

    .earth-viewport,
    .earth-threejs-container {
        width: 520px;
        height: 520px;
    }

    .earth-glow-ring {
        width: 540px;
        height: 540px;
    }
}

@media (max-width: 1024px) {
    .hero-earth-system {
        width: 500px;
        height: 500px;
        right: -20%;
    }

    .earth-viewport,
    .earth-threejs-container {
        width: 430px;
        height: 430px;
    }

    .earth-glow-ring {
        width: 450px;
        height: 450px;
    }

    .hero-content-inner {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero-earth-section {
        flex-direction: column;
        min-height: auto;
        padding-top: 0;
    }

    .hero-earth-content {
        order: 2;
        padding: 40px 24px 80px;
        min-height: auto;
        text-align: center;
        align-items: flex-start;
        justify-content: center;
    }

    .hero-content-inner {
        max-width: 100%;
    }

    .hero-earth-section .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-earth-section .hero-buttons {
        justify-content: center;
    }

    .hero-trust-badges {
        justify-content: center;
    }

    .hero-earth-system {
        position: relative;
        order: 1;
        top: auto;
        right: auto;
        transform: none;
        width: 320px;
        height: 320px;
        margin: 100px auto 0;
    }

    .earth-viewport,
    .earth-threejs-container {
        width: 280px;
        height: 280px;
    }

    .earth-glow-ring {
        width: 300px;
        height: 300px;
    }

    .earth-orbit-ring {
        display: none;
    }

    .floating-satellite {
        display: none;
    }

    .hero-light-beam {
        display: none;
    }

    .hero-earth-section .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-earth-system {
        width: 260px;
        height: 260px;
        margin-top: 90px;
    }

    .earth-viewport,
    .earth-threejs-container {
        width: 230px;
        height: 230px;
    }

    .earth-glow-ring {
        width: 248px;
        height: 248px;
    }

    .hero-earth-content {
        padding: 24px 16px 60px;
    }

    .hero-earth-section .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-earth-section .hero-buttons .btn-glow,
    .hero-earth-section .hero-buttons .btn-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .trust-divider {
        display: none;
    }

    .hero-trust-badges {
        gap: 16px;
    }
}

/* ---- Light Theme Adjustments ---- */
body.light-theme .hero-space-bg {
    background: radial-gradient(ellipse at 70% 50%, #e8eef5 0%, #dde5ee 40%, #d0dae6 100%);
}

body.light-theme .hero-nebula-layer {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(122, 0, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 65% 20%, rgba(0, 100, 200, 0.04) 0%, transparent 40%);
}

body.light-theme .hero-light-beam {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 180, 0, 0.03) 30%,
        rgba(255, 200, 0, 0.05) 50%,
        transparent 100%
    );
}

body.light-theme .earth-glow-outer {
    background: radial-gradient(
        circle,
        rgba(255, 180, 0, 0.05) 40%,
        rgba(255, 200, 0, 0.02) 55%,
        transparent 70%
    );
}

body.light-theme .earth-glow-rim {
    box-shadow:
        inset -30px 0 60px -20px rgba(255, 180, 0, 0.15),
        0 0 60px 15px rgba(255, 180, 0, 0.04);
}

body.light-theme .earth-glow-ring {
    box-shadow:
        0 0 60px 15px rgba(255, 180, 0, 0.04),
        0 0 120px 40px rgba(255, 180, 0, 0.02);
}

body.light-theme .earth-orbit-ring {
    border-color: rgba(255, 180, 0, 0.06);
}

body.light-theme .hero-star-particle {
    background: rgba(100, 120, 160, 0.4);
}

body.light-theme .hero-earth-section .hero-badge {
    background: rgba(255, 180, 0, 0.1);
    border-color: rgba(255, 180, 0, 0.3);
    color: #b8860b;
}