@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,900;1,500;1,600&display=swap");
/*============================RESET==================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/*==============================FIM DO RESET========================*/

/*=============================ORGANIZANDO O CORPO==================*/
html {
  font-family: "Poppins", "Times New Roman", Times, serif;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  font-weight: bold;
}

.presentation-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*============================APRESENTAÇÃO===========================*/

#presentation {
  background-image: url("https://images.pexels.com/photos/548084/pexels-photo-548084.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1");
  background-size: cover;
  background-position: cover;
  position: relative;
  z-index: 1;
}

#presentation h1 {
  display: block;
  width: fit-content;
  font-size: 5rem;
  position: relative;
  color: transparent;
  animation: text_reveal 0.5s ease forwards;
  animation-delay: 1.5s;
}

#presentation h1:nth-child(1) {
  animation-delay: 1.2s;
}

#presentation h1:nth-child(2) {
  animation-delay: 2s;
}

#presentation h1:nth-child(3) {
  animation: text_reveal_name 0.5s ease forwards;
  animation-delay: 2.8s;
}

.cta {
  display: inline-block;
  padding: 10px 30px;
  color: white;
  border: 2px solid rgb(214, 244, 72);
  font-size: 2rem;
  border-radius: 5px;
  letter-spacing: 0.1rem;
  margin-top: 20px;
  transition: 0.5s ease;
  transition-property: background-color, color;
}

.cta:hover {
  color: white;
  font-weight: bold;
  background: rgb(2, 0, 36);
  text-transform: uppercase;
}

#presentation h1 span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  animation: text_reveal_box 1s ease;
  animation-delay: 0.5s;
  background-color: gold;
}

#presentation h1:nth-child(1) span {
  animation-delay: 0.5s;
}

#presentation h1:nth-child(2) span {
  animation-delay: 1.5s;
}

#presentation h1:nth-child(3) span {
  animation-delay: 2.5s;
}

/*=======================Filtro por cima do conteúdo==============*/
#presentation::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: -1;
}

/*============================SEÇÃO PORTIFÓLIO=======================*/

#portfolio .portfolio {
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
}
#portfolio .portfolio-header h1 {
  margin-bottom: 50px;
}
#portfolio .all-projects {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#portfolio .div-project {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 60%;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
}

#portfolio .info {
  padding: 30px;
  flex-basis: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-image: linear-gradient(
    60deg,
    rgb(74, 70, 139) 0%,
    rgb(2, 0, 36) 100%
  );
  color: white;
  border-top: 15px;
}

#portfolio .info h1 {
  text-align: center;
  font-size: 4rem;
  font-weight: 500;
  transition: 0.5s ease;
  transition-property: text-transform, font-weight, color;
}

#portfolio .info h1:hover {
  color: rgb(214, 244, 72);
  text-transform: uppercase;
  font-weight: bold;
}

#portfolio .info h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 5px;
  transition: 0.5s ease;
  transition-property: text-transform, font-weight;
}

#portfolio .info h2:hover {
  text-transform: uppercase;
  font-weight: bold;
}

#portifolio .info p {
  margin-top: 10px;
  font-size: 20px;
  justify-content: center;
}

.info a {
  color: gold;
  text-decoration: none;
}

#portfolio .project-image {
  flex-basis: 50%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

#portfolio .project-image img {
  transition: 0.5s ease transform;
}
#portfolio .project-image:hover .project-image img {
  transform: scale(1.1);
}

/*===============================KEYFRAMES==========================*/
@keyframes text_reveal {
  100% {
    color: white;
  }
}

@keyframes text_reveal_name {
  100% {
    color: rgb(214, 244, 72);
    font-weight: 600;
  }
}

@keyframes text_reveal_box {
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}
