@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,200;1,500&display=swap');

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

html {
  font-size: 10px;
  font-family: 'Poppins', 'Times New Roman', Times, serif;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

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

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-size: 1.6rem;
  overflow: overlay;
}

ul {
  list-style: none;
  color: white;
}

li {
  list-style: none;
  color: white;
}

img {
  max-width: 100%;
}

section {
  padding-block: 8rem;
}

section header h3 {
  font-size: 1.8rem;

  line-height: 150%;
  letter-spacing: 0.08rem;
  color: rgb(197, 97, 228);

  text-transform: uppercase;

  margin-bottom: 0.6rem;
}

section header h4 {
  font-size: 3rem;
  line-height: 3.9rem;
  color: rgb(57, 67, 71);
}

section header h1 {
  font-size: 3.4rem;
  color: rgb(16, 95, 128);
  line-height: 130%;
  align-content: center;
  margin: 2.4rem;
}

section .content p {
  font-size: 1.4rem;
  line-height: 150%;
  padding: 10px 0;
  text-align: justify;

  color: #394347;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
}

.wrapper {
  width: min(80rem, 100%);
  margin: 2rem auto;
  padding-inline: 2.4rem;
  color: white;
}

.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;
}

/*=== CUSTOMIZAÇÃO DE CORES ===================*/

#backToTopButton circle {
  fill: rgb(197, 97, 228);
}

button.open-menu path[stroke*='#00856F'],
#contact li path {
  stroke: white;
}

#navigation.scroll button.open-menu path[stroke*='#00856F'] {
  stroke: white;
}

/*=== NAVIGATION =================================*/
nav {
  display: flex;

  height: 7.2rem;

  position: fixed;
  top: 0;
  width: 100vw;

  z-index: 100;
  color: white;
}

nav .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

nav.scroll {
  background: rgb(197, 97, 228);
}

nav button {
  background: none;
  border: none;
  cursor: pointer;
}

nav .menu,
nav .close-menu {
  position: fixed;
  color: white;
}

nav #logotipo {
  max-width: 50%;
}

/*=== MENU-EXPANDED =================================*/
body.menu-expanded {
  overflow: hidden;
  color: white;
}

body.menu-expanded > :not(nav) {
  visibility: hidden;
  color: white;
}

.menu,
.close-menu,
body.menu-expanded .open-menu {
  opacity: 0;
  visibility: hidden;
  color: white;
}

body.menu-expanded .menu,
body.menu-expanded .close-menu {
  opacity: 1;
  visibility: visible;
}

.menu {
  transform: translateY(100%);
}

body.menu-expanded .menu {
  top: 0;
  left: 0;
  background: rgb(197, 97, 228);
  padding: 0 5rem;

  width: 100vw;
  height: 100vh;

  padding-top: rgb(197, 97, 228);

  transition: transform 300ms;
  transform: translateY(0);
}

.menu ul:nth-child(1) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;

  margin-top: 6rem;

  font-weight: 700;
  font-size: 2.4rem;
  line-height: 3.1rem;
  color: white;
}

.menu ul li a {
  color: white;
  text-decoration: none;
}

body.menu-expanded button {
  position: relative;
  z-index: 100;
  color: white;
}

body.menu-expanded button path {
  stroke: white;
}

/*=== PRESENTATION =================================*/

#presentation {
  background-image: url(./imagens/img-capa-portfolio.jpg);
  background-size: cover;
  background-position: center;
  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: 0.8s;
}
#presentation h1:nth-child(2) {
  animation-delay: 1.8s;
}
#presentation h1:nth-child(3) {
  animation: text_reveal_name 0.5s ease forwards;
  animation-delay: 2.8s;
}
#presentation .cta {
  display: inline-block;
  padding: 10px 30px;
  color: rgb(228, 204, 97);
  background-color: transparent;
  border: 2px solid rgb(228, 204, 97);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-top: 20px;
  transition: 0.5s ease;
  transition-property: background-color, color;
}
#presentation .cta:hover {
  color: white;
  font-weight: 500;
  background-color: rgb(228, 204, 97);
}
#presentation h1 span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  animation: text_reveal_box 1s ease;
  animation-delay: 0.2s;
  background-color: rgba(222, 132, 245, 0.658);
}
#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;
}
#presentation::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: -1;
}

/*=== ABOUT =================================*/
#about {
  text-align: left;
  padding-top: 5.4rem;
  padding-bottom: 5.4rem;
}

#about header h3 {
  margin-bottom: 2.4rem;
  margin-left: 2.4rem;
  margin-right: 2.4rem;
}

#about header h4 {
  margin-bottom: 2.4rem;
  margin-left: 2.4rem;
  margin-right: 2.4rem;
}

#about .content p {
  margin: 2.4rem;
}

#about .col-b {
  display: flex;
  justify-content: center;
}

#about .col-b img {
  height: 100%;
  width: 100%;
}

/*=== PORTFOLIO =================================*/

#portfolio {
  background-color: rgb(248, 245, 233);
}

#portfolio .section-title {
  font-size: 4.4rem;
  color: rgb(197, 97, 228);
  line-height: 130%;
  /* margin: 2.4rem; */
  padding-bottom: 3rem;
}

#portfolio .portfolio {
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
}
#portfolio .portfolio-header h1 {
  margin-bottom: 50px;
}
#portfolio .all-projects {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#portfolio .all-projects .button-portfolio {
  margin: 0 auto;
  padding: 2rem 0 0 0;
}

#portfolio button {
  padding: 1rem 3rem;
  margin: 1rem;
  /* background-color: rgb(228, 204, 97); */
  border: none;
  border-radius: 1rem;
  border-color: rgb(228, 204, 97);
  color: white;
  background-image: -webkit-linear-gradient(
    20deg,
    rgb(228, 204, 97) 50%,
    transparent 50%
  );
  background-image: linear-gradient(
    20deg,
    rgb(228, 204, 97) 50%,
    transparent 50%
  );
  background-position: 100%;
  background-size: 400%;
  text-decoration: none;
  -webkit-transition: background 200ms ease-in-out;
  transition: background 200ms ease-in-out;
}

#portfolio button:hover {
  background-color: white;
  color: rgb(228, 204, 97);
  background-position: 0;
  transform: translateY(-2px);
  box-shadow: 0px 3px 1px -5px rgb(0 0 0 / 20%),
    0px 2px 2px 0px rgb(0 0 0 / 14%), 0px 1px 5px 0px rgb(0 0 0 / 50%);
}

#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 {
  padding: 30px;
  flex-basis: 50%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  background-image: linear-gradient(30deg, #914dd1 10%, #c561e4 100%);
  color: white;
}

#portfolio .project-info h1 {
  font-size: 4rem;
  font-weight: 500;
}

#portfolio .project-info h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 10px;
}

#portfolio .project-img {
  flex-basis: 50%;
  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.5;
}
#portfolio .project-img img {
  transition: 0.5s ease transform;
}
#portfolio .project-item:hover .project-img img {
  transform: scale(1.1);
}

/*=== CONTACT =================================*/
#contact {
  text-align: left;
  margin: 2.4rem;
}

#contact header {
  margin-bottom: 3.2rem;
}

#contact ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;

  margin-bottom: 3.2rem;
}

#contact ul li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #394347;
}

#contact iframe {
  max-width: 100%;
}

/*=== FOOTER =================================*/
footer {
  background-color: #c561e4;
  padding-block: 6rem;

  text-align: left;

  color: white;
}

footer #logotipo {
  max-width: 50%;
  margin: 0 -2.5rem;
}

footer p {
  line-height: 2;

  margin-bottom: 3.2rem;
}

footer .social-links {
  justify-content: flex-start;
}

footer .social-links img:hover {
  transform: translateY(-2px);
}

/*=== BACK TO TOP =================================*/
#backToTopButton {
  position: fixed;
  bottom: 1rem;
  right: 2.5rem;

  opacity: 0;
  visibility: hidden;

  transform: translateY(100%);
  transition: 200ms;
}

#backToTopButton.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/*=== kEY FRAMES =================================*/

@keyframes text_reveal {
  100% {
    color: white;
  }
}
@keyframes text_reveal_name {
  100% {
    color: rgb(228, 204, 97);
    font-weight: 500px;
  }
}

@keyframes text_reveal_box {
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

/*=== MEDIA QUERY =================================*/
/*=== RESPONSIVO ==================================*/
@media only screen and (min-width: 1024px) {
  /*=== GERAL =================================*/
  body {
    overflow: auto;
  }

  .wrapper {
    width: min(112rem, 100%);
    display: grid;
  }

  .col-a {
    grid-area: A;
  }

  .col-b {
    grid-area: B;
  }

  section {
    padding-block: 14rem;
  }

  section header h2 {
    font-size: 4rem;
    line-height: 5.2rem;
  }

  /*=== NAVIGATION =================================*/
  /* reset */
  nav#navigation .wrapper * {
    margin: 0;
    padding: 0;
    visibility: initial;
    display: initial;
    opacity: initial;
    flex-direction: initial;
    position: initial;
    font-size: initial;
    font-weight: initial;
    transform: initial;
    color: white;
    background-color: initial;
    filter: initial;
  }

  nav#navigation .close-menu,
  nav#navigation .open-menu {
    display: none;
  }

  nav#navigation .menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  nav#navigation .menu ul:nth-child(1) {
    display: flex;
    gap: 3.2rem;
  }

  nav#navigation .menu ul li a {
    opacity: 0.7;
  }

  nav#navigation.scroll .menu ul li a {
    opacity: 0.6;
  }

  nav#navigation.scroll .menu a.button {
    border-color: white;
    color: white;
  }

  nav#navigation .menu li a {
    transition: opacity 0.4s;
  }

  nav#navigation .menu li a.active,
  nav#navigation .menu li a:hover {
    opacity: 1;
    font-weight: 700;
  }

  nav#navigation .menu li a::after {
    content: '';
    width: 0%;
    height: 2px;

    position: relative;
    bottom: -2rem;
    left: -0.5rem;

    display: block;

    transition: width 0.2s;
  }

  nav#navigation.scroll .menu li a::after {
    background-color: white;
  }

  nav#navigation .menu li a.active::after,
  nav#navigation .menu li a:hover::after {
    padding-inline: 0.8rem;
    width: 100%;
  }

  nav#navigation.scroll .menu li a.active,
  nav#navigation.scroll .menu li a:hover {
    opacity: 1;
  }

  /*=== PORTFOLIO ==============================*/
  #portfolio .project-item {
    flex-direction: row;
    height: 400px;
    margin: 0;
    width: 100%;
    border-radius: 0;
  }
  #portfolio .all-projects .project-info {
    height: 100%;
  }
  #portfolio .all-projects .project-img {
    height: 100%;
  }
  #portfolio .project-item:nth-child(even) {
    flex-direction: row-reverse;
  }
  /*=== ABOUT =================================*/
  #about .wrapper {
    grid-template-columns: 48rem 1fr;
    grid-template-areas: 'B A';
    gap: 6.7rem;
  }

  #about .col-a {
    align-self: center;
  }

  #about .content p {
    margin-bottom: 0;
  }

  /*=== CONTACT ===============================*/

  #contact .wrapper {
    grid-template-columns: 1fr 57.5rem;
    grid-template-areas: 'A B';
  }

  #contact h2 {
    width: 40.4rem;
  }

  /*=== FOOTER =================================*/
  footer {
    padding-block: 8rem;
  }

  footer .wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'A B';
  }

  footer .col-a {
    align-self: center;
  }

  footer .col-b {
    align-self: center;
    justify-self: flex-end;
  }

  footer p {
    margin-bottom: 0;
  }
}
