:root {
  --foundation: #2c2c2c;
  --foundation-light: #373737;
  --foundation-dark: #1f1f1f;
  --contrast: #dfdfdf;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

ol,
ul {
  list-style: none;
}

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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  background-color: var(--foundation);
  color: var(--contrast);
  scroll-behavior: smooth;
}

.button {
  cursor: pointer;
  background-color: var(--foundation-dark);
  color: var(--contrast);
  padding: 13px;
  transition: background 0.3s, color 0.3s ease-in-out;
}

.desktop {
  display: none;
}

.mobile {
  display: block;
}

.button:hover {
  background-color: var(--contrast);
  color: var(--foundation-dark);
}

.header,
.footer {
  background-color: var(--foundation-dark);
  color: var(--contrast);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__title,
.footer__title {
  font-size: 13px;
  font-weight: bold;
}

.header__subtitle,
.footer__subtitle {
  font-size: 12px;
}

.footer__subtitle-link {
  text-decoration: underline;
}

.header__contact {
  display: flex;
}

.header__contact-link {
  display: flex;
}

.header__contact-item:not(:last-child) {
  margin-right: 26px;
}

.presentation {
  margin: 45px 0;
  padding: 0 18px;
}

.presentation__image {
  display: block;
  width: 160px;
  height: 160px;
}

.presentation__name {
  margin-top: 35px;
  font-size: 22px;
  font-weight: bold;
}

.presentation__position {
  font-size: 19px;
  margin-top: 5px;
}

.about {
  background-color: var(--foundation-light);
  padding: 22px 18px;
  margin-bottom: 68px;
}

.about__heading,
.technologies__heading,
.projects__heading,
.contact__heading {
  font-weight: bold;
}

.about__heading-separator,
.technologies__heading-separator,
.projects__heading-separator,
.contact__heading-separator {
  background-color: var(--contrast);
  margin-top: 4px;
  width: 110px;
  height: 2px;
}

.about__description {
  font-size: 14px;
  margin-top: 25px;
  line-height: 160%;
}

.about__button {
  margin-top: 16px;
  display: block;
  margin-left: auto;
}

.about__button-text {
  font-size: 12px;
  font-weight: bold;
}

.technologies {
  padding: 22px 18px;
  margin-bottom: 68px;
}

.technologies__list {
  margin-top: 20px;
}

.list__item {
  margin-bottom: 15px;
  position: relative;
  margin-left: 20px;
}

.list__item:before {
  position: absolute;
  display: block;
  content: "";
  top: 10px;
  left: -15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--foundation-dark);
  border: 1px solid var(--contrast);
}

.projects__heading-wrapper {
  padding: 0 18px;
}

.projects__list {
  margin-top: 22px;
  padding: 32px 18px;
  background-color: var(--foundation-light);
}

.projects__list-card:not(:first-child) {
  margin-top: 60px;
}

.projects__list-card-photo {
  align-self: center;
}

.card__title {
  margin-top: 23px;
  font-weight: bold;
}

.card__description {
  margin-top: 10px;
}

.card__button {
  margin-top: 16px;
  padding: 13px;
}

.card__button-text {
  font-size: 12px;
}

.contact {
  margin: 55px 0;
  padding: 0 18px;
}

.contact__way {
  margin-top: 22px;
  width: fit-content;
}

.contact__way-link {
  display: flex;
}

.contact__way-icon {
  margin-right: 14px;
}

.contact__linkedin-text {
  text-decoration: underline;
}

.footer__author-link {
  text-decoration: underline;
}

@media (min-width: 992px) {
  .header,
  .footer {
    padding: 12px 60px;
  }

  .footer__wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .desktop {
    display: block;
  }

  .mobile {
    display: none;
  }

  .contact__ways {
    margin-top: 50px;
  }

  .presentation {
    display: flex;
    padding: 0 60px;
  }

  .presentation__name {
    margin-top: 25px;
    font-size: 30px;
  }

  .presentation__position {
    font-size: 24px;
  }

  .presentation__image {
    width: 300px;
    height: 300px;
    margin-right: 50px;
  }

  .contact__way {
    margin-top: 15px;
    font-size: 14px;
  }

  .about {
    margin: 70px 60px 90px;
    padding: 30px 25px 35px;
  }

  .about__heading,
  .projects__heading,
  .technologies__heading,
  .contact__heading {
    font-size: 22px;
  }

  .about__description {
    font-size: 18px;
  }

  .about__button {
    display: none;
  }

  .projects__heading-wrapper,
  .technologies {
    padding: 0 60px;
  }

  .projects__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 3%;
    background-color: transparent;
    margin: 32px 60px 80px;
    padding: 0;
  }

  .projects__list-card:not(:first-child) {
    margin-top: 0;
  }

  .projects__list-card {
    display: flex;
    flex-direction: column;
    background-color: var(--foundation-light);
    padding: 55px 30px 30px;
  }

  .card__button {
    margin-top: 0;
  }

  .card__button-link {
    margin-top: 16px;
    display: flex;
    align-self: flex-end;
  }

  .contact {
    display: none;
  }

  .header__title {
    font-size: 18px;
  }

  .header__subtitle {
    font-size: 16px;
  }

  .footer__title,
  .footer__subtitle {
    font-size: 14px;
  }
}
