/*[GLOBAL]======================================================================*/
body {
  background-color: var(--bg-color);
}

.root {
  max-width: 100vw;
  min-height: 100vh;
  background-color: var(--bg-color);
}

.spacing {
  /* padding entre o root e o container  */
  padding: 0 var(--small-padding);
  background-color: var(--background);
}

.container {
  /* limita o tamanho */
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.section {
  width: 100%;
  min-height: 100vh;
  padding: 100px 0 30px 0;
  border-bottom: 1px solid var(--secondary-text-color);
}

.section:last-child {
  border-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

::selection {
  background-color: var(--primary-color);
  color: var(--primary-text-color);
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--secondary-text-color);
  border-radius: 0.2rem;
}

/*[TEXT]========================================================================*/
.section__title {
  margin-bottom: var(--medium-margin);
  font-size: var(--large-font-size);
  color: var(--primary-title-color);
  font-family: var(--monospace-font);
  font-weight: var(--huge-font-weight);
}

.section__title--huge {
  margin: 0;
  font-size: clamp(40px, 8vw, 70px);
}

.section__subtitle {
  margin-bottom: var(--medium-margin);
  font-size: var(--large-font-size);
  color: var(--secondary-title-color);
  font-family: var(--monospace-font);
  font-weight: var(--huge-font-weight);
}

.section__subtitle--huge {
  margin: 0;
  font-size: clamp(32px, 8vw, 70px);
}

.section__text {
  font-size: var(--small-font-size);
  line-height: 25px;
  color: var(--secondary-text-color);
}

.section__link {
  position: relative;
  padding: 0 2px;
  color: var(--primary-color);
}

.section__link::after {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  height: 1px;
  width: 0%;
  background-color: var(--primary-color);
  transition: ease-in-out 200ms;
}

.section__link:hover::after {
  width: 100%;
  inset: auto auto 0 0;
}

.section__text--serif {
  font-family: var(--sans-serif-font);
}

.section__text--mono {
  font-family: var(--monospace-font);
}

/*[COMPONENTS]==================================================================*/
.icon-btn {
  background: none;
  border: none;
  outline: none;
  padding: 0;
  font-size: var(--big-font-size);
  color: var(--secondary-text-color);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--primary-color);
}

.icon-btn--bg {
  border-radius: var(--main-border-radius);
}

.icon-btn--bg:hover {
  color: var(--primary-text-color);
  background-color: var(--tertiary-container-color);
}

.icon-btn--toggle-mobile {
  font-size: var(--large-font-size);
  position: relative;
  z-index: 10;
}

.icon-btn--animated:hover {
  transform: translateY(-5px);
  transition: ease-in-out 200ms;
}

.icon-btn--disabled {
  cursor: not-allowed;
  color: var(--tertiary-text-color);
}

.icon-btn--disabled:hover {
  color: var(--tertiary-text-color);
}

.box-btn {
  height: 50px;
  background: none;
  outline: none;
  padding: 14px 26px;
  white-space: nowrap;
  user-select: none;
  text-align: center;
  font-family: var(--sans-serif-font);
  color: var(--primary-text-color);
  font-size: var(--small-font-size);
  border: 1px solid var(--primary-color);
  border-radius: var(--main-border-radius);
  cursor: pointer;
}

.box-btn:hover {
  background-color: var(--primary-color);
  transition: ease-in-out 200ms;
}

.social__list {
  display: flex;
  align-items: center;
  gap: var(--medium-gap);
}

.social__item {
  cursor: pointer;
}

.social__link {
  font-size: var(--medium-font-size);
  color: var(--secondary-text-color);
}

.social__link:hover {
  color: var(--primary-color);
}

/*[HEADER]======================================================================*/
.top-fixed {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9;
  background-color: var(--bg-color);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  background-color: var(--bg-color);
}

.nav__logo {
  user-select: none;
  font-size: var(--large-font-size);
  color: var(--primary-title-color);
  font-weight: var(--huge-font-weight);
}

.nav__logo:hover {
  color: var(--primary-color);
}

.nav__menu {
  width: min(75vw, 400px);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  position: fixed;
  inset: 0 -100% 0 auto;
  visibility: hidden;
  background-color: var(--primary-container-color);
  transition: 400ms;
  border-radius: var(--main-border-radius);
}

.nav__menu--display {
  right: 0;
  visibility: visible;
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--huge-gap);
}

.nav__item {
  cursor: pointer;
}

.nav__link {
  padding: 10px 5px;
  user-select: none;
  font-family: var(--sans-serif-font);
  font-size: var(--medium-font-size);
  color: var(--secondary-text-color);
  border-bottom: 1px solid transparent;
}

.nav__link:hover {
  color: var(--primary-text-color);
}

.nav__link--current {
  color: var(--primary-text-color);
  border-color: var(--primary-color);
}

.nav__config {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--small-gap);
}


.theme-btn::before,
.lang-btn::before  {
  display: block;
  margin-bottom: var(--tiny-margin);
  font-size: var(--small-font-size);
  color: var(--secondary-text-color);
}

.theme-btn::before {
  content: 'Tema:';
}

.lang-btn::before {
  content: 'Idioma:';
}

.country-flag {
  width: 30px;
  height: 25px;
}

/*[HOME]========================================================================*/
.section--home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--big-gap);
  padding: 80px 0 0 0;
}

.section--home .section__text--serif {
  color: var(--primary-color);
}

.section--home .section__text {
  max-width: 540px;
}

/*[ABOUT]=======================================================================*/
.about__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--big-gap);
  place-items: center;
}

.section--about .section__text {
  margin-bottom: 15px;
}

.about__image {
  width: 160px;
  border-radius: var(--main-border-radius);
  border: 1px solid var(--primary-color);
  background-color: var(--primary-container-color);
}

.about__image:hover {
  background-color: var(--primary-color);
  transition: ease-in-out 200ms;
}

.skills__list {
  font-family: var(--sans-serif-font);
  color: var(--secondary-text-color);
}

.skills__item {
  position: relative;
  margin-bottom: var(--small-margin);
  padding-left: var(--small-padding);
  font-size: var(--small-font-size);
}

.skills__item:hover {
  color: var(--primary-text-color);
}

.skills__item::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/*[PROJECTS]====================================================================*/
.projects__grid {
  width: 100%;
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  justify-content: center;
  justify-items: center;
  gap: var(--medium-gap);
  margin-top: var(--medium-margin);
}

.projects__grid--display {
  display: grid;
}

.projects-btn {
  margin-top: var(--medium-margin);
}

.project-card {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--medium-padding);
  background-color: var(--primary-container-color);
  border-radius: var(--main-border-radius);
  cursor: default;
}

.project-card:hover {
  transform: translateY(-5px);
  transition: ease-in-out 200ms;
}

.card__header {
  display: flex;
  flex-direction: column;
}

.card__top {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--medium-margin);
}

.card__image {
  width: 45px;
  height: 45px;
}

.card__link {
  font-size: var(--medium-font-size);
}

.card__content {
  font-family: var(--monospace-font);
}

.card__title {
  font-size: var(--medium-font-size);
  font-weight: 500;
  color: var(--primary-title-color);
  margin-bottom: var(--medium-margin);
}

.card__description {
  font-size: var(--small-font-size);
  color: var(--secondary-text-color);
}

.card__tag {
  font-family: var(--sans-serif-font);
  font-size: var(--tiny-font-size);
  color: var(--tertiary-text-color);
}

/*[CONTACT]=====================================================================*/
.section--contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--huge-gap);
  text-align: center;
}

.section--contact .section__text {
  max-width: 600px;
}


/*[FOOTER]=====================================================================*/

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--medium-margin);
  color: var(--primary-text-color);
}

.footer__copyright {
  margin-bottom: var(--small-margin);
  text-align: center;
  font-size: var(--small-font-size);
  font-family: var(--sans-serif-font);
  color: var(--secondary-text-color);
}

.uil-heart {
  color: var(--primary-color);
}
