/* ==========================================================================
   Hero: .globe-scene + #hacker-boxes
   HTML: index.html:151
   ========================================================================== */

.globe-scene {
  position: absolute;
  top: 55%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; /* Ocupa quase toda a largura sem tocar nas bordas */
  aspect-ratio: 1 / 1;
  max-width: 550px; /* Teto para não ficar gigante em telas 4K */
  max-height: 80%; /* Garante que não corte no topo/base */
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}

#globe-canvas {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.6));
}

#hacker-boxes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10; /* Aumentado para garantir que os boxes fiquem na frente */
}

.hacker-label {
  position: absolute;
  opacity: 0;
  z-index: 20;
  transition: transform 0.3s ease;
}

.hacker-label:hover {
  transform: translateY(-5px) scale(1.05);
}

.mini-terminal {
  background: #000 !important; /* Fundo preto sólido solicitado */
  border: 1px solid #fff;
  border-radius: 6px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: none;
  width: fit-content;
  min-width: 150px;
}

.mini-header {
  background: #000 !important;
  padding: 8px 12px;
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #fff;
}

.m-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}

.mini-header .m-dot:nth-child(1) { background: #ff5f56; }
.mini-header .m-dot:nth-child(2) { background: #ffbd2e; }
.mini-header .m-dot:nth-child(3) { background: #27c93f; }

.mini-body {
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #000 !important;
}

.mini-icon {
  width: 40px;
  height: 40px;
  stroke: #00ff41;
  stroke-width: 1.5px;
}

.mini-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #444;
  text-transform: uppercase;
}
/* ========================================================================== */
/* Distancimento em relação ao globo */
/* ========================================================================== */

.label-code {
  top: 10%;
  left: -20%;
}

.label-video {
  top: 50%;
  right: -20%;
  transform: translateY(-50%);
}

.label-marketing {
  bottom: 11%;
  left: 40%;
  transform: translateX(-50%);
}

/* ==========================================================================
   Mobile Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .globe-scene {
    width: 85% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 300px !important;
    max-height: none !important;
  }

  #globe-canvas {
    filter: drop-shadow(0 0 15px rgba(0, 255, 65, 0.4));
  }

  .hacker-label {
    transform: scale(0.7); /* Labels menores no mobile */
  }

  .label-code {
    top: 5%;
    left: -15%;
  }

  .label-video {
    top: 45%;
    right: -15%;
  }

  .label-marketing {
    bottom: 5%;
    left: 50%;
  }
}
