/* ========== VARIÁVEIS GLOBAIS ATUALIZADAS ========== */
:root {
  /* Cores principais */
  --primary-color: #28a745;
  --secondary-color: #6f42c1;
  --accent-color: #20c997;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --white: #ffffff;
  --black: #000000;

  /* Novas cores para efeitos tecnológicos */
  --neon-blue: #0ff0fc;
  --neon-purple: #9600ff;
  --neon-pink: #ff00a0;
  --neon-green: #00ff00;

  /* Sombras atualizadas */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
  --neon-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-purple);

  /* Bordas */
  --border-radius: 15px;
  --border-radius-sm: 10px;
  --border-radius-lg: 20px;

  /* Espaçamentos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Variáveis para o efeito neural */
  --neuron-base-size: 3px;
  --neuron-glow: 0 0 8px currentColor;
  --synapse-opacity: 0.4;
  --synapse-pulse-speed: 3s;
}

/* ========== RESET E ESTILOS BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== LAYOUT DOS CARDS ========== */

.section-padding, 
.bg-light-custom {
  color: #333; 
}


.feature-card {
  color: #333 !important;
  background-color: #fff !important;
  border: 1px solid #dee2e6; 
}


.section-title, 
.feature-card h4 {
  color: #212529 !important; /
}


.feature-card p {
  color: #495057 !important; 
}


/* ========== LAYOUT E ESPAÇAMENTOS ========== */
.container {
  width: 100%;
  padding-right: var(--spacing-sm);
  padding-left: var(--spacing-sm);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

/* ========== HERO SECTION INTERATIVO ========== */
.hero-section {
  background: linear-gradient(
      135deg,
      rgba(40, 167, 69, 0.9),
      rgba(111, 66, 193, 0.9)
    ),
    url("../images/setif_2025_background.png");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--spacing-lg);
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(to right, #ffffff, #c9d6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  border-right: 3px solid var(--neon-blue);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

.countdown-box {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius);
}

.countdown-title {
  color: var(--white);
  margin-bottom: var(--spacing-xs);
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--neon-blue);
  }
}

/* ========== EFEITO CEREBRAL EXPANSIVO ========== */

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0; /* Ajuste conforme necessário */
  background-color: transparent;
}

/* ========== BOTÕES ========== */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
  border-radius: var(--border-radius-lg);
}

.btn-custom {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-custom:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-custom:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);
}

.btn-custom:hover::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0;
  animation: ripple 1.5s ease-out infinite;
  z-index: -1;
}

.btn-custom::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--neon-blue),
    var(--neon-purple),
    var(--neon-pink)
  );
  z-index: -1;
  border-radius: var(--border-radius);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-custom:hover::before {
  opacity: 0.6;
}

@keyframes ripple {
  0% {
    transform: scale(0.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ========== CARDS TECNOLÓGICOS ========== */
.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  height: 100%;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  border-radius: 50%;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg);
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
}

.feature-card h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
}

/* ========== SEÇÕES ========== */
.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  position: relative;
  display: inline-block;
  color: var(--dark-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.bg-light-custom {
  background-color: rgba(248, 249, 250, 0.7);
  backdrop-filter: blur(10px);
}

/* Seção de Contato */
.contact-section {
  background: linear-gradient(135deg, var(--dark-color), #1a252f);
  color: var(--white);
}

.contact-section .section-title {
  color: var(--white);
}

.contact-section .section-title::after {
  background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.contact-item i {
  font-size: 1.5rem;
  margin-right: var(--spacing-sm);
  color: var(--neon-blue);
}

.map-container {
  margin-top: var(--spacing-md);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ========== ANIMAÇÕES DE SCROLL ========== */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ALERTAS ========== */
.alert {
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  border: none;
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.2);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.2);
  color: var(--white);
  backdrop-filter: blur(10px);
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    white-space: normal;
    animation: none;
    border-right: none;
  }

  .feature-card {
    margin-bottom: var(--spacing-md);
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Ajustes para o efeito neural em mobile */
  .brain-container {
    opacity: 0.4;
  }

  .neuron {
    width: 4px !important;
    height: 4px !important;
  }

  .synapse {
    height: 1px !important;
  }
}

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

  .hero-content {
    padding: var(--spacing-md);
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .section-padding {
    padding: var(--spacing-lg) 0;
  }
}

/* ========== UTILITÁRIOS ========== */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.rounded {
  border-radius: var(--border-radius) !important;
}

.shadow {
  box-shadow: var(--shadow-sm) !important;
}

.justify-content-center {
  justify-content: center !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}
