/*==================== GOOGLE FONTS ====================*/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
/*==================== VARIABLES CSS ====================*/
:root {
    --header-height: 3rem;


    --first-color: black;
    --first-color-second: black;
    --first-color-alt: grey;
    --first-color-lighter: grey;
    --title-color: var(--first-color);
    --text-color: #151516;
    --text-color-light: grey;
    --input-color: black;
    --body-color: white;
    --container-color: #fff;
    --scroll-bar-color: black;
    --scroll-thumb-color: black;
    --cor-input: white;
    --homeicon-color: black;
    --homeicon-color-alt: grey;

    /*========== Font and typography ==========*/
    --body-font: 'Roboto', sans-serif;

    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

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

    /*========== Margenes Bottom ==========*/
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .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: 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;
    }
}

/*========== Dark Theme ==========*/
body.dark-theme{
    --first-color: black;
    --first-color-second: black;
    --first-color-alt: grey;
    --first-color-lighter: grey;
    --title-color: white;
    --text-color: white;
    --text-color-light: grey;
    --input-color: white;
    --body-color: #0F0F10;
    --container-color: #fff;
    --scroll-bar-color: black;
    --scroll-thumb-color: black;
    --cor-input: black;
    --homeicon-color: white;
    --homeicon-color-alt: grey;
}

/*========== Button Dark/Light ==========*/
.nav__btns{
  display: flex;
  align-items: center;
}

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

.change-theme:hover{
  color: var(--text-color-light);
}


.carousel-control-next-icon{
  background-color: var(--first-color);
}

.carousel-control-prev-icon{
  background-color: var(--first-color);
}


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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

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

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*==================== CLASSES UTILIZADAS VARIAS VEZES ====================*/

.section {
  padding: 2rem 0 4rem;
}

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

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__title, 
.section__subtitle {
  text-align: center;
  color: var(--title-color);
}

.container{
  align-items: center;
  justify-content: center;
  width: 85vw;
}
/*==================== LAYOUT ====================*/

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

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

.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*==================== NAV ====================*/

.nomenav{
  margin-top: 1rem;
}



.nav{
  height: var(--header-height);
  display: flex;
  margin-left: 3%;
  margin-right: 3%;
}

.nav__logo,
.nav__toggle{
  color: var(--title-color);
  font-weight: var(--font-medium);
}

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

.nav__toggle{
  font-size: 25px;
  cursor: pointer;
}

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

@media screen and (max-width: 767px){

  .nav{
    justify-content: space-between;
  }

  .nav__logo{
    margin-top: 1rem;
  }

  .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, 25, 15, .15);
    border-radius:  1.5rem 1.5rem 0 0;
    transition: .3s;
  }

  .contact__container{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .contact-info{
    margin-bottom: 2rem;
  }

  .contact-form{
    justify-content: center;
    justify-items: center;
    justify-self: center;
  }

}


.nav__list{
  margin-top: 1rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.nav__link{
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
}

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


.nav__icon{
  font-size: 1.2rem;
}

.nav__close{
  position: absolute;
  right: 1.3rem;
  bottom: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--homeicon-color);
}

.nav__close:hover{
  color: var(--homeicon-color-alt);
}

.show-menu{
  bottom: 0;
}


.active-link{
  color: grey;
}


.scroll-header{
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
}

/*==================== HOME ====================*/

.home{
  display: block;
  max-width: 100vw;
}

.home__social-icon{
  font-size: 2.5rem;
  color: var(--homeicon-color);
}

.home__social-icon:hover{
  color: var(--homeicon-color-alt);
}

.fotoperfil{
  width: 300px;
}

.home__title{

  font-size: var(--big-font-size);
}

.home__subtitle{
  
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__description{
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-2);
}

.home__scroll{
  display: flex;
}

.home__scroll-button{
  color: var(--first-color);
  transition: .3s;
}

.home__scroll-button:hover{
  transform: translateY(.25rem);
}

.home__scroll-mouse{
  font-size: 2rem;
  color: var(--homeicon-color);
}

.home__scroll-name{
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-right: var(--mb-0-25);
}

.home__scroll-arrow{
  font-size: 1.25rem;
  color: var(--homeicon-color);
} 


.home__content{
  display: flex;
  align-items: center;
  justify-content: center;
}

.home__social{
  display: flex;
  flex-direction: column;
  margin-right: 1.5rem;
  padding-bottom: 5rem;
}

/*==================== BUTTONS ====================*/
.button{
  display: inline-block;
  background-color: var(--homeicon-color);
  color: var(--cor-input);
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
}

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

.button__icon{
  font-size: 1.25rem;
  margin-left: var(--mb-0-5);
  transition: 0.3s;
}

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

/*==================== Sobre ====================*/

.about__data{
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.about__img{
  width: 200px;
  border-radius: .5rem;
  justify-self: center;
  align-self: center; 
}

.about__description{
  text-align: center;
  margin-bottom: var(--mb-2-5);

}

.about__info{
  display: flex;
  justify-content: space-between;
  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;
}


/*==================== SKILLS ====================*/
.skills__header{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--mb-2-5);
  cursor: pointer;
}

.skills__icon,
.skills__arrow{
  font-size: 2rem;
  color: var(--homeicon-color);
}

.skills__icon{
  margin-right: var(--mb-0-75);
}


.skills__title{
  font-size: var(--h3-font-size);
}

.skills__subtitle{
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.skills__arrow{
  margin-left: auto;
  transition: .4s;
}

.skills__list{
  row-gap: 1.5rem;
  padding-left: 2.7rem;
}

.skills__titles{
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--mb-0-5);
}

.skills__name{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.skills__bar,
.skills__percentage{
  height: 5px;
  border-radius: .25rem;
}

.skills__bar{
  background-color: var(--first-color-lighter);
}

.skills__percentage{
  display: block;
  background-color: var(--input-color);
}

.skills__html{
  width: 85%;
}
.skills__css{
  width: 87%;
}
.skills__js{
  width: 60%;
}
.skills__bootstrap{
  width: 70%;
}

.skills__cpp{
  width: 70%;
}
.skills__python{
  width: 50%;
}
/* .skills__csharp{
  width: 1%;
} */

.skills_95{
    width: 95%;

}
.skills_90{
  width: 90%;
}
.skills_85{
    width: 85%;

}
.skills_80{
  width: 80%;
}
.skills_75{
    width: 75%;

}
.skills_70{
  width: 70%;
}
.skills_65{
    width: 65%;
}
.skills_60{
  width: 60%;
}

.skills__illustrator{
  width: 97%;
}
.skills__photoshop{
  width: 90%;
}
.skills__lightroom{
  width: 80%;
}

/*ANIMACAO OPEN AND CLOSE*/

.skills__close .skills__list{
  height: 0;
  overflow: hidden;
}

.skills__open .skills__list{
  height: max-content;
  margin-bottom: var(--mb-2-5);
}

.skills__open .skills__arrow{
  transform: rotate(-180deg);
}


/*==================== Experiencia ====================*/

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

.experiencia__button{
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
    color: var(--homeicon-color-alt);

}

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

.experiencia__icon{
  font-size: 1.8rem;
  margin-right: var(--mb-0-25);
}

.experiencia__data{
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}

.experiencia__title{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.experiencia__subtitle{
  display: inline-block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}

.experiencia__calendar{
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.experiencia__rounder{
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--homeicon-color);
  border-radius: 50%;
}


.experiencia__line{
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--homeicon-color);
  transform: translate(6px, -7px);
}


.experiencia [data-content]{
  display: none;
}

.experiencia__active[data-content]{
  display: block;
}

.experiencia__button.experiencia__active{
  color: rgb(21, 21, 22);
}


/*==================== Github ====================*/

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

/*==================== Contactos ====================*/
.contact__container{
  justify-content: space-evenly;
  display: flex;
}

.contact_information{
  display: flex;
  margin-bottom: var(--mb-2);
}

.contact__icon{
  font-size: 2rem;
  color: var(--homeicon-color);
  margin-right: var(--mb-0-75);
}

.contact__title{
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.contact__subtitle{
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.contact__content{
  background-color: var(--input-color);
  border-radius: .5rem;
  padding: .75rem 1rem .25rem;
}
.contact__label{
  font-size: var(--smaller-font-size);
  color: var(--cor-input);
}

.contact__input{
  width: 100%;
  background-color: var(--input-color);
  color: var(--cor-input);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: .25rem .5rem .5rem 0;
}


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


.footer{
  padding-top: 2rem;
}

.footer__container{
  row-gap: 3.5rem;
}

.footer__bg{
  background-color: var(--first-color-second);
  padding: 2rem 0 3rem;
}

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

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

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

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

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

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

.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__link,
.footer__social{
  color: white;
}

/*========== SCROLL UP ==========*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  opacity: .8;
  padding: 0 .3rem;
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
}

.scrollup:hover{
  background-color: var(--first-color-alt);
}

.scrollup__icon{
  font-size: 1.5rem;
  color: white
}

/* Show scroll */
.show-scroll{
  bottom: 5rem;
}


/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 350px){
  .container{
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
    flex-direction: column;
  }

  .contact__container{
    display: flex ;
    flex-direction: column;
    row-gap: 2rem;
  }
  
  .nav__menu{
    padding: 2rem .25rem 4rem;
  }

  .nav__list{
    column-gap: 0;
  }

  .home__content{
    grid-template-columns: .25fr 3fr;
  }

  .home__bg{
    width: 180px;
  }

  .skills__title{
    font-size: var(--normal-font-size);
  }

  .experiencias__data{
    gap: .5rem;
  }


}

/* For medium devices */
@media screen and (min-width: 568px){

  .nav__btns{
    margin-left: 1rem;
  }

.contact__container{
    display: flex;
} 

  .home__bg{
    /* order: 1; */
    justify-self: center;
  }

  .about__container{
    display: flex;
  }

  .experiencia__sections{
    display: grid;
    grid-template-columns: .6fr;
    justify-content: center;
  }
}

@media screen and (min-width: 768px){

  .home__data{
    margin-top: 6rem;
  }

  .container{
    max-width: 80vw;
    align-items: center;
    margin-right: auto;
    margin-left: auto;
  }

  body{
    margin: 0;
  }

  .section{
    padding: 6rem 0 2rem;
  }

  .section__subtitle{
    margin-bottom: 4rem;
  }

  .header{
    top: 0px;
    bottom: initial;
  }

  .header,
  .main,
  .footer__container{
    padding: 0 1rem;
  }

  .nav__icon,
  .nav__close,
  .nav__toggle{
    display: none;
  }

  .nav__list{
    display: flex;
    column-gap: 2rem;
  }

  .nav__menu{
    margin-left: auto;
  }

  .change-theme{
    margin: 0;
  }

  .home__container{
    display: flex;
    justify-content: center;
  }
  .home__content{
    padding-top: 5.5rem;
  }
  .home__bg{
    width: 270px;
  }

  .home__scroll{
    display: block;
  }
  .home__scroll-button{
    margin-top: 2rem;
  }

  .about__container{
    column-gap: 5rem;
  }

  .about__img{
    width: 350px;
  }

  .about__description{
    text-align: initial;
  }
  .about__info{
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
  }

  .about__buttons{
    justify-content: initial;
  }

  .experiencia__tabs{
    justify-content: center;
  }

  .experiencia__button{
    margin: 0 var(--mb-1);
  }

  .experiencia__sections{
    grid-template-columns: .5fr;
  }

  .portfolio__img{
    width: 320px;
  }
  .portfolio__content{
    align-items: center;
  }

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

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

  .footer__socials{
    justify-self: flex-end;
  }

  .footer__copy{
    margin-top: 4.5rem;
  }

}
/* For large devices */

@media screen and (min-width: 1024px){

  .nav__btns{
    margin-left: 1rem;
  }
  
  .header,
  .main,
  .footer__container{
    padding: 0;
  }

  .home__bg{
    width: 320px;
  }
  
  .portfolio__content{
    column-gap: 5rem;
  }

  .contact__form{
    width: 460px;
  }

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