/* ==========================================
   HEADER TECH - Visual Tech Completo
   ========================================== */

.tech-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999 !important;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

/* Circuit Board (PCB Style) */
.tech-circuit-board {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Circuit Nodes (LEDs) */
.circuit-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #0abab1;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(10, 186, 181, 0.8);
  animation: circuitPulse 2s ease-in-out infinite;
}

.circuit-node-1 { top: 15%; left: 10%; animation-delay: 0s; }
.circuit-node-2 { top: 25%; left: 30%; animation-delay: 0.3s; }
.circuit-node-3 { top: 40%; left: 50%; animation-delay: 0.6s; }
.circuit-node-4 { top: 60%; left: 70%; animation-delay: 0.9s; }
.circuit-node-5 { top: 75%; left: 20%; animation-delay: 1.2s; }
.circuit-node-6 { top: 20%; left: 80%; animation-delay: 1.5s; }
.circuit-node-7 { top: 50%; left: 15%; animation-delay: 1.8s; }
.circuit-node-8 { top: 35%; left: 90%; animation-delay: 0.2s; }
.circuit-node-9 { top: 65%; left: 45%; animation-delay: 0.5s; }
.circuit-node-10 { top: 80%; left: 60%; animation-delay: 0.8s; }

@keyframes circuitPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Circuit Lines */
.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(10, 186, 181, 0.3), transparent);
}

.circuit-line-h1 { top: 20%; left: 0; width: 30%; height: 1px; }
.circuit-line-h2 { top: 40%; left: 25%; width: 35%; height: 1px; }
.circuit-line-h3 { top: 60%; left: 10%; width: 40%; height: 1px; }
.circuit-line-h4 { top: 30%; left: 50%; width: 30%; height: 1px; }
.circuit-line-h5 { top: 70%; left: 40%; width: 35%; height: 1px; }
.circuit-line-h6 { top: 50%; left: 65%; width: 25%; height: 1px; }

.circuit-line-v1 { top: 0; left: 20%; width: 1px; height: 50%; }
.circuit-line-v2 { top: 10%; left: 45%; width: 1px; height: 60%; }
.circuit-line-v3 { top: 0; left: 70%; width: 1px; height: 40%; }
.circuit-line-v4 { top: 30%; left: 30%; width: 1px; height: 50%; }
.circuit-line-v5 { top: 20%; left: 85%; width: 1px; height: 60%; }
.circuit-line-v6 { top: 40%; left: 55%; width: 1px; height: 45%; }

/* Circuit Energy Flow */
.circuit-energy {
  position: absolute;
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, transparent, #0abab1, transparent);
  animation: energyFlow 3s linear infinite;
  opacity: 0.7;
}

.circuit-energy-1 { top: 10%; left: 25%; animation-delay: 0s; }
.circuit-energy-2 { top: 50%; left: 60%; animation-delay: 1s; }
.circuit-energy-3 { top: 30%; left: 80%; animation-delay: 2s; }

@keyframes energyFlow {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Tech Header Lines */
.tech-header-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.tech-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: lineShimmer 4s ease-in-out infinite;
}

.tech-line-1 { top: 0; left: 0; width: 100%; animation-delay: 0s; }
.tech-line-2 { top: 50%; left: 0; width: 60%; animation-delay: 1.3s; }
.tech-line-3 { bottom: 0; left: 20%; width: 80%; animation-delay: 2.6s; }

@keyframes lineShimmer {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

/* Tech Header Shapes */
.tech-header-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.tech-shape {
  position: absolute;
  border: 1px solid rgba(10, 186, 181, 0.3);
  animation: shapeRotate 20s linear infinite;
}

.tech-shape-1 {
  top: 10%;
  right: 10%;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  transform: rotate(45deg);
}

.tech-shape-2 {
  bottom: 20%;
  left: 15%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.tech-shape-3 {
  top: 50%;
  right: 30%;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 30px solid rgba(10, 186, 181, 0.2);
  border-radius: 0;
  animation: shapeRotate 15s linear infinite reverse;
}

@keyframes shapeRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Navigation Links Tech */
.nav-link-tech {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link-text {
  position: relative;
  z-index: 2;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link-glow {
  display: none;
}

.nav-link-text {
  position: relative;
  z-index: 2;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-link-tech:hover .nav-link-text {
  color: #0abab1;
}

.nav-link-tech:hover .nav-link-text::after {
  width: 100%;
}

/* Tech Dropdown */
.tech-dropdown {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(10, 186, 181, 0.3);
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
}

/* Container do dropdown - garantir que não corte */
.tech-header .relative.group {
  position: relative;
  overflow: visible;
  z-index: 100;
}

.tech-dropdown-item {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
  margin: 0.25rem;
}

.tech-dropdown-item:hover {
  background: rgba(10, 186, 181, 0.2);
  color: #0abab1;
}

/* ==========================================
   TECH BUTTONS - VISUAL FUTURISTA COM PIXELS/FORMAS
   ========================================== */

.tech-btn {
  position: relative;
  padding: 0.625rem 1.5rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
}

/* Efeitos holográficos nos botões - ::before já será usado para shimmer */

.tech-btn-text {
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-btn-glow {
  display: none;
}

/* Botão Outline (Entrar) - Inline transparente, texto branco, borda vermelha */
.tech-btn-outline {
  background-color: transparent !important;
  border: 3px solid #940A37;
  color: #ffffff;
  box-shadow: 
    0 0 12px rgba(148, 10, 55, 0.4),
    0 0 24px rgba(148, 10, 55, 0.2);
  position: relative;
}

.tech-btn-outline:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 
    0 6px 25px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Botão Primary (Cadastrar-se) - Fragmentado, geométrico angular, tech (placa mãe/RAM) */
.tech-btn-primary {
  background: linear-gradient(135deg, #3d0415, #940A37, #ff1a66, #940A37, #3d0415);
  border: 2px solid #940A37;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0% 8%, 6% 0%, 94% 0%, 100% 8%, 100% 92%, 94% 100%, 6% 100%, 0% 92%
  );
  box-shadow: 
    0 4px 15px rgba(148, 10, 55, 0.7),
    0 0 30px rgba(148, 10, 55, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
}

.tech-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='32' height='32' xmlns='https://www.w3.org/2000/svg'%3E%3Cg stroke='rgba(255,255,255,0.35)' stroke-width='1.2' fill='none'%3E%3Cpath d='M2,8 L14,8 M18,8 L30,8 M8,2 L8,14 M12,16 L12,26 M20,12 L20,24 M24,6 L24,18'/%3E%3Cpath d='M6,20 L22,20 M16,24 L28,24'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,0.15)' stroke='rgba(255,255,255,0.3)' stroke-width='0.8'%3E%3Crect x='10' y='10' width='4' height='4'/%3E%3Crect x='22' y='16' width='3' height='3'/%3E%3Crect x='6' y='22' width='3' height='3'/%3E%3Crect x='24' y='4' width='4' height='3'/%3E%3Crect x='18' y='20' width='2' height='2'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 35%, rgba(255, 255, 255, 0.15) 65%, transparent 100%);
  background-size: 32px 32px, 120% 120%;
  background-position: 0 0, 50% 50%;
  mix-blend-mode: overlay;
  opacity: 1;
  pointer-events: none;
}

.tech-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(0deg, transparent 0px, transparent 8px, rgba(255, 255, 255, 0.08) 8px, rgba(255, 255, 255, 0.08) 9px, transparent 9px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 12px, rgba(255, 255, 255, 0.06) 12px, rgba(255, 255, 255, 0.06) 13px, transparent 13px);
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}

.tech-btn-primary:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
  box-shadow: 
    0 6px 25px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.tech-btn-primary:hover::before,
.tech-btn-primary:hover::after {
  display: none;
}

/* Botão Minha Conta - Fragmentado, geométrico angular, tech (placa mãe/RAM) */
.tech-btn-account {
  background: linear-gradient(135deg, #3d0415, #940A37, #ff1a66, #940A37, #3d0415);
  border: 2px solid #940A37;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0% 8%, 6% 0%, 94% 0%, 100% 8%, 100% 92%, 94% 100%, 6% 100%, 0% 92%
  );
  box-shadow: 
    0 4px 15px rgba(148, 10, 55, 0.7),
    0 0 30px rgba(148, 10, 55, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);
}

.tech-btn-account::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='32' height='32' xmlns='https://www.w3.org/2000/svg'%3E%3Cg stroke='rgba(255,255,255,0.35)' stroke-width='1.2' fill='none'%3E%3Cpath d='M2,8 L14,8 M18,8 L30,8 M8,2 L8,14 M12,16 L12,26 M20,12 L20,24 M24,6 L24,18'/%3E%3Cpath d='M6,20 L22,20 M16,24 L28,24'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,0.15)' stroke='rgba(255,255,255,0.3)' stroke-width='0.8'%3E%3Crect x='10' y='10' width='4' height='4'/%3E%3Crect x='22' y='16' width='3' height='3'/%3E%3Crect x='6' y='22' width='3' height='3'/%3E%3Crect x='24' y='4' width='4' height='3'/%3E%3Crect x='18' y='20' width='2' height='2'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 35%, rgba(255, 255, 255, 0.15) 65%, transparent 100%);
  background-size: 32px 32px, 120% 120%;
  background-position: 0 0, 50% 50%;
  mix-blend-mode: overlay;
  opacity: 1;
  pointer-events: none;
}

.tech-btn-account::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(0deg, transparent 0px, transparent 8px, rgba(255, 255, 255, 0.08) 8px, rgba(255, 255, 255, 0.08) 9px, transparent 9px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 12px, rgba(255, 255, 255, 0.06) 12px, rgba(255, 255, 255, 0.06) 13px, transparent 13px);
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}

.tech-btn-account:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
  box-shadow: 
    0 6px 25px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.tech-btn-account:hover::before,
.tech-btn-account:hover::after {
  display: none;
}

/* Animações holográficas */
@keyframes holographicShimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes holographicGradient {
  0%, 100% {
    background-position: 0% 0%, 0% 0%, 0% 0%;
  }
  50% {
    background-position: 0% 0%, 0% 0%, 100% 100%;
  }
}

@keyframes holographicShift {
  0%, 100% {
    background-position: 0 0, 0 0, 0 0;
  }
  50% {
    background-position: 10px 10px, -10px -10px, 0 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .tech-header .container {
    padding: 0.75rem 1rem;
  }
  
  .tech-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

