/* =========================================================
   JOÃO PAULO BUENO — PORTFÓLIO
   Recriação do layout do PDF "Web 1920 – 1"
   ========================================================= */

:root {
  --cream: #FEF7ED;
  --peach: #fff0df;
  --orange: #f58d20;
  --orange-dark: #e87818;
  --cyan: #24c3e6;
  --ink: #22201e;
  --white: #ffffff;
  --border-orange: #e9ad7d;
  --border-cyan: #91dfe8;
  --radius-xl: 54px;
  --radius-lg: 38px;
  --radius-md: 25px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

.section-cream {
  background: var(--cream);
}

.section-peach {
  background: var(--peach);
}

/* ---------------- HEADER ---------------- */



.site-header {
  position: fixed;
  top: 5%;
  left: 27%;
  width: 100%;
  z-index: 1000;
}

.nav-pill {
  width: min(880px, calc(100% - 60px));
  height: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 78px 1fr 1fr;
  align-items: center;
  padding: 0 30px;
  background-color: #EC9434;
  border-radius: 999px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  box-shadow: #da5e3170 4px 4px 10px 0px;

  animation: animationNav 1.5s ease;

}

@keyframes animationNav {

  from {
    opacity: 0;
    scale: .8;
    filter: blur(5px)
  }

  to {
    opacity: 1;
    scale: 1;
    filter: blur(0px)
  }
}


.nav-pill a {
  margin-top: -8px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.nav-pill a:not(.nav-logo):hover {
  transition: all 0.8s ease;
  color: #DA5D31;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
  transform: scale(1.05)
}

.nav-logo {
  justify-self: center;
  display: grid;
  place-items: center;
  padding-top: 2px;
}

.nav-logo :hover {
  transition: all 0.5s ease;
  transform: scale(1.05);
}


.logo-mark {
  width: 70px;
  display: grid;
  place-items: center;
}

/* ---------------- HERO ---------------- */

.hero {
  min-height: 800px;
  padding: 255px max(9vw, 160px) 190px;
  border-radius: 0 0 64px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 405px;
  gap: 120px;
  align-items: start;
  animation: animationNav 2.5s ease;

}



.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0;
  font-size: 47px;
  font-weight: 500;
  letter-spacing: -1px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.hero h1 {
  margin: -5px 0 35px;
  color: #DA5D31;
  font-size: 56px;
  text-decoration: underline;
  text-underline-offset: 7px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
}


.role-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 38px;
}

.role-list span {
  border: 2px solid #EC9434;
  border-radius: 999px;
  padding: 7px 21px 8px;
  color: #EC9434;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.role-list :hover {
  transition: all 0.5s ease;
  background-color: #EC9434;
  border: 2px solid #EC9434;
  color: #FEF7ED;
  cursor: pointer;
}

.intro {
  position: relative;
  margin: 0;
  max-width: 880px;
  padding-left: 18px;
  font-size: 23px;
  line-height: 1.7;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.intro::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  background: #34BCED;
  border-radius: 4px;
}

.hero-photo {
  margin-top: -100px;
}

.hero-photo :hover {
  transition: all 0.5s ease;
  transform: scale(1.05);
  cursor: pointer;
}

.hero-photo img {
  width: 100%;
  height: 100%;
}

/* ---------------- ABOUT MORE ---------------- */

.about-more {
  min-height: 620px;
  padding: 105px max(9vw, 160px);
  display: grid;
  grid-template-columns: 540px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 60px;
  border-radius: 0 0 64px 64px;

}

.about-photo {
  position: relative;
  width: 540px;
  height: 520px;
  overflow: hidden;
  border-radius: 38px;

  animation: cardsSurgindo;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

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

.photo-button {
  position: absolute;
  left: 25%;
  bottom: 26px;
  padding: 9px 26px;
  border-radius: 999px;
  background: #34BCED;
  color: #fff;
  font-size: 16px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.about-photo :hover {
  background: #EC9434;
  transition: all 0.5s ease;
  transform: scale(1.05);
  cursor: pointer;
}

.quote-card {
  max-width: 1080px;
  padding: 40px 56px;
  border: 1px solid #EC9434;
  border-radius: 40px;
  font-size: 22px;
  line-height: 1.7;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  animation: cardsSurgindo;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

/* ---------------- GIF BANNER ---------------- */

.gif-banner {
  min-height: 560px;
  padding: 95px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);

  animation: cardsSurgindo;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

@keyframes cardsSurgindo {

  from {
    opacity: 0;
    scale: .8;
    filter: blur(5px)
  }
}

.gif-banner :hover {
  transition: all 1s ease;
  transform: scale(1.05);
  cursor: pointer;
}

.gif-banner img {
  width: min(1523px, 88%);
  height: auto;
}

/* ---------------- PORTFOLIO ---------------- */

.portfolio {
  padding-top: 80px;
  padding-bottom: 80px;
  border-radius: var(--radius-xl);
}

.section-heading {
  text-align: center;
  margin-bottom: 70px;
  animation: cardsSurgindo;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

.section-heading>span {
  display: block;
  color: #EC9434;
  font-size: 48px;
  line-height: 1;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 62px;
  font-weight: 500;
  line-height: .98;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: -40px;
}

.section-heading h2 strong {
  color: #DA5D31;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;

}

.carousel {
  margin: 0 auto;
  padding: 60px 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  animation: cardsSurgindo;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

.carousel img {
  display: block;
  max-width: 100%;
}

.card {
  width: 500px;
  color: white;
  border-radius: 56px;
  padding: 20px;
  font-size: xx-large;
  justify-content: center;
  align-items: center;
  min-height: 500px;

  &:nth-child(1) {
    background: #FEF7ED;
    border: solid 1px #EC9434;
  }

  &:nth-child(2) {
    background: #FEF7ED;
  }

  &:nth-child(3) {
    background: #FEF7ED;
  }

  &:nth-child(4) {
    background: #FEF7ED;
  }

  &:nth-child(5) {
    background: #FEF7ED;
  }
}

.group :hover {
  transition: all 1s ease;
  transform: scale(1.15);
  cursor: pointer;
  border-radius: 40px;
}

.carousel {

  /* ... */
  >* {
    flex: 0 0 100%;
  }
}

/* Agrupe os cartões para melhorar a estrutura. */
.group {
  display: flex;
  gap: 20px;
  /* Adicione padding à direita para criar um espaço entre o último e o primeiro cartão. */
  padding-right: 20px;
}

.group {
  /* ... */
  will-change: transform;
  /* Devemos ser gentis com o navegador - informar o que vamos animar. */
  animation: scrolling 30s linear infinite;
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.carousel {

  /* ... */
  &:hover .group {
    animation-play-state: paused;
  }
}



.cyan-button {
  width: fit-content;
  margin: 48px auto 0;
  display: block;
  padding: 12px 45px;
  border-radius: 999px;
  background-color: #2CC6F0;
  color: white;
  font-size: 18px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.cyan-button:hover {
  background: #e87818;
  transition: all 0.5s ease;
  transform: scale(1.05);
  cursor: pointer;
}

.cyan-button.small {
  margin-top: 12px;
  padding: 9px 25px;
  font-size: 14px;
}

/* ---------------- SKILLS ---------------- */

.skills {
  padding: 105px max(9vw, 160px) 135px;
  animation: cardsSurgindo;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

.section-heading.centered {
  margin-bottom: 65px;
}

.section-heading.centered h2 {
  font-size: 45px;
  line-height: 1.05;
}

.section-heading.centered strong {
  color: var(--orange);
}

.skills-layout {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  grid-template-areas:
    "basic intermediate"
    "advanced advanced";
  gap: 35px;
  align-items: start;
}

.skill-group {
  padding: 22px 24px 28px;
  border: 2px solid;
  border-radius: 28px;
  background: rgba(255, 255, 255, .3);
}

.skill-group.basic {
  grid-area: basic;
  border-color: var(--border-cyan);
}

.skill-group.intermediate {
  grid-area: intermediate;
  border-color: #e7c58e;
}

.skill-group.advanced {
  grid-area: advanced;
  justify-self: center;
  width: min(850px, 100%);
  border-color: #e5a996;
}

.skill-group h3 {
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
  margin: 0 0 20px;
  text-align: center;
  font-size: 23px;
}

.skill-items {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.skill {
  min-width: 82px;
  height: 100px;
  padding: 9px 7px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 15px;
}

.skill b {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #1f1d1b;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.skill small {
  margin-top: 6px;
  font-family: "all-round-gothic", sans-serif;
  font-size: 10px;
  font-weight: 500;
}

/* ---------------- RESUME ---------------- */

.resume {
  padding: 85px max(9vw, 160px) 100px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.resume-title {
  color: #DA5D31;
  font-size: 64px;
  margin-bottom: 60px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
  animation: cardsSurgindo;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

.resume-columns {
  max-width: 1500px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  animation: cardsSurgindo;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

.resume-card {
  padding: 25px 55px 40px;
  background: rgba(255, 255, 255, .76);
  border-radius: 40px;
  text-align: center;
}

.resume-card>h3 {
  display: inline-block;
  margin: 0 0 28px;
  padding: 9px 40px;
  background: #fff3df;
  border-radius: 999px;
  font-size: 28px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.resume-entry {
  padding: 16px 0;
  border-bottom: 1px solid #efc5a2;
}

.resume-entry:last-of-type {
  border-bottom: 0;
}

.resume-entry b,
.resume-entry span,
.resume-entry small {
  display: block;
}

.resume-entry b {
  font-size: 22px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.resume-entry b i {
  color: var(--orange);
  font-style: normal;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-style: normal;

}

.resume-entry span {
  color: var(--orange);
  margin-top: 2px;
  font-size: 18px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;

}

.resume-entry small {
  margin-top: 1px;
  font-size: 16px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ---------------- FOOTER ---------------- */

.footer {
  min-height: 560px;
  padding: 90px max(9vw, 160px);
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;

}

.footer-content {
  max-width: 1500px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: cardsSurgindo;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

.footer h2 {
  width: fit-content;
  margin: 0 0 25px;
  padding: 8px 42px;
  border-radius: 999px;
  background: #da5d31;
  font-size: 32px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 600;
  font-style: normal;
}


.footer-content>div:first-child {
  display: flex;
  flex-direction: column;
}

.footer-content>div:first-child a {
  padding: 8px 20px 8px 6px;
  margin: 4px 0;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 18px;
  font-family: "all-round-gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.footer-content>div:first-child :hover {
  background: #da5d31;
  color: #fff;
  transition: all 0.5s ease;
  transform: scale(1.05);
}

.contact img {
  margin-bottom: -9px;
  margin-top: -20px;
  margin-right: 10px;
}



.footer-logo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.footer-logo :hover {
  transition: all 1s ease;
  transform: scale(1.05);
  cursor: pointer;
}

.logo-mark.large {
  width: 125px;
  height: 125px;
  border-width: 7px;
  font-size: 31px;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 1440px) {
  .site-header {
    left: 19.5%;
  }

  .quote-card {
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: 0.5px;
  }

}


@media (max-width: 1024px) {

  .site-header {
    left: 7%;
  }

  .hero {
    margin-top: 25px;
    margin-bottom: -50px;
  }

  .hero-photo img {
    margin-top: 50px;
  }

  body {
    font-size: 16px;
  }

  .hero,
  .about-more,
  .skills,
  .resume,
  .footer {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .hero {
    min-height: auto;
    padding-top: 150px;
    grid-template-columns: 1fr 300px;
    gap: 50px;
  }



  .hero-photo {
    width: 300px;
    height: 520px;
  }

  .eyebrow,
  .hero h1 {
    font-size: 38px;
  }

  .role-list span {
    font-size: 19px;
  }

  .intro {
    font-size: 18px;
  }

  .about-more {
    grid-template-columns: 1.2fr 1.5fr;
  }

  .about-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / .96;
  }

  .quote-card {
    padding: 20px 40px;
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: 0.6px;
  }

  .photo-button {
    left: 15%;
  }


  .resume-card {
    padding-left: 25px;
    padding-right: 25px;
  }
}

@media (max-width: 768px) {

  .site-header {
    left: 4%;
  }

  .hero h1 {
    font-size: 32px;
  }

  .eyebrow {
    font-size: 32px;
  }

  .intro {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-photo img {
    margin-top: 70px;
  }

  .about-more {
    display: block;
  }

  .quote-card {
    width: 400px;
    font-size: 16px;
    margin-left: 20%;
    margin-top: 20px;
  }

  .gif-banner {
    margin-top: 0;
    margin-bottom: 0px;
  }

  .about-photo {
    left: 20%;
    width: 400px;
  }

  .photo-button {
    font-size: 16px;
    left: 20%;
  }

  .skill {
    font-size: 4px;
    min-width: 40px;
    height: 80px;
  }

  .skill img {
    width: 40px;
  }


  .resume-title {
    font-size: 48px;
  }

  .resume-card>h3 {
    font-size: 24px;
  }

  .resume-entry b {
    font-size: 16px;

  }

  .resume-entry span {
    font-size: 14px;
  }

  .resume-entry small {
    font-size: 12px;
  }

}

@media (max-width: 425px) {

  .site-header {
    left: 10%;
    width: 400px;
  }

  .nav-pill {
    font-size: 10px;
  }

  .hero {
    margin-top: 0;
    display: block;
  }

  .hero-photo img {
    margin-left: 10%;
    margin-top: 120px;
  }

  .about-photo {
    left: 0;
    width: 300px;
    margin-left: 10%;
  }

  .photo-button {
    font-size: 16px;
    left: 8%;
  }

  .quote-card {
    width: 300px;
    margin-left: 10%;
  }

  .resume-columns {
    display: block;
  }

  .resume-card {
    margin-bottom: 20px;
  }

  .skills-layout {
    display: block;
  }

  .skill-group {
    margin-bottom: 20px;
  }

  .footer-content {
    display: block;
  }

  .footer-logo {
    margin-top: 40px;
    margin-left: 10%;
  }

}