/* HERO STYLES - CORRIGIDO PARA OCUPAR 100% DA ALTURA */
.hero {
  padding-top: 0;
  margin-top: 80px; /* Compensa o header fixo */
  position: relative;
  min-height: calc(100vh - 80px); /* Altura total menos header */
  height: calc(100vh - 80px); /* FORÇA a altura exata */
  display: flex;
  align-items: center;
  background: 
    linear-gradient(
      rgba(11, 15, 23, 0.85),
      rgba(11, 15, 23, 0.75)
    ),
    url('../images/hero-background.jpg')
    center / cover no-repeat;
  overflow: hidden; /* Remove qualquer espaço extra */
}

/* Overlay adicional para melhor contraste */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(
      ellipse at 80% 50%,
      rgba(0, 229, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(124, 255, 196, 0.1) 0%,
      transparent 40%
    );
  z-index: -1;
}

/* SISTEMA 3D DE LINHAS INTERATIVAS - CORRIGIDO PARA HERO INTEIRO */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto; /* Permite interação com mouse */
}

/* SE você estiver usando particles.js, adicione também: */
.particles-js-canvas-el {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

.network-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 
    0 0 10px var(--primary),
    0 0 20px rgba(0, 229, 255, 0.5);
  transform: translateZ(0);
  transition: all 0.3s ease;
  pointer-events: none; /* Nós não interagem diretamente */
}

.network-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--primary) 50%, 
    transparent 100%);
  transform-origin: left center;
  pointer-events: none; /* Linhas não interagem */
  opacity: 0.3;
  transition: all 0.5s ease;
}

/* Efeitos de interação com mouse */
.hero:hover .network-node {
  animation: nodePulse 2s ease-in-out infinite;
}

.hero:hover .network-line {
  opacity: 0.6;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Efeito de repulsão quando o mouse se aproxima */
.node-hover {
  transform: scale(1.8) !important; /* Aumentado */
  background: var(--accent) !important;
  box-shadow: 
    0 0 20px var(--accent),
    0 0 40px rgba(124, 255, 196, 0.8) !important;
  transition: all 0.2s ease !important;
}

.line-hover {
  opacity: 1 !important;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--accent) 50%, 
    transparent 100%) !important;
  box-shadow: 0 0 20px rgba(124, 255, 196, 0.6) !important;
  height: 2px !important;
  transition: all 0.3s ease !important;
}

@keyframes nodePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Efeito de profundidade 3D */
.network-node:nth-child(3n) {
  background: var(--accent);
  box-shadow: 
    0 0 8px var(--accent),
    0 0 16px rgba(124, 255, 196, 0.4);
}

.network-node:nth-child(5n) {
  background: #ff6b6b;
  box-shadow: 
    0 0 8px #ff6b6b,
    0 0 16px rgba(255, 107, 107, 0.4);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 2; /* Acima do canvas */
  width: 100%;
  height: 100%; /* Ocupa toda a altura do hero */
}

/* CONTEÚDO PRINCIPAL */
.hero-content {
  padding-left: 10px;
  text-align: left;
}

.hero-content h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
  margin-left: -80px;
}

.subtitle {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 24px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  margin-left: -80px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  margin-left: -80px;
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-tags li:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}

.gradient-edge {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
  margin-top: 24px;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* ========== RESPONSIVIDADE ========== */

/* DESKTOP LARGE (1200px+) */
@media (min-width: 1200px) {
  .hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
  }
  
  .hero-content {
    padding-left: 30px;
  }
  
  .hero-content h1 {
    font-size: 64px;
  }
  
  .hero-grid {
    gap: 60px;
  }
}

/* DESKTOP MEDIUM (900px - 1199px) */
@media (min-width: 900px) and (max-width: 1199px) {
  .hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-content {
    padding-left: 20px;
  }
  
  .hero-content h1 {
    font-size: 56px;
  }
  
  .subtitle {
    font-size: 20px;
  }
}

/* TABLET LANDSCAPE (768px - 899px) */
@media (max-width: 899px) and (min-width: 768px) {
  .hero {
    margin-top: 75px;
    min-height: calc(100vh - 75px);
    height: calc(100vh - 75px);
  }
  
  .hero-content {
    padding-left: 15px;
    text-align: left;
  }
  
  .hero-content h1 {
    font-size: 48px;
    margin-left: -40px;
  }
  
  .subtitle {
    font-size: 18px;
    margin-left: -40px;
  }
  
  .hero-actions {
    margin-left: -40px;
  }
}

/* TABLET PORTRAIT (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
  .hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    height: calc(100vh - 70px);
  }
  
  .hero-content {
    padding-left: 15px;
    text-align: left;
  }
  
  .hero-content h1 {
    font-size: 42px;
    margin-left: -20px;
    line-height: 1.2;
  }
  
  .subtitle {
    font-size: 18px;
    margin-left: -20px;
  }
  
  .hero-actions {
    margin-left: -20px;
  }
  
  /* Reduzir efeitos visuais para performance */
  .network-node {
    width: 4px;
    height: 4px;
  }
}

/* MOBILE LARGE (480px - 599px) */
@media (max-width: 599px) and (min-width: 481px) {
  .hero {
    margin-top: 65px;
    min-height: calc(100vh - 65px);
    height: calc(100vh - 65px);
  }
  
  .hero-content {
    padding-left: 10px;
    text-align: left;
  }
  
  .hero-content h1 {
    font-size: 36px;
    margin-left: 0;
    line-height: 1.2;
  }
  
  .subtitle {
    font-size: 17px;
    margin-left: 0;
    margin-bottom: 20px;
  }
  
  .hero-actions {
    margin-left: 0;
    gap: 12px;
  }
  
  .hero-actions .btn {
    height: 50px;
    font-size: 15px;
  }
  
  .hero-tags {
    gap: 8px;
  }
  
  .hero-tags li {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* Reduzir ainda mais efeitos para mobile */
  .network-node {
    width: 3px;
    height: 3px;
  }
  
  .hero-canvas {
    opacity: 0.4;
  }
}

/* MOBILE SMALL (até 480px) */
@media (max-width: 480px) {
  .hero {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    height: calc(100vh - 60px);
    padding: 20px 0;
  }
  
  .hero-content {
    padding-left: 10px;
    text-align: left;
  }
  
  .hero-content h1 {
    font-size: 32px;
    margin-left: 0;
    line-height: 1.15;
    margin-bottom: 12px;
  }
  
  .subtitle {
    font-size: 16px;
    margin-left: 0;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  
  .hero-actions {
    margin-left: 0;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .hero-actions .btn {
    height: 48px;
    font-size: 15px;
    padding: 0 20px;
    min-width: 140px;
  }
  
  .hero-tags {
    gap: 8px;
    justify-content: flex-start;
  }
  
  .hero-tags li {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .gradient-edge {
    margin-top: 20px;
  }
  
  /* Desativar efeitos pesados em mobile pequeno */
  .network-node,
  .network-line {
    display: none;
  }
  
  .hero-canvas {
    opacity: 0.3;
  }
}

/* MOBILE MUITO PEQUENO (até 360px) */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 28px;
  }
  
  .subtitle {
    font-size: 15px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
  
  .hero-tags {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-tags li {
    width: 100%;
    text-align: center;
  }
}

/* ORIENTAÇÃO LANDSCAPE PARA MOBILE */
@media (max-height: 600px) and (max-width: 768px) {
  .hero {
    min-height: auto;
    height: auto;
    padding: 60px 0 40px;
  }
  
  .hero-content h1 {
    font-size: 32px !important;
    margin-bottom: 12px !important;
  }
  
  .subtitle {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }
  
  .hero-actions {
    margin-bottom: 20px;
  }
  
  .hero-actions .btn {
    height: 44px;
    font-size: 14px;
  }
  
  .hero-tags {
    margin-top: 20px;
  }
  
  .hero-tags li {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ACESSIBILIDADE - REDUÇÃO DE MOVIMENTO */
@media (prefers-reduced-motion: reduce) {
  .hero-canvas,
  .network-node,
  .network-line {
    animation: none !important;
    transition: none !important;
  }
  
  .hero:hover .network-node,
  .hero:hover .network-line {
    animation: none !important;
  }
}

/* MELHORIAS DE PERFORMANCE PARA DISPOSITIVOS MÓVEIS */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* Remove parallax em mobile */
  }
}

/* GARANTIR QUE O CONTAINER OCUPE TODA A ALTURA */
.hero .container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

/* RESET DE MARGENS E PADDINGS QUE PODEM CAUSAR ESPAÇOS */
.hero * {
  box-sizing: border-box;
}

/* Adicione esta animação se não existir */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}