/* Ultra Futuristic Design - 2050 Style */

/* Importar fontes futuristas */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Exo+2:wght@300;400;500;600;700;800&display=swap');

/* Reset e configuração base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --neon-purple: #9333ea;
  --neon-cyan: #06b6d4;
  --neon-pink: #ec4899;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Exo 2', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-text {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
}

/* Fundo com linhas conectadas - Neural Network Style */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

#particles-js::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Header Ultra Futurista */
header {
  background: rgba(15, 12, 41, 0.7) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(147, 51, 234, 0.3) !important;
  box-shadow: 0 4px 30px rgba(147, 51, 234, 0.2) !important;
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
}

.nav-links a:hover {
  text-shadow: 0 0 10px rgba(147, 51, 234, 0.8) !important;
}

/* Botão de Contato no Header */
.btn-contact-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border: 2px solid rgba(6, 182, 212, 0.5);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.btn-contact-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
  border-color: rgba(6, 182, 212, 1);
}

/* Hero Section Ultra Futurista */
.hero h1 {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(2.5rem, 7vw, 5rem) !important;
  letter-spacing: 2px !important;
  line-height: 1.2 !important;
}

.hero p {
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 500 !important;
  font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
  letter-spacing: 0.5px !important;
  line-height: 1.6 !important;
}

/* Badge Ultra Futurista */
.badge-ultra {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  background: rgba(147, 51, 234, 0.2);
  border: 2px solid rgba(147, 51, 234, 0.5);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 0 20px rgba(147, 51, 234, 0.4),
    inset 0 0 20px rgba(147, 51, 234, 0.1);
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(147, 51, 234, 0.4),
      inset 0 0 20px rgba(147, 51, 234, 0.1);
  }
  50% { 
    box-shadow: 
      0 0 30px rgba(147, 51, 234, 0.6),
      inset 0 0 30px rgba(147, 51, 234, 0.2);
  }
}

/* Botões Ultra Futuristas com Ícones */
.btn-ultra-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  border: 2px solid rgba(147, 51, 234, 0.5);
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 0 30px rgba(147, 51, 234, 0.5),
    0 10px 40px rgba(147, 51, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-ultra-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shine-sweep 3s infinite;
}

@keyframes shine-sweep {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.btn-ultra-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 0 50px rgba(147, 51, 234, 0.8),
    0 15px 60px rgba(147, 51, 234, 0.5);
  border-color: rgba(147, 51, 234, 1);
}

.btn-ultra-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  border: 2px solid rgba(6, 182, 212, 0.5);
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 0 30px rgba(6, 182, 212, 0.5),
    0 10px 40px rgba(6, 182, 212, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-ultra-secondary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shine-sweep 3s infinite;
}

.btn-ultra-secondary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 0 50px rgba(6, 182, 212, 0.8),
    0 15px 60px rgba(6, 182, 212, 0.5);
  border-color: rgba(6, 182, 212, 1);
}

.btn-ultra-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.05);
  border: 2px solid #06b6d4;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 
    0 0 20px rgba(6, 182, 212, 0.3),
    inset 0 0 20px rgba(6, 182, 212, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-ultra-outline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: -1;
}

.btn-ultra-outline:hover::after {
  width: 400px;
  height: 400px;
}

.btn-ultra-outline:hover {
  color: #ffffff;
  border-color: #0891b2;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 0 40px rgba(6, 182, 212, 0.6),
    inset 0 0 30px rgba(6, 182, 212, 0.1);
}

/* Ícones nos botões */
.btn-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.btn-ultra-primary:hover .btn-icon,
.btn-ultra-secondary:hover .btn-icon,
.btn-ultra-outline:hover .btn-icon {
  transform: scale(1.2) rotate(5deg);
}

/* Cards Glassmorphism */
.card-glass {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 8px 32px rgba(147, 51, 234, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.card-glass:hover {
  transform: translateY(-10px) scale(1.02) !important;
  border-color: rgba(147, 51, 234, 0.5) !important;
  box-shadow: 
    0 15px 50px rgba(147, 51, 234, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1) !important;
}

/* Seção de Urgência Ultra Futurista */
.section-urgency {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1)) !important;
  border-top: 2px solid rgba(239, 68, 68, 0.3) !important;
  border-bottom: 2px solid rgba(239, 68, 68, 0.3) !important;
}

.urgency-banner {
  background: rgba(239, 68, 68, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(239, 68, 68, 0.5) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 0 30px rgba(239, 68, 68, 0.3),
    inset 0 0 20px rgba(239, 68, 68, 0.1) !important;
}

.urgency-banner h3 {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 800 !important;
  color: #ef4444 !important;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5) !important;
}

/* Estatísticas Ultra Futuristas */
.stat-number-ultra {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 900 !important;
  font-size: 3.5rem !important;
  background: linear-gradient(135deg, #9333ea, #06b6d4) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 0 40px rgba(147, 51, 234, 0.5) !important;
  animation: number-glow 2s ease-in-out infinite !important;
}

@keyframes number-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.5));
  }
  50% { 
    filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.8));
  }
}

/* WhatsApp Float Ultra Futurista */
.whatsapp-float-ultra {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 30px rgba(37, 211, 102, 0.6),
    0 10px 40px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: float-ultra 3s ease-in-out infinite;
  border: 3px solid rgba(37, 211, 102, 0.5);
}

@keyframes float-ultra {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 
      0 0 30px rgba(37, 211, 102, 0.6),
      0 10px 40px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: translateY(-15px) scale(1.1);
    box-shadow: 
      0 0 50px rgba(37, 211, 102, 0.8),
      0 20px 60px rgba(37, 211, 102, 0.6);
  }
}

.whatsapp-float-ultra:hover {
  transform: scale(1.2) !important;
  box-shadow: 
    0 0 60px rgba(37, 211, 102, 1),
    0 20px 80px rgba(37, 211, 102, 0.8) !important;
  animation: none;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem !important;
  }
  
  .btn-ultra-primary,
  .btn-ultra-secondary,
  .btn-ultra-outline {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }
  
  .stat-number-ultra {
    font-size: 2.5rem !important;
  }
}

/* Ícones Futuristas Animados */
.icon-futuristic {
  font-size: 4rem;
  /* Use um tom azul celeste mais claro para maior contraste em diferentes fundos */
  color: #38bdf8;
  background: none;
  -webkit-text-fill-color: initial;
  /* Ajuste o brilho para um efeito mais suave nos ícones */
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
  /* Remova animações contínuas que poderiam distrair; mantemos a transição suave */
  animation: none;
  transition: all 0.3s ease;
}

@keyframes icon-glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.8));
  }
}

.icon-futuristic:hover {
  transform: scale(1.2) rotate(5deg);
  /* keep glow consistent with the solid neon colour */
  filter: drop-shadow(0 0 40px rgba(6, 182, 212, 1));
}

/* Ícone de Prédio/Sede Futurista */
.building-icon-futuristic {
  font-size: 4rem;
  color: #06b6d4;
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.6));
  animation: building-pulse 2s ease-in-out infinite;
}

@keyframes building-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.6));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.9));
  }
}

/* Ícone de Globo/Brasil Futurista */
.globe-icon-futuristic {
  font-size: 4rem;
  color: #10b981;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.6));
  animation: globe-rotate 4s linear infinite;
}

@keyframes globe-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Card de Sede com Glassmorphism */
.sede-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 8px 32px rgba(6, 182, 212, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.sede-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 
    0 15px 50px rgba(6, 182, 212, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.sede-card.principal {
  border-color: rgba(147, 51, 234, 0.5);
  box-shadow: 
    0 8px 32px rgba(147, 51, 234, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.sede-card.principal:hover {
  border-color: rgba(147, 51, 234, 0.8);
  box-shadow: 
    0 15px 50px rgba(147, 51, 234, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.sede-card.nacional {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 
    0 8px 32px rgba(16, 185, 129, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.sede-card.nacional:hover {
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 
    0 15px 50px rgba(16, 185, 129, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.sede-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  margin: 1rem 0 0.5rem;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sede-card.principal .sede-title {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sede-card.nacional .sede-title {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sede-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid rgba(147, 51, 234, 0.5);
  border-radius: 50px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9333ea;
  margin-bottom: 1rem;
}

/*
 * Melhorias de legibilidade
 *
 * Para garantir contraste adequado em todas as páginas, o texto deve
 * aparecer branco sobre fundos escuros (como seções com gradientes e
 * cards vítreos fora de "section-alt") e permanecer escuro em fundos
 * claros (como as seções com a classe section-alt). Em vez de aplicar
 * uma cor global a todos os elementos card‑glass, que também são
 * usados em seções claras, definimos regras específicas que se aplicam
 * apenas quando os cards estão dentro de uma seção que não possui a
 * classe section-alt. Dessa forma, os cards exibidos sobre um fundo
 * branco continuam com texto escuro, enquanto aqueles sobre fundos
 * escuros mostram texto branco.
 */

/* Cores de texto para cards em seções escuras */
section:not(.section-alt) .card-glass,
section:not(.section-alt) .card-glass h2,
section:not(.section-alt) .card-glass h3,
section:not(.section-alt) .card-glass h4,
section:not(.section-alt) .card-glass h5,
section:not(.section-alt) .card-glass h6,
section:not(.section-alt) .card-glass p,
section:not(.section-alt) .card-glass a {
  color: #ffffff !important;
}

/* Destacar títulos e textos do Hero Section */
.hero h1,
.hero p {
  color: #ffffff !important;
}

/* Cores para estatísticas em seções escuras */
.stats-section .stat-label,
.stats-section .stat-number-ultra {
  color: #ffffff !important;
}

/* Ajuste para etiquetas de estatísticas em modo ultra: texto secundário um pouco mais claro */
.stats-section .stat-label {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Cabeçalhos e parágrafos em seções escuras (exceto section-alt) */
section:not(.section-alt) h2,
section:not(.section-alt) h3,
section:not(.section-alt) h4,
section:not(.section-alt) h5,
section:not(.section-alt) h6,
section:not(.section-alt) p {
  color: #ffffff !important;
}

.sede-card.nacional .sede-badge {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
}

/*
 * Accessibility and navigation contrast improvements
 *
 * The base styles in style.css set navigation links to dark colours, which are
 * unreadable against the semi‑transparent dark header used on most pages.
 * These overrides ensure that navigation items remain visible by default and
 * provide a vibrant highlight when hovered or active.  Without overriding
 * style.css here, the nav inherits the dark text colours and becomes hard to see.
 */
header .nav-links a {
  color: #f5f5f5 !important;
}
header .nav-links a:hover,
header .nav-links a.active {
  color: #7c3aed !important;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.8);
}

/*
 * Removemos a substituição global de logotipos para que cada página possa
 * controlar onde o símbolo da marca aparece. A partir de agora, apenas a
 * página inicial exibe o ícone da OpenFluxo no hero. Outros arquivos
 * continuarão a carregar o logotipo original indicado no HTML.
 */
