@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --fundo-claro: rgb(238, 234, 234);
  --fundo-escuro: #02191f;
  --highlight: #fbc531;
  --destaque: #167c96;
  --fonte-principal: #0c1c33;
  --links-cor: #215d81;
  --botoes: #00d2ff;
  --link-destacado: #0345a1;
  --border: #30425c;
  --border-hover: #2f5486;
}
html {
  scroll-behavior: smooth;
}

.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

body {
  color: var(--fonte-principal);
  font-family: "Montserrat", sans-serif;
}

main {
  background: url(../imagens/background.jpg) fixed no-repeat;
  background-size: cover;
}

/* HEADER E MENU */
header {
  background-color: var(--fundo-escuro);
  color: white;
  padding: 0 20px;
}

.menu {
  display: none;
}

.mobile {
  margin: 0 auto;
  padding: 10px;
  display: flex;
  flex-flow: column wrap;
  width: 70%;
  justify-content: center;
  text-align: center;
}
.mobile i {
  font-size: 1.8em;
}
.mobile i:hover {
  color: var(--highlight);
  transition: 0.8s;
}

.menu-mobile {
  display: none;
  list-style: none;
  margin: 10px auto;
  flex-flow: column wrap;
  justify-content: center;
  gap: 10px;
  width: 70%;
  text-align: center;
}

.menu-mobile.active {
  display: flex;
}
.menu-mobile > li {
  border-bottom: 2px solid var(--destaque);
  border-radius: 10px;
}
.menu-mobile > li > a {
  color: var(--highlight);
}
.menu-mobile > li:hover {
  text-shadow: 1px 1px 2px var(--fundo-claro);
  transition: 0.8s;
}

.logo {
  padding: 10px;
}

header a {
  text-decoration: none;
  color: var(--fundo-claro);
  font-size: 1.1em;
  line-height: 1.3;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

header a:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.5em;
}
h2,
h3 {
  color: white;
  text-shadow: 3px 3px var(--fundo-escuro);
  text-align: center;
}

span {
  color: var(--links-cor);
  font-weight: bold;
  font-size: 0.8em;
}

/* HEADER E MENU */

#voltar {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--fundo-escuro);
  color: var(--highlight);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.2em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

#voltar.show {
  opacity: 1;
  pointer-events: auto;
}

#voltar:hover {
  transform: scale(1.1);
  background-color: var(--highlight);
  color: var(--fundo-escuro);
}

/* perfil */

.sobre {
  padding-bottom: 30px;
}

.perfil {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 10px;
  border-radius: 15px;
  padding: 20px;
}

.conteudo-perfil {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  justify-content: center;
  text-align: justify;
  padding: 10px;
  width: 90%;
  border-radius: 10px;
  margin: 10px auto 10px auto;
  color: var(--fundo-claro);
  font-size: 1.1em;
  line-height: 1.3;
}

.conteudo-perfil p {
  width: 70%;
}

.foto-perfil img {
  width: 150px;
  height: auto;
  border-radius: 50px;
  box-shadow: 2px 2px 5px black;
}
.icones-perfil {
  width: 100%;
}
.icones-perfil ul {
  display: flex;
  flex-flow: row nowrap;
  list-style: none;
  color: var(--fundo-claro);
  justify-content: center;
  font-size: 1.8em;
  gap: 15px;
  line-height: 1.3;
}
.icones-perfil a {
  text-decoration: none;
  color: var(--fundo-claro);
  font-size: 1.1em;
  line-height: 1.3;
  font-weight: bold;
}
.icones-perfil a:hover {
  color: var(--highlight);
}

/* perfil */

/* skills */

.skills {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}
.skills-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.skills-list li {
  background-color: var(--fundo-escuro);
  color: var(--destaque);
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.5s;
}
.skills-list li:hover {
  background-color: var(--highlight);
}

.sombra-clara {
  box-shadow: 1px 2px 5px var(--fundo-claro);
}

.formacao {
  width: 90%;
  height: auto;
  margin: 10px auto;
  text-align: center;
  background-color: var(--fundo-escuro);
  border-radius: 5px;
  color: white;
  box-shadow: 1px 2px 10px var(--fundo-claro);
}
.formacao img {
  width: 50px;
  height: auto;
}
.curso {
  margin: 5px 0;
}

/* skills */


.botoes-projetos{
  text-align: center;
  margin: 20px 0;
}
.botoes-projetos button{
  background-color: var(--fundo-escuro);
  border-radius: 5px;
  padding: 0 5px;
  color: var(--botoes);
  font-size: 1.2em;
  font-weight: lighter;
}
.botoes-projetos button:hover{
  background-color: var(--highlight);
  transition: 0.8s;
}

/*
.projetos {
  display: none;
}
*/
.projetos{
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  color: var(--fundo-claro);
  text-align: center;
}
.projeto a{
  text-decoration: none;
}
.projetos p {
  font-size: 0.8em;
  margin-bottom: 5px;
  color: var(--fundo-claro);
}
.projetos h3 {
  margin: 5px 0;
  color: var(--botoes);
  font-size: 1em;
}
.projetos i{
  font-size: 1.5em;
  color: var(--botoes);
  margin: 15px;
}
.projetos h3:hover {
  color: var(--fundo-claro);
  text-shadow: 2px 2px 5px var(--highlight);
  text-decoration: underline;
  transition: 0.8s;
}
.projetos img{
  width: 100%;
  height: 50%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.main-projeto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 auto 30px auto;
  max-width: 500px;
}

.projeto{
  background-color: var(--fundo-escuro);
  margin: 20px 0;
  border-radius: 10px;
  min-height: 350px;
}
.projeto:hover{
  background-color: var(--border-hover);
  box-shadow: 2px 2px 8px var(--fundo-claro);
  transition: 0.8s;
}

/* FOOTER */

footer {
  color: var(--border);
  text-align: center;
  padding: 30px;
  background-color: var(--fundo-escuro);
}
footer p {
  margin-bottom: 10px;
  color: var(--destaque);
  font-weight: bold;
}
footer img {
  width: 50px;
  height: auto;
  border-radius: 50px;
  transition: transform 0.3s;
  filter: invert(60%) sepia(100%) saturate(300%) hue-rotate(180deg);
}
footer img:hover {
  cursor: pointer;
  transform: scale(1.1);
}

/* FOOTER */

@media (min-width: 768px) {
  /* MENU */
  header {
    display: block;
  }

  header > nav {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }
  .mobile {
    display: none;
  }
  .menu {
    width: 60%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
  }

  /* MENU */

  /* PERFIL */

  .perfil {
    border-bottom: 2px solid var(--fundo-claro);
  }

  .conteudo-perfil {
    height: 40vh;
  }

  .foto-perfil > img {
    width: 200px;
  }

  .skills {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
  }
  .skills-list {
    margin-bottom: 0;
    width: 100%;
  }

  .skills-list li {
    height: fit-content;
    margin: 0;
  }

  .formacao {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: none;
  }
  .sombra-escura {
    text-shadow: 2px 2px 5px black;
  }
  /* PERFIL */

  /* PROJETOS */

  .projetos{
    max-width: none;
  }

  .main-projeto {
    width: 70%;
    max-width: none;
    grid-template-columns: repeat(3, 1fr);
  }
  .main-projeto img{
    height: 50%;
  }

  /* PROJETOS */
}

@media screen and (min-width: 768px) and (max-width: 1100px){
  .main-projeto {
    grid-template-columns: repeat(2, 1fr);
  }
}
