@import url("normalize.css");

@font-face {
  font-family: "Archivo";
  src:
    url("../fonts/ArchivoBlack-Regular.woff2") format("woff2"),
    url("../fonts/ArchivoBlack-Regular.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("../fonts/OpenSans-Regular.woff2") format("woff2"),
    url("../fonts/OpenSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("../fonts/OpenSans-SemiBold.woff2") format("woff2"),
    url("../fonts/OpenSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src:
    url("../fonts/OpenSans-Bold.woff2") format("woff2"),
    url("../fonts/OpenSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

.page {
  background-color: #000000;
  font-family: "Open Sans", sans-serif;
  color: #ffffff;
  min-width: 320px;
  min-height: 100vh;
}

.content {
  max-width: 1440px;
  /* margin: 0 auto; */
  margin: 89px auto 100px auto;
}

/* Profile */

.profile {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 100px;
}

.profile__info {
  flex: 1;
}

.profile__heading h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1.15;
  margin: 0 0 15px;
}

.profile__short__description {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #b0b0b0;
  margin: 0 0 30px;
}

.profile__description {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #ffffff;
  margin: 0 0 30px;
}

.profile__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
}

.profile__link {
  color: #ffffff;
  text-decoration: underline;
  font-size: 1.125rem;
  font-weight: 600;
}

.profile__link:hover {
  color: #b0b0b0;
}

.profile__image {
  width: 387px;
  height: 500px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Skills */

.skills {
  margin-bottom: 100px;
}

.skills__title {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  margin: 0 0 24px;
}

.skills__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
}

.skills__item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills__item:first-child {
  justify-content: flex-start;
}
.skills__item:last-child {
  justify-content: flex-end;
}

.skills__icon {
  width: 50px;
  height: 57px;
  object-fit: contain;
}

/* Projects */

.projects__title {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 50px;
}

.projects__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.projects__card {
  background-color: #1a1a1a;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.projects__image {
  width: 100%;
  height: 384px;
  object-fit: cover;
  display: block;
}

.projects__content {
  margin: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.projects__card-title {
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.projects__card-description {
  font-size: 1.125rem;
  line-height: 1.35;
  color: #ffffff;
  margin: 30px 0px 20px 0px;
}

.projects__links {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.projects__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8b7cff;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 400;
}

.projects__link:hover {
  color: #b0b0b0;
}

.projects__link-img1 {
  width: 132px;
  height: 32px;
}

.projects__link-img2 {
  width: 83px;
  height: 22px;
}

/* Footer */

.footer {
  max-width: 1440px;
  text-align: center;
  color: #b0b0b0;
  font-size: 0.875rem;
}

.footer__title {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1.1;
  margin: auto;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer__email {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #ffffff;
  margin-bottom: 30px;
}

.footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 80px;
}

.footer__social-item {
  margin: 0;
  padding: 0;
}

.footer__social-link {
  display: block;
  margin: 0;
  padding: 0;
}

.footer__social-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

/* Responsive */

@media (max-width: 768px) {
  .profile__image {
    width: 216px;
    height: 280px;
  }

  .skills__list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }

  .projects__cards {
    grid-template-columns: 1fr;
  }

  .projects__image {
    height: auto;
  }
}

@media (max-width: 320px) {
  .content {
    padding: 32px 20px;
  }

  .profile {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 56px;
  }

  .profile__info {
    width: 100%;
    text-align: center;
  }

  /* Cambio: 4.5rem -> 3rem */
  .profile__heading h1 {
    font-size: 3rem;
  }

  /* Cambio: 1.125rem -> 1rem */
  .profile__short__description,
  .profile__description,
  .profile__link {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    width: 100%;
    overflow-wrap: break-word;
  }

  .profile__links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .profile__image {
    width: 280px;
    height: 280px;
  }

  /* Cambio: 2.5rem -> 1.75rem */
  .skills__title {
    font-size: 1.75rem;
    text-align: center;
  }

  .skills__list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
  }

  .skills__item {
    width: auto;
  }

  .skills__icon {
    width: 30px;
    height: 34.2px;
    object-fit: contain;
  }

  .projects__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 32px;
  }

  .projects__content {
    padding: 28px 20px;
  }

  .projects__card-title {
    font-size: 1.5rem;
  }

  .projects__card-description {
    font-size: 1rem;
    line-height: 1.5;
  }

  .projects__links {
    flex-wrap: wrap;
    gap: 20px;
  }

  .projects__link {
    font-size: 1rem;
  }

  .footer__social {
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: 20px;
  }
}
