/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  /*========== Colors ==========*/
  --title-color: #414141;
  --text-color: #403A3A;
  --text-color-light: #707070;
  --container-color: #cdefdc;
  --container-color-alt: #F0EFEF;
  --body-color: #FCFCFC;
  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --biggest-font-size: 1.5rem;
  --normal-font-size: .938rem;
  --small-font-size: .875rem;
  --smaller-font-size: .813rem;
  --smallest-font-size: .613rem;
  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  /*========== Margenes ==========*/
  --mb-1: .5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== font size variables to scale cv ==========*/
body.scale-cv {
  --h1-font-size: .938rem;
  --h2-font-size: .938rem;
  --h3-font-size: .875rem;
  --normal-font-size: .813rem;
  --small-font-size: .75rem;
  --smaller-font-size: .688rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  background-color: var(--container-color);
  color: var(--text-color);
  transition: background 0.4s;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*========== Reusable CSS Classes ==========*/
.container {
  max-width: 1024px;
  margin-inline: 1.5rem;
}

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

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  width: max-content;
  margin: 0 auto 2.5rem;
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--title-color);
}

label {
  font-weight: var(--font-semi-bold);
}

/*========== WORK ==========*/
.work__container {
  gap: 2rem;
}

/*========== Resume ==========*/
.resume .resume__title {
  font-size: var(--normal-font-size);
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.25rem;
}
.resume .resume__title i {
  font-size: 1.5rem;
}
.resume .technologies__used {
  margin-bottom: 1rem;
  cursor: pointer;
}
.resume .technologies__used:hover {
  text-decoration: underline;
}
.resume .resume__data {
  max-width: calc(100vw - 1.5rem);
}
.resume .resume__data .technologies__used .ri-subtract-line {
  display: none;
}
.resume .resume__data .technologies__used .ri-add-line {
  display: inline-block;
}
.resume .resume__data .technologies__used.active .ri-subtract-line {
  display: inline-block;
}
.resume .resume__data .technologies__used.active .ri-add-line {
  display: none;
}
.resume .resume__data .grid {
  gap: 1rem;
  opacity: 0;
  height: 0;
  transition: opacity 0.3s, transform 0.3s;
  margin-top: 0;
}
.resume .resume__data .grid.active {
  opacity: 1;
  height: max-content;
  margin-top: 1rem;
}
.resume .resume__data .grid .resume__list {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  align-items: baseline;
  column-gap: 3rem;
}
.resume .resume__data .grid .resume__list.short__grid {
  grid-template-columns: repeat(2, 80px);
  column-gap: 6rem;
  row-gap: 1rem;
}

/*========== Header & Nav ==========*/
.header {
  position: fixed;
  width: 100%;
  background-color: var(--container-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: background 0.4s;
}
.header .nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--title-color);
}
.header .nav .nav__logo {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}
.header .nav .nav__list {
  display: flex;
  justify-content: space-between;
}
.header .nav .nav__list .nav__link {
  position: relative;
  font-size: 1.25rem;
  color: var(--title-color);
}
.header .nav .nav__list .nav__link.active-link::after {
  transform: translateY(-4px);
  opacity: 1;
}
.header .nav .nav__list .nav__link.active_link:hover::after {
  transform: translateY(-4px);
  opacity: 1;
}
.header .nav .nav__list .nav__link::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 1px;
  background-color: var(--title-color);
  left: -6px;
  bottom: -8px;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0;
}
.header .nav .nav__list .nav__link:hover::after {
  transform: translateY(-4px);
  opacity: 1;
}

@media (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    background-color: var(--container-color);
    box-shadow: 0 4px 24px hsla(40deg, 48%, 4%, 0.25);
    margin-inline: 1.5rem;
    border-radius: 0.5rem;
    padding: 1.25rem 3rem;
    transition: background 0.4s;
  }
}
/*========== About ==========*/
section.about .about__container > p {
  text-align: center;
}
section.about .about__social {
  justify-content: center;
}
section.about .about__button, section.about .download__button {
  width: max-content;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  width: 100%;
  justify-content: center;
}
section.about .about__button i, section.about .download__button i {
  font-size: 1rem;
}
section.about .about__button:hover, section.about .download__button:hover {
  text-decoration: underline;
}
section.about .about__button:hover, section.about .download__button:hover, section.about .about__social-link:hover {
  text-decoration: underline;
}
section.about .about__social {
  display: flex;
  column-gap: 1rem;
}
section.about .about__social .about__social-link {
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: hsl(40, 48%, 90%);
  --text-color: hsl(40, 12%, 70%);
  --body-color: hsl(40, 12%, 16%);
  --container-color: hsl(40, 20%, 8%);
}

/*========== Button Dark/Light ==========*/
body:not(.dark-theme) .home__profession .line1 {
  color: hsl(40deg, 48%, 90%);
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

.dark-theme :is(.nav__menu, .scrollup) {
  background-color: hsl(40deg, 20%, 12%);
}

.dark-theme .home__profession {
  text-shadow: 0 0 6px hsl(40deg, 12%, 12%);
}

.dark-theme::-webkit-scrollbar {
  background-color: hsl(40deg, 16%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsl(40deg, 16%, 25%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background-color: hsl(40deg, 16%, 35%);
}

/*========== HOME ==========*/
.home__container {
  padding-top: 7.5rem;
  text-align: center;
  row-gap: 0;
}
.home__container .home__name, .home__container .home__profession {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
  letter-spacing: 2px;
}
.home__container .home__name {
  margin-bottom: 0.25rem;
}
.home__container .home__blob {
  position: relative;
  justify-self: center;
}
.home__container .home__perfil {
  width: 230px;
  height: 270px;
  background: linear-gradient(0deg, hsl(186deg, 50%, 70%) 0%, hsl(186deg, 40%, 88%) 73%);
  border-radius: 15rem 15rem 0 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.home__container .home__perfil .home__img {
  width: 205px;
  transform: translateY(1px);
}
.home__container .home__star-1, .home__container .home__star-2 {
  position: absolute;
  width: 50px;
  fill: var(--title-color);
  transition: background 0.4s;
}
.home__container .home__star-1 {
  top: 2.5rem;
  left: -3rem;
  rotate: 15deg;
}
.home__container .home__star-2 {
  right: -3.5rem;
  bottom: 4.75rem;
}
.home__container .home__profession {
  transform: translateY(-2rem);
}

/*========== SKILLS AND LANGUAGES ==========*/
.skills__content, .skills__list {
  display: grid;
}

.skills__content {
  grid-template-columns: repeat(2, max-content);
  align-items: baseline;
  column-gap: 3rem;
}
.skills__content .skills__list {
  row-gap: 1rem;
}
.skills__content .skills__list li {
  margin: 0;
}

/*========== FOOTER ==========*/
.footer {
  padding-block: 2.5rem 8rem;
  background-color: var(--container-color);
}
.footer .footer__container {
  border-top: 2px solid var(--title-color);
  padding-top: 1.5rem;
  grid-template-columns: repeat(2, max-content);
  justify-content: space-between;
  row-gap: 2.5rem;
}
.footer .footer__container .footer__title {
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}
.footer .footer__info, .footer .footer__link {
  font-size: var(--small-font-size);
}
.footer .footer__link {
  color: var(--text-color);
}
.footer .footer__link:hover {
  text-decoration: underline;
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(156deg, 16%, 75%);
}

::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: hsl(156deg, 16%, 65%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(156deg, 16%, 65%);
}

/*========== SCROLL TO TOP ==========*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  box-shadow: 0 4px 16px hsla(40deg, 48%, 4%, 0.15);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  color: var(--title-color);
  border-radius: 0.25rem;
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s, background 0.4s;
}
.scrollup:hover {
  transform: translateY(-0.25rem);
}
.scrollup.show-scroll {
  bottom: 120px;
}

/*========== MEDIA QUERIES ==========*/
/* For small devices, menu two columns */
@media (max-width: 470px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__menu {
    padding-inline: 2rem;
  }

  .home .home__star-1 {
    left: 0;
  }

  .home .home__star-2 {
    right: -0.5rem;
  }

  .skills__content {
    row-gap: 1rem;
  }

  .footer .footer__container {
    grid-template-columns: max-content;
    row-gap: 1.5rem;
  }
}
/* for medium devices, menu three columns */
@media (min-width: 480px) {
  .nav__menu {
    width: 320px;
    margin-inline: auto;
  }

  .footer__container {
    grid-template-columns: repeat(3, max-content);
  }

  .scrollup.show-scroll {
    bottom: 2.5rem;
  }

  .resume .resume__data .grid .resume__list {
    column-gap: 4rem;
    padding: 0 2rem 0 0;
    grid-template-columns: repeat(3, 80px);
  }

  .skills__content {
    grid-template-columns: repeat(2, 50%);
    column-gap: 0rem;
  }
}
@media (min-width: 768px) {
  .section {
    padding-top: 2.5rem;
  }
  .section.about .about__container > p {
    text-align: left;
  }
  .section.about .about__button, .section.about .download__button, .section.about .about__social {
    justify-content: flex-start;
  }

  .section__title {
    margin: 0 0 2rem;
  }

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

  .resume__left, .resume__right {
    padding-inline: 1.5rem;
  }

  .header {
    position: initial;
  }

  .nav {
    margin: 0;
  }

  .nav__menu, .scrollup {
    display: none;
  }

  .home {
    grid-column: 1/3;
  }
  .home .home__container {
    padding-top: 3rem;
  }

  .footer {
    padding-block: 2.5rem 2rem;
  }
  .footer .footer__container {
    grid-template-columns: repeat(3, max-content);
  }

  .resume .resume__data .grid .resume__list {
    column-gap: 3rem;
    padding: 0;
  }

  .skills__content {
    grid-template-columns: repeat(2, max-content);
    column-gap: 3rem;
  }
}
/* Large Screens */
@media (min-width: 1024px) {
  body {
    background-color: var(--body-color);
    margin-block: 3rem;
  }

  .resume {
    background-color: var(--container-color);
    margin-inline: auto;
    transition: background 0.4s;
  }
  .resume.container {
    box-shadow: 0 0 48px hsla(40deg, 48%, 12%, 0.2);
  }
  .resume .resume__main {
    grid-template-columns: 376px 1fr;
  }
  .resume .dark-theme .resume {
    box-shadow: 0 0 48px hsla(40deg, 48%, 4%, 0.4);
  }
  .resume .nav {
    height: calc(var(--header-height) + 1.5rem);
    margin-inline: 1.5rem;
  }
  .resume .home__name {
    margin-bottom: 0.5rem;
  }
  .resume .home__perfil {
    width: 280px;
    height: 320px;
  }
  .resume .home__perfil .home__img {
    width: 245px;
  }
  .resume .home__star-1, .resume .home__star-2 {
    width: 70px;
  }
  .resume .home__star-1 {
    left: -6rem;
  }
  .resume .home__star-2 {
    right: -6rem;
    bottom: 6rem;
  }
  .resume .home__profession {
    transform: translateY(-2rem);
  }

  .footer__container {
    margin-inline: 1.5rem;
    padding-top: 2rem;
  }
}
/* icons */
.ri-checkbox-blank-circle-fill {
  font-size: var(--smallest-font-size);
}

/*# sourceMappingURL=styles.css.map */
