:root {
  --gray-100: #0d0e11;
  --gray-200: #16181d;
  --gray-250: #1a1d23;
  --gray-300: #292c34;
  --gray-400: #878ea1;
  --gray-500: #c0c4ce;
  --gray-600: #e2e4e9;
  --blue-500: #3996db;
  --blue-200: #68afe3;
  --yellow: #f2c94c;
  --orange: #f2994a;
}

* {
  margin: 0;
  font-family: "Inter", serif;
  color: var(--gray-600);
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-image: url(/portfolio/img/background.svg);
  /* backdrop-filter: brightness(0.4); */
  height: 100%;
}

#profile-img-container {
  width: 110px;
  height: 110px;
  border-radius: 99px;
  border: 2px solid var(--blue-500);
  display: flex;
  justify-content: center;
  align-items: center;

  & > img {
    width: 102px;
    height: 102px;
    border-radius: 99px;
  }
}

#profile #name {
  font-size: 20px;
  margin-top: 32px;
  font-weight: 500;
}

#profile h2 {
  color: var(--blue-200);
  margin-bottom: 8px;
  font-size: 36px;
}

#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  height: 100vh;
  padding: 20px;
}

#profile #description {
  margin-top: 16px;
}

#socials {
  margin-top: 24px;
  display: flex;
  gap: 24px;
}

.social-link i {
  font-size: 35px;
}

.social-link:hover {
  & > i {
    color: var(--blue-500);
  }
}

#profile-info {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 600px;
  padding: 8px;
}

#projects {
  padding-block: 24px;
  padding-inline: 32px;
  background-color: var(--gray-100);
}

#projects-title h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

#project-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

@media screen and (min-width: 700px) {
  #project-list {
    justify-content: flex-start;
  }

  #projects {
    padding-block: 32px;
    padding-inline: 48px;
  }

  #contato {
    padding-block: 32px;
    padding-inline: 48px;
  }
}

.project {
  width: 300px;
  border-radius: 6px;
  background-color: var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  position: relative;
  border: 1px solid rgb(255 255 255 / 5%);

  h3 {
    font-size: 24px;
  }

  & > img {
    border-radius: 6px 6px 0 0;
  }

  a {
    text-decoration: none;
    color: var(--blue-200);
  }

  .project-description {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--gray-600);
  }

  .project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    div {
      padding-inline: 8px;
      padding-block: 4px;
      background-color: var(--gray-300);
      border-radius: 6px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;

      p {
        font-size: 14px;
        font-weight: 600;
        color: #ffffff;
      }

      i {
        font-size: 20px;
      }

      .fa-react {
        color: var(--blue-500);
      }

      .fa-square-js {
        color: var(--yellow);
      }

      .fa-html5 {
        color: var(--orange);
      }

      .fa-css3-alt {
        color: var(--blue-500);
      }
    }
  }

  .empty {
    width: 105px;
    height: 30px;
    background: rgb(41, 44, 52);
    background: linear-gradient(
      292deg,
      rgba(41, 44, 52, 1) 0%,
      rgba(26, 29, 35, 1) 57%
    );
    border-radius: 4px;
  }

  .empty-image {
    width: 300px;
    height: 146px;
    border-radius: 6px 6px 0 0;
  }

  .empty-title {
    width: 154px;
    height: 39px;
  }

  .empty-description {
    width: 220px;
    height: 70px;
  }

  .empty-technology:nth-child(4),
  .empty-technology:nth-child(5) {
    width: 70px;
  }

  .disabled-link {
    color: var(--gray-500);
  }
}

.project:not(.empty-project):hover {
  /* border: 1px solid #fff; */
  transform: scale(1.02);
}

.project:not(.empty-project):not(:hover) {
  filter: grayscale(0.1);
}

.project:not(.empty-project):after {
  content: "";
  height: 70px;
  width: 1px;
  position: absolute;
  left: -1px;
  top: 65%;
  transition: top, opacity;
  transition-duration: 600ms;
  transition-timing-function: ease;
  background: linear-gradient(transparent, var(--blue-500), transparent);
  opacity: 0;
}

.project:not(.empty-project):after {
  top: 65%;
  opacity: 0;
}

.project:not(.empty-project):hover:after {
  top: 25%;
  opacity: 1;
}

#scroll-btn {
  position: absolute;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* justify-content: center; */
  /* align-items: center; */
  color: var(--gray-600);
  text-decoration: none;
  transition: transform 0.2s;

  i {
    color: var(--gray-600);
    font-size: 24px;
  }
}

#scroll-btn:hover {
  transform: scale(1.2);
}

#contato {
  padding-inline: 32px;
  padding-block: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  h2 {
    font-size: 20px;
    color: var(--blue-200);
    line-height: 1.6;
    margin-bottom: 8px;
  }
}

#contato-description {
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;

  p:nth-child(1) {
    /* Text 1 */
    font-size: 24px;
    font-weight: 600;
  }

  p:nth-child(2) {
    /* Text 2 */
    font-size: 16px;
    /* margin-top: 8px; */
  }
}

#lista-contatos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contato-link {
  /* width: 300px; */
  height: 54px;
  padding-inline: 16px;
  padding-block: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--gray-200);
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  text-decoration: none;

  & > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    i {
      font-size: 25px;
    }

    p {
      /* font-weight: 600; */
      font-size: 16px;
    }
  }
}

.contato-email {
  justify-content: center;
}

.contato-link:hover {
  transition: border 0.2s;
  border: 1px solid var(--gray-600);
}

#copyright {
  padding: 16px;
  background-color: var(--gray-100);
  text-align: center;
  font-size: 16px;
}

#scroll-up-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;

  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;

  background-color: var(--gray-200);
  border-radius: 100%;
  font-size: 16px;
  border: 1px solid transparent;
  transition: opacity 0.2s;
}

#scroll-up-btn:hover,
#scroll-up-btn:active {
  transition: border-color 0.2s;
  border: 1px solid var(--gray-600);
  cursor: pointer;
}

.hidden {
  display: none;
  opacity: 0;
}
