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

html {
  scroll-behavior: smooth;
}

:root {
  --primaria: #4f46e5;
  --secundaria: #7c3aed;
  --escuro: #0f172a;
  --maisEscuro: #0a0f1c;
  --claro: #e2e8f0;
  --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.8);
  width: 100%;
  z-index: 100;
  padding: 1.5rem;
}

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

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

/* after = depois | before = antes */
.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.1s 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: 200px;
  height: 200px;
  border-radius: 50%;
  animation: animacao-locomocao-luz 6s infinite alternate;
}

/* animação de icone de perfi */
@keyframes animacao-locomocao-luz {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: none; /* Sem sombra no início */
  }

  50% {
    transform: translateY(-15%);
    box-shadow: 0px 1px 50px rgba(255, 255, 255, 0.746); /* Sombra reluzente no meio */
  }
  100% {
    box-shadow: none; /* Sem sombra no final */
  }
}

h1 {
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
  margin: 20px;
  text-shadow: 0px 1px 10px rgba(255, 255, 255, 0.746);
  animation: oscilarH1 6s infinite alternate;
}

/* animação de H1 do título */
@keyframes oscilarH1 {
  0% {
    transform: translateY(0);
    text-shadow: none; /* Sem sombra no início */
  }
  50% {
    text-shadow: 0px 1px 10px rgba(255, 255, 255, 0.746); /* Sombra reluzente no meio */
    transform: translateY(30%);
  }
  100% {
    text-shadow: none; /* Sem sombra no final */
  }
}

.cabecalho-subtitulo {
  font-size: 1.5rem;
  color: #fff;
}

.sobre {
  padding: 6rem 2rem;
}

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

.sobre-caixa {
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #fff;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgb(246, 246, 246);
}

.sobre-paragrafo {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.projetos {
  padding: 6rem 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(5px);
  border: 1px solid var(--vidro);
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
}

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

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

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

.info-projetos {
  margin-bottom: 7px;
}

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

.cixa-textos-projetos {
  padding: 1.5rem;
  color: rgba(226, 232, 240, 0.8);
}

.contatos {
  padding: 6rem 2rem;
}

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

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

/* Pixel com rastro */
.formulario-contato::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff, 0 0 30px #ffffff;
  animation: moverPixelComRastro 2s linear infinite;
}

/* Caminho do pixel com animação */
@keyframes moverPixelComRastro {
  0% {
    top: 0;
    left: 0;
  }
  25% {
    top: 0;
    left: 100%;
    transform: translateX(-100%);
  }
  50% {
    top: 100%;
    left: 100%;
    transform: translate(-100%, -100%);
  }
  75% {
    top: 100%;
    left: 0;
    transform: translateY(-100%);
  }
  100% {
    top: 0;
    left: 0;
  }
}

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

.campo-form:focus {
  border-color: var(--secundaria);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.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 1s ease;
}

.botao-form:hover {
  transform: rotateY(-4px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 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(--primaria) 0%, transparent 20%),
    var(--maisEscuro);
}
