*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    list-style: none;
    text-decoration: none;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

:root {
    --primaria:  #121212;
    --secundaria:#1b1b1b;
    --escuro:   rgba(56, 56, 56, 1);
    --maisEscuro: rgba(0, 0, 0, 1);
    --claro: #e2e8f0;
    --vidro: rgba(255, 255, 255, .2);
    --foto-perfil: rgba(185, 185, 185, 0.3);
    --background: rgba(255,255,255,.05);
    --box-shadow: rgba(134, 134, 134, 0.3);
    --navegacao: rgba(34, 34, 34, 0.8);
}

@media (prefers-color-scheme: light) {
    :root {
        --primaria:  #303030;
        --secundaria:#646464;
        --escuro:   rgba(171, 171, 171, 1);
        --maisEscuro: rgba(171, 171, 171, 1);
        --claro: #e2e8f0;
        --vidro: rgba(0, 0, 0, 0.1);
        --foto-perfil: rgba(171, 171, 171, 1);
        --background: rgba(255, 255, 255, 0.1);
        --box-shadow: rgba(44, 44, 44, 0.3);
        --navegacao: rgba(99, 99, 99, 0.8);
    }

}

body {
    background: linear-gradient(180deg, var(--maisEscuro) 0%, var(--escuro) 69%, var(--foto-perfil) 100%);
    color: var(--claro);
}

body.claro {
        --primaria:  #303030;
        --secundaria:#646464;
        --escuro:   rgba(171, 171, 171, 1);
        --maisEscuro: rgba(171, 171, 171, 1);
        --claro: #e2e8f0;
        --vidro: rgba(0, 0, 0, 0.1);
        --foto-perfil: rgba(171, 171, 171, 1);
        --background: rgba(255, 255, 255, 0.1);
        --box-shadow: rgba(44, 44, 44, 0.3);
        --navegacao: rgba(99, 99, 99, 0.8);
}

.navegacao {
    position:fixed;
    background: var(--navegacao);
    width: 100%;
    z-index: 100;
    padding: 1.5rem;

    .menu-resp {
    display: none;
  }
}

.menu {
    display: flex;
    flex-direction: bottom;
    justify-content: center;
    list-style: none;
    gap: 3rem;

    transition: background 0.2s linear;
}

.tema-toggle {
    display: flex;
    justify-content: right;
    list-style: none;
    gap: 3rem;
}

.checkbox {
  opacity: 0;
  position: absolute;
}

.label {
  background-color: var(--escuro);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  position: relative;
  height: 26px;
  width: 60px;
  transform: scale(1.5);
}

.label .ball {
  background-color: var(--claro);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 5px;
  height: 22px;
  width: 22px;
  transform: translateX(0px);
  transition: transform 0.2s linear;
}

.checkbox:checked + .label .ball {
  transform: translateX(28px);
}

.bxs-moon {
  color: #f1c40f;
}
.bxs-sun {
  color: #f39c12;
}

.menu-link {
    text-decoration: none;
    color: var(--claro);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 10px;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--foto-perfil), var(--claro));
}

.menu-link:hover::after {
    width: 100%;
    transition: width 0.5s ease;
}

.cabecalho {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.foto-perfil{
    width: 350px;
    height: 350px;
    box-shadow: 0 0 20px var(--foto-perfil);
    border-radius: 50%;
    border: 4px solid var(--vidro);
    animation: flutuar 5s ease-in-out infinite;
}

h1 {
    font-size: 3rem;
    color: var(--claro);
    font-weight: bold;
    text-align: center;
    margin: 20px;
}

.cabecalho-subtitulo {
    font-size: 1.5rem;
    color: var(--claro);
}

.tecnologias {
  padding: 6rem 2rem;
}

.tecnologias-titulo {
  font-size: 3rem;
  color: var(--claro);
  text-align: center;
}

.tecnologias-caixa {
  display: flex;
  justify-content: center;
  gap: 2rem;

  i {
    margin-top: 3rem;
    font-size: 5rem;
  }
}

.bxl-html5 {
    color: #e34c26;
  }

  .bxl-css3 {
    color: #264de4;
  }

  .bxl-javascript {
    color: #f0db4f;
  }

.sobre {
  padding: 3rem 2rem;
}

.sobre-titulo {
  font-size: 3rem;
  color: var(--claro);
  text-align: center;
  margin-bottom: 20px;
}

.sobre-caixa {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--vidro);
  backdrop-filter: blur(10px);
  background: var(--background);
}

.sobre-paragrafo {
  text-align: justify;
  font-size: 1.2rem;
}

.projetos {
  padding: 6rem 2rem;
}

.projetos-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.projetos-caixa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.projetos-imagem{
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.projetos-caixa-item {
  background: var(--background);
  border-radius: 16px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--vidro);
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
}

.projetos-caixa-item:hover {
  box-shadow: 0 10px 20px var(--box-shadow);
  transform: translateY(-10px) scale(1.03);
}

.caixa-textos-projeto {
  padding: 1.5rem;
  color: var(--claro);
}

.info-projetos {
  margin-bottom: 5px;
}

.paragrafo-projetos {
  color: var(--claro);
  line-height: 1.25rem;
}

.caixa-recursos-projetos {
  display: flex;
  justify-content: right;

  i {
    font-size: 2.5rem;
  }
}

.contato {
  padding: 6rem 2rem;
}

.contato-titulo {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.formulario-contato {
  max-width: 600px;
  margin: 0 auto;
  background: var(--background);
  backdrop-filter: blur(5px);
  padding: 2rem;
  border: 1px solid var(--vidro);
  border-radius: 16px;
}

.campo-form {
  width: 100%;
  padding: 1rem;
  background: var(--background);
  border-radius: 8px;
  color: var(--claro);
  border: 1px solid var(--vidro);
  outline: none;
}
.campo-form:focus {
  border-color: var(--secundaria);
  box-shadow: 0 0 10px var(--box-shadow);
}

.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 var(--box-shadow);
}

.fundo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}

.social-media {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0;
  list-style: none;

  div {
    width: 100%;
    max-width: 1500px;

    ul {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      margin: 10px 0;
      gap: 20px;

      a {
        transition: all .5s ease;
      }

      a:hover {
        transform: translateX(8px) rotate(8deg);
      }

      li {
        cursor: pointer;
        color: rgba(255, 255, 255, .6);
        
        .bx {
          font-size: 2rem;
          color: #fff;
        }
      }

      p {
        margin: 0;
        font-size: 1rem;
      }
    }
  }
}

@keyframes flutuar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.titulo::after {
  content: '|';
  color: white;
  opacity: 0;
  animation: .8s anime ease-in-out infinite;
}

@keyframes anime {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}