* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primaria: #3e5c76;
  --secundaria: #748CAB;
  --escuro: #0D1321;
  --maisEscuro: #0a0f1c;
  --claro: #f0ebd8;
  --vidro: rgba(255, 255, 255, 0.1);
}

body {
  background-color: var(--escuro);
  color: var(--claro);
}

.navegacao {
  position: fixed;
  top: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(10px);
  width: 100%;
  z-index: 100;
  padding: 1.2rem;
}

.menu {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 3rem;
}

.menu-link {
  text-decoration: none;
  color: var(--claro);
  font-weight: 500;
  font-size: 1.2rem;
  position: relative;
  padding: 0.4rem 0;
}

.menu-link::after {
  content: '';
  height: 2px;
  width: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primaria), var(--secundaria));
  transition: width 0.5s ease;
}

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

.cabecalho {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.foto-perfil {
  width: 350px;
  height: 350px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 20px rgba(29, 45, 68, 0.3);
  border-radius: 50%;
  border: 4px solid var(--vidro);
  animation: flutuar 5s ease-in-out infinite;
}

h1 {
  font-size: 3.5rem;
  color: var(--primaria);
  font-weight: bold;
  margin: 20px;
}

.cabecalho-sub-titulo {
  font-size: 1.7rem;
  color: var(--claro);
}

.sobre {
  padding: 5rem 2rem;
}

.sobre-titulo {
  text-align: center;
  font-size: 2.5rem;
  color: var(--claro);
  margin-bottom: 20px;
}

.sobre-caixa {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--vidro);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.sobre-paragrafo {
  text-align: center;
  font-size: 1.5rem;
}

.projetos {
  padding: 8rem 2rem;
}

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

.projetos-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--vidro);
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
}

.projetos-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.projetos-card:hover {
  box-shadow: 0 10px 20px rgba(29, 45, 68, 0.2);
  transform: translateY(-10px) scale(1.03);
}

.projetos-imagem {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.paragrafo-projetos {
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.25rem;

}

.caixa-textos-projeto {
  padding: 1.5rem;
}


.info-projetos {
  margin-bottom: 5px;

}


.contatos {
  padding: 7rem 2rem 10rem;
}


.contatos-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.formulario-contato {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border: 1px solid var(--vidro);
  border-radius: 16px;
}


.campo-form {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--claro);
  border: 1px solid var(--vidro);
  outline: none;
  transition: all 0.3s ease;
  resize: none;
}

.campo-form:focus {
  border-color: var(--secundaria);
  box-shadow: 0 0 10px rgba(29, 45, 68, 0.3);
}

#mensagem {
  height: 70px;
}

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


.botao-form {
  color: var(--claro);
  background: linear-gradient(45deg, var(--primaria), var(--secundaria));
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: all 0.5s ease;
}

.botao-form:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(29, 45, 68, 0.4);
}

.particulas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
  background:
    radial-gradient(circle at 10% 20%, var(--primaria) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, var(--secundaria) 0%, transparent 20%),
    var(--maisEscuro);
}




@keyframes flutuar {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

}

@media screen and (max-width: 768px) {

  .navegacao {
    padding: 1rem;
  }

  .menu {
    gap: 1.7rem;
  }

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

  .cabecalho {
    padding: 2rem;
  }

  .foto-perfil {
    width: 250px;
    height: 250px;
  }

  h1 {
    font-size: 2.5rem;
    text-align: center;
  }

  .cabecalho-sub-titulo {
    font-size: 1.3rem;
  }

  .sobre-titulo {
    font-size: 2rem;
  }

  .sobre-caixa {
    padding: 2rem;
  }

  .sobre-paragrafo {
    font-size: 1.2rem;
    font-display: flex;
  }

  .projetos {
    padding: 5rem 1.5rem;
  }

  .projetos-titulo {
    font-size: 2rem;
  }

  .contatos-titulo {
    font-size: 2rem;
  } 
}


  #manutencao {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  #manutencao.ativo {
    opacity: 1;
  }
  
  .janela {
    background: rgba(39, 39, 39, 0.188);
    border: 1px solid rgba(255, 255, 255, 0.149);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 2rem 3rem;
    text-align: center;
    color: #fff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: scale(0.8);
    opacity: 0;
    animation: aparecerJanela 0.4s ease forwards;
  }
  
  .janela.fechando {
    animation: fecharJanela 0.4s ease forwards;
  }
  
  #manutencao h1 {
    font-size: 3rem;
    margin-bottom: 10px;
  }
  
  #manutencao p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 1;
  }
  
  #fecharAviso {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #f00, #b30000);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s ease, background 0.3s ease;
  }
  
  #fecharAviso:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #c00, #900);
  }

  
  @keyframes aparecerJanela {
    0% {
      opacity: 0;
      transform: scale(0.8);
    }
  
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  @keyframes fecharJanela {
    0% {
      opacity: 1;
      transform: scale(1);
    }
  
    100% {
      opacity: 0;
      transform: scale(0.85);
    }
  }
  
  @media screen and (max-width: 768px) {
    .janela {
      width: 85%;
      padding: 1.5rem;
      border-radius: 12px;
    }

    #manutencao h1 {
      font-size: 1.6rem;
    }

    #manutencao p {
      font-size: 1rem;
    }

    #fecharAviso {
      width: 100%;
      font-size: 1rem;
      padding: 0.8rem;
      border-radius: 6px;
    }
  }

  @media screen and (max-width: 480px) {
    .janela {
      width: 90%;
      padding: 1.2rem;
    }

    #manutencao h1 {
      font-size: 1.4rem;
    }

    #manutencao p {
      font-size: 0.9rem;
    }

    #fecharAviso {
      font-size: 0.9rem;
    }
}
