@import "colors.css";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: var(--body-color);
  color: var(--text-color);
  transition: all 1s ease;
}

.archive-notice a:hover {
  opacity: 0.9;
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 968px;
  margin: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.profile {
  position: relative;
  padding-top: 3.5rem;
}

.profile__container {
  row-gap: 2rem;
}

.change-theme {
  position: absolute;
  top: 1.5rem;
  right: 0;
  font-size: 1.25rem;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.change-theme:hover {
  color: var(--first-color);
}

.profile__data {
  display: grid;
  text-align: center;
}

.profile__perfil {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  overflow: hidden;
  align-items: flex-end;
  justify-content: center;
}

.profile__border {
  border: 4px solid var(--first-color);
  justify-self: center;
  border-radius: 50%;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.profile__name {
  font-size: var(--h2-font-size);
}

.profile__profession {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.profile__social {
  display: flex;
  justify-content: center;
  column-gap: 0.75rem;
}

.profile__social-link {
  font-size: 1.25rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.profile__social-link:hover {
  color: var(--first-color);
}

.profile__info {
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  column-gap: 2.5rem;
}

.profile__info-group {
  text-align: center;
}

.profile__info-number {
  font-size: var(--normal-font-size);
  margin-bottom: 0.25rem;
}

.profile__info-description {
  font-size: var(--smaller-font-size);
  font-weight: 500;
}

.profile__buttons,
.profile__buttons-small {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile__buttons {
  column-gap: 1rem;
}

.profile__buttons-small {
  column-gap: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  background: var(--first-color);
  color: #ffffff;
  padding: 1.15rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px hsla(var(--hue), var(--sat), var(--lig), 0.25);
}

.button i {
  font-size: 1.25rem;
}

.button:hover {
  background: var(--first-color-alt);
  background: var(--first-color-alt);
}

.button__small {
  padding: 0.75rem;
  box-shadow: none;
}

.button__gray {
  background: var(--text-color-lighten);
  color: var(--text-color);
}

.button__gray:hover {
  background: var(--text-color-light);
}

.filters__content {
  margin: 2rem 0 2.5rem;
  background: var(--text-color-lighten);
  padding: 0.375rem;
  border-radius: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.5rem;
}

.filters__content li {
  width: 50%;
}

.filters__button {
  width: 100%;
  border: none;
  outline: none;
  padding: 1rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-family: var(--body-font);
  font-weight: 500;
  border-radius: 0.75rem;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
}

.filters__button:hover {
  background: var(--body-color);
}

.projects__card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.projects__card img {
  width: 100%;
  height: 100%;
}

.projects__modal {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: -100%;
  left: 0;
  background: linear-gradient(
    180deg,
    hsla(var(--hue), 24%, 40%, 0.3) 0%,
    hsla(var(--hue), 24%, 4%, 1) 95%
  );
  display: grid;
  align-items: flex-end;
  padding: 1.5rem 1.25rem;
  transition: all 0.4s ease;
}

.projects__card:hover .projects__modal {
  bottom: 0;
}

.projects__subtitle {
  color: #fff;
  font-size: var(--smaller-font-size);
}

.projects__title {
  color: #fff;
  font-size: var(--h3-font-size);
}

.projects__button {
  padding: 0.5rem;
}

.skills__content {
  row-gap: 3.5rem;
}

.skills__title {
  font-size: var(--h3-font-size);
  text-align: center;
  margin-bottom: 1.5rem;
}

.skills__box {
  display: flex;
  justify-content: center;
  column-gap: 3rem;
}

.skills__group {
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}

.skills__data {
  display: flex;
  column-gap: 0.5rem;
}

.skills__data i {
  font-size: 1rem;
  color: var(--first-color);
}

.skills_name {
  font-size: var(--normal-font-size);
  font-weight: 500;
  line-height: 18px;
}

.skills__level {
  font-size: var(--smaller-font-size);
}

.filters [data-content] {
  display: none;
}

.filters__active[data-content] {
  display: grid;
}

.filter-tab-active {
  background: var(--body-color);
}

.footer__copy {
  display: block;
  margin: 2.5rem 0 2rem;
  text-align: center;
  color: var(--text-color);
  font-size: var(--smaller-font-size);
}

::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background: hsl(var(--hue), 8%, 66%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background: hsl(var(--hue), 8%, 54%);
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--hue), 8%, 45%);
}

/*DARK THEME MODIFICATIONS*/

body.dark-theme .button__gray {
  background: var(--container-color);
}

body.dark-theme .button__gray:hover {
  color: hsl(var(--hue), 24%, 32%);
}

.dark-theme .filters__content {
  background: var(--container-color);
}

.dark-theme::-webkit-scrollbar {
  background: hsl(var(--hue), 8%, 16%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background: hsl(var(--hue), 8%, 24%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--hue), 8%, 32%);
}

/*MEDIA QUERY FOR SOME SMALL DEVICES*/
@media screen and (max-width: 320px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .profile__info {
    column-gap: 1.5rem;
  }

  .profile__buttons {
    flex-direction: column;
    row-gap: 1rem;
  }

  .skills__box {
    column-gap: 1rem;
  }
}

/*MEDIA QUERY FOR SOME MEDIUM DEVICES*/
@media screen and (min-width: 576px) {
  .projects__content {
    grid-template-columns: 332px;
    justify-content: center;
  }

  .filters__content {
    width: 332px;
    margin: 3rem auto;
  }
}

@media screen and (min-width: 776px) {
  .projects__content,
  .skills__content {
    grid-template-columns: repeat(2, 332px);
  }

  .skills__content {
    justify-content: center;
    column-gap: 3rem;
  }
}

/*FOR LARGE DEVICES*/

@media screen and (min-width: 992px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .change-theme {
    top: 2.5rem;
    right: 2.5rem;
  }

  .profile {
    padding-top: 4rem;
  }

  .profile__border {
    width: 135px;
    height: 135px;
    margin-bottom: 1rem;
  }

  .profile__perfil {
    width: 120px;
    height: 120px;
    background: red;
  }

  .profile__perfil img {
    width: 100%;
  }

  .profile__profession {
    margin-bottom: 1.5rem;
  }

  .profile--info {
    column-gap: 3rem;
  }

  .profile__info-description {
    font-size: var(--smaller-font-size);
  }

  .profile__buttons {
    column-gap: 2rem;
  }

  .projects__content {
    gap: 2rem 3rem;
  }

  .projects__modal {
    padding: 1.5rem;
  }

  .skills__title {
    font-size: var(--normal-font-size);
  }

  .footer__copy {
    margin: 4.5rem 0 2.5rem;
  }
}
