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

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

  /*========== Colors ==========*/
  
  --hue: 210;
  --first-color: hsl(var(--hue), 30%, 63%);
  --first-color-alt: hsl(var(--hue), 56%, 35%);
  --title-color: hsl(45 , 41% , 84%);
  --text-color: hsl(45, 41%, 84%);
  --body-color: hsl(210, 30%, 11%);
  --container-color: hsl(210, 30%, 15%);

  /*========== Font e typografia ==========*/
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.25rem;
  --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;
}

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

html {
  scroll-behavior: smooth;
}

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

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

input,
textarea,
button {
  outline: none;
  border: none;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== Classes mais usadas ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

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

.section_title, 
.section_subtitle {
  text-align: center;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.section_title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

.section_subtitle {
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}

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

.main {
  overflow: hidden; /* Animações quando for descendo a pagina */
}

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

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

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

.nav_logo{
  color: var(--title-color);
  font-weight: var(--font-medium);
}

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

.nav_close, 
.nav_hamb{
  display: flex;
  font-size: 1,25rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navegação para dispositiveis moveis */
@media screen and (max-width: 1023px){
  .menu_bar{
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsla(0, 0%, 10%, .3);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); /* Para Safari */
    transition: right .4s;
  }
}

.nav_list{
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.nav_link{
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color .4s;
}

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

.nav_close{
  position: absolute;
  top: 1rem;
  right: 1.5rem;

}

/* Show menu */
.show-menu{
  right: 0;
}

/* Add blur to header */
.blur-header{
  background-color: transparent;
}

.blur-header::after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 10%, .3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px); /*Para Safari*/
  z-index: -1;
  top: 0;
  left: 0;
}

/* Active link */
.active-link{
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home{
  background-color: var(--container-color);
}

.home_container{
  padding-top: 2rem;
  row-gap: 2.5rem;
}

.home_content{
  display: grid;
  row-gap: 2rem;
}

.home_data{
  text-align: center;
}

.home_subtitle,
.home_education{
  font-size: var(--bigger-font-size);
}

.home_subtitle span,
.home_title{
  color: var(--first-color);
}

.home_title{
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
}

.home_description{
  margin-block: 1rem 1.5rem;
}

.home_social{
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.home_social-link{
  display: flex;
  background-color: var(--first-color-alt);
  padding: .5rem;
  color: var(--title-color);
  font-size: 2rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform .4s;
}

.home_social-link:hover{
  transform: translateY(-.25rem);
}

.home_image{
  justify-self: center;
}

.home_blob{
  width: 320px;
  fill: var(--first-color);
  filter: drop-shadow(0 12px 12px hsla(var(--hue), 100%, 40%, .2));
}

.home_img{
  width: 900px;
  transform: translateX(-50px);
}

/*=============== BUTTON ===============*/
.button{
  display: inline-block;
  background-color: var(--first-color);
  padding: 1rem 1.75rem;
  border-radius: .5rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: box-shadow .4s;
}

.button:hover{
  box-shadow: 0 8px 24px hsla(var(--hue), 100%, 40%, .25);
}

/*=============== ABOUT ===============*/
.about_container{
  row-gap: 2.5rem;
}

.about_data{
  text-align: center;
}

.about_description{
  margin-bottom: 2rem;
}

.about_image{
  justify-self: center;
}

.about_blob{
  width: 320px;
}

.about_blob path{
  stroke: var(--first-color);
}

/*=============== SKILLS ===============*/
.habilidades{
  background-color: var(--container-color);
}

.habilidades_container{
  padding-bottom: 2rem;
  row-gap: 3.5rem;
}

.habilidades_data{
  text-align: center;
}

.habilidades_desc{
  margin-bottom: 2rem;
}

.habilidades_content,
.habilidades_group{
  display: grid;
}

.habilidades_content{
  grid-template-columns: repeat(2, max-content);
  column-gap: 4rem;
  justify-content: center;
  align-items: center;
}

.habilidades_group{
  row-gap: 1rem;
  list-style: decimal-leading-zero;
}

.itens_habilidades{
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.itens_habilidades::marker{
  color: var(--first-color);
}

/*=============== SERVICES ===============*/
.services_container{
  row-gap: 2rem;
  padding-block: 1rem;
}

.services_card{
  text-align: center;
  background-color: var(--container-color);
  padding: 3rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid var(--container-color);
  transition: border .4s;
}

.services_icon{
  display: block;
  font-size: 4rem;
  color: var(--first-color);
  margin-bottom: .75rem;
}

.services_title{
  font-size: var(--h2-font-size);
  margin-bottom: 1.5rem;
}

.services_card:hover{
  border: 2px solid var(--first-color);
}

/*=============== PROJECTS ===============*/
.projects{
  background-color: var(--container-color);
}

.projects_container{
  row-gap: 2rem;
  justify-content: center;
  padding-block: 1rem;
}

.projects_card{
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.projects_img{
  width: 100%;
  height: 100%;
}

.projects_modal{
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
              hsla(0, 0%, 0%, 0) 0%,
              hsla(var(--hue), 70%, 40%, .8) 120%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); /* Para Safari */
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: bottom .4s;
}

.projects_subtitle,
.projects_button{
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.projects_subtitle{
  display: block;
  margin-bottom: .25rem;
}

.projects_title{
  font-size: var(--h2-font-size);
  margin-bottom: .75rem;
}

.projects_button{
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-medium);
}

.projects_button i{
  font-size: 1.25rem;
  cursor: pointer;
}

.projects_card:hover .projects_modal{
  bottom: 0;
}

/*=============== CONTACT ===============*/
.contato_container{
  padding-top: 1rem;
}

.contato_form,
.contato_group{
  display: grid;
  row-gap: 1rem;
}

.contato_form{
  position: relative;
}

.contato_input{
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  background-color: var(--first-color);
  color: var(--title-color);
}

.contato_input::placeholder{
  color: var(--text-color);
}

.contato_form textarea{
  height: 11rem;
  resize: none;
  margin-bottom: 2rem;
}

.contato_button{
  justify-self: center;
  cursor: pointer;
}

.contato_mensagem{
  position: absolute;
  left: 0;
  bottom: 4.5rem;
  font-size: var(--small-font-size);
  color: var(--title-color);
}

/*=============== FOOTER ===============*/
.footer{
  background-color: var(--container-color);
  padding-block: 3.5rem 2rem;
}

.footer_container{
  row-gap: 2rem;
  text-align: center;
}

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

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

.footer_social{
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.footer_social-link{
  display: flex;
  background-color: var(--first-color-alt);
  padding: .5rem;
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform .4s;
}

.footer_social-link:hover{
  transform: translateY(-.25rem);
}

.footer_copy{
  font-size: var(--smaller-font-size);
  margin-top: 2rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(228, 12%, 25%);
}

::-webkit-scrollbar-thumb{
  background-color: hsl(228, 8%, 35%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(228, 8%, 45%);
}

/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  padding: 6px;
  display: inline-flex;
  border-radius: .25rem;
  color: var(--first-color);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px hsla(228, 15%, 8%, .4);
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}

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

/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */


/* For medium devices */


/* For large devices */
