/* ===== Globe Section ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body { background: #010208; }

.globe-section {
  --mx: 0;
  --my: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, #0b1433 0%, transparent 70%),
    radial-gradient(ellipse at 50% 120%, #1a0b2e 0%, transparent 60%),
    #010208;
}

/* full-size WebGL scene */
.gs-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.gs-scene.is-ready { opacity: 1; }
.gs-scene.is-dragging { cursor: grabbing; }

/* soft drifting nebula clouds behind the 3D scene */
.gs-nebula {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  translate: calc(var(--mx) * -30px) calc(var(--my) * -30px);
  transition: translate 0.8s ease-out;
}
.gs-nebula--1 {
  width: 50vmax; height: 50vmax;
  background: radial-gradient(circle, #1e40af, transparent 65%);
  top: -20vmax; left: -15vmax;
  animation: gs-drift-1 26s ease-in-out infinite alternate;
}
.gs-nebula--2 {
  width: 45vmax; height: 45vmax;
  background: radial-gradient(circle, #7e22ce, transparent 65%);
  bottom: -20vmax; right: -12vmax;
  animation: gs-drift-2 30s ease-in-out infinite alternate;
}
.gs-nebula--3 {
  width: 30vmax; height: 30vmax;
  background: radial-gradient(circle, #0e7490, transparent 65%);
  top: 55%; left: 8%;
  animation: gs-drift-3 22s ease-in-out infinite alternate;
}
@keyframes gs-drift-1 { to { transform: translate(10vw, 8vh) scale(1.15); } }
@keyframes gs-drift-2 { to { transform: translate(-10vw, -10vh) scale(1.1); } }
@keyframes gs-drift-3 { to { transform: translate(15vw, -15vh) scale(0.85); } }

.gs-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
}

/* small loading ring while textures download */
.gs-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.gs-loader span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.15);
  border-top-color: #38bdf8;
  animation: gs-spin 0.9s linear infinite;
}
.gs-loader.is-hidden { opacity: 0; }
@keyframes gs-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .gs-nebula { animation: none; }
}
