@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --header-height: 3.5rem;
  --first-hue: 136;
  --sat: 62%;
  --lig: 60%;
  --second-hue: 219;
  --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--first-hue), var(--sat), 71%); 
  --title-color: hsl(var(--second-hue), 15%, 95%);
  --text-color: hsl(var(--second-hue), 8%, 72%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: hsl(var(--second-hue), 8%, 8%);
  --container-color: hsl(var(--second-hue), 32%, 7%);

  --body-font: 'Poppins', sans-serif;
  --biggest-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;
  --tiny-font-size: .625rem;

  --font-medium: 500;
  --font-semibold: 600;

  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /*light mode*/
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semibold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

.change-theme{
  font-size: 1.25rem;
  cursor: pointer;
  transition: .3s;
}

.change-theme:hover{
  color:var(--first-color);
}


body.light-theme{
  --title-color: hsl(var(--second-hue), 35%, 50%);
  --text-color: hsl(var(--second-hue), 8%, 25%);
  --body-color: hsl(var(--second-hue), 100%, 99%);
  --container-color: #fff;

}

.light-theme .scroll-header{
  box-shadow: 0 2px 4px hsla(0, 0%, 1%, .1);
}

.light-theme .nav_menu{
  background-color: hsla(var(--second-hue), 32%, 90%, .8);
}

.light-theme .section_subtitle{
  color: var(--text-color);
}

.light-theme .home_social-link{
  box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, .1);
}

.light-theme .home_social::after,
.light-theme .footer_social-link{
  background-color: var(--title-color);
}

.light-theme .home_social-link,
.light-theme .home_scroll,
.light-theme .button,
.light-theme .button:hover,
.light-theme .active-work,
.light-theme .footer_title,
.light-theme .footer_link,
.light-theme .footer_copy{
  color: var(--title-color);
}

.light-theme .about_box{
  box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, .1);
}

.light-theme .skills_content,
.light-theme .work_card,
.light-theme .contact_card{
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, .1);
}

.light-theme::-webkit-scrollbar{
  background-color: hsl(var(--second-hue), 8%, 66%);
}

.light-theme::-webkit-scrollbar-thumb{
  background-color: hsl(var(--second-hue), 8%, 54%);
}

.light-theme::-webkit-scrollbar-thumb:hover{
  background-color: hsl(var(--second-hue), 8%, 44%);
}

.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.main {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section_title, 
.section_subtitle {
  text-align: center;
}

.section_title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}

.section_subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}


.header{
    position:fixed;
    top:0;
    left:0;
    width: 100%;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
    transition: .4s; /*light mode*/
}

.nav{
    height: var(--header-height);
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.nav_logo{
    color:var(--first-color);
    font-weight: var(--font-medium);
    transition: .4s;
}

.nav_logo:hover{
    color:var(--first-color-alt)
}

.nav_menu{
    position: fixed;
    bottom: 1rem;
    background-color: hsla(var(--second-hue), 32%, 16%, .8);
    width: 90%;
    border-radius: 4rem;
    padding: 1rem 2.25rem;
    backdrop-filter: blur(10px);
    transition: .4s; /*light mode*/
}

.nav_list{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_link{
    color:var(--text-color);
    font-size: 1.25rem;
    padding: .4rem;
    display: flex;
    border-radius: 5rem;
}

.active-link{
    background: linear-gradient(180deg,
                hsla(var(--first-hue), var(--sat), var(--lig), 1),
                hsla(var(--first-hue), var(--sat), var(--lig), .2)
                );
    box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), .4);
    color: var(--title-color);
}

.scroll-header{
  box-shadow: 0 4px 4px hsla(0, 0%, 4%, .3);
}

.home-bg{
  background: url("../assets/img/background.jpg") no-repeat;
  background-size: cover;
  align-items: center;
  backdrop-filter: grayscale(100%);
}
.home_container{
    position: relative;
    row-gap: 4.5rem;
    padding-top: 2rem;
}

.home_data{
    text-align: center;
}

.home_greeting{
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.home_greeting{
    display: block;
    color:var(--title-color);
    margin-bottom: .25rem;
}

.home_name{
    font-size: var(--biggest-font-size);
}

.home_buttons{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.home_social,
.home_scroll{
    position: absolute;
}

.home_social{
    bottom: 5rem;
    left: 0;
    display: grid;
    row-gap: .5rem;
}

.home_social-link{
    width: max-content;
    background-color: var(--container-color);
    color: var(--first-color);
    padding: .25rem;
    border-radius: .25rem;
    display: flex;
    font-size: 1rem;
    transition: .4s;
}

.home_social-link:hover{
    background-color: var(--first-color);
    color:#fff;
}

.home_social::after{
    content: '';
    width: 32px;
    height: 2px;
    background-color: var(--first-color);
    transform: rotate(90deg) translate(16px, 3px);
}

.home_scroll{
    color: var(--first-color);
    right: -1.5rem;
    bottom: 4rem;
    display: grid;
    row-gap: 2.25rem;
    justify-items: center;
}

.home_scroll-icon{
    font-size: 1.25rem;
}

.home_scroll-name{
    font-size: var(--smaller-font-size);
    transform: rotate(-90deg);
}

.button{
    display: inline-block;
    background-color: var(--first-color);
    color: var(--body-color);
    padding: .75rem 1rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .4s;
}

.button:hover{
    background-color: var(--first-color-alt);
    color:var(--body-color);
}
.button--ghost{
    background-color: transparent;
    border: 2px solid var(--first-color);
    color: var(--first-color);
}

.about_container{
  row-gap: 2.5rem;
}

.about_img{
  width: 220px;
  border-radius: 1.5rem;
  justify-self: center;
}

.about_data{
  text-align: center;
}

.about_info{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin-bottom: 2rem;
}

.about_box{
  background-color: var(--container-color);
  border-radius: .75rem;
  padding: .75rem .5rem;
}

.about_icon{
  font-size: 1.5rem;
  color: --first-color;
  margin-bottom: .5rem;
}

.about_title{
  font-size: var(--small-font-size);
}

.about_subtitle{
  font-size: var(--tiny-font-size);
}

.about_description{
  margin-bottom: 2rem;
}

.skills_container{
  row-gap: 2rem;
  padding-top: 1rem;
}

.skills_content{
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
}

.skills_title{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

.skills_box{
  display: flex;
  justify-content: center;
  column-gap: 2.5rem;
}

.skills_group{
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}

.skills_data{
  display: flex;
  column-gap: .5rem;
}

.skills .bxs-badge-check{
  font-size: 1rem;
  color: var(--first-color);
}

.skills_name{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 18px;
}

.work_container{
  padding-top: 1rem;
}

.work_filters{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .75rem;
  margin-bottom: 2rem;
}

.work_item{
  cursor: pointer;
  color: var(--title-color);
  padding: .25rem .75rem;
  font-weight: var(--font-medium);
  border-radius: .5rem;
}

.work_card{
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
}

.work_img{
  border-radius: 1rem;
  margin-bottom: .75rem;
}

.work_title{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: .25rem;
}

.work_button{
  width: max-content;
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: .25rem;
}

.work_button:hover .work_icon{
  transform: translateX(.25rem);
}

.work_icon{
  font-size: 1rem;
  transition: .4s;
}

.active-work{
  background-color: var(--first-color);
  color: var(--body-color);
}

.footer{
  background-color: var(--first-color);
}

.footer_container{
  padding: 2rem 0 6rem;
}

.footer_title,
.footer_link{
  color: var(--body-color);
}

.footer_title{
  text-align: center;
  margin-bottom: 2rem;
}

.footer_list{
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer_social{
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.footer_social-link{
  background-color: var(--body-color);
  color: var(--first-color);
  padding: .25rem;
  border-radius: 2rem;
  font-size: 1rem;
  display: inline-flex;
}

.footer_copy{
  display: block;
  margin-top: 4.5rem;
  color: var(--container-color);
  text-align: center;
  font-size: var(--smaller-font-size);
}

::-webkit-scrollbar{
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(var(--second-hue), 8%, 38%);
}

::-webkit-scrollbar-thumb{
  background-color: hsl(var(--second-hue), 8%, 26%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(var(--second-hue), 8%, 20%);
}

/* Small devices */
@media screen and (max-width: 320px){
  .nav_menu{
    padding: 1rem 1.5rem;
  }

  .home_buttons{
    flex-direction: column;
  }
  
  .home_handle{
    width: 150px;
    height: 253px;
  }

  .home_img{
    width: 130px;
  }

  .about_info{
    grid-template-columns: repeat(2, 1fr);
  }

  .skills_box{
    column-gap: 1rem;
  }

  .skills_name{
    font-size: var(--small-font-size);
  }

  .work_item{
    font-size: var(--small-font-size);
  }

  .work_filters{
    column-gap: .25rem;
  }
}

/* Medium devices */
@media screen and (min-width: 576px){
  .nav_menu{
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .about_info{
    grid-template-columns: repeat(2, 1fr px);
    justify-content: center;
  }

  .about_description{
    padding: 0 5rem;
  }

  .skills_container{
    justify-content: center;
  }

  .skills_content{
    padding: 2rem 4rem;
  }

  .work_container{
    justify-content: center;
  }

  .work_img{
    width: 295px;
  }
}

@media screen and (min-width: 767px){
  .work_container{
    grid-template-columns: repeat(2, max-content);
  }
}
/* Large devices */
@media screen and (min-width: 992px){
  .container{
    margin-left: auto;
    margin-right: auto;
  }

  .section{
    padding: 6.5rem 0 1rem;
  }

  .section_title{
    margin-bottom: 3.5rem;
  }

  .nav{
    height: calc(var(--header-height)+1rem);
  }

  .home_handle{
    width: 290px;
    height: 400px;
  }

  .home_img{
    width: 220px;
  }

  .home_social-link{
    padding: .4rem;
    font-size: 1.25rem;
  }

  .home_social::after{
    transform: rotate(90deg) translate(16px, 0);
  }

  .home_scroll-icon{
    font-size: 2rem;
  }

  .about_container{
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 4rem;
  }

  .about_img{
    width: 350px;
  }

  .about_data{
    text-align: initial;
  }

  .about_info{
    justify-content: initial;
  }

  .about_box{
    text-align: center;
    padding: 1rem 1.25rem;
  }

  .about_description{
    padding: 0 4rem 0 0;
    margin-bottom: 2.5rem;
  }

  .skills_container{
    grid-template-columns: repeat(2, 350px);
    column-gap: 3rem;
  }

  .work_container{
    gap: 3rem;
  }

  .work_card{
    padding: 1.25rem;
  }

  .work_img{
    margin-bottom: 1rem;
  }

  .work_title{
    margin-bottom: .5rem;
  }
  .footer_social-link{
    font-size: 1.25rem;
    padding: .4rem;
  }
}
