/* ===============================================
   HERO SECTION - TESTFUSION
   Primeira dobra destacando Fortaleza e propósito da comunidade
   =============================================== */

/* Variáveis da Hero Section */
:root {
  --hero-gradient-start: #0b0f19;
  --hero-gradient-end: #051220;
  --hero-fortaleza-color: #00eaff;
  --hero-text-primary: #ffffff;
  --hero-text-secondary: #cdd7ff;
  --hero-btn-primary: linear-gradient(135deg, #00eaff, #00bcd4);
  --hero-btn-secondary: rgba(0, 234, 255, 0.1);
  --hero-transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================================
   HERO SECTION PRINCIPAL
   =============================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
  padding-top: 80px;
}

/* Background com efeito de partículas */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(0, 234, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(0, 188, 212, 0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(0, 234, 255, 0.4), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(0, 234, 255, 0.2), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(0, 188, 212, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
  0% { transform: translateX(0) translateY(0); }
  33% { transform: translateX(30px) translateY(-30px); }
  66% { transform: translateX(-20px) translateY(20px); }
  100% { transform: translateX(0) translateY(0); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 18, 32, 0.7);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* ===============================================
   CONTEÚDO PRINCIPAL
   =============================================== */

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Título principal */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--hero-text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(50px);
  animation: heroTitleReveal 1.2s ease-out 0.3s forwards;
}

.highlight-fortaleza {
  color: var(--hero-fortaleza-color);
  text-shadow: 
    0 0 10px rgba(0, 234, 255, 0.5),
    0 0 20px rgba(0, 234, 255, 0.3),
    0 0 30px rgba(0, 234, 255, 0.1);
  animation: fortalezaGlow 3s ease-in-out infinite alternate;
}

@keyframes fortalezaGlow {
  0% {
    text-shadow: 
      0 0 10px rgba(0, 234, 255, 0.5),
      0 0 20px rgba(0, 234, 255, 0.3),
      0 0 30px rgba(0, 234, 255, 0.1);
  }
  100% {
    text-shadow: 
      0 0 15px rgba(0, 234, 255, 0.7),
      0 0 25px rgba(0, 234, 255, 0.4),
      0 0 35px rgba(0, 234, 255, 0.2);
  }
}

/* Subtítulo */
.hero-subtitle {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--hero-text-secondary);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: heroSubtitleReveal 1s ease-out 0.6s forwards;
}

/* Botões CTA */
.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroButtonsReveal 1s ease-out 0.9s forwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--hero-transition);
  position: relative;
  overflow: hidden;
  min-width: 240px;
  justify-content: center;
}

.btn-primary {
  background: var(--hero-btn-primary);
  color: #0a0a14;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(0, 234, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 234, 255, 0.4);
}

.btn-secondary {
  background: var(--hero-btn-secondary);
  color: var(--hero-fortaleza-color);
  border: 2px solid rgba(0, 234, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 234, 255, 0.2);
  border-color: rgba(0, 234, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 234, 255, 0.2);
}

/* Efeito ripple nos botões */
.btn-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-hero:active::before {
  width: 300px;
  height: 300px;
}


.scroll-arrow {
  width: 2px;
  height: 30px;
  background: var(--hero-fortaleza-color);
  margin: 0 auto 0.5rem;
  border-radius: 2px;
  position: relative;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--hero-fortaleza-color);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ===============================================
   CARROSSEL DE IMPACTO
   =============================================== */

.impact-carousel-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
  margin-top: 1rem;
}

.impact-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.impact-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--hero-gradient-start);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-slide.active {
  opacity: 1;
}

/* Garantir que as imagens sejam exibidas por completo */
@media screen and (max-width: 768px) {
  .impact-slide {
    background-size: contain;
    background-position: center;
  }
}

/* Remover overlay e texto sobreposto */
.slide-overlay {
  display: none;
}

.slide-content {
  display: none;
}

/* ===============================================
   CONTROLES DO CARROSSEL
   =============================================== */

.carousel-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 4;
}

.carousel-dots {
  display: flex;
  gap: 0.75rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(0, 234, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  border-color: var(--hero-fortaleza-color);
  background: rgba(0, 234, 255, 0.3);
}

.dot.active {
  background: var(--hero-fortaleza-color);
  border-color: var(--hero-fortaleza-color);
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.6);
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 234, 255, 0.1);
  border: 2px solid rgba(0, 234, 255, 0.3);
  color: var(--hero-fortaleza-color);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel-nav:hover {
  background: rgba(0, 234, 255, 0.2);
  border-color: var(--hero-fortaleza-color);
  transform: scale(1.1);
}

/* ===============================================
   ANIMAÇÕES DE ENTRADA
   =============================================== */

@keyframes heroTitleReveal {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSubtitleReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroButtonsReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollIndicatorReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===============================================
   RESPONSIVIDADE
   =============================================== */

@media screen and (max-width: 768px) {
  .hero-section {
    padding-top: 60px;
  }

  .hero-content {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .btn-hero {
    min-width: 280px;
    padding: 1rem 1.5rem;
  }

  .impact-carousel-section {
    height: 50vh;
    min-height: 350px;
    margin-top: 0.75rem;
  }

  .carousel-controls {
    flex-direction: column;
    gap: 1.5rem;
    bottom: 1rem;
  }

  .carousel-nav {
    width: 45px;
    height: 45px;
  }
}

@media screen and (max-width: 480px) {
  .hero-section {
    padding-top: 40px;
  }

  .hero-content {
    padding: 2rem 0;
  }

  .hero-text-container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .btn-hero {
    font-size: 1rem;
    min-width: 260px;
  }

  .impact-carousel-section {
    height: 45vh;
    min-height: 300px;
    margin-top: 0.5rem;
  }

  .carousel-controls {
    bottom: 0.8rem;
  }
}

/* ===============================================
   ACESSIBILIDADE
   =============================================== */

@media (prefers-reduced-motion: reduce) {
  .particles-container {
    animation: none;
  }

  .highlight-fortaleza {
    animation: none;
  }

  .scroll-arrow {
    animation: none;
  }

  .hero-title,
  .hero-subtitle,
  .hero-buttons {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .impact-slide .slide-content {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* ===============================================
   MODO ESCURO APRIMORADO
   =============================================== */

@media (prefers-color-scheme: dark) {
  .hero-section {
    background: linear-gradient(135deg, #000813 0%, #000408 100%);
  }

  .particles-container {
    background-image: 
      radial-gradient(2px 2px at 20px 30px, rgba(0, 234, 255, 0.4), transparent),
      radial-gradient(2px 2px at 40px 70px, rgba(0, 188, 212, 0.3), transparent),
      radial-gradient(1px 1px at 90px 40px, rgba(0, 234, 255, 0.5), transparent),
      radial-gradient(1px 1px at 130px 80px, rgba(0, 234, 255, 0.3), transparent),
      radial-gradient(2px 2px at 160px 30px, rgba(0, 188, 212, 0.4), transparent);
  }
}