/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* 
         Change favorite color:

         Default (Purple): hsl(255, 60%, 64%)
         Blue: hsl(220, 60%, 64%) - Pink: hsl(300, 60%, 64%)
         Green: hsl(110, 60%, 64%) - Cyan: hsl(180, 60%, 64%)
         Orange: hsl(15, 60%, 64%) - Red: hsl(358, 60%, 64%)

         For more colors visit: https://htmlcolorcodes.com/
         -> Choose any color 
         -> Copy the color mode (HSL)
  */
  --hue: 255;
  --first-color: hsl(var(--hue), 60%, 64%);
  --first-color-alt: hsl(var(--hue), 80%, 56%);
  --first-color-alt-2: hsl(var(--hue), 60%, 56%);
  --first-color-light: hsl(var(--hue), 60%, 74%);
  --title-color: hsl(240, 8%, 95%);
  --text-color: hsl(240, 8%, 70%);
  --text-color-light: hsl(240, 8%, 50%);
  --body-color: hsl(240, 100%, 2%);
  --container-color: hsl(240, 8%, 6%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3rem;
    --bigger-font-size: 2rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

button {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  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: 1120px;
  margin-inline: 1.5rem;
}

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

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

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 3rem;
}

.section__title span {
  color: var(--first-color);
}

.main {
  overflow: hidden;
}

/*=============== BLOB ===============*/
/* Blob animate */
.blob-animate {
  width: 100px;
  height: 100px;
  background: linear-gradient(180deg, 
              var(--first-color-alt) 20%,
              var(--first-color-light) 100%);
  border-radius: 50%;
  position:absolute;
  filter: blur(35px);
  z-index: -1;
  animation: animateBlob 5s linear infinite;
}

@keyframes animateBlob {
  0%{ 
    transform: rotate(0);
  }
  100%{ 
    transform: rotate(360deg);
  }
}
 
/* Blob */
.blob{
  width: 250px;
  height: 250px;
  background: linear-gradient(180deg,
              var(--first-color) 0%,
              var(var(--first-color-alt) 100%);
              border-radius: 50%;
              filter: blur(50px);
              position: absoblute;
              z-index: -1;
}


/*=============== CUSTOM CURSOR ===============*/
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--first-color);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .3s ease, height .3s ease, background-color .3s ease, border .3s ease;
  z-index: var(--z-fixed);
}
/* Hide the custom cursor */
.cursor--hidden {
  opacity: 0;
}
/*=============== HEADER & NAV ===============*/

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(180deg,
              var(--body-color) 60%,
              hsla(240, 100%, 2%, 0) 100%);
  z-index: var(--z-fixed);
}

.header .blob-animate {
  top: -3rem;
  left: -3rem;
}

.nav{
  display: flex;
 justify-content: space-between;
 padding-block: 1rem;
}

.nav__logo {
font-family: var(--second-font);
font-weight: var(--font-semi-bold);
color: var(--title-color);
align-self: flex-start;
transition: color .4s;
}

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

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: .5rem;

}

.nav__link {
  color: var(--text-color);
  font: var(--font-semi-bold) var(--small-font-size) var(--second-font);
  transition: color .4s, text shasow .4s;
}

.nav__link:hover {
  color: var(--first-color);
  text-shadow: 0 8px 16px var(--first-color);
}

/*Active link */
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*=============== HOME ===============*/
.home {
  position: relative;
  padding-top: 4rem;
  row-gap: 3rem;
}

.home__greeting {
  font-size: var(--h2-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.home__name {
  font-size: var(--bigger-font-size);
}

.home__image{
  position: relative;
  display: grid;
  overflow-y: clip;
}

.home__image .blob-animate{
  width: 250px;
  height: 250px;
  bottom: 0;
  justify-self: center;
}

.home__perfil{
  width: 320px;
  justify-self: center;
}

.home__shadow, .home__info, .home__social, .home__cv{
  position: absolute
}

.home__shadow{
  width: 100px;
  height: 375px;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(180deg, 
              hsla(240, 100%, 2%, 0) 60%,
              hsl(240, 100%, 2%) 85%);
}

.home__info {
  z-index: 2;
  bottom: -1rem;
  justify-self: center;
}

.home__split{
  font-size: var(--h3-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.home__profession-1, .home__profession-2{
  font-size: var(--bigger-font-size);
  text-align: center;
  overflow: hidden;
}

.home__profession-1{
  position: relative;
  color: var(--first-color);
}

.home__profession-1::after{
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg,
              hsl(0, 0%, 0%) 10%,
              hsla(0, 0%, 0%, 0) 60%);
  position: absolute;
  top: 0;
  left: 0;
}

.home__profession-2{
  transform: translateY(-1rem);
}

.home__social {
  z-index: 2;
  left: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  row-gap: 75rem;
}

.home__social-link{
  color: var(--title-color);
  font-size: 1.25rem;
  transition: color .4s, text-shadow .4s;
}

.home__social-link:hover {
  color: var(--first-color);
  transform: translateX(.25rem);
}

.home__cv{
  z-index: 2;
  right: -2.5rem;
  bottom: 2.5rem;
  rotate: 90deg;
  color: var(--text-color-light);
  font: var(--font-medium) var(--small-font-size) var(--second-font);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  transition: color .4s;
}

.home__cv i{
  font-size: 1rem;
}

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

/*=============== BUTTON ===============*/
.button {
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  color: var(--title-color);
  padding: 1rem 2rem;
  box-shadow: 0 8px 32px hsl(var(--hue), 60%, 64%, .5),
              inset 8px -8px 30px var(--first-color-alt-2);
  border-radius: 4rem;
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  transition: box-shadow .4s;
}

.button i{
  font-weight: initial;
  font-size: 1rem;
}

.button:hover {
  box-shadow: 0 12px 48px hsl(var(--hue), 60%, 64%, .7),
              inset 8px -8px 30px var(--first-color-alt-2);
}

/*=============== ABOUT ===============*/
.about{
  position: relative;
}

.about__container {
  row-gap: 3rem;
  overflow-y: clip;
}

.about__data .section__title{
  margin-bottom: 1rem;
  text-align: initial;
}

.about__description {
  font-size: var(--h2-font-size);
  margin-bottom: 2rem;
}

.about__description b{
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.about__image {
  position: relative;
  justify-self: center;
}

.about__image .blob-animate:nth-child(1){
  top: 1.5rem;
  left: 1rem
}

.about__image .blob-animate:nth-child(2){
  right: -.5rem;
  bottom: .5rem;
}

.about__perfil{
  width: 220px;
}

.about__shadow{
  width: 100px;
  height: 250px;
  position: absolute;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(180deg,
               hsla(240, 100%, 2%, 0) 60%,
               var(--body-color));
}


/*=============== PROJECTS ===============*/
.projects .section__title{
  text-align: initial;
  margin-left: 1.5rem;
}

.projects__card{
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 3rem;
  overflow: hidden;
}

.projects__card .blob{
  z-index: 0;
  right: -7.75rem;
  bottom: 0;
}

.projects__number, .projects__data, .projects__image{
  position: relative;
  z-index: 1;
}

.projects__number{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects__number h1{
  font-size: var(--biggest-font-size);
}

.projects__number h3{
  font-weight: var(--font-regular);
  font-size: var(--h3-font-size);
}

.projects__data{
  margin-block: 2rem;
}

.projects__tittle{
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.projects__subtitle{
  font-family: var(--second-font);
  font-size: small;
  margin-bottom: .5rem;
}

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

.projects__img{
  border-radius: 1.5rem;
}

.projects__button{
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 2rem;
  position: absolute;
  top: .75rem;
  right: .75rem;
/*  opacity: 0;*/
/*  pointer-events: none;*/
  transition: box-shadow .4s, opacity .4s;
}

.projects__button:hover{
  box-shadow: 0 0 24px var(--first-color);
}

.projects__image:hover .projects__button{
  opacity: 1;
  pointer-events: initial;
}

/* Swiper class */
.projects__swiper {
  margin-inline: initial;
  padding-bottom: 2rem;
}

/*=============== WORK ===============*/
.work__filters {
  justify-content: center;
  margin-bottom: 3rem;
  column-gap: 1rem;
}

/* Show & hide sections */
.work__item {
  text-align: center;
  padding: 1rem;
  border-radius: .5rem;
  background-color: var(--container-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
  transition: .3s;
}

/* Active tab */
.work__item:hover {
  background-color: var(--first-color);
  color: #fff;
}

/*=============== SERVICES ===============*/
.services__container {
  row-gap: 2rem;
}

/* Hide services info */
.services__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: .3s;
  z-index: var(--z-fixed);
}
/* Rotate icon */
.services__modal.active {
  visibility: visible;
  opacity: 1;
}

/*=============== TESTIMONIALS ===============*/
.testimonials__container {
  row-gap: 2rem;
}
/* Infinite scroll animation */
.testimonials__container .swiper-slide {
  background-color: var(--container-color);
  border-radius: .5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}
/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 2rem;
}

/*=============== FOOTER ===============*/
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--container-color);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .1);
  font-size: var(--small-font-size);
}
/*=============== SCROLL BAR ===============*/
.scrollbar {
  width: 8px;
  background-color: var(--container-color);
  border-radius: 10px;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .blob,
  .home__image .blob-animate{
    width: 220px;
    height: 220px;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .home__container {
    width: 460px;
    margin-inline: auto;
  }

  .about__container{
    grid-template-columns: 460px;
    justify-content: center;
  }

  .about__data
  .about__data, .section__title{
    text-align: center;
  }
}

@media screen and (min-width: 768px) {
  .home__container{
    width: 600px;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .nav{
    height: calc(var(--header-height) + 2rem);
    align-self: center;
  }
  .nav__logo{
    align-self: initial;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 5.5rem;
  }
}

.home__container{
    width: initial;
    padding-top: 3rem;
}

.home__perfil{
    width: 600px;
}

.home__image .blob-animate{
    height: 450px;
    width: 450px;
    bottom: 2rem;
    filter: blur(50px);
}

.home__shadow{
    width: 700px;
    height: 700px;
    left: 0;
    right: 0;
    margin-inline: auto;
    background: linear-gradient(180deg, 
                hsla(240, 100%, 2%, 0) 60%,
                hsl(240, 100%, 2%) 95%);
}
.home__data{
    position: absolute;
    top: 12rem;
    left: 3rem;
    z-index: 2;
}
.home__info{
  top: 12rem;
  right: 1rem;
  bottom: initial;
}
.home__split{
    font-size: var(--h2-font-size);
}
.home__profession-1{
    font-size: var(--bigger-font-size);
    text-align: initial;
}
.home__profession-2{
    font-size: var(--bigger-font-size);
    transform: translateY(-1.5rem);
}
.home__social{
    bottom: 3rem;
    row-gap: 1.5rem;
}
.home__social-link{
    font-size: 1.5rem;
}
.home__cv{
    font-size: var(--normal-font-size);
    rotate: 0deg;
    right: 0;
}

.about__container{
    grid-template-columns: repeat(2, 500px);
    align-items: center;
    column-gap: 5.5rem;
    padding-top: 2rem;
  }
  .about__data,
  .about__data, .section__title{
    text-align: initial;
    z-index: 2;
  }

.about__description{
    margin-bottom: 3rem;

  }

  .about__perfil{
    width: 500px;
  }
  .about__image{
    order: -1;
  }
  .about__image .blob-animate{
    width: 200px;
    height: 200px;
    filter: blur(50px);
  }
  .about__image .blob-animate:nth-child(1){
    left: 4rem;
    top: 4rem;
  }
  .about__image .blob-animate:nth-child(2){
    right: -1rem;
    bottom: 3rem;
  }
  .about__shadow{
    height: 600px;
    bottom: 0;
  }
/* For 2K resolutions (2048 x 1152, 2048 x 1536) */


/* Custom cursor is hidden for mobile devices */

