/* ================================================
   Globe Hero Layout - Routivate
   ================================================ */

/* Split hero layout: text left, globe right */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-split-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.hero-split-text .hero-buttons {
  justify-content: flex-start;
}

.hero-split-globe {
  flex: 0 0 auto;
  width: 480px;
  max-width: 45vw;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Globe canvas */
#globe-canvas,
canvas[data-globe] {
  display: block;
  border-radius: 50%;
  background: transparent;
  filter: drop-shadow(0 0 40px rgba(30, 89, 204, 0.4));
  transition: filter 0.4s ease;
}

#globe-canvas:hover,
canvas[data-globe]:hover {
  filter: drop-shadow(0 0 60px rgba(82, 159, 241, 0.55));
}

/* Globe hint label */
.globe-hint {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: rgba(160, 160, 160, 0.6);
  white-space: nowrap;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* Loading shimmer for globe area */
.globe-loader {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 89, 204, 0.08) 0%, rgba(3, 9, 20, 0.6) 70%);
  border: 1px solid rgba(30, 89, 204, 0.2);
  animation: globePulse 2s ease-in-out infinite;
}

@keyframes globePulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(30, 89, 204, 0.2);
  }

  50% {
    box-shadow: 0 0 50px rgba(30, 89, 204, 0.45);
  }
}

/* Centered hero (for pages that keep center layout but add globe as decoration) */
.hero-center-globe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-center-globe .hero-split-globe {
  width: 380px;
  max-width: 85vw;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-split-globe {
    width: 380px;
    max-width: 40vw;
  }
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .hero-split-text {
    text-align: center;
  }

  .hero-split-text .hero-buttons {
    justify-content: center;
  }

  .hero-split-globe {
    width: 280px;
    max-width: 80vw;
    order: -1;
    /* globe on top on mobile */
  }

  .globe-loader {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-split-globe {
    width: 240px;
  }

  .globe-loader {
    width: 240px;
    height: 240px;
  }
}