/* --- RESET E ESTILOS GLOBAIS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background-color: var(--primaria);
  color: var(--fundo);
}

:root {
  --montanhasvg: #1c8a65d7;
  --primaria: #20c997;
  --secundaria: #888888;
  --fundo: #111111;
  --fundo-card: #1d1d1d;
  --preto: #0a0a0a;
  --branco: #dedede;
  --sombra: rgba(32, 201, 151, 0.15);
  --vidro-borda: rgba(32, 201, 151, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--fundo);
  color: var(--branco);
  font-family: "Poppins", sans-serif;
}

h1,
h2,
h3,
.apresentacao-titulo {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-titulo {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;

  /* Estilos específicos do título de seção */
  font-size: 2.5rem;
  text-align: center; /* A regra para centralizar */
  margin: 0 auto 3rem; /* Garante que o bloco em si esteja centrado */
  max-width: 800px; /* Limita a largura para melhor leitura */
  color: var(--primaria);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- NAVEGAÇÃO FIXA --- */
.navegacao {
  background-color: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  height: 70px;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--branco);
  text-decoration: none;
  z-index: 10;
}
.nav-logo span {
  color: var(--primaria);
}

.menu-hamburguer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 10;
}

.hamburguer-linha {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--branco);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.menu.aberto {
  transform: translateX(0);
}

.menu-link {
  color: var(--branco);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.menu-hamburguer.aberto .hamburguer-linha:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-hamburguer.aberto .hamburguer-linha:nth-child(2) {
  opacity: 0;
}
.menu-hamburguer.aberto .hamburguer-linha:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- SEÇÃO DE APRESENTAÇÃO (HEADER) --- */

.apresentacao {
  /* Layout para centralizar o conteúdo */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* Altura e espaçamento */
  padding: 10rem 2rem;
  position: relative; /* Necessário para o z-index do conteúdo */

  /* --- O FUNDO SVG ACONTECE AQUI --- */
  background-color: var(--fundo); /* Cor de fundo caso a imagem falhe */
  background-image: url("data:image/svg+xml,%3Csvg id='visual' viewBox='0 0 960 540' xmlns='http://www.w3.org/2000/svg' version='1.1'%3E%3Cpath d='M0 165L74 227L148 128L222 157L295 126L369 263L443 99L517 170L591 140L665 214L738 222L812 217L886 193L960 87L960 0L886 0L812 0L738 0L665 0L591 0L517 0L443 0L369 0L295 0L222 0L148 0L74 0L0 0Z' fill='%231c8a65'%3E%3C/path%3E%3Cpath d='M0 149L74 199L148 229L222 180L295 86L369 151L443 122L517 183L591 109L665 172L738 71L812 161L886 100L960 91L960 0L886 0L812 0L738 0L665 0L591 0L517 0L443 0L369 0L295 0L222 0L148 0L74 0L0 0Z' fill='%23257355'%3E%3C/path%3E%3Cpath d='M0 80L74 118L148 125L222 69L295 128L369 143L443 117L517 59L591 94L665 116L738 55L812 119L886 129L960 133L960 0L886 0L812 0L738 0L665 0L591 0L517 0L443 0L369 0L295 0L222 0L148 0L74 0L0 0Z' fill='%23275c46'%3E%3C/path%3E%3Cpath d='M0 43L74 95L148 134L222 83L295 34L369 55L443 99L517 116L591 40L665 117L738 139L812 50L886 100L960 72L960 0L886 0L812 0L738 0L665 0L591 0L517 0L443 0L369 0L295 0L222 0L148 0L74 0L0 0Z' fill='%23264638'%3E%3C/path%3E%3Cpath d='M0 106L74 94L148 67L222 113L295 46L369 57L443 90L517 37L591 41L665 112L738 73L812 49L886 47L960 97L960 0L886 0L812 0L738 0L665 0L591 0L517 0L443 0L369 0L295 0L222 0L148 0L74 0L0 0Z' fill='%2323312a'%3E%3C/path%3E%3Cpath d='M0 14L74 41L148 2L222 9L295 28L369 4L443 60L517 25L591 50L665 72L738 72L812 8L886 37L960 30L960 0L886 0L812 0L738 0L665 0L591 0L517 0L443 0L369 0L295 0L222 0L148 0L74 0L0 0Z' fill='%231d1d1d'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center bottom; /* Alinha a base das montanhas no rodapé */
  background-repeat: no-repeat;
}

/* O conteúdo que fica na frente */
.apresentacao-conteudo {
  position: relative;
  z-index: 2; /* Garante que o conteúdo fique na frente do fundo */
}

.apresentacao-titulo {
  font-size: 2.5rem;
  cursor: default;
  user-select: none;
}

/* --- ESTILOS PARA O EFEITO DE HOVER NAS LETRAS --- */

.apresentacao-titulo span {
  display: inline-block; /* Melhora a "caixa" de hover de cada letra */
  transition: color 0.2s ease, transform 0.2s ease; /* Anima a cor e uma pequena subida */
}

.apresentacao-titulo span:hover {
  color: var(--montanhasvg); /* Muda para sua cor de destaque */
  transform: translateY(-3px); /* Faz a letra subir um pouco */
}
.apresentacao-sub-titulo {
  font-size: 1.2rem;
  color: var(--primaria);
  margin-top: 0.5rem;
}

.apresentacao-redes {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: center;
}

.apresentacao-redes a {
  color: var(--branco);
  text-decoration: none;
  font-size: 2rem;
  transition: color 0.3s ease;
}

.apresentacao-redes a:hover {
  color: var(--secundaria);
}

/* --- SEÇÕES PRINCIPAIS --- */
main section {
  padding: 6rem 2rem;
}

/* --- SEÇÃO LOGO ANIMADO --- */
.secao-logo-animado {
  padding: 0 2rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30vh;
  overflow: hidden;
}

.logo-animado {
  display: flex;
  gap: 30px;
  font-size: 9.5rem;
  color: var(--primaria);
  font-family: "Lato", sans-serif;
}

.logo-animado span {
  position: relative;
  display: inline-block;
  user-select: none;
  text-shadow: 0 1px 0 var(--vidro-borda), 0 2px 0 var(--vidro-borda),
    0 3px 0 var(--vidro-borda), 0 4px 0 var(--vidro-borda),
    0 5px 0 var(--vidro-borda), 0 6px 0 transparent, 0 7px 0 transparent,
    0 8px 0 transparent, 0 10px 10px rgba(0, 0, 0, 0.5);
  animation: bounce 0.6s ease-out infinite alternate;
}

.logo-animado span:nth-of-type(1) {
  animation-delay: 0.1s;
}
.logo-animado span:nth-of-type(2) {
  animation-delay: 0.2s;
}
.logo-animado span:nth-of-type(3) {
  animation-delay: 0.3s;
}
.logo-animado span:nth-of-type(4) {
  animation-delay: 0.4s;
}
.logo-animado span:nth-of-type(5) {
  animation-delay: 0.5s;
}

@keyframes bounce {
  100% {
    top: -20px;
    text-shadow: 0 1px 0 var(--vidro-borda), 0 2px 0 var(--vidro-borda),
      0 3px 0 var(--vidro-borda), 0 4px 0 var(--vidro-borda),
      0 5px 0 var(--vidro-borda), 0 6px 0 var(--vidro-borda),
      0 7px 0 var(--vidro-borda), 0 8px 0 var(--vidro-borda),
      0 9px 0 var(--vidro-borda), 0 60px 30px rgba(0, 0, 0, 0.8);
  }
}

/* --- SOBRE --- */
.sobre {
  padding-bottom: 0;
}
.sobre-caixa {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.sobre-paragrafo {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.6;
}

.competencias-container {
  width: 100%;
  margin-top: 40px;
}

.competencia-grupo {
  margin-bottom: 30px;
}

.competencia-titulo {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primaria);
}

.competencias-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.competencia-card {
  background-color: var(--fundo-card);
  border-radius: 10px;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
  text-align: center;
  border: 1px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competencia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px var(--sombra);
}

.competencia-card i {
  font-size: 3rem;
  color: var(--secundaria);
  transition: color 0.3s ease;
}

.competencia-card span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--branco);
}

.competencia-card:hover i {
  color: var(--primaria);
}

/* --- PROJETOS --- */
.projetos {
  padding: 4rem 2rem;
  scroll-margin-top: 6rem;
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.projeto-card {
  background-color: var(--fundo-card);
  border: 1px solid #222;
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent; /* Propriedade anti-destaque movida para cá */
  user-select: none;
}

.projeto-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icones-acao {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 1rem;
}

.card-icones-acao a {
  color: var(--secundaria);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.card-icones-acao a:hover {
  color: var(--primaria);
}

.card-icone-projeto {
  font-size: 4rem;
  color: var(--primaria);
  margin-bottom: 1.5rem;
  text-align: center;
}

.card-titulo-projeto {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--branco);
}

.card-tecnologias {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 2rem;
  color: var(--secundaria);
}

/* --- CONTATOS --- */
.formulario-contato {
  max-width: 600px;
  margin: 0 auto;
  background: var(--fundo-card);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--vidro-borda);
}

.grupo-form {
  margin-bottom: 1.5rem;
}

.campo-form {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--fundo);
  color: var(--branco);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.campo-form:focus {
  border-color: var(--primaria);
  box-shadow: 0 0 10px var(--sombra);
}

.botao-form {
  width: 100%;
  padding: 1rem;
  background: var(--primaria);
  color: var(--fundo);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.botao-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- RODAPÉ --- */
.rodape {
  background-color: var(--preto);
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.rodape-texto {
  font-size: 1.3rem;
}

.redes-sociais {
  display: flex;
  gap: 2rem;
}

.redes-sociais a {
  color: var(--branco);
  text-decoration: none;
  font-size: 2rem;
  transition: color 0.3s ease;
}

.redes-sociais a:hover {
  color: var(--secundaria);
}

.rodape-autoria {
  font-size: 0.9rem;
  color: #aaa;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
  .logo-animado {
    font-size: 5rem;
    gap: 15px;
  }
}

@media (min-width: 769px) {
  main section {
    padding: 8rem 2rem;
  }

  .apresentacao {
    min-height: 100vh; /* Efeito de tela cheia apenas no desktop */
    padding: 70px 2rem 0;
  }

  .apresentacao-titulo {
    font-size: 4rem;
  }

  .secao-logo-animado {
    padding: 0 2rem 6rem;
  }

  .sobre {
    padding-bottom: 0;
  }

  .section-titulo {
    font-size: 3rem;
  }

  .menu-hamburguer {
    display: none;
  }

  .menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    flex-direction: row;
    transform: none;
    gap: 2rem;
  }

  .menu-link {
    font-size: 1rem;
  }

  .menu-link:hover {
    color: var(--primaria);
  }

  .menu-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primaria);
    transition: width 0.3s ease;
  }

  .menu-link:hover::after {
    width: 100%;
  }

  .sobre-caixa {
    border-top-left-radius: 128px;
    border-top-right-radius: 128px;
  }

  .projetos {
    padding: 0 2rem;
    margin-top: 15rem;
  }
}
