/* Globe Section Styles */
:root {
  --globe-green: 0 34 90;
  --globe-green-hex: #00225A;
  --globe-ink: #00225A;
  --globe-paper: #FFFFFF;
}

.globe-section {
  position: relative;
  width: 100%;
  height: 800px;
  background: var(--globe-paper);
  color: var(--globe-ink);
  overflow: hidden;
  margin-bottom: 0;
}

#globe-stage {
  position: absolute;
  inset: 0;
}

#globe-stage svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#globe-stage svg:active {
  cursor: grabbing;
}

.globe-masthead {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 10;
  max-width: 450px;
  text-align: left;
  pointer-events: none;
}

.globe-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--globe-green));
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.globe-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(var(--globe-green));
  box-shadow: 0 0 12px rgb(var(--globe-green) / 0.8), 0 0 24px rgb(var(--globe-green) / 0.5);
  animation: globePulse 1.8s ease-in-out infinite;
}

@keyframes globePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.globe-title {
  font-family: 'Fraunces', serif, 'Times New Roman', serif;
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.globe-title em {
  font-style: normal;
  color: rgb(var(--globe-green));
}

.globe-sub {
  font-size: 13px;
  line-height: 1.55;
  color: #3a4a3c;
  max-width: 360px;
}

.globe-countries {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 36px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 310px;
}

.globe-cc {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(var(--globe-green) / 0.28);
  border-left: 2px solid rgb(var(--globe-green));
  border-radius: 4px;
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.globe-cc.active {
  border-left-width: 4px;
  transform: translateX(-4px);
}

.globe-cc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.globe-flag {
  font-size: 24px;
  line-height: 1;
}

.globe-cc-name {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.globe-cc-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--globe-green));
  margin-top: 3px;
}

.globe-cc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.globe-v {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 26px;
  color: rgb(var(--globe-green));
  line-height: 1;
  letter-spacing: -0.02em;
}

.globe-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a4a3c;
  margin-top: 8px;
  line-height: 1.25;
}

.globe-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgb(var(--globe-green));
  z-index: 50;
  background: var(--globe-paper);
  text-transform: uppercase;
}

.globe-loading.hide {
  display: none;
}

.globe-loading .lb {
  display: flex;
  align-items: center;
  gap: 12px;
}

.globe-loading .lb::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgb(var(--globe-green));
  box-shadow: 0 0 16px rgb(var(--globe-green));
  animation: globePulse 1s infinite;
}

/* Globe SVG styling */
.sphere {
  fill: url(#oceanGradient);
}

.graticule {
  fill: none;
  stroke: rgba(50, 80, 40, 0.08);
  stroke-width: 0.6;
}

.country {
  fill: rgba(80, 120, 60, 0.22);
  stroke: rgba(40, 70, 30, 0.55);
  stroke-width: 0.5;
  transition: fill 0.3s;
}

.country.highlight {
  fill: rgba(0, 34, 90, 0.85);
  stroke: rgba(0, 34, 90, 0.9);
  stroke-width: 1;
  filter: drop-shadow(0 0 8px rgba(0, 34, 90, 0.8));
}

.atmos {
  fill: url(#atmosGradient);
  pointer-events: none;
}

.arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

.city-dot {
  fill: white;
  stroke: #ffffff;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

.city-pulse {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1;
}

.country-label {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  fill: var(--globe-ink);
  paint-order: stroke;
  stroke: rgba(232, 241, 226, 0.85);
  stroke-width: 3;
  stroke-linejoin: round;
}

.country-leader {
  stroke: rgba(60, 110, 30, 0.7);
  stroke-width: 1;
  fill: none;
}

.underline {
  stroke: rgb(var(--globe-green));
  stroke-width: 2;
}

@keyframes cityPulse {
  0% {
    r: 4;
    opacity: 1;
  }
  100% {
    r: 14;
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .globe-section {
    height: 500px;
  }

  .globe-countries {
    position: static;
    transform: none;
    width: 100%;
    margin: 20px;
    padding: 20px;
  }

  .globe-masthead {
    position: static;
    max-width: 100%;
    padding: 20px;
    pointer-events: all;
  }
}
