@import url('https://fonts.googleapis.com/css2?family=DM+Sans&family=Poppins:wght@200;400;500;700&display=swap');

*{
  padding: 0;
  margin: 0;
  font-size: border-box;
}

html{
  font-size: 10px;
  font-family: 'Poppins';
  scroll-behavior: smooth;
}

a{
  text-decoration: none;
}

img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  
}

p{
  font-size: 1.5rem;
  margin-top: 5px;
  line-height: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.05rem;
}

.container{
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-title{
  font-size: 4rem;
  font-weight: 500;
  color: white;
  margin-bottom: 10px;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-align: center;
}

/* seção de apresentação */

#presentation{ /* essa seção meche no background da primeira dobra */
  background-image: url(./img/background.jpg);
  background-size: cover;
  background-position: top center; 
  position: relative;
  z-index: 1;
}
#presentation h1{
  display: block;
  width: fit-content;
  font-size: 5rem;
  position: relative;
  color: transparent;
  animation: text_reveal .5s ease forwards;
  animation-delay: 1.5;
}
#presentation h1:nth-child(1) {
  animation-delay: .8s;
}
#presentation h1:nth-child(2) {
  animation-delay: 1.8s;
}
#presentation h1:nth-child(3) {
  animation: text_reveal_name .5s ease forwards;
  animation-delay: 2.8s;
}

#presentation .cta{
  display: inline-block;
  padding: 10px 30px;
  color: rgb(243, 64, 9);
  background-color: transparent;
  border: 4px solid rgb(243, 64, 9);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: .1rem;
  margin-top: 20px;
  transition: .3s ease;
  transition-property: background-color, color;
}
#presentation .cta:hover{
  color: white;
  font-weight: 500;
  background-color: rgb(243, 64, 9);
}
#presentation h1 span{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  animation: text_review_box 1s ease;
  animation-delay: .5s;
  background-color: rgb(243, 64, 9);
}

#presentation h1:nth-child(1) span{
  animation-delay: .5s;
}
#presentation h1:nth-child(2) span{
  animation-delay: 1.5s;
}
#presentation h1:nth-child(3) span{
  animation-delay: 2.5s;
}
#presentation::after{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgb(0, 0, 0);
  opacity: 0.6;
  z-index: -1;
}

/* seção de portfólio */

#portfolio{
  background-image: linear-gradient(80deg, #044068 25%, #ff0800 100%);
}

#portfolio .portfolio{
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
}
#portfolio .portfolio-header h1{
  margin-bottom: 50px;
}
#portfolio .allprojects{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
}
#portfolio .project-item{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 80%;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;

}

#portfolio .project-info{ /* essa seção meche no bloco de cada um dos projetos */
  padding: 50px;
  flex-basis: 40%;
  height: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background-image: linear-gradient(60deg, #104ec0 0%, #16034b 100%);
  color: white;
}

#portfolio .project-info h1{
  font-size: 4rem;
  font-weight: 500px;
}
#portfolio .project-info h2{
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 10px;
}
#portfolio .project-img{ /* essa seção meche no tamanho da todas as imagens */
  flex-basis: 48%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

#portfolio .project-img:after{
  content: '';
  position: absolute;
  left: 0%;
  top: 0;
  height: 100%;
  width: 100%;
  background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
  opacity: 0.2; /* na aula era 0.7 */
}
#portfolio .project-item:hover .project-img img{
  transform: scale(1.1);
}
#portfolio .project-img img{
  transition: 0.5s ease transform;
}


/* Keyframes */

@keyframes text_reveal{
  100%{
    color: white;
  } 
 }
 @keyframes text_reveal_name{
  100%{
    color: rgb(243, 64, 9);
    font-weight: 700;
  } 
 }
  
@keyframes text_review_box{
  50%{
    width: 100%;
    left: 0;
  }
  100%{
    width: 0;
    left: 100%;
  }
}

/* media query */

@media only screen and (min-width: 768px) {
  #portfolio .project-item{
    flex-direction: row;
    height: 400px;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }
  #portfolio .allprojects .project-info{
    height: 100%
  }
  #portfolio .allprojects .project-img{
    height: 100%
  }
  #portfolio .project-item:nth-child(even) {
    flex-direction: row-reverse;
  }

}



