* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

a {
  color: white;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

/* NAVBAR */

.navbar-container {
  width: 100%;
  display: flex;
  align-items: center; /* Alinha os itens verticalmente */
  justify-content: flex-end; /* Alinha os itens à direita */
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  z-index: 1000;
}

.navbar-container > ul {
  display: flex;
  align-items: center; /* Alinha os itens dentro da lista */
  gap: 30px; /* Espaçamento entre os itens */
  list-style: none;
  margin-right: 20px; /* Ajuste para não encostar no canto direito */
}

.navbar-container > ul > li {
  list-style: none;
}

.navbar-container > ul > li a {
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.1rem;
  opacity: 50%;
  transition: opacity 0.5s;
  text-decoration: none;
}

.navbar-container > ul > li a:hover {
  opacity: 100%;
  cursor: pointer;
}

/* Ajustando o botão de troca de idioma */
#language-toggle {
  position: absolute;
  top: 50%; /* Centraliza verticalmente */
  left: 20px; /* Mantém no canto esquerdo */
  transform: translateY(-50%); /* Ajuste fino para centralização */
  background: none;
  border: 1px solid white; /* Borda fina e branca */
  color: white; /* Cor do texto igual aos itens da navbar */
  font-size: 1rem;
  cursor: pointer;
  padding: 8px 16px; /* Ajuste fino no espaçamento interno */
  text-transform: uppercase; /* Deixa o texto igual aos itens da navbar */
  letter-spacing: 0.1rem; /* Espaçamento entre letras */
  border-radius: 5px; /* Arredonda levemente a borda */
  opacity: 0.5; /* Mesma opacidade inicial dos itens */
  transition:
    opacity 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

#language-toggle:hover {
  opacity: 1; /* Aumenta a opacidade no hover, igual aos itens da navbar */
  border-color: #ddd; /* Bordas mais destacadas no hover */
  cursor: pointer;
}

.lang-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-left: 20px;
  padding: 10px 15px;
  transition: background 0.3s ease-in-out;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* SHOWCASE */
.showcase-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: black;
  color: #fff;
  /* background-image: url("./images/background-showcase.jpg"); */
  background-image: url("./images/teste2.jpg");
  background-size: cover;
  background-position: center;
  padding-bottom: 150px;

  /* OVERLAY - Cor do fundo da pagina (opacidade em comparação a imagem) */
  background-color: rgba(0, 0, 0, 0.6);
  background-blend-mode: color;
}

.showcase-text {
  max-width: 80%;
  text-align: center;
}

/* Sobre mim */

.showcase-container > .showcase-text > h1 {
  font-weight: 600;
  font-size: 4rem;
}
.showcase-container > .showcase-text > p {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.25rem;
  color: #eee;
  border-bottom: 1.5px solid #eee;
  padding-bottom: 8px;
  padding-left: 8px;
  padding-right: 8px;
  letter-spacing: 0.15rem;
}

.about-me-content {
  display: flex;
  align-items: center;
  margin-top: 50px;
}
.about-me-content > img {
  width: 320px;
  height: 320px;
  margin-right: 50px;
  border-radius: 200px;
}

.about-me-content > p {
  color: #fff;
  line-height: 2rem;
}

/* Inicialmente, a imagem começa invisível */
.about-me-content img {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease; /* Suaviza a transição de opacidade e visibilidade */
}

/* Quando a imagem estiver visível, ela vai aparecer */
.about-me-content img.visible {
  opacity: 1;
  visibility: visible;
}

/* Animação bounce-in--top */
.bounce-in-top {
  -webkit-animation: bounce-in-top 1.1s both;
  animation: bounce-in-top 1.1s both;
}

@-webkit-keyframes bounce-in-top {
  0% {
    -webkit-transform: translateY(-500px);
    transform: translateY(-500px);
    opacity: 0;
  }
  38% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounce-in-top {
  0% {
    transform: translateY(-500px);
    opacity: 0;
  }
  38% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Habilidades */

.skill-content {
  margin-top: 108px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.skill-content > .skill-item {
  display: flex;
  flex-direction: column;
  background-color: #202020;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 350px; /* Ajuste para garantir que todos os itens tenham a mesma largura */
  height: 300px; /* Ajuste de altura fixa */
  min-width: 200px; /* Garante que o item não fique menor que 200px */
  max-width: 500px; /* Limita a largura para evitar que fique muito grande */
  margin-bottom: 10px; /* Espaçamento entre os itens */
}
.skill-content > .skill-item > span {
  margin-top: 15px;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 500;
}

.skill-content > .skill-item > img {
  width: 80px; /* Ajusta todas as imagens para terem o mesmo tamanho */
  height: 80px; /* Garante que as imagens não fiquem desproporcionais */
  border-radius: 10px;
}

.skill-content > .skill-item > p {
  color: #fff;
  opacity: 75%;
  margin-top: 10px; /* Ajuste no espaço entre o texto e a imagem */
}

.skill-content > .skill-item:nth-child(2) {
  margin-left: 50px;
  margin-right: 50px;
}

/* Projetos */

.projects-content {
  margin-top: 118px;
  display: grid; /* Ativa o grid */
  grid-template-columns: repeat(
    auto-fit,
    minmax(600px, 1fr)
  ); /* Cria uma grid dinâmica */
  gap: 20px; /* Espaçamento entre os projetos */
}

.project-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(
    50px
  ); /* Faz com que os cards comecem com um deslocamento */
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* Quando os cards ficam visíveis */
.project-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.projects-content-small .project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 10px; /* Mantém bordas arredondadas */
}

.projects-content-small .project-item:hover {
  transform: scale(1.05);
}

.projects-content-small .project-item img {
  max-width: 100%;
  border-radius: 10px;
}

.projects-content-small .project-text-small {
  width: 100%;
  padding: 10px 0; /* Garante que o botão fique dentro do efeito */
}
.project-item > img {
  width: 300px;
  height: 300px;
  margin-top: 30px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 15px;
}

.project-text {
  /* margin-left: 50px; */
  max-width: 600px;
}

.project-text p {
  margin-bottom: 15px; /* Adiciona espaçamento entre o texto e o botão */
  margin-top: 15px;
}

.project-text-small p {
  margin-bottom: 15px; /* Para os projetos menores também */
}

.btn-project {
  gap: 10px;
}

.btn-project,
.btn-project-small {
  background: #202020; /* Preto/Cinza escuro */
  color: white;
  border: 1px solid white; /* Adiciona um contorno para destaque */
  font-weight: 500;
  margin-top: 15px;
  gap: 10px;
  padding: 10px 15px; /* Reduz o padding para acomodar textos longos */
  max-width: 90%; /* Garante que o botão não ultrapasse a área disponível */
  white-space: nowrap; /* Impede que o texto quebre em várias linhas */
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis; /* Adiciona "..." se o texto for muito grande */
  font-size: 0.9rem;
  display: inline-block;
}

.project-buttons .btn-project {
  margin-right: 15px; /* Ajuste no espaçamento entre os botões */
}

.btn-project:hover,
.btn-project-small:hover {
  background: #333333; /* Um tom mais claro ao passar o mouse */
  transform: scale(1.05); /* Pequeno efeito de zoom para interação */
}

.project-buttons {
  display: flex;
  flex-wrap: wrap; /* Permite quebrar para linha de baixo caso necessário */
  justify-content: center; /* Alinha ao centro */
  margin-top: 10px; /* Espaço entre o texto acima e os botões */
  margin-bottom: 25px; /* 🚀 Adiciona espaçamento entre os botões e as tecnologias */
}

.project-buttons .btn-project {
  flex: 1;
  text-align: center;
  min-width: 140px; /* Define um tamanho mínimo para evitar que fiquem muito pequenos */
}

.projects-content .project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
}

.projects-content .project-item img {
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
}

/* Estilizar os projetos menores */
.projects-content-small {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Distribui os itens dinamicamente */
  gap: 20px; /* Espaçamento entre os projetos */
  justify-content: center;
}

.projects-content-small .project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px; /* Limita o tamanho dos projetos para não ficarem muito grandes */
  margin: auto; /* Mantém alinhado */
}

.projects-content-small .project-item img {
  width: 80%;
  max-width: 200px;
  border-radius: 10px;
}
.project-text > p {
  color: #fff;
  opacity: 75%;
  line-height: 29px;
}

.project-text > h3 {
  color: #fff;
  font-weight: 500;
  font-size: 2.25rem;
}

.projects-content-small .project-item > img {
  width: 200px;
  height: 200px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 15px;
}

.project-text-small {
  margin: 0px 20px;
  max-width: 600px;
}

.project-text-small > p {
  color: #fff;
  opacity: 75%;
  line-height: 29px;
}

.project-text-small > h3 {
  color: #fff;
  font-weight: 500;
  font-size: 2.25rem;
}
.projects-content-small .project-item {
  justify-content: space-between;
  text-align: right;
}

.contact-form {
  display: flex;
  flex-direction: column;
  margin-top: 100px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form .form-input {
  margin-bottom: 20px;
}

.footer-container {
  width: 100%;
  background-color: black;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: space-between;
  padding: 50px;
}

.social-items a {
  margin-right: 25px;
  color: rgba(255, 255, 255, 0.75);
}

.project-item.slit-in-horizontal {
  -webkit-animation: slit-in-horizontal 0.45s ease-out both;
  animation: slit-in-horizontal 0.45s ease-out both;
}

@-webkit-keyframes slit-in-horizontal {
  0% {
    -webkit-transform: translateZ(-800px) rotateX(90deg);
    transform: translateZ(-800px) rotateX(90deg);
    opacity: 0;
  }
  54% {
    -webkit-transform: translateZ(-160px) rotateX(87deg);
    transform: translateZ(-160px) rotateX(87deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(0) rotateX(0);
    transform: translateZ(0) rotateX(0);
  }
}

@keyframes slit-in-horizontal {
  0% {
    -webkit-transform: translateZ(-800px) rotateX(90deg);
    transform: translateZ(-800px) rotateX(90deg);
    opacity: 0;
  }
  54% {
    -webkit-transform: translateZ(-160px) rotateX(87deg);
    transform: translateZ(-160px) rotateX(87deg);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateZ(0) rotateX(0);
    transform: translateZ(0) rotateX(0);
  }
}
/* Utilities */
.section-container {
  width: 100%;
  background-color: #111;
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-content {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: 0.15rem;
  color: #fff;
  text-transform: uppercase;
  padding-bottom: 8px;
  padding-left: 8px;
  padding-right: 8px;
  border-bottom: 1.5px solid #fff;
  text-align: center;
  width: fit-content;
  margin: auto;
}

.projects-content-small-title {
  margin-top: 200px; /* Espaço entre os projetos principais e "Projetos Menores" */
  margin-bottom: 150px; /* Espaço entre o título e os itens dos projetos menores */
}

.form-input {
  border: none;
  border-radius: 10px;
  background-color: #202020;
  color: white;
  padding: 20px;
  resize: none;
}

.form-input:focus {
  outline: 1px solid rgba(255, 255, 255, 0.5);
}

.form-button {
  border: none;
  padding: 20px;
  border-radius: 10px;
  background-color: black;
  color: white;
  text-transform: uppercase;
  font-weight: 600;
}

.form-button:hover {
  cursor: pointer;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.menu-toggle {
  display: none;
}
