/* Reset de margens e espaçamentos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  font-size: 16px;
}

/* Estilos Gerais */

:root {
  --color1: #FCB040;
  --color2: #ff008e;
  --color3: #B13AB7;
  --color4: #7000b7;
  --hovercolor: #4A0077;
  --bgcolor: #1a1a1a;
  --fontcolor: #ffffff;
  --faqcolor: #3e3e3e;
  --faqhover: #4e4e4e;
}

body {
  background-color: var(--bgcolor);
  line-height: 1.8;
  font-family: "Poppins", sans-serif;
}

.highlight-blue {
  color: var(--color1);
}

.highlight-pink {
  color: var(--color2);
}

.highlight-purple {
  color: var(--color3);
}

/* Header */
header {
  background: transparent;
  color: var(--fontcolor);
  padding: 1%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 10vh;
}

header .logo img {
  height: 10vw;
  max-height: 75px;
  min-height: 25px;
  position: relative !important;
  z-index: 1000 !important;
  margin: 1rem 0 0 0.5rem;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 2.5rem;
  z-index: 2000;
}

#menu-open-icon {
  display: block;
}

#menu-close-icon {
  display: none;
}

.menu-toggle img {
  width: 2rem;
  height: 2rem;
  position: absolute;
  z-index: 2100;
}

/* Navegação */
nav {
  display: flex;
  position: relative;
  right: 0;
  top: 0;
  width: auto;
  height: auto;
  background-color: transparent;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  transition: none;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  padding: 0;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--fontcolor);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--color1);
}

/* Seção de fundo separada */
.background-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: url("assets/bg.png") center/cover no-repeat;
  opacity: 0.8;
  z-index: -1;
}

/* Configuração do início */
#inicio {
  position: relative;
  width: 100%;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
}

.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 90%;
  margin: 0 auto;
}

.text-content {
  flex: 1;
  max-width: 50%;
  text-align: left;
  color: var(--fontcolor);
}

.text-content h2 {
  font-size: 2.5rem;
  font-family: "Ubuntu", sans-serif;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
}

.text-content ul {
  list-style: none;
  padding: 0;
}

.text-content ul li {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInList 0.9s ease-out forwards;
}

.text-content ul li:nth-child(1) {
  animation-delay: 0.7s; 
}
.text-content ul li:nth-child(2) {
  animation-delay: 1.0s; 
}
.text-content ul li:nth-child(3) {
  animation-delay: 1.3s; 
}
.text-content ul li:nth-child(4) {
  animation-delay: 1.6s;
}
.text-content ul li:nth-child(5) {
  animation-delay: 1.9s; 
}

.image-content {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: center;
}

.image-content img {
  width: 100%;
  max-width: 40rem;
  height: auto;
}

#inicio-btn {
  margin-top: 5rem;
  padding: 1rem 2rem;
  font-size: 2rem;
  background-color: var(--color2);
  color: var(--fontcolor);
  text-decoration: none;
  border-radius: 5rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px var(--color2), 0 0 15px var(--color2);
  animation: glow 2s infinite alternate ease-in-out;
}

#inicio-btn:hover {
  animation: neon-hover 1.2s ease-in-out infinite alternate;
}

/* Carrossel de Imagens */
.carrossel-container {
  width: 100vw;
  overflow: hidden;
  font-family: "Ubuntu", sans-serif;
}

.carrossel-container h2 {
  font-size: 3rem;
  color: var(--fontcolor);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1%;
  padding: 2% 5%;
  z-index: 2;
}

.slides {
  display: flex;
  transition: none;
  will-change: transform;
}

.slide {
  min-width: 21.875rem;
  margin-right: 0.9375rem;
  background: var(--fontcolor);
  border-radius: 0.625rem;
  padding: 1.25rem;
  text-align: center;
}

.slide img {
  max-width: 100%;
  height: 11.25rem;
  object-fit: contain;
}

/* Seção comparativa */
#comparativo {
  width: 100%;
  padding: 4rem 2rem;
  text-align: center;
  background: var(--bgcolor);
  color: var(--fontcolor);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#comparativo h2 {
  font-size: 2.5rem;
}

#comparativo .descricao {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 2rem 0;
}

/* Estilo da tabela */
.tabela {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--color2);
  color: var(--fontcolor);
  font-size: 2rem;
  padding: 1rem;
  text-align: center;
}

tbody td {
  padding: 1.2rem;
  font-size: 1.8rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tbody tr {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

tbody tr.active {
  animation: fadeInRow 0.8s ease-out forwards;
}

tbody tr:nth-child(1).active { animation-delay: 0.2s; }
tbody tr:nth-child(2).active { animation-delay: 0.4s; }
tbody tr:nth-child(3).active { animation-delay: 0.6s; }
tbody tr:nth-child(4).active { animation-delay: 0.8s; }
tbody tr:nth-child(5).active { animation-delay: 1s; }

.generico {
  background: #ff3b3b;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.premium {
  background: #00c853;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.extra {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 2rem 0;
}

#comparativo-btn {
  padding: 1rem 2rem;
  font-size: 2rem;
  background-color: var(--color2);
  color: var(--fontcolor);
  text-decoration: none;
  border-radius: 5rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px var(--color2), 0 0 15px var(--color2);
  animation: glow 2s infinite alternate ease-in-out;
}

#comparativo-btn:hover {
  animation: neon-hover 1.2s ease-in-out infinite alternate;
}

/* Seção de Planos */
#planos {
  background-color: var(--bgcolor);
  padding: 0% 5% 2% 5%;
}

#planos h2 {
  font-size: 3rem;
  text-align: center;
  padding-bottom: 2%;
  font-weight: 700;
  color: var(--fontcolor);
  font-family: "Ubuntu", sans-serif;
}

.planos-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-content: space-evenly;
  align-items: stretch; 
  box-sizing: border-box;
}

.plano {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5%;
  box-sizing: border-box;
  text-align: center;
  background: white;
  border-radius: 1.25rem;
  transition: all 0.3s ease;
  transform: scale(0.85);
  transform-origin: center;
  height: auto; 
  min-height: 100%; 
  border: 2px solid var(--color1);
  box-shadow: 0 0 10px var(--color1), 0 0 20px var(--color4),
    0 0 30px var(--color3), 0 0 40px var(--color2);
}

.plano:hover {
  transform: scale(0.95);
  transition: transform 0.3s ease-in-out;
}

.plano h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--bgcolor);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.plano .preco-antigo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color3);
  text-decoration: line-through;
  padding: 5%;
}

.plano .preco {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color2);
  text-shadow: 1px 1px lightgrey;
  padding: 0% 5% 5% 5%;
}

.plano p {
  color: var(--bgcolor);
  font-size: 1.8rem;
  flex-grow: 1;
}

.plano .btn {
  width: 80%;
  padding: 2%;
  background-color: var(--color4);
  color: var(--fontcolor);
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 5rem;
  animation: pulseb 2s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plano .btn:hover {
  background-color: var(--hovercolor);
}

.plano .highlight {
  color: var(--color2);
  text-shadow: 1px 1px black;
}

/* Seção Teste Grátis */
.teste {
  background: var(--bgcolor);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.teste.visible {
  opacity: 1;
  transform: translateY(0);
}

.teste h2 {
  font-size: 3rem;
  color: var(--fontcolor);
  font-family: "Ubuntu", sans-serif;
  margin-bottom: 2%;
}

.teste-btn {
  padding: 1rem 2rem;
  font-size: 2rem;
  background-color: var(--color2);
  color: var(--fontcolor);
  text-decoration: none;
  border-radius: 5rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px var(--color2), 0 0 15px var(--color2);
  animation: glow 2s infinite alternate ease-in-out;
}

.teste-btn:hover {
  animation: neon-hover 1.2s ease-in-out infinite alternate;
}

/* FAQ */
#faq {
  padding: 5% 5% 2% 5%;
  margin: 0 auto;
  max-width: 90%;
  align-items: center;
  justify-content: center;
  background-color: var(--bgcolor);
  border-radius: 1rem;
  font-family: "Poppins", sans-serif;
}

#faq h2 {
  padding: 1%;
  font-size: 3rem;
  color: var(--fontcolor);
}

.faq-item {
  padding: 1%;
}

.faq-question {
  width: 100%;
  background-color: var(--faqcolor);
  padding: 1% 2%;
  font-size: 1.5rem;
  text-align: left;
  color: var(--fontcolor);
  border-radius: 0.625rem;
  transition: background-color 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background-color: var(--faqhover);
}

.faq-answer {
  height: 0; /* Começa invisível */
  overflow: hidden;
  padding: 0 2%;
  font-size: 1.5rem;
  background-color: var(--faqcolor);
  color: var(--fontcolor);
  border-radius: 0.625rem;
  margin-top: 0.5rem;
  opacity: 0;
  transform: scaleY(0); /* Inicia recolhido */
  transform-origin: top;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out, height 0.4s ease-out;
}

/* Quando a resposta está ativa */
.faq-question.active + .faq-answer {
  height: auto; /* Permite que a resposta expanda de acordo com o conteúdo */
  opacity: 1;
  transform: scaleY(1); /* Expande suavemente */
  padding: 1% 2%;
}

.faq-question::after {
  content: "\25bc";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Footer */
footer {
  background: black;
  color: var(--fontcolor);
  text-align: center;
  padding: 1%;
  font-size: 1rem;
}

footer .hidden {
  color: #111111;
  font-size: 0.8rem;
}

footer .disc {
  font-size: 0.6rem;
  color: gray;
  text-align: center;
}

/* Ícone WhatsApp */
.whatsapp-fixo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: pulsew 2s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fixo img {
  width: 70%;
  height: 70%;
}

.whatsapp-fixo:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

/* Animações */
@keyframes pulseb {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes pulsew {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 8px var(--color2), 0 0 15px var(--color2);
  }
  50% {
    box-shadow: 0 0 12px var(--color2), 0 0 25px var(--color2);
  }
  100% {
    box-shadow: 0 0 8px var(--color2), 0 0 15px var(--color2);
  }
}

@keyframes neon-hover {
  0% {
    box-shadow: 0 0 8px var(--color2), 0 0 15px var(--color2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 12px var(--color2), 0 0 20px var(--color2);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 8px var(--color2), 0 0 15px var(--color2);
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  0% {
      opacity: 0;
      transform: translateY(30px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInList {
  0% {
      opacity: 0;
      transform: translateX(-30px);
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes fadeInRow {
  0% {
      opacity: 0;
      transform: translateY(-20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

/* MEDIA QUERIES */

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .text-content {
    max-width: 95%;
    text-align: center;
  }

  .image-content {
    max-width: 100%;
  }

  .image-content img {
    max-width: 60%;
  }

  #inicio-btn {
    margin-top: 3rem;
  }

  .planos-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 12px;
  }

  .planos-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Menu Toggle */
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: black;
    z-index: 1100;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  nav.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
    align-items: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 8px;
  }

  .text-content {
    max-width: 100%;
  }

  .image-content img {
    max-width: 80%;
  }

  .planos-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
    width: 100%; 
  }

  .plano {
    width: 100%; 
    max-width: 320px; 
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

@media (max-width: 375px) {
  /* Ícone WhatsApp */
  .whatsapp-fixo {
    width: 50px;
    height: 50px;
    bottom: 10px;
    right: 10px;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 6px;
  }
}
