@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");
 
:root {
  --header-height: 3.5rem;
  --hue: 255;
  --first-color: hsl(var(--hue), 60%, 64%);
  --first-color-alt: hsl(var(--hue), 80%, 56%);
  --first-color-alt-2: hsl(var(--hue), 60%, 56%);
  --first-color-light: hsl(var(--hue), 60%, 74%);
  --title-color: hsl(240, 8%, 95%);
  --text-color: hsl(240, 8%, 70%);
  --text-color-light: hsl(240, 8%, 50%);
  --body-color: hsl(240, 100%, 2%);
  --container-color: hsl(240, 8%, 6%);

  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --biggest-font-size: 2rem;
  --bigger-font-size: 1.75rem;
  --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-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  --z-tooltip: 10;
  --z-fixed: 100;
}
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3rem;
    --bigger-font-size: 2rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

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

button {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

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

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 3rem;
}

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

.main {
  overflow: hidden;
}


.blob-animate{
  width: 100px;
  height: 100px;
  background: linear-gradient(180deg,var(--first-color-alt) 20%,var(--first-color-light) 100%);
  border-radius: 50%;
  position: absolute;
  filter: blur(35px);
  z-index: -1;
  animation: animateBlob 5s linear infinite;
}

@keyframes animateBlob {
  0%{
    transform: rotate(0);
  }
  100%{
    transform: rotate(360deg);
  }
}



.blob{
  width: 250px;
  height: 250px;
  background: linear-gradient(180deg,
              var(--first-color) 0%,
              var(--first-color-alt) 100%);
  border-radius: 50%;
  filter: blur(50px);
  position: absolute;
  z-index: -1;
}


.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(180deg,var(--body-color) 60%,hsla(240,100%,2%,0) 100%);
  z-index: var(--z-fixed);
}

.header .blob-animate{
  top: -3rem;
  left: -3rem;
}

.nav{
  display: flex;
  justify-content: space-between;
  padding-block: 1rem;
}

.nav__logo{
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  align-items: flex-start;
  transition: color .4s;
}

.nav__logo:hover{
  color:var(--first-color);

}

.nav__list{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: .5rem;
}

.nav__link{
  color:var(--title-color);
  font:var(--font-semi-bold) var(--small-font-size) var(--second-font);
  transition: color .4s; text-shadow: .4s;
}

.nav__link:hover{
  color:var(--first-color);
  text-shadow: 0 8px 16px var(var(--first-color));
}

.home{
  position: relative;
}

.home__container{
  position: relative;
  padding-top: 4rem;
  row-gap: 3rem;
}

.home__greeting{
  font-size: var(--h2-font-size);
  font-weight: var(--font-regular);
  color:var(--first-color);
}

.home__name{
  font-size: var(--bigger-font-size);
}

.home__image{
  position:relative;
  display: grid;
  overflow-y: clip;
}

.home__image .blob-animate{
  width: 250px;
  height: 250px;
  bottom: 0;
  justify-self: center;
}

.home__perfil{
  width: 320px;
  justify-self: center;
}

.home__shadow, .home__info, .home__social, .home__cv{
  position: absolute;
}

.home__shadow{
  width: 100%;
  height: 375px;
  bottom: 1rem;
  z-index: 1;
  background: linear-gradient(180deg, hsla(240,100%,2%,0) 60%,hsl(240,100%,2%) 85%);
}

.home__info{
  z-index: 2;
  bottom: -1rem;
  justify-self: center;
}

.home__split{
  font-size: var(--h3-font-size);
  font-weight: var(--font-regular);
  color: var(--first-color);
}

.home__profession-1, .home__profession-2{
  font-size: var(--bigger-font-size);
  text-align: center;
  overflow: hidden;
}

.home__profession-1{
  position: relative;
  color: var(--first-color)
}

.home__profession-1::after{
  content: '';
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg,hsl(0,0%,0%) 10%,hsla(0,0%,0%,0) 60%);
  position: absolute;
  top: 0;
  left: 0;
}

.home__profession-2{
  transform: translateY(-1rem);
}

.home__social{
  z-index: 2;
  left: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  row-gap: .75rem;
}

.home__social-link{
  color: var(--title-color);
  font-size: 1.25rem;
  transition: transform .4s, color .4s;
}

.home__social-link:hover{
  color: var(--first-color);
  transform: translateX(.25rem);
}

.home__cv{
  z-index: 2;
  right: -2.5rem;
  bottom: 2.5rem;
  rotate: -90deg;
  color: var(--text-color-light);
  font:var(--font-medium) var(--small-font-size) var(--second-font);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  transition: color .4s;
}

.home__cv i{
  font-size: 1rem;
}

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

.projects .section__title{
  text-align: initial;
  margin-left: 1.5rem;
}

.projects__card{
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 3rem;
  overflow: hidden;
}

.projects__card .blob{
  z-index: 0;
  right: -7.75rem;
  bottom: 0;
}

.projects__number, .projects__data, .projects__image{
  position: relative;
  z-index: 1;
}

.projects__number{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects__number h1{
  font-size: var(--biggest-font-size);
}

.projects__number h3{
  font-weight: var(--font-regular);
  font-size: var(--h3-font-size);
}

.projects__data{
  margin-block: 2rem;
}

.projects__title{
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.projects__subtitle{
  font-family: var(--second-font);
  font-size: var(--small-font-size);
  margin-bottom: .5rem;
}

.projects__description{
  font-size: var(--small-font-size);
}

.projects__img{
  border-radius: 1.5rem;
}

.projects__button{
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background-color: var(--body-color);
  border: 3px solid var(--first-color);
  border-radius: 50%;
  color: var(--title-color);
  font-size: 2rem;
  position: absolute;
  top: .75rem;
  right: .75rem;
  opacity: 0;
  pointer-events: none;
  transition: box-shadow .4s, opacity .4s;
}

.projects__button:hover{
  box-shadow: 0 0 24px var(--first-color);
}

.projects__image:hover .projects__button{
  opacity: 1;
  pointer-events: initial;
}

.projects__swiper{
  margin-inline: initial;
  padding-bottom: 2rem;
}

.projects .swiper-pagination-bullets{
  bottom: 0;
}

.projects .swiper-pagination-bullet{
  background-color: var(--first-color);
  transition: opacity .4s;
}

        .work {
          position: relative;
          overflow: hidden;
        }

        .work__container {
          position: relative;
          z-index: 1;
        }

        .timeline {
          position: relative;
          max-width: 800px;
          margin: 0 auto;
          padding: 2rem 0;
        }

        .timeline::before {
          content: '';
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          width: 4px;
          height: 90%;
          background: linear-gradient(to bottom, 
            var(--first-color) 0%, 
            var(--first-color-alt) 50%, 
            var(--first-color-light) 100%);
          border-radius: 2px;
        }

        .timeline-item {
          position: relative;
          margin-bottom: 4rem;
          width: 100%;
        }

        .timeline-item:nth-child(odd) {
          padding-right: calc(50% + 2rem);
        }

        .timeline-item:nth-child(even) {
          padding-left: calc(50% + 2rem);
        }

        .timeline-dot {
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          width: 20px;
          height: 20px;
          background: var(--first-color);
          border: 4px solid var(--body-color);
          border-radius: 50%;
          z-index: 2;
          box-shadow: 0 0 0 4px var(--first-color);
        }

        .timeline-content {
          background: var(--container-color);
          padding: 1.5rem;
          border-radius: 1.5rem;
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
          position: relative;
          transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .timeline-content:hover {
          transform: translateY(-5px);
          box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }

        .timeline-year {
          display: inline-block;
          background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
          color: var(--title-color);
          padding: 0.5rem 1rem;
          border-radius: 2rem;
          font-family: var(--second-font);
          font-size: var(--small-font-size);
          font-weight: var(--font-semi-bold);
          margin-bottom: 1rem;
        }

        .timeline-title {
          font-size: var(--h2-font-size);
          margin-bottom: 0.5rem;
          color: var(--title-color);
        }

        .timeline-subtitle {
          font-size: var(--h3-font-size);
          color: var(--first-color);
          margin-bottom: 1rem;
          font-weight: var(--font-medium);
        }

        .timeline-description {
          font-size: var(--small-font-size);
          line-height: 1.6;
          color: var(--text-color);
        }

        .timeline-item:nth-child(odd) .timeline-content::before {
          content: '';
          position: absolute;
          right: -10px;
          top: 20px;
          width: 0;
          height: 0;
          border-left: 10px solid var(--container-color);
          border-top: 10px solid transparent;
          border-bottom: 10px solid transparent;
        }

        .timeline-item:nth-child(even) .timeline-content::before {
          content: '';
          position: absolute;
          left: -10px;
          top: 20px;
          width: 0;
          height: 0;
          border-right: 10px solid var(--container-color);
          border-top: 10px solid transparent;
          border-bottom: 10px solid transparent;
        }

.skills {
    position: relative;
    overflow: hidden;
}

.skills__container {
    position: relative;
    z-index: 1;
}

.skills__content {
    display: grid;
    gap: 3rem;
}

.skills__group {
    background: var(--container-color);
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--first-color);
}

.skills__title {
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
    color: var(--first-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.skills__title::before,
.skills__title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--first-color));
}

.skills__title::after {
    background: linear-gradient(90deg, var(--first-color), transparent);
}

.skills__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--first-color);
}

.skill-card__circular {
    flex-shrink: 0;
}

.circular__progress {
    position: relative;
    width: 100px;
    height: 100px;
}

.circular__svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular__bg {
    fill: none;
    stroke: var(--body-color);
    stroke-width: 8;
}

.circular__fill {
    fill: none;
    stroke: var(--first-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 282.6;
    stroke-dashoffset: 282.6; 
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.circular__percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.skill-card__content {
    flex: 1;
}

.skill-card__title {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin-bottom: 0.5rem;
    font-weight: var(--font-semi-bold);
}

.skill-card__description {
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.skill-card__bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-card__progress {
    height: 100%;
    background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

        @media screen and (max-width: 768px) {
          .timeline::before {
            left: 30px;
          }

          .timeline-dot {
            left: 30px;
          }

          .timeline-item:nth-child(odd),
          .timeline-item:nth-child(even) {
            padding: 0 0 0 70px;
          }

          .timeline-item:nth-child(odd) .timeline-content::before,
          .timeline-item:nth-child(even) .timeline-content::before {
            left: -10px;
            right: auto;
            border-right: 10px solid var(--container-color);
            border-left: none;
          }
        }

@media screen and (max-width: 320px) {
  .container{
    margin-inline: 1rem;
  }

  .blob,
  .home__image .blob-animate{
    width: 220px;
    height: 220px;
  }

  .projects__card{
    padding-inline: 1rem;
  }

  .flying-macarons {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .macaron {
    z-index: 3;
    position: absolute;
    max-width: 32vw;
    height: auto;
    top: 0;
    transition: transform 0.1s linear, opacity 0.1s linear;
    animation: floatY 3s infinite alternate ease-in-out;
  }

  .macaron:nth-of-type(1) { top: 25vh; left: 10vw; animation-delay: 0s; }
  .macaron:nth-of-type(2) { top: 17vh; left: 70vw; animation-delay: 0.5s; }
  .macaron:nth-of-type(3) { top: 61vh; left: 40vw; animation-delay: 1s; }

  @keyframes floatY {
    to { transform: translateY(-40px); }
  }
}

@media screen and (min-width: 375px) {
  .flying-macarons {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .macaron {
    z-index: 3;
    position: absolute;
    max-width: 32vw;
    height: auto;
    top: 0;
    transition: transform 0.1s linear, opacity 0.1s linear;
    animation: floatY 3s infinite alternate ease-in-out;
  }

  .macaron:nth-of-type(1) { top: 22vh; left: 10vw; animation-delay: 0s; }
  .macaron:nth-of-type(2) { top: 11vh; left: 70vw; animation-delay: 0.5s; }
  .macaron:nth-of-type(3) { top: 64vh; left: 40vw; animation-delay: 1s; }

  @keyframes floatY {
    to { transform: translateY(-40px); }
  }
  
}

@media screen and (min-width: 425px) {

  .flying-macarons {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .macaron {
    z-index: 3;
    position: absolute;
    max-width: 30vw;
    height: auto;
    top: 0;
    transition: transform 0.1s linear, opacity 0.1s linear;
    animation: floatY 3s infinite alternate ease-in-out;
  }

  .macaron:nth-of-type(1) { top: 22vh; left: 10vw; animation-delay: 0s; }
  .macaron:nth-of-type(2) { top: 11vh; left: 70vw; animation-delay: 0.5s; }
  .macaron:nth-of-type(3) { top: 64vh; left: 40vw; animation-delay: 1s; }

  @keyframes floatY {
    to { transform: translateY(-40px); }
  }
  
}

@media screen and (min-width: 540px) {
  .home__container{
    width: 460px;
    margin-inline: auto;
  }

  :is(.projects) .section__title{
    text-align: center;
    margin-left: 0;
  }

  .projects__card{
    width: 350px;
  }

  .flying-macarons {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .macaron {
    z-index: 3;
    position: absolute;
    max-width: 30vw;
    height: auto;
    top: 0;
    transition: transform 0.1s linear, opacity 0.1s linear;
    animation: floatY 3s infinite alternate ease-in-out;
  }

  .macaron:nth-of-type(1) { top: 20vh; left: 10vw; animation-delay: 0s; }
  .macaron:nth-of-type(2) { top: 9vh; left: 70vw; animation-delay: 0.5s; }
  .macaron:nth-of-type(3) { top: 59vh; left: 61vw; animation-delay: 1s; }

  @keyframes floatY {
    to { transform: translateY(-40px); }
  }

}

@media screen and (min-width: 768px) {
  .home__container{
    width: 600px;
  }

  .flying-macarons {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .macaron {
    z-index: 3;
    position: absolute;
    max-width: 25vw;
    height: auto;
    top: 0;
    transition: transform 0.1s linear, opacity 0.1s linear;
    animation: floatY 3s infinite alternate ease-in-out;
  }

  .macaron:nth-of-type(1) { top: 20vh; left: 10vw; animation-delay: 0s; }
  .macaron:nth-of-type(2) { top: 9vh; left: 70vw; animation-delay: 0.5s; }
  .macaron:nth-of-type(3) { top: 45vh; left: 65vw; animation-delay: 1s; }

  @keyframes floatY {
    to { transform: translateY(-40px); }
  }
}

@media screen and (min-width: 1024px) {
  .flying-macarons {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .macaron {
    z-index: 3;
    position: absolute;
    max-width: 15vw;
    height: auto;
    top: 0;
    transition: transform 0.1s linear, opacity 0.1s linear;
    animation: floatY 3s infinite alternate ease-in-out;
  }

  .macaron:nth-of-type(1) { top: 18vh; left: 10vw; animation-delay: 0s; }
  .macaron:nth-of-type(2) { top: 9vh; left: 70vw; animation-delay: 0.5s; }
  .macaron:nth-of-type(3) { top: 61vh; left: 60vw; animation-delay: 1s; }

  @keyframes floatY {
    to { transform: translateY(-40px); }
  }
}

@media screen and (min-width: 1150px) {
  .container{
    margin-inline: auto;
  }

  .nav{
    height: calc(var(--header-height) + 2rem);
    align-items: center;
  }
  .nav__logo{
    align-items: initial;
  }
  .nav__list{
    flex-direction: row;
    column-gap: 5.5rem;
  }

  .home__container{
    width: initial;
    padding-top: 3rem;
  }

  .home__perfil{
    width: 600px;
  }
  .home__image .blob-animate{
    width: 450px;
    height: 450px;
    bottom: 2rem;
    filter: blur(50px);
  }
  .home__shadow{
    width: 700px;
    height: 700px;
    left: 0;
    right: 0;
    margin-inline:auto;
    background: linear-gradient(180deg,hsla(240,100%,2%,0) 60%,
    hsl(240,100%,2%) 95%);
  }
  .home__data{
    position: absolute;
    top: 12rem;
    left: 3rem;
    z-index: 2;
  }
  .home__info{
    top: 12rem;
    right: 1rem;
    bottom: initial;
  }
  .home__split{
    font-size: var(--h2-font-size);
  }
  .home__profession-1{
    font-size: var(--biggest-font-size);
    text-align: initial;
  }
  .home__profession-2{
    font-size: var(--biggest-font-size);
    transform: translateY(-1.5rem);
  }
  .home__social{
    bottom: 3rem;
    row-gap: 1.5rem;
  }
  .home__social-link{
    font-size: 1.5rem;
  }
  .home__cv{
    font-size: var(--normal-font-size);
    rotate: 0deg;
    right: 0;
  }

  .projects{
    padding-block: 9rem 4rem;
  }
  
  .projects__swiper{
    padding-bottom: 4rem;
  }

  .projects__container{
    max-width: 1380px;
  }

  .projects__card{
    width: 440px;
    padding: 2.5rem;
    border-radius: 4rem;
  }

  .projects__subtitle, .projects__description{
    font-size: var(--normal-font-size);
  }

  .projects__img{
    border-radius: 2rem;
  }

  .projects__button{
    top: 1.5rem;
    right: 1.5rem;
  }

  .flying-macarons {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .macaron {
    z-index: 3;
    position: absolute;
    max-width: 15vw;
    height: auto;
    top: 0;
    transition: transform 0.1s linear, opacity 0.1s linear;
    animation: floatY 3s infinite alternate ease-in-out;
  }

  .macaron:nth-of-type(1) { top: 8vh; left: 10vw; animation-delay: 0s; }
  .macaron:nth-of-type(2) { top: 3vh; left: 75vw; animation-delay: 0.5s; }
  .macaron:nth-of-type(3) { top: 65vh; left: 40vw; animation-delay: 1s; }

  @keyframes floatY {
    to { transform: translateY(-40px); }
  }


}