/* CSS reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  --cor-primaria: #352f44;
  --cor-secundaria: #5c5470;
  --cor-terciaria: #5c5470;
  --cor-quartenaria: #7b6f9b;
  --cor-fundo: #faf0e6;
  --font-primaria: Roboto, sans-serif;
  --font-secundaria: Montserrat, sans-serif;
  color: var(--cor-primaria);
  font-family: var(--font-secundaria);
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-primaria);
}

a {
  text-decoration: none;
}

ul,
li {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  display: block;
  font-size: 1rem;
  font-family: var(--font-primaria);
  color: var(--cor-primaria);
}

/* Header */
.header {
  margin-top: 4rem;
  margin-bottom: 6rem;
  text-align: center;
}

.header h1 {
  display: inline-block;
  position: relative;
  font-size: 3rem;
}

.header h1::before {
  content: "";
  display: block;
  width: 65px;
  height: 60px;
  background: url("img/detalhe.svg") no-repeat center;
  position: absolute;
  top: -14px;
  left: -38px;
  z-index: -1;
}

.header h2 {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 800px) {
  .header h1 {
    font-size: 4rem;
  }
}

/* Main */
main {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

main .section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

main .section h3 {
  text-transform: uppercase;
  color: var(--cor-primaria);
  background-image: url("img/fundo-subtitulo.svg");
  padding: 1rem 2rem;
}

main .section > div {
  padding: 2rem 2rem;
}

main .section > div ul {
  min-width: 211px;
}

main .section div p {
  max-width: 60ch;
  line-height: 1.6;
  text-align: left;
}

@media (min-width: 800px) {
  main .section > div {
    padding: 2rem 4rem;
  }
}

/* Section Apresentação */
.section.apresentacao > div p:last-child {
  padding-top: 2rem;
}

/* Section Habilidades */
.section.section.habilidades {
  position: relative;
}

.section.habilidades ul li {
  font-size: 1.2rem;
  line-height: 1.6;
}

@media (min-width: 800px) {
  .section.habilidades::before {
    z-index: -1;
    content: "";
    display: block;
    position: absolute;
    top: 5rem;
    left: 3rem;
    width: 120px;
    height: 120px;
    background-image: url("assets/react.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
  }

  .section.hobbies::after {
    z-index: -1;
    content: "";
    display: block;
    position: absolute;
    top: 5rem;
    right: 3rem;
    width: 160px;
    height: 160px;
    background-image: url("assets/guitar.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
  }

  .section.formacao::before {
    z-index: -1;
    content: "";
    display: block;
    position: absolute;
    top: 7rem;
    left: 1rem;
    width: 140px;
    height: 140px;
    background-image: url("assets/capelo.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    transform: rotate(-20deg);
  }
}

@media (min-width: 1200px) {
  .section.habilidades::before {
    top: 6rem;
    left: 10rem;
  }

  section.hobbies::after {
    top: 6rem;
    right: 10rem;
  }

  .section.formacao::before {
    top: 6rem;
    left: 10rem;
  }
}

@media (min-width: 1350px) {
  .section.habilidades::before {
    top: 6rem;
    left: 10rem;
    width: 180px;
    height: 180px;
  }

  .section.hobbies::after {
    top: 6rem;
    right: 10rem;
    width: 240px;
    height: 240px;
  }

  .section.formacao::before {
    top: 6rem;
    left: 10rem;
    width: 220px;
    height: 220px;
  }
}

/* Section Hobbies */
.section.hobbies {
  position: relative;
}

.section.hobbies ul li {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Section Formação */
.section.formacao {
  position: relative;
}

.section.formacao article {
  margin-bottom: 1.5rem;
}

.section.formacao article span {
  font-weight: 400;
  font-size: 0.8rem;
}

/* Footer */
.footer {
  margin-top: 4rem;
  text-align: left;
  padding: 2rem 2rem;
  color: var(--cor-fundo);
  background-color: var(--cor-terciaria);
}

.footer > p {
  margin-top: 2rem;
}

.footer .social-heading {
  margin: 2rem 0 0.5rem 0;
  text-transform: uppercase;
}

.footer .social {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  margin-top: 2rem;
}

.footer .social a {
  color: inherit;
  text-decoration: none;
  padding: 1rem 0.5rem;
}

@media (min-width: 800px) {
  .footer {
    text-align: center;
    padding: 2rem 4rem;
  }

  .footer .social {
    flex-direction: row;
    gap: 20px;
  }

  .footer .social a {
    padding: 1rem;
  }
}
