:root {
  --preto-50: #f9f9f9;
  --preto-100: #929292;
  --preto-700: #515151;

  --verde-200: #d9eab0;
  --verde-600: #c6da7f;
  --verdem-600: #6c6d5c;
  --verdem-700: #595a49;

  --rosa-50: #f5eaf0;
  --rosa-100: #eed6e2;
  --rosa-200: #e4a1c1;
  --rose-600: #c05a80;

  --font-normal: "Roboto", sans-serif;
  --font-title: "Poppins", sans-serif;
}

body {
  background-color: var(--preto-50);
  font-family: var(--font-normal);
  color: var(--preto-700);
}

.title {
  font-family: var(--font-title);
  color: var(--verdem-700);
  font-weight: 700;
  text-align: center;
  font-size: 2em;
  margin: 0.5em 0 2em 0;
}

.subtitle {
  font-family: var(--font-title);
  color: var(--verdem-700);
  font-weight: 700;

  font-size: 1.3em;
  margin: 2em 0 1em 0;
}

.container {
  padding: 2em 20em;
}

.img-graph {
  width: 6em;
  height: 6em;
}

section {
  scroll-margin-top: 11rem;
}

html {
  scroll-behavior: smooth;
}

/* menu ----------------- */
header {
  position: sticky;
  text-align: center;
  width: 100%;
  background-color: #f9f9f9d0;
  top: 0;
  left: 0;
  z-index: 3;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 1em 0;
}

.img-graph {
  transition: 0.3s ease-in-out;
  margin-bottom: 2em;
}

.hide-img {
  height: 0;
  width: 0;
  visibility: hidden;
  margin-bottom: 0;
}

.navbar {
  display: flex;
  gap: 2em;
}

.nav-link {
  text-decoration: none;
  color: var(--preto-700);
  transition: all 0.1s ease-in-out;
  padding-bottom: 0.2em;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--verdem-600);
  border-bottom: 2px solid var(--verdem-600);
}

/* início --------------------- */

.inicio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  height: 70vh;
}

.inicio-title {
  font-family: var(--font-title);
  color: var(--rose-600);
  font-size: 2.5em;
  font-weight: 600;
  margin-bottom: 0.2em;
}

.inicio-descript {
  font-family: var(--font-title);
  color: var(--verdem-600);
  font-size: 1.4em;
  font-weight: 300;
  line-height: 25px;
  width: 80%;
  margin-bottom: 5em;
}

.links span {
  display: inline-block;

  width: 2em;
  height: 2em;
}

.links-link {
  margin-right: 1em;
}

.links .link-github span {
  background-image: url("../imgs/github.svg");
  background-size: contain;
}

.links .link-linkedin span {
  background-image: url("../imgs/linkedin.svg");
  background-size: contain;
}

.links .link-email span {
  background-image: url("../imgs/email.svg");
  background-size: contain;
}

.perfil-wrapper {
  position: relative;
  width: 25em;
  height: 25em;
}

.circles {
  position: absolute;
  inset: 0;
  z-index: 2;
}

#dots-green {
  fill: var(--verde-600);
}

#dots-pink {
  fill: var(--rosa-200);
}

.c1,
.c3 {
  fill: url(#dots-green);
}

.c2 {
  fill: url(#dots-pink);
}

.circle {
  animation: spin 1s linear infinite;
}

/* sobre mim --------------------- */

.sobre-mim {
  background-color: var(--rosa-50);
}

.sobre-mim-descript {
  line-height: 1.8em;
  font-size: 1.1em;
}

.sobre-mim-descript span {
  background-color: var(--rosa-100);
  padding: 0 2px;
}

.experiencias li {
  margin: 0;
  padding: 1em 0 1em 2em;
  position: relative;
}

.experiencias li:before {
  content: "";
  background-color: var(--rosa-200);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 6px;
  width: 3px;
  opacity: 0.7;
}

.experiencias li:first-child:before {
  background-image: linear-gradient(180deg, var(--rosa-50), var(--rosa-200));
  border-radius: 5px 5px 0 0;
}

.experiencias li:last-child:before {
  background-image: linear-gradient(180deg, var(--rosa-200), var(--rosa-50));
  border-radius: 0 0 5px 5px;
}

.experiencias li::after {
  content: "";
  background-image: url(../imgs/circle-green.svg);
  position: absolute;
  left: -3px;
  top: 1em;
  width: 25px;
  height: 25px;
}

.experiencias .exp-title {
  font-weight: 600;
  font-size: 1.05em;
  margin-bottom: 0.2em;
}

/* projetos -------------------- */

.projetos {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1em 0 8em 0;
}

#projects-itens {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

#projects-itens .item {
  margin-bottom: 1em;
  
  color: var(--preto-700);
}

.item img {
  width: 20em;
  height: 12em;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #dbdbdb;
}

.item h4 {
  font-weight: 600;
  font-size: 1.05em;
  margin-bottom: 0.2em;
}

.item p {
  color: var(--preto-100);
}

.item div {
  position: relative;
  padding: 0.5em 0.5em 1em 0;
}

.item div a {
  position: absolute;
  top: 5px;
  right: 2px;
  width: 20px;
  height: 20px;
  background-image: url(../imgs/link.svg);
  background-repeat: no-repeat;

  transition: .2s ease-in-out;
}

.item div a:hover {
  transform: translateY(5%);
}

/* footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--rosa-50);
}

/* outras telas -------------------- */

@media screen and (max-width: 1720px) {
  .container {
    padding: 2em 14em;
  }
}

@media screen and (max-width: 1400px) {
  .container {
    padding: 2em 8em;
  }

  .perfil-wrapper {
    width: 20em;
    height: 20em;
  }

  .perfil {
    width: 18em;
    height: 18em;
  }

  section {
    scroll-margin-top: 4rem;
  }
}

@media screen and (max-width: 1000px) {
  .inicio {
    flex-direction: column-reverse;
    text-align: center;
  }

  .inicio-descript {
    width: auto;
  }

  .perfil-wrapper {
    width: 18em;
    height: 18em;
  }

  .perfil {
    width: 16em;
    height: 16em;
  }

  #projects-itens {
    flex-direction: row;
    justify-content: center;
    gap: 3em;
  }

}

@media screen and (max-width: 720px) {
  .container {
    padding: 2em 2em;
  }

  .navbar {
    gap: 1em;
  }

  .inicio-title {
    font-size: 2em;
  }

  .inicio-descript {
    font-size: 1.2em;
    width: 20em;
    margin-bottom: 3em;
  }

  .inicio {
    justify-content: start;
    gap: 1em;
  }

  .title {
    font-size: 1.8em;
  }

  .subtitle {
    font-size: 1.2em;
  }
}

@media screen and (max-width: 480px) {
  .inicio-title {
    font-size: 1.4em;
  }

  .inicio-descript {
    font-size: 0.9em;
    line-height: 1.2em;
  }

  .title {
    margin: 0.5em 0 1.5em 0;
  }
}
