@layer pages {
  #hero {
    text-align: center;

    h5 {
      font-size: 30px;
      line-height: 40px;

      @media (min-width: 580px) {
        font-size: 40px;
        line-height: 48px;
      }

      .role {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: end;
      }

      .image-bg {
        background: #D8BFFF;
        display: flex;
        align-items: end;
        width: 60px;
        height: 105px;
        border-radius: 90px;
        margin-inline: 8px;
        overflow: hidden;

        img {
          width: 77px;
          height: 77px;
        }
      }

      span {
        background-image: linear-gradient(to right, #D8BFFF, #FC643B);
        background-clip: text;
        color: transparent;
      }
    }

    p {
      margin-top: 16px;
      color: #999999;
      font-size: 12px;
      line-height: 22px;
      font-weight: 600;
      max-width: 600px;
      margin-inline: auto;
    }
  }

  #projects {
    > ul {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;

      > li {
        width: 100%;
        grid-column: 1 / span 2;

        @media (min-width: 580px) {
          &:first-child {
            margin-bottom: 8px;
          }

          &:nth-child(2) {
            grid-column: 1;
          }

          &:last-child {
            grid-column: 2;
          }
        }
      }
    }

    button {
      background-color: #F8EEEC;
      border: 1px solid #E2E1D9;
      border-radius: 90px;
      margin-top: 12px;
      width: 100%;
      padding: 12px 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;

      span {
        color: #FB6439;
        font-size: 14px;
        line-height: 22px;
        font-weight: 500;
      }

      div {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: #FB6439;
      }
    }
  }

  #about {
    article {
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;

      @media (min-width: 750px) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }

      > div:first-child {
        height: 470px;
        max-width: 100%;
        background-image: url('/images/caroline.png');
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 20px;
        display: flex;
        align-items: end;
        justify-content: end;

        @media (min-width: 750px) {
          width: 370px;
        }

        .skills-slider {
          background-color: white;
          border-bottom-right-radius: 20px;
          border-top-left-radius: 20px;
          padding: 12px;
          filter: grayscale(1);
          overflow: hidden;
          width: 270px;
          display: flex;
          gap: 18px;

          .slider-track {
            display: flex;
            justify-content: end;
            gap: 20px;
            will-change: transform;
            animation: scrolling 10s linear infinite;

            li, img {
              width: 24px;
              height: 24px;
            }

            img {
              opacity: .6;
            }
          }
        }
      }

      > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 12px;

        > div {
          border: 1px solid #E2E1D9;
          border-radius: 20px;
          background-color: white;
          padding: 24px;

          &:last-child {
            flex: 1;
          }

          h4 {
            font-size: 22px;
            line-height: 30px;
            font-weight: 900;
            margin-bottom: 8px;
          }

          p {
            font-size: 14px;
            line-height: 22px;
            font-weight: 400;
            color: #575757;
          }
        }
      }
    }
  }
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 18px));
  }
}
