/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Roboto:wght@400;500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(207, 65%, 65%);
  --title-color: hsl(207, 4%, 16%);
  --text-color: hsl(207, 4%, 28%);
  --text-color-light: hsl(207, 4%, 56%);
  --body-color: hsl(207, 4%, 99%);
  --container-color: hsl(207, 4%, 95%);
  --icon:rgb(25, 111, 161);
  --first-hue: 250;
  --sat: 66%;
  --lig: 75%;

  /* Change the first number */
  /* Blue: 207 - Purple: 250 - Pink: 356 - Teal: 174 */
  --gradient-color: linear-gradient(180deg,
                      hsla(250, 48%, 72%, 0),
                      hsla(250, 65%, 65%, 1));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Roboto', sans-serif;
  --title-font: 'Lora', serif;
  --biggest-font-size: 1.5rem;
  --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;
  --tiny-font-size: .625rem;

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

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

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 3rem;
    --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;
    --tiny-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);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background .4s; /* for dark mode animation */
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --title-color: hsl(207, 4%, 95%);
  --text-color: hsl(207, 4%, 65%);
  --body-color: hsl(207, 4%, 10%);
  --container-color: hsl(207, 4%, 12%);
  --icon:gold;
  
}

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

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

.section {
  padding-block: 2.5rem;
}

.section__border {
  border-bottom: 1px solid var(--title-color);
  padding-bottom: 3.5rem;
}

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

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: .25rem;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 3rem;
}

.main {
  overflow: hidden; /* For animation */
}

/*=============== HEADER & NAV===============*/
.header{
  position: fixed;  
  top: 0;
  left: 0;
  width: 100%;
  background-color:transparent;
  z-index: var(--z-fixed);
  transition: .4s;
}

.nav{
  height: var(--header-height);
  width: 100%;
  display: flex;
  padding: 0 20px;
  justify-content: end;
  align-items: center;
  background-color:transparent ;
  transition: .4s; 
}
.nav .nav__link span{
  display: none;
}
.nav__menu{
  position: fixed;
  bottom: 1rem;
  background-color: rgba(0, 0, 0, 0.718);
  width: 80%;
  box-shadow: 0px 15px 30px rgb(76, 71, 71); 
  border-radius: 4rem;
  padding: 1rem 2.25rem;
  backdrop-filter: blur(10px);
  transition: .4s;
}
.nav__list{
  display: flex;
  justify-content: space-between;
  align-items: center;

}
.nav__link{
  color: rgba(255, 255, 255, 0.683);
  font-size: 1.5rem;
  padding: .4rem;
  display: flex;
  border-radius: 5rem;

}
.change-theme{
  position: relative;
  top : .5rem;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  font-weight: bold;
  color: var(--icon);
}

/* Active link */

.active-link{
  color: rgb(57, 94, 158);
}

/*=============== HOME ===============*/
.home__container{
  row-gap:4rem ;
  padding-top: 2rem;
}
.home__data{
  row-gap: 1.5rem;
}
.home__title{
  text-align: center;
  font-size: var(--biggest-font-size);
  letter-spacing: .3px;
  margin-bottom: .5rem;
}
.home__blod{
  position: relative;
  width: 200px;
  height:290px;
  background-color: var(--body-color);
  border: 2px solid var(--text-color-light);
  justify-self: center;
  border-radius: 6.25rem;
  place-items: center;
}
.home__perfil{
  width: 170px;
  height: 260px;
  background: var(--gradient-color);
  border-radius: 5.5rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}


.home__shap__wawes,
.home__shap__circle{
  position: absolute;
  opacity: .1;
}
.home__shap__wawes{
  width: 50px;
  left: -1.5rem;
  top: 5rem;
}
.home__shap__circle{
  width: 150px;
  bottom: -2rem;
  right: -3rem;
  transform: rotate(15deg);
  z-index: -1;
}
.home__social{
  justify-content: center;
  display: flex;
  column-gap: 1.25rem;

}
.home__social-link{
  font-size: 1.25rem;
  color: var(--text-color-light);
  transition: color .3s;
}
.home__social-link:hover{
  color: var(--title-color);
}
.home__info{
  display: grid;
  gap: 2rem;
}
.home__info-title{
  font-family: var(--body-font);
  font-size: var(--smaller-font-size);
  font-weight: 400;
  color: var(--text-color-light);
  margin-bottom: 1rem;
}
.home__info-description,
.home__info-number{
  font-family: var(--title-font);
  color: var(--title-color);
}
.home__info-description{
  padding-right: 4rem;
}
.home__info-number{
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
}
/*=============== SKILLS ===============*/
.skill__container{
  row-gap: 3.5rem;
}
.skills__title{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--title-font);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
  margin-top: 10px;
}
.skills__title i{
  font-size: 2rem;
  font-weight: initial;
  transition: transform .3s;
  margin-top: 10px;
}
.skills__title:hover i{
  transform: translate(.25rem);
}

.skills_info,
.skills_data,
.skills__blod{
  display: grid;
}
.skills_info{
  grid-template-columns: repeat(3,1fr);
  gap: 2.5rem 2rem;
}
.skills_data{
  justify-content: center;
  text-align: center;
}
.skills__blod{
  width: 80px;
  height: 100px;
  background-color: var(--container-color);
  border-radius: 3rem;
  place-items: center;
  margin-bottom: 1rem;
}
.skills__blod img{
  width: 40px;
}
.skills__name{
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}
.skills__subtitile{
  font-size:var(--tiny-font-size);
  color: var(--text-color-light);
}
/* Animation skills */
.skills__blod:hover img{
  animation: bounce-skills .6s;
}
@keyframes bounce-skills {
  0%{
    transform: translate(0);
  }
  20%{
    transform: translateY(-6px);
  }
  40%{
    transform: translate(0);
  }
  60%{
    transform: translateY(-3px);
  }
  80%{
    transform: translate(0);
  }
}

/*=============== SERVICES ===============*/
.services__container{
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
}
.services__card{
  position: relative;
  width: 120px;
  height: 150px;
  background-color: var(--container-color);
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 7rem;
}
.services__card i{
  display: block;
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: .75rem;
  transition:  transform .8s;

}
.services__card:hover i{
  transform: rotateY(360deg);
}
.services__card:hover .services__border{
  opacity: 1;
}
.services__card:hover{
  box-shadow: 0 5px 15px rgba(70, 66, 66, 0.604);
}
.services__title{
  font-size: 16px;
  font-weight: var(--font-semi-bold);
  margin-bottom: 1.5rem;
}

.services__border{
  width: 120px;
  height: 150px;
  border: 1.8px solid var(--text-color-light);
  border-radius: 7.75rem;
  position: absolute;
  inset: 0;
  left: -5px;
  margin: auto;
  z-index: -1;
  transition: opacity .6s;
  opacity: 0;
}

/*=============== PROJECTS ===============*/
.projects__container{
  overflow: initial;
}
.projects__content{
  display: grid;
  justify-content: center;
}
.projects__img{
  width: 250px;
  border-radius: .75rem;
  margin-bottom: 1.25rem;
}
.projects__subtitle{
  font-size: var(--small-font-size);
  color:var(--text-color-light);
}
.projects__title{
  font-size: var(--h2-font-size);
  margin-bottom: 1.25rem;
  margin: .5rem 0 1.25rem;
}
.projects__button{
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--title-color);
  font-size:var(--small-font-size) ;
}
.projects__button i{
  font-size: 1rem;
  transition: transform .3s;
}
.projects__button:hover i{
  transform: translateX(.25rem);
}
/* Swiper class */
.projects__container .swiper-button-prev::after,
.projects__container .swiper-button-next::after{
  content: "";

}
.projects__container .swiper-button-prev,
.projects__container .swiper-button-next{
  width: initial;
  height: initial;
  margin: initial;
  font-size:2.5rem;
  top: 4.5rem;
}

.projects__container .swiper-slide{
  margin-bottom: 4.5rem;
}

.projects__container .swiper-pagination{
  bottom: 0;
}


/*=============== CONTACT ===============*/
.contact__container{
  row-gap: 3.5rem;
}
.contact__title{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}
.contact__title i{
  font-size: 1rem;
  font-weight: initial;
}

.contect__info,
.contact__data,
.contact__form{
  display: grid;
}
.contect__info{
  row-gap: 2rem;
}
.contact__data{
  row-gap: .75rem;
}
.contact__data-title{
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
.contact__data-info{
  font-size: var(--small-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
}
.contact__button{
  width: max-content;
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
}
.contact__button i{
  font-size: 1rem;
  transition: transform .3s;
}
.contact__button:hover i{
  transform: translateX(.25rem);
}
.contact__form{
  position: relative;
  row-gap: 2rem;
}
.contact__form-div{
  position: relative;
  height: 4rem;
}
.contact__form-tag{
  position: absolute;
  top: -.75rem;
  left: 1.25rem;
  z-index: 10;
  background-color: var(--body-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  padding: 0.35rem;
}
.contact__form-area{
  height: 10rem;
}
.contact__form-area textarea{
  resize: none;
}
.contact__form-input{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  border-radius: 2rem;
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
  background: none;
  outline: none;
  z-index: 1;
}
.contact__message{
  font-size: var(--small-font-size);
  position: absolute;
  bottom: 3.8rem;
  left: 2.5rem;
}
.contact__form .contact__button{
  background: none;
  font-size: var(--h2-font-size);
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  outline: none;
  margin-top: .75rem;
  border-radius: 30px;
  padding: .7rem;
}
.contact__button:hover{
  background: black;
  color: white;
  
}
/* Status color */
.color-red{
  color: hsla(4,71%,50%);
}
.color-blue{
  color: hsla(207, 56%,45%);
}

/*=============== FOOTER ===============*/
.footer__container{
  padding: 3rem 0 7rem;
  text-align: center;
}
.footer__title{
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}
.footer__list,
.footer__social{
  display: flex;
  justify-content: center;
}
.footer__list{
  margin: 2.5rem 0;
  column-gap: 2.5rem;
}
.footer__social{
  column-gap: 1.25rem;
}
.footer__link{
  color: var(--title-color);
}
.footer__link:hover{
  text-decoration: underline;
}
.footer__social-link{
  font-size: 1.25rem;
  color: var(--title-color);
  transition: transform .3s;
}
.footer__social-link:hover{
  transform: translateY(-.15rem);
}
.footer__copy{
  display: block;
  margin-top: 4.5rem;
  font-size: var(--text-color-light);
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(207 ,8%, 38%);
}
::-webkit-scrollbar-thumb{
  background-color: hsl( 207,8%, 26%);
  border-radius: .5rem;
}
::-webkit-scrollbar-thumb:hover{
  background-color: hsl( 207,8%, 20%);
}

/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: 7.5rem;
  background-color: var(--body-color);
  box-shadow: 0 4px 12px hsl(207,24%,35%,.15);
  display: inline-flex;
  padding: 0.35rem;
  border-radius: .25rem;
  font-size: 1.1rem;
  color: var(--title-color);
  z-index: var(--z-tooltip);
  transition: bottom .3s ,transform .3s;
}
.scrollup:hover{
  transform: translateY(-.25rem);
}

/* Show Scroll Up*/


/*=============== BREAKPOINTS ===============*/

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__menu{
    width: 25%;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  .skills__container{
    justify-content: center;
  }
   .projects__container{
    width: 400px;
    overflow: hidden;
  } 
  .projects__container .swiper-button-prev{
    left: 1rem;
  }
  .projects__container .swiper-button-next{
    right: 1rem;
  }
}

@media screen and (min-width: 767px){
  .home__container{
    grid-template-columns: 1fr 2fr 1fr;
  }
  .home__data{
    order: 2;
  }
  .home__info:nth-child(3){
    order: 3;
    text-align: right;
  }
  .home__info{
    margin-top: 10rem;
  }
  .home__info-description{
    padding-right: 0;
  }
  .skills__container,
  .contact__container{
    grid-template-columns: repeat(2,max-content);
  }
  .skills__container{
    column-gap: 10rem;
  }
  .projects__container{
    width: 500px;
  }
  .contact__form{
    width: 360px;
  }
  .contact__container{
    justify-content: center;
    column-gap: 8rem;
  }
  
}
/* For large devices */
@media screen and (min-width: 1023px){
   .section{
    padding-block: 8rem;
   }
   .home__title{
    font-size: 2rem;
   }
   .change-theme{
    position: relative;
    top : 1rem;
    right: 1rem;
    font-size: 2rem;
   }
   
}
@media screen and (min-width: 1048px){
  .container{
    margin-inline: auto;
  }
}
@media screen and (min-width: 1200px){
  .section__border{
    padding-bottom: 6rem;
  }
  .section{
    padding-top: 0;
  }
  .section__subtitle{
    margin-bottom: 5rem;
  }
  .home__title{
    margin-top: 40px;
    font-size: var(--biggest-font-size);
  }
  .home__blod{
    width: 400px;
    height: 580px;
    border-radius: 12.5rem;
  }
  .home__perfil{
    width: 340px;
    height: 520px;
    border-radius: 10.6rem;
  }
  .home__perfil img{
    width: 300px;
  }
  .home__shap__wawes{
    width: 100px;
    left: -4rem;
    top: 10rem;
  }
  .home__shap__circle{
    width: 250px;
    bottom: -1rem;
    right: -5rem;
  }
  .home__data{
    row-gap: 3.5rem;
  }
  .home__social{
    column-gap: 2rem ;
  }
  .home__social-link{
    font-size: 1.9rem;
  }
  .home__info{
    grid-template-rows:repeat(3,170px);
    row-gap: 4rem;
    margin-top: 15rem;
  }
  .home__info1{
    row-gap: 2.5rem;
  }
  .home__info-title{
    font-size: 18px;
    font-weight: 500;
  }
  .skill__container{
    column-gap: 10rem;
  }
  .skills__title{
    margin-bottom: 3rem;
  }
  .skills__title{
    font-size: 1.25rem;
  }
  .skills__subtitile{
    font-size: 15px;
  }
  .skills__name{
    font-size: 20px;
  }
  .skills_info{
    gap: 3rem;
  }

  .services__container{
    column-gap: 4.5rem;
  }
  .services__card{
    width: 240px;
    height: 270px;
    padding: 4.5rem 1rem;
    border-radius: 7.25rem;
  }
  .services__card i{
    font-size: 3.5rem;  
  }
  .services__title{
    font-size: 20px;
  }
 
  .services__border{
    width: 270px;
    height: 300px;
    border: 1.8px solid var(--text-color-light);
    border-radius: 7.75rem;
    left: -15px;
  }
  .projects__container{
    width: 900px;
  }
  .projects__container .swiper-button-prev{
    left: -.8rem;
  }
  .projects__container .swiper-button-next{
    right: -.8rem;
  }
  .projects__img{
    width: 350px;
    margin-bottom: 2rem;
  }
  .contact__title{
    margin-bottom: 3rem;
  }
  .contact__title i{
    font-size: 1.95rem;
    transition: transform .3s;
  }
  .contact__title:hover i{
    transform: rotateY(360deg);
  }
  .contact__data-title{
    font-size: 16px;
  }
  .contact__data-info:hover{
    color: rgba(0, 0, 255, 0.586);
  }
  .contect__info{
    row-gap: 3rem;
  }
  .contact__data-info{
    font-size: var(--normal-font-size) ;
  }
  .contact__form{
    row-gap: 2.5rem;
  }
  .footer__social{
    column-gap:2rem;
  }
  .footer__social-link{
    font-size: 1.5rem;
  }
  .footer__copy{
    margin-top: 5rem;
  }
}
