/* Importa a fonte Poppins do Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

/* Reset e configuração global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Estilo geral do corpo do site */
body {
  background-color: #1f242d;
  color: white;
}

/* ===== CABEÇALHO FIXO ===== */
.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 20px 10%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100; /* Fica acima dos outros elementos */
}

/* Logo no canto superior esquerdo */
.logo {
  font-size: 20px;
  text-decoration: none;
  cursor: default;
  font-weight: 600;
  color: white;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

/* Links de navegação do menu */
.navbar a {
  font-size: 14px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  margin-left: 25px;
  transition: 0.3s;
  opacity: 0;
  animation: slideTop 0.5s ease forwards;
  animation-delay: calc(0.2s * var(--i)); /* Cada link anima em sequência */
}

/* Hover e link ativo do menu */
.navbar a:hover,
.navbar a.active {
  color: rgb(147, 83, 208);
}

/* ===== SEÇÃO PRINCIPAL (home) ===== */
.home {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 120px 10% 0;
}

/* Container do conteúdo textual */
.home-content {
  max-width: 600px;
}

/* Subtítulo animado */
.home-content h3 {
  font-size: 22px;
  font-weight: 700;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
  animation-delay: 0.7s;
}

/* Segundo h3 (com animação de topo) */
.home-content h3:nth-of-type(2) {
  margin-bottom: 30px;
  animation: slideTop 1s ease forwards;
  animation-delay: 0.7s;
}

/* Cor destacada */
.home-content h3 span {
  color: rgb(147, 83, 208);
}

/* Título principal */
.home-content h1 {
  font-size: 36px;
  font-weight: 600;
  margin: -3px 0;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 1s;
}

/* Parágrafo com fade da esquerda */
.home-content p {
  font-size: 16px;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1s;
}

/* Imagem lateral com animação */
.home-img img {
  max-width: 450px;
  margin-right: -20px;
  opacity: 0;
  animation: zooin 1s ease forwards, floatImage 4s ease-in-out infinite;
  animation-delay: 2s, 3s;
}

/* ===== REDES SOCIAIS ===== */
.Redes-sociais a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: transparent;
  border: 2px solid rgb(147, 83, 208);
  font-size: 20px;
  color: rgb(147, 83, 208);
  text-decoration: none;
  margin: 30px 15px 30px 0;
  transition: 0.5s ease;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}

/* Efeito hover nas redes sociais */
.Redes-sociais a:hover {
  background: rgb(147, 83, 208);
  color: #1f242d;
  box-shadow: 0 0 20px rgb(147, 83, 208);
}

/* ===== BOTÃO PADRÃO ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: rgb(147, 83, 208);
  border-radius: 40px;
  box-shadow: 0 0 10px rgb(147, 83, 208);
  font-size: 16px;
  color: #1f242d;
  letter-spacing: 1px;
  text-decoration: none;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
}

.btn-wrapper {
  margin-top: 20px;
}

/* ===== ANIMAÇÕES com @keyframes ===== */
@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Efeito zoom na imagem */
@keyframes zooin {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== RESPONSIVIDADE (para celular) ===== */
@media (max-width: 768px) {
  .header {
    padding: 20px 5%;
  }

  .home {
    flex-direction: column;
    text-align: center;
    padding: 100px 5% 0;
  }

  .home-content {
    max-width: 100%;
  }

  .home-img img {
    max-width: 300px;
    margin: 30px auto 0;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar a {
    margin: 10px 0;
  }
}

/* Efeito flutuante na imagem */
@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
  100% {
    transform: translateY(0);
  }
}
