* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: #fff;
  --main-color: #242fce;
}
html {
  font-size: 60%;
  overflow: auto;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow: auto;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 4rem 15%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

#menu-icon {
  font-size: 3.5rem;
  color: var(--main-color);
  display: none;
}

.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.logo:hover {
  transform: scale(1.1);
}
span {
  background: linear-gradient(270deg, #242fce, #2e9ed1);
  background-clip: text;
  color: transparent;
}
.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}

.navbar a:hover {
  color: var(--main-color);
  border-bottom: 4px solid var(--main-color);
}

.gradient-btn {
  font-size: 1.8rem;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 3rem;
  background: linear-gradient(270deg, #242fce, #2e9ed1);
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: #fff;
  border: none;
  text-wrap: nowrap;
}

.gradient-btn:hover {
  transform: scale(1.05);
}

section {
  min-height: 100vh;
  padding: 10rem 15%;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.home-content h1 {
  font-size: 8rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}

.home-content h3 {
  margin: 1rem 0;
  font-size: 4rem;
}

.home-content p {
  font-size: 1.6rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.8;
}

.home-img img {
  width: 32w;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}

.home-img img:hover {
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color),
    0 0 100px var(--main-color);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  padding: 3rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 0.5rem;
  transition: 0.3s ease-in-out;
}

.social-icons a:hover {
  color: var(--text-color);
  background-color: var(--main-color);
  transform: scale(1.2) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}

@keyframes btn_width {
  0% {
    width: 200px; /* Mantém o tamanho inicial */
    height: 70px;
  }
  100% {
    width: 200px; /* Mantém o tamanho fixo */
    height: 70px;
  }
}

@keyframes top_bottom {
  0% {
    transform: translate(-50%, -60px);
  }
  20%,
  90% {
    top: 50%;
    transform: translate(-50%, -50%);
  }
  100% {
    top: 120%;
    transform: translate(-50%, -50%);
  }
}
@keyframes bottom_top {
  0% {
    transform: translate(-50%, 60px);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}
@keyframes check_scale {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  20%,
  90% {
    transform: translate(-50%, -50%) scale(1.3);
  }
  100% {
    transform: translate(-50%, 100px) scale(1.3);
  }
}

.btn-group {
  display: flex;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 3rem;
  font-size: 1.8rem;
  color: #fff;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.btn i {
  margin-right: 10px;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
}

.btn-group a:nth-of-type(2) {
  background-color: #000;
  color: var(--text-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
  box-shadow: 0 0 25px transparent;
  background-color: var(--main-color);
  color: #fff;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  background-color: var(--second-bg-color);
}

.about-img img {
  width: 32w;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}

.about-img img:hover {
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color),
    0 0 100px var(--main-color);
}

.about-content h2 {
  font-size: 7rem;
  text-align: left;
}

.about-content p {
  font-size: 1.6rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.8;
}

.about-content .btn {
  margin: 3rem 0;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  border-radius: 10px;
}

.heading {
  text-align: center;
  font-size: 7rem;
  margin: 5rem 0;
}

.services {
  background-color: #f7e0d7;
  color: #eed0d0;
}

.services h2 {
  color: var(--main-color);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 2rem;
}

.service-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 600px;
  border-radius: 3rem;
  cursor: pointer;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
}

.service-box:hover {
  background-color: #eed0d0;
  color: var(--main-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
}

.service-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5rem;
}

.service-info h4 {
  font-size: 4rem;
  margin: 2rem 0;
  font-weight: 800;
}

.service-info p {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.7;
}

.service-info i {
  font-size: 8rem;
}

.projects {
  background-color: var(--second-bg-color);
}

.projects-box {
  display: grid;
  /* Responsividade: muda para 1 coluna em telas pequenas automaticamente */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  justify-items: center;
}

.project-card {
  display: flex;
  flex-direction: column; /* Alinha itens em coluna */
  background-color: var(--main-color);
  height: 650px; /* Altura fixa para manter todos iguais */
  width: 100%;
  max-width: 400px;
  border-radius: 3rem;
  padding: 3rem;
  transition: 0.4s ease-in-out;
  border: 5px solid transparent;
}

.project-card:hover {
  box-shadow: 0 0 30px var(--main-color);
  transform: translateY(-10px);
}

/* Container das imagens */
.image-wrapper {
  position: relative;
  width: 100%;
  height: 200px; /* Mantém a altura padrão dos cards [cite: 51] */
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 1.5rem;
}

/* Estilo base para todas as imagens no fade */
.fade-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Garante que a foto não distorça  */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  animation: fader 12s infinite; /* 12 segundos para o ciclo total */
}

/* Configuração do timing para 3 imagens */
/* Cada imagem aparece por 4 segundos (12s / 3) */
.fade-img:nth-child(1) { animation-delay: 0s; }
.fade-img:nth-child(2) { animation-delay: 4s; }
.fade-img:nth-child(3) { animation-delay: 8s; }

@keyframes fader {
  0% { opacity: 0; }
  10% { opacity: 1; }  /* Aparece */
  33% { opacity: 1; }  /* Fica visível */
  43% { opacity: 0; }  /* Desaparece */
  100% { opacity: 0; }
}

.project-card img {
  width: 100%;
  height: 200px; /* Altura fixa para a imagem */
  object-fit: cover; /* Faz a foto preencher o espaço sem esticar */
  border-radius: 1.5rem;
  margin-bottom: 2rem;
}

.project-card h3 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
}

.project-card p {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  flex: 1; /* Ocupa o espaço disponível, empurrando os ícones para baixo */
  overflow: hidden; /* Garante que texto gigante não quebre o layout */
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Limita a 5 linhas de texto */
  -webkit-box-orient: vertical;
}

.tech-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.tech-icons i {
  font-size: 3rem;
}

.project-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.project-link a {
  font-size: 1.6rem;
  color: var(--text-color);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}

.project-link a:hover {
  border-bottom: 2px solid var(--text-color);
}

.contact {
  background-color: var(--bg-color);
}

.contact h2 {
  margin: 3rem;
  color: var(--text-color);
}

.contact form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 5rem 0;
  text-align: center;
}

.contact form,
.input-box input,
.contact form textarea {
  width: 100%;
  padding: 2.5rem;
  font-size: 2rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0;
  resize: none;
}

.footer {
  background-color: var(--second-bg-color);
  padding: 50px 0;
}

.footer .social-icons {
  text-align: center;
}

.footer ul {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
}

.footer ul li {
  display: inline-block;
  margin-left: 20px;
}

.footer ul li a {
  color: #fff;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
  border-bottom: 4px solid var(--main-color);
}

.footer .copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 20px;
}

#form-message {
  font-size: 18px; /* Aumenta o tamanho da fonte */
  font-weight: bold; /* Deixa o texto em negrito (opcional) */
  color: var(--text-color); /* Cor verde para a mensagem de sucesso */
  text-align: center; /* Alinha o texto ao centro */
  padding: 10px;
  border-radius: 5px;
  background-color: var(--second-bg-color); /* Cor de fundo leve (opcional) */
  width: 100%;
  max-width: 400px; /* Limita o tamanho máximo da mensagem */
  margin: 0 auto; /* Centraliza a mensagem */
  display: none; /* Inicialmente escondida */
}
