/*
  animation-3d.css
  Styles for the #network-animation-3d component (Three.js / WebGL version).
  The renderer resizes itself to fill this container (see ResizeObserver
  in animation-3d.js) — only host sizing lives here.
*/

#network-animation-3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

#network-animation-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  touch-action: none;
}

#network-animation-3d canvas:active {
  cursor: grabbing;
}

/* Small "drag to rotate" affordance, fades out after first interaction. */
#network-animation-3d .na3d-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  color: rgba(180, 245, 250, 0.55);
  text-transform: uppercase;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.2s ease;
  white-space: nowrap;
}

#network-animation-3d .na3d-hint.na3d-hint-hidden {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  #network-animation-3d .na3d-hint {
    display: none;
  }
}



.na3d-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 420px;
}

@media (min-width: 768px) {
  .na3d-frame {
    height: 480px;
  }
}

/* Halo flou qui déborde derrière la carte — évite un bord dur entre
     le fond clair du hero et la carte sombre. */
.na3d-frame::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: transparent !important;
  /* background: radial-gradient(circle, rgba(255, 122, 61, 0.25) 0%, rgba(255, 122, 61, 0) 70%); */
  filter: blur(30px);
  z-index: -1;
}

.na3d-card {
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  /* rounded-3xl */
  overflow: hidden;
  background: #0a0a0f;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.35);
}

.na3d-square {
  aspect-ratio: 1 / 1;
}