/* =====================================================
   VARiABLES
===================================================== */
:root {
  --blue: #0d1b26;
  --blue-light: #1a3247;
  --gold: #f4a836;
  --bg: #0a0f14;
  --card: #111820;
  --text: #e8eef2;
  --white: #ffffff;
}

/* =====================================================
   RESET / BASE
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
  background: var(--blue-light);
  padding: 15px 0;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box img {
  width: 42px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* =====================================================
   HERO – PCB
===================================================== */
.hero-services {
  position: relative;
  min-height: 60vh;          
  background: var(--card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.pcb-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.pcb-svg path {
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 12 16;
  opacity: 0.9;
}

.pcb-svg circle {
  fill: var(--gold);
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(244,168,54,.9));
  animation: via-pulse 3.5s ease-in-out infinite;
}

@keyframes via-pulse {
  0%   { transform: scale(0.9); opacity: 0.5; }
  50%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}
.hero-content {
  pointer-events: none;
}

.hero-block {
  position: absolute;
  left: 80px;
  top: 70px;
  width: 520px;
  height: 160px;
}

.hero-content h1 {
  font-size: 46px;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
}

/* =====================================================
   SVG PCB – FUNDO ANIMADO
===================================================== */

.pcb-svg path:nth-of-type(1) { animation-duration: 2.4s; }
.pcb-svg path:nth-of-type(2) { animation-duration: 3s; }
.pcb-svg path:nth-of-type(3) { animation-duration: 2.8s; }
.pcb-svg path:nth-of-type(4) { animation-duration: 3.4s; }
.pcb-svg path:nth-of-type(5) { animation-duration: 3.1s; }
.pcb-svg path:nth-of-type(6) { animation-duration: 2.9s; }

/* =====================================================
   ANIMAÇÕES
===================================================== */
@keyframes pcb-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -360; }
}

@keyframes via-pulse {
  0%   { opacity: 0.4; }
  50%  { opacity: 1; }
  100% { opacity: 0.4; }
}

/* =====================================================
   GRID DE SERVIÇOS
===================================================== */
.services-grid-container {
  width: 90%;
  max-width: 1200px;
  margin: 80px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* =====================================================
   CARDS
===================================================== */
.service-card {
  position: relative;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  transition: background 0.35s ease;
}

.service-card:hover {
  transform: scale(1.05);
}

.service-card:hover::before {
  background: rgba(0,0,0,0.35);
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 80%;
}

.card-content h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--gold);
}

.card-content p {
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
}

#manutencao { background-image: url('../assets/servico-manutencao.jpg'); }
#reparos    { background-image: url('../assets/servico-reparos.jpg'); }
#upgrade    { background-image: url('../assets/servico-upgrade.jpg'); }
#suporte    { background-image: url('../assets/servico-suporte.jpg'); }

/* =====================================================
   RESPONSIVO
===================================================== */
@media (max-width: 768px) {
  .hero-content {
    padding: 60px 30px;
    text-align: center;
  }

  .services-grid-container {
    grid-template-columns: 1fr;
  }
}
.circuit-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  opacity: 0.35;
}

.circuit-lines path {
  fill: none;
  stroke: url(#lineGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawCircuit 8s linear infinite;
}

@keyframes drawCircuit {
  0% {
    stroke-dashoffset: 2000;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -2000;
  }
}
/* =====================================================
   SERVIÇOS – CONCEITO / INTRO
===================================================== */

.services-intro {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 20px;
}

.services-intro h2 {
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 10px;
}

.services-intro p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 720px;
  margin: auto;
}

/* =====================================================
   CARD ABERTO – SERVIÇO FLEXÍVEL
===================================================== */

.open-service {
  background: linear-gradient(
    135deg,
    var(--blue-light),
    var(--card)
  );
}

.open-service::before {
  background: rgba(0,0,0,0.45);
}

.open-service .card-content h2 {
  color: var(--gold);
}

.open-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 26px;
  background: var(--gold);
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.open-btn:hover {
  background: #ffcc4d;
  transform: translateY(-2px);
}

/* =====================================================
   AJUSTE DE GRID (5 CARDS)
===================================================== */

@media (min-width: 769px) {
  .services-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .open-service {
    grid-column: 1 / -1;
    height: 260px;
  }
}
