/*==================== GOOGLE FONTS ====================*/
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500&display=swap");
/*==================== VARIABLES CSS ====================*/

:root {
  font-size: 16px;
  --header-height: 3rem;
  /*========== Colors ==========*/
  /* Change favorite color */
  --hue-color: 350; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/
  --hue-color--dark: 250; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

  /* HSL color mode */
  --first-color: hsl(var(--hue-color), 69%, 61%);
  --first-color-second: hsl(var(--hue-color), 69%, 61%);
  --first-color-alt: hsl(var(--hue-color), 57%, 53%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --text-color-light: hsl(var(--hue-color), 8%, 65%);
  --input-color: hsl(var(--hue-color), 70%, 96%);
  --body-color: hsl(var(--hue-color), 0%, 92%);
  --body-color-dark: hsl(var(--hue-color--dark), 28%, 12%);
  --container-color: #fff;
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

  /*========== Font and typography ==========*/
  --body-font: "Open Sans", sans-serif;
  --title-font: "Bebas Neue", sans-serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --big-font-size: 3rem;
  --big-line-height: 3rem;
  --h1-font-size: 3rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes Bottom ==========*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}
/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 12rem;
    --big-line-height: 12rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*========== Variables Dark theme ==========*/

body.dark-theme {
  /* HSL color mode */
  --first-color: hsl(var(--hue-color--dark), 69%, 61%);
  --first-color-second: hsl(var(--hue-color--dark), 30%, 8%);
  --title-color: hsl(var(--hue-color--dark), 8%, 95%);
  --text-color: hsl(var(--hue-color), 0%, 97%);
  --input-color: hsl(var(--hue-color--dark), 29%, 16%);
  --body-color: hsl(var(--hue-color--dark), 28%, 12%);
  --container-color: hsl(var(--hue-color--dark), 29%, 16%);
  --scroll-bar-color: hsl(var(--hue-color--dark), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color--dark), 12%, 36%);
}
/*==================== BASE ====================*/

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

::-moz-selection {
  background: #87cd33;
  color: white;
}

::selection {
  background: #87cd33;
  color: white;
}

body {
  overflow: hidden;
  font-family: var(--body-font);
  background-color: var(--body-color);
  color: var(--title-color);
  /*cursor: none;

  /*font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
    sans-serif, Apple Color Emoji, Segoe UI Emoji;*/
}

h1 {
  font-size: var(--big-font-size);
  font-family: var(--title-font);
}
h2 {
  font-size: var(--h2-font-size);
  font-family: var(--title-font);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}
header {
  height: 30px;
}

:-webkit-any-link {
  color: var(--first-color);
}

:-moz-any-link {
  color: var(--first-color);
}

:any-link {
  color: var(--first-color);
}

.df {
  display: flex;
}
.aic {
  align-items: center;
}
.jcc {
  justify-content: center;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  color: white;
  z-index: var(--z-fixed);
}

/*========== SCROLL BAR ==========*/

::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*========== Button Dark/Light ==========*/

.nav__btns {
  display: flex;
  align-items: center;
}

.change-theme {
  font-size: 1.25rem;
  columns: var(--title-color);
  margin-right: var(--mb-1);
  cursor: pointer;
}

.change-theme:hover {
  color: var(--first-color);
}
/*==================== NAV ====================*/

.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo,
.nav__mail {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

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

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    padding: 2rem 1.5rem 4rem;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
    border-radius: 1.5rem 1.5rem 0 0;
    transition: 0.3s ease;
  }
}

.nav__icon {
  font-size: 1.2rem;
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  bottom: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}
.nav__close:hover {
  color: var(--first-color-alt);
}
/* Active link */
.active-link {
  color: var(--first-color);
}

/*==================== INTRO SECTION ====================*/

.intro__section {
  font-family: var(--title-font);
  font-size: var(--big-font-size);
  line-height: var(--big-line-height);
  overflow: hidden;
  height: 100vh;
  position: relative;
  margin-top: var(--mb-3);
}

.intro__container {
  position: relative;
  height: 40%;
  overflow: hidden;
  outline: 1px transparent;
}

.intro__section ul {
  position: absolute;
  top: 0;
  left: 0;
  list-style: none;
  white-space: nowrap;
  padding: 5% 0 0 5%;
}

.intro__content {
  color: transparent;
  -webkit-text-stroke: 2px var(--first-color);
}

.intro-mask {
  color: var(--first-color);
}

/*==================== PORTFOLIO SECTION ====================*/

.portfolio__section {
  overflow: hidden;
  font-family: var(--title-font);
}

.wrapper {
  display: flex;
}

.portfolio__gallery:not(.last) {
  padding-bottom: 1rem;
}

.portfolio__text .text {
  font-size: clamp(8rem, 15vw, 16rem);
  line-height: 1;
  font-weight: 900;
}

.portfolio__gallery img {
  width: 100%;
  height: auto;
  background: #f0f0f0;
}

.portfolio__gallery ul {
  padding-left: 1rem;
  list-style: none;
}

.portfolio__gallery li {
  flex-shrink: 0;
  width: clamp(500px, 60vw, 800px);
  padding-right: 1rem;
}

/*==================== LAYOUT ====================*/
.container {
  max-width: 100%;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

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

.header {
  width: 100%;
  background-color: var(--body-color);
}

/*==================== FOOTER ====================*/

.footer__container {
  row-gap: 3.5rem;

  grid-template-columns: repeat(3, 1fr);
}

.footer__bg {
  background-color: var(--body-color-dark);
  padding: 4rem 0 1rem;
}

.footer__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-0-25);
  color: #aaa;
}

.footer__subtitle {
  font-size: var(--small-font-size);
}

.footer__links {
  display: flex;
  flex-direction: row;
  row-gap: 1.5rem;
  column-gap: 2rem;
}

.footer__link:hover {
  color: #fff;
}

.footer__mail {
  justify-self: center;
}
.footer__socials {
  justify-self: end;
}

.footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
}

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

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: var(--text-color-light);
  margin-top: var(--mb-3);
}

.footer__title,
.footer__subtitle,
.footer__links,
.footer__social {
  color: #aaa;
}

.button--footer {
  display: inline-block;
  color: #aaa;
  padding: 1rem;
  font-weight: var(--font-medium);
  padding: 7px 40px;
  border: 2px solid #aaa;
  border-radius: 45px;
  cursor: pointer;
  transition: all 0.3s;
}

.button--footer:hover {
  background-color: var(--first-color);
  border: 2px solid var(--first-color);
  color: #fff;
}

/*==================== cursor ====================*/
.cursor {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 50%;
  left: 50%;
  margin: -24px 0 0 -24px;
  border: 3px solid #f80759;
  border-radius: 100px;
  backface-visibility: hidden;
  transition: transform 0.3s ease-out;
}
.cursor.is-moving {
  transform: scale(0.7);
}

/*==================== float img ====================*/

.intro__section img {
  position: absolute;
  /*height: 50px;*/
  width: auto;
  z-index: 1;
}

.img01 {
  top: 5%;
  left: 75%;
  animation: circle1 30s linear infinite;
}
.img03 {
  top: 45%;
  left: 85%;
  animation: circle3 30s linear infinite;
}

@keyframes circle1 {
  from {
    transform: rotate(36deg) translate(-30px) rotate(308deg);
  }
  to {
    transform: rotate(360deg) translate(-30px) rotate(-360deg);
  }
}

@keyframes circle3 {
  from {
    transform: rotate(0deg) translate(-30px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translate(-30px) rotate(-360deg);
  }
}

/*==================== BUTTONS ====================*/
.button {
  display: inline-block;
  color: #fff;
  padding: 1rem;
  font-weight: var(--font-medium);
  padding: 5px 8px;
  border: 2px solid #fff;
  border-radius: 45px;
  cursor: pointer;
  transition: all 0.3s;
}

.button:hover {
  background-color: var(--first-color-alt);
  border: 2px solid #fff;
}
.button__icon {
  font-size: 1.25rem;
  margin-left: var(--mb-0-5);
  transition: 0.3s;
}

.button--white {
  background-color: #fff;
  color: var(--first-color);
}

.button--white:hover {
  background-color: #fff;
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

.button--small {
  padding: 0.75rem 1rem;
}

.button--link {
  padding: 0;
  background-color: transparent;
  color: var(--first-color);
}

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

/*==================== ABOUT ====================*/
.about__section {
  margin: 0;
  padding: 6rem;
  height: 400px;
  border-top: 2px solid var(--title-color);
  border-bottom: 2px solid var(--title-color);
}

.about__container {
  grid-template-columns: 2fr 1fr;
}
.about__description {
  text-align: justify;
  margin-bottom: var(--mb-2-5);
  font-size: 1.6rem;
  line-height: 2rem;
  font-weight: var(--font-semi-bold);
}

.about__info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

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

.about__info__title,
.about__info-name {
  display: block;
  text-align: center;
}

.about__buttons {
  display: flex;
  justify-content: center;
}

/*==================== CIRCULAR TEXT ====================*/
svg {
  visibility: hidden;
  position: relative;
  top: -60px;
  left: 20%;
}

text {
  font-family: sans-serif;
  font-size: 24px;
  font-weight: 600;
  fill: var(--title-color);
}

.icon-download {
  position: relative;
  top: 10%;
  left: 34%;
  z-index: 1;
}

.download__icon {
  font-size: 3rem;
}

svg.mobile {
  display: none;
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media (max-width: 350px) {
  .container {
    margin-left: 1%;
    margin-right: 1%;
  }
  .nav__logo {
    display: none;
  }
  .nav__mail {
    word-break: break-word;
    padding-top: 2rem;
    font-size: 1.6rem;
    width: 60%;
    font-weight: 600;
    font-family: var(--title-font);
  }

  .intro__section {
    height: 30vh;
  }
  .intro__section ul {
    padding: 3% 0 0 1%;
  }

  .about__section {
    padding: 3%;
    height: auto;
  }
  .about__container {
    grid-template-columns: 1fr;
  }
  .about__description {
    font-size: 1.2rem;
  }

  svg.desk {
    display: none;
  }
  svg.mobile {
    display: block;
    top: -33%;
    left: 0;
  }

  .icon-download {
    top: 12%;
    left: 40%;
  }

  .footer__container {
    grid-template-columns: repeat(1, 1fr);
  }
  .footer__socials {
    justify-self: center;
  }
  .footer__title {
    text-align: center;
  }
}

/* For medium devices */
@media (max-width: 568px) {
  .container {
    margin-left: 1%;
    margin-right: 1%;
  }
  .nav__logo {
    display: none;
  }
  .nav__mail {
    word-break: break-word;
    font-size: 1.6rem;
    width: 40%;
    font-weight: 600;
    font-family: var(--title-font);
    padding-top: 6%;
  }

  .intro__section {
    height: 30vh;
  }
  .intro__section ul {
    padding: 3% 0 0 1%;
  }

  .intro-container {
    height: 70%;
  }

  .about__section {
    padding: 3%;
    height: auto;
  }
  .about__container {
    grid-template-columns: 1fr;
  }
  .about__description {
    font-size: 1.2rem;
  }

  svg.desk {
    display: none;
  }
  svg.mobile {
    display: block;
    top: -33%;
    left: 0;
  }

  .icon-download {
    top: 12%;
    left: 40%;
  }

  .footer__container {
    grid-template-columns: repeat(1, 1fr);
  }
  .footer__socials {
    justify-self: center;
  }
  .footer__title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .circle {
    margin-top: 4%;
  }

  .container {
    margin-left: 1%;
    margin-right: 1%;
  }
  .nav__logo {
    display: none;
  }
  .nav__mail {
    word-break: break-word;
    padding-top: 2rem;
    font-size: 1.6rem;
    width: 40%;
    font-weight: 600;
    font-family: var(--title-font);
  }

  .intro__section {
    height: 30vh;
  }
  .intro__section ul {
    padding: 3% 0 0 1%;
  }

  .about__section {
    padding: 3%;
    height: 600px;
    margin-bottom: 15%;
  }
  .about__container {
    grid-template-columns: 1fr;
  }
  .about__description {
    font-size: 1.2rem;
  }

  svg.desk {
    display: none;
  }
  svg.mobile {
    display: block;
    top: -33%;
    left: 0;
  }

  .icon-download {
    top: 12%;
    left: 42%;
  }

  .footer__container {
    grid-template-columns: repeat(1, 1fr);
  }
  .footer__socials {
    justify-self: center;
  }
  .footer__title {
    text-align: center;
  }
}
