/* ========================================== */
/* SEÇÃO DE EQUIPAMENTOS                      */
/* ========================================== */

/* Variáveis CSS para a seção de equipamentos - Seguindo padrão do projeto */

.equipment-section {
  padding: 80px 0;
  background: var(--cyber-bg);
  position: relative;
  overflow: hidden;
}

.equipment-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, var(--glow-blue) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--glow-orange) 0%, transparent 50%);
  opacity: 0.1;
  pointer-events: none;
}

.equipment-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.equipment-header {
  text-align: center;
  margin-bottom: 60px;
}

.equipment-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 2px;

  /* Cor sólida para legibilidade */
  color: var(--text-white);

  /* Glow effect suave */
  text-shadow:
    0 0 5px var(--neon-blue),
    0 0 10px var(--neon-blue),
    2px 2px 0px rgba(0, 0, 0, 0.5);

  /* Animação de glow suave */
  animation: titleGlowSubtle 3s ease-in-out infinite alternate;
}

.equipment-title::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--neon-blue), transparent, var(--neon-orange), transparent);
  border-radius: 10px;
  z-index: -1;
  opacity: 0.1;
  filter: blur(10px);
  animation: borderPulse 2s ease-in-out infinite alternate;
}

.equipment-title::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-orange), transparent);
  animation: scanLine 4s linear infinite;
  opacity: 0.8;
}

.equipment-description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: center;
  position: relative;

  /* Glow sutil */
  text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);

  /* Animação fade simples */
  animation: textGlow 2s ease-in-out infinite alternate;
}

.equipment-description::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1.2em;
  background: var(--neon-orange);
  animation: blinkCursor 1s infinite;
}

/* Animações */
@keyframes titleGlowSubtle {
  0% {
    text-shadow:
      0 0 5px var(--neon-blue),
      0 0 10px var(--neon-blue),
      2px 2px 0px rgba(0, 0, 0, 0.5);
  }
  100% {
    text-shadow:
      0 0 8px var(--neon-orange),
      0 0 15px var(--neon-orange),
      2px 2px 0px rgba(0, 0, 0, 0.5);
  }
}

@keyframes borderPulse {
  0% {
    opacity: 0.2;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

@keyframes scanLine {
  0% { transform: translate(-150%, -50%); }
  100% { transform: translate(150%, -50%); }
}

@keyframes textGlow {
  0% {
    text-shadow:
      0 0 5px rgba(59, 130, 246, 0.3),
      0 0 10px rgba(59, 130, 246, 0.2);
  }
  100% {
    text-shadow:
      0 0 8px rgba(245, 158, 11, 0.4),
      0 0 15px rgba(245, 158, 11, 0.2);
  }
}

@keyframes blinkCursor {
  0%, 50% {
    opacity: 1;
    background: var(--neon-orange);
  }
  51%, 100% {
    opacity: 0;
  }
}

.equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.equipment-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--neon-orange), var(--neon-blue));
  opacity: 0.8;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.product-badge {
  background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: flex-start;
  box-shadow: 0 0 15px var(--glow-blue);
  border: 1px solid var(--glass-border);
}

.product-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--neon-orange);
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 0 10px var(--glow-orange);
}

.product-description {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
  opacity: 0.9;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
}

.spec-item i {
  color: var(--neon-blue);
  width: 16px;
  text-align: center;
  text-shadow: 0 0 5px var(--glow-blue);
}

.product-image {
  text-align: center;
  position: relative;
}

.wifi-router {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.wifi-router:hover {
  transform: scale(1.05);
}

.signal-indicator {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--equipment-secondary), #4caf50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(52, 168, 83, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.features-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-title i {
  color: var(--neon-orange);
  text-shadow: 0 0 5px var(--glow-orange);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: var(--glass-bg);
  border-radius: 12px;
  border-left: 3px solid var(--accent-blue);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.feature-item:hover {
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
  transform: translateX(5px);
  border-left-color: var(--neon-blue);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--glow-blue);
  border: 1px solid var(--glass-border);
}

.feature-content h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin: 0 0 5px 0;
}

.feature-content p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
  opacity: 0.9;
}

.cta-section {
  text-align: center;
  margin-top: 50px;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent-orange), var(--neon-orange));
  color: var(--text-white);
  padding: 16px 32px;
  border: 2px solid var(--accent-orange);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--glow-orange);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--glow-orange);
  background: transparent;
  color: var(--neon-orange);
}

.cta-button:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 0.8s ease-in-out;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Responsividade */
@media (max-width: 1024px) {
  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 40px 30px;
  }

  .product-info,
  .product-features {
    align-items: center;
  }

  .product-badge {
    align-self: center;
  }

  .features-list {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .equipment-section {
    padding: 60px 0;
  }

  .equipment-container {
    padding: 0 15px;
  }

  .equipment-header {
    margin-bottom: 40px;
  }

  .equipment-title {
    letter-spacing: 1px;
  }

  .equipment-title::after {
    height: 2px;
  }

  .equipment-description {
    font-size: 16px;
  }

  .equipment-description::after {
    display: none; /* Remove cursor on mobile */
  }

  .equipment-grid {
    padding: 30px 20px;
    gap: 30px;
  }

  .product-name {
    font-size: 24px;
  }

  .wifi-router {
    max-width: 250px;
  }

  .signal-indicator {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .equipment-title {
    font-size: 2rem;
  }

  .equipment-grid {
    padding: 25px 15px;
  }

  .feature-item {
    padding: 12px;
  }

  .feature-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 15px;
  }

  .wifi-router {
    max-width: 200px;
  }
}

/* ========================================== */
/* ANIMAÇÕES DE TRANSIÇÃO                     */
/* ========================================== */

.equipment-title,
.equipment-description,
.product-badge,
.product-name,
.product-description,
.wifi-router,
.product-specs,
.features-list {
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  will-change: opacity, transform;
}

/* Pausar animações durante transição */
.equipment-title.fade-out,
.equipment-description.fade-out {
  animation-play-state: paused;
}

.equipment-title.fade-in,
.equipment-description.fade-in {
  animation-play-state: running;
}

.fade-out {
  opacity: 0 !important;
  transform: translateY(-8px) !important;
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Transições específicas para melhor sincronização */
.equipment-title.fade-out,
.equipment-description.fade-out {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
}

.equipment-title.fade-in,
.equipment-description.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Suavização específica para imagem */
.wifi-router {
  transition: opacity 0.25s ease-out, transform 0.25s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.wifi-router.fade-out {
  opacity: 0 !important;
  transform: scale(0.92) translateY(-8px) !important;
}

.wifi-router.fade-in {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}