:root {
  --primary-color: #007bff;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --header-height: 85px
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #f8f9fa;
}

.navbar {
  height: var(--header-height);
  background-color: var(--dark-color) !important;
  transition: all 0.3s ease-in-out;
  border-bottom: 3px solid rgb(0 0 0 / .1)
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #ffffff !important;
  letter-spacing: -1px;
  display: flex;
  align-items: center
}

.navbar-brand .icon-poll {
  margin-right: 10px;
  font-size: 2rem;
  color: var(--primary-color)
}

.navbar-nav .nav-link {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: rgb(255 255 255 / .75) !important;
  padding: 15px 20px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffffff !important;
  transform: translateY(-2px)
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8px;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease-in-out
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: calc(100% - 40px)
}

.navbar-toggler {
  border: none
}

.navbar-toggler-icon {
  color: #fff
}

/* Hero Section */
.hero-section {
  /* Fundo em gradiente CSS puro, sem imagem */
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  /* Gradiente de azul para azul mais escuro */
  color: white;
  padding: 120px 0;
  text-align: center;
  min-height: 80vh;
  /* Altura mínima para ocupar a tela */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.2);
  /* Sutil sombra na borda inferior */
}

.hero-section h1 {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  /* Sutil sombra no texto */
}

.hero-section p {
  font-size: 1.4rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-action {
  background-color: #ffc107;
  /* Amarelo Bootstrap 'warning' */
  color: #333;
  border: none;
  padding: 15px 35px;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-action:hover {
  background-color: #e0a800;
  /* Amarelo mais escuro no hover */
  color: #333;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary-action {
  border-radius: 50px;
  padding: 15px 35px;
  font-size: 1.25rem;
  font-weight: bold;
  border: 2px solid white;
  color: white;
  transition: all 0.3s ease;
}

.btn-secondary-action:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}


/* Seções Gerais */
.section-padding {
  padding: 100px 0;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #007bff;
  /* Azul primário */
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #343a40;
}

/* Features Section */
.feature-icon {
  font-size: 4rem;
  color: #007bff;
  margin-bottom: 25px;
}

.feature-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  height: 100%;
  /* Garante altura uniforme */
  background-color: white;
  border: 1px solid #eee;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* How It Works Section */
.how-it-works-step {
  text-align: center;
  margin-bottom: 50px;
}

.how-it-works-step .icon {
  font-size: 4.5rem;
  color: #28a745;
  margin-bottom: 20px;
  border: 3px solid #28a745;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e6ffed;
  transition: all 0.3s ease;
}

.how-it-works-step:hover .icon {
  background-color: #28a745;
  color: white;
}

.how-it-works-step h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

/* Poll Sections (Latest, Popular, Finished) */
.latest-polls-section .card,
.popular-polls-section .card,
.finished-polls-section .card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background-color: #fefefe;
  position: relative;
  cursor: pointer;
}

.latest-polls-section .card:hover,
.popular-polls-section .card:hover,
.finished-polls-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.latest-polls-section .card-title,
.popular-polls-section .card-title,
.finished-polls-section .card-title {
  color: #007bff;
  font-weight: 600;
}

.latest-polls-section .card-text.small,
.popular-polls-section .card-text.small,
.finished-polls-section .card-text.small {
  font-size: 0.85em;
  /* Ajusta o tamanho da fonte para infos menores */
}

.popular-polls-section .card-text .fas.fa-fire {
  color: #dc3545;
  /* Vermelho para o ícone de popularidade */
}

.finished-polls-section .card-text .fas.fa-calendar-check {
  color: #6c757d;
  /* Cinza para o ícone de finalizada */
}

footer .text-white-50.text-decoration-none {
  transition: color 0.3s ease
}

footer .text-white-50.text-decoration-none:hover {
  color: #ffffff !important;
  text-decoration: underline !important
}

footer .fa-info-circle {
  transition: color 0.3s ease
}

footer .fa-info-circle:hover {
  color: #ffffff !important
}

@media (max-width:991.98px) {
  .navbar-collapse.show {
    background-color: var(--dark-color) !important;
    padding: 15px;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgb(0 0 0 / .2);
    z-index: 1000
  }

  .navbar-nav {
    width: 100%
  }

  .navbar-nav .nav-item {
    width: 100%
  }

  .navbar-nav .nav-link {
    padding: 12px 20px;
    color: #ffffff !important;
    border-bottom: 1px solid rgb(255 255 255 / .1);
    transform: none !important;
    transition: background-color 0.3s ease
  }

  .navbar-nav .nav-link::after {
    content: none
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: rgb(255 255 255 / .15) !important;
    color: #ffffff !important
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0;
    min-height: 60vh;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.2rem;
  }

  .btn-action,
  .btn-secondary-action {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  h2 {
    font-size: 2rem;
  }

  .feature-icon {
    font-size: 3rem;
  }

  .how-it-works-step .icon {
    font-size: 3.5rem;
    width: 100px;
    height: 100px;
  }

  .how-it-works-step h3 {
    font-size: 1.5rem;
  }

  /* Garante que os botões do hero fiquem em bloco no mobile */
  .d-sm-flex {
    flex-direction: column;
    align-items: stretch;
  }
}