@layer base {
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\      *** PAGE 1 / SECTION-ONE / APPROACH ***       \\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  .pg1-s1-approach {
    position: relative;
    padding-top: 2.5rem;
    padding-bottom: var(--padd-60-100);
  }

  .ufo-decorative-svg {
    display: none;
    position: absolute;
    width: 3rem;
    animation: ufoFly 25s 15s ease-in-out infinite;
    position: absolute;
    top: 10%;
    left: -25%;
    z-index: -1;

    @media (width > 62.5rem) {
      width: 5rem;
      top: 20%;
      left: -7%;
    }
  }

  .pg1-s1-approach__flex {
    display: flex;
    flex-direction: column;
    gap: 6rem;

    @media (width > 62.43rem) {
      flex-direction: row;
    }
  }

  .cmp-main-text--pg1-s1 {
    margin-bottom: 1rem;
  }

  .text-block-container {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);

    @media (width > 47.5rem) {
      grid-template-columns: 1fr 1fr;
    }

    @media (width > 62.43rem) {
      max-width: 48%;
    }
  }

  .text-block-container__main-text {
    @media (width > 47.5rem) {
      grid-column: 1 / -1;
    }
  }

  .approach-fees-heading-span {
    display: inline-block;
    text-decoration: underline wavy 0.15rem var(--clr-blue-100);
    text-underline-offset: 0.05em;
  }

  .text-block {
    p {
      font-size: var(--fs-card-text);
    }
  }

  .text-block__svg-heading {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;

    svg {
      fill: var(--bg-svg-decorations);
    }
  }

  .cmp-main-btn--pg1-s1 {
    position: relative;
    margin-right: auto;
    margin-top: 2rem;
  }

  .owner-image-box {
    position: relative;
    height: fit-content;

    img {
      width: 100%;
      height: auto;
      border-radius: 7rem;
      box-shadow: 0 0 1rem var(--clr-gray-200);
    }

    .owner-image-box__text-box {
      position: absolute;
      bottom: 1.5rem;
      left: -0.5rem;
      background-color: var(--clr-blue-200);
      color: #fff;
      padding: 1em 1.5em;
      border-radius: 1rem;

      span {
        display: block;
      }

      span:first-of-type {
        font-size: var(--fs-text-heading);
        font-family: var(--ff-headings-oswald);
      }

      @media (width > 37.5rem) {
        bottom: 3rem;
        left: 3rem;
      }
    }
  }

  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\      *** PAGE 1 / SECTION-TWO / MISSION ***       \\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  .pg1-s2-mission {
    position: relative;
    padding-bottom: var(--padd-60-100);
    overflow-x: clip;
  }

  .decorative-side-svg {
    display: none;
    position: absolute;
    fill: var(--clr-blue-200);
    right: -21.87rem;
    top: -1.87rem;
    width: 25rem;
    opacity: 0.15;
    animation: slideDiagonal 30s ease-in-out infinite;

    @media (width > 47.5rem) {
      display: initial;
    }

    @media (width > 78.75rem) {
      right: -15.62rem;
    }
  }

  .cards-main-text-container {
    text-align: center;
    margin-inline: auto;

    @media (width > 47.5rem) {
      text-align: left;
    }
  }

  .sub-heading--pg1-s2 {
    max-width: 22ch;
    margin-inline: auto;

    @media (width > 47.5rem) {
      margin-inline: unset;
    }
  }

  .main-text--pg1-s2 {
    max-width: 65ch;
  }

  .services-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 4.5rem;
    margin-top: clamp(6.5rem, 12vw, 7.5rem);
  }

  .services-card {
    position: relative;
    padding: 1.5em;
    background-color: var(--clr-lighter-white);
    border-radius: 1.5rem;
    text-align: left;
    box-shadow: -3px 4px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s, background-color 0.5s;

    .services-card__svg-box {
      position: absolute;
      height: 5.31rem;
      width: 5.31rem;
      background-color: var(--clr-blue-200);
      top: -2.81rem;
      left: 2.5rem;
      border-radius: 1rem;
      display: grid;
      place-items: center;
      transition: transform 0.5s, background-color 0.5s;
    }

    svg {
      fill: #ffffff;
      transition: fill 0.5s;
    }

    h3 {
      font-size: var(--fs-text-heading);
      margin-top: 3rem;
      margin-bottom: 0.75rem;
    }

    p {
      font-size: var(--fs-card-text);
      margin-bottom: 0.5rem;
    }

    span {
      font-size: var(--fs-sub-text);
      color: var(--text-primary-dark);
      text-decoration: underline;
    }

    @media (width > 47.5rem) {
      &:hover {
        background-color: var(--clr-blue-200);
        transform: translateX(-0.62rem);
        transition: transform 0.5, background-color 5s;

        .services-card__svg-box {
          background-color: var(--clr-blue-100);
        }

        svg {
          fill: #000;
          transition: fill 0.5s;
        }

        h3,
        p {
          color: #fff;
          transition: color 0.5s;
        }
      }
    }
  }

  .cmp-main-btn--pg1-s2 {
    margin-top: 4rem;
  }

  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\      *** PAGE 1 / SECTION-THREE / PERFORMANCE ***       \\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  .pg1-s3-performance {
    background-color: var(--bg-primary-blue);
    padding-block: var(--padd-60-100);
  }

  .performance-text-block__flex-container {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 4rem);

    @media (width > 47.5rem) {
      flex-direction: row;
    }
  }

  .performance-text-block__text-block {
    order: 1;
  }

  .cmp-sub-heading--pg1-s3 {
    span {
      color: var(--text-primary-light);
    }
  }

  .cmp-main-text--pg1-s3 {
    margin-bottom: 2rem;
    opacity: 0.8;
  }

  .cmp-topper-heading--pg1-s3,
  .cmp-sub-heading--pg1-s3,
  .cmp-main-text--pg1-s3,
  .text-block__svg-text {
    color: var(--text-body-white);
  }

  .performance-text-block__inner-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-6.25rem);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    /* prettier-ignore */
    transition-timing-function: linear(0, 0.207 4.4%, 0.388 8.8%, 0.548 13.3%, 0.688 17.9%, 0.749 20.2%, 0.807 22.6%, 0.859 25%, 0.908 27.5%, 0.951 30%, 0.989 32.5%, 1.022 35.1%, 1.051 37.7%, 1.072 40%, 1.09 42.3%, 1.104 44.7%, 1.116 47.2%, 1.124 49.7%, 1.129 52.3%, 1.132 54.9%, 1.131 57.7%, 1.123 62.4%, 1.108 67.7%, 1.088 72.7%, 1.038 84.3%, 1.017 90%, 1.004 95.2%, 1.001 97.6%, 1);

    svg {
      min-width: 2.5rem;
    }

    svg:not(.mid-svg) {
      fill: var(--bg-svg-decorations);
    }

    p {
      font-size: clamp(0.875rem, 1.5vw, 1rem);
      font-weight: 700;
      color: var(--text-body-white);
      max-width: 26.25rem;
    }

    @media (width > 47.5rem) {
      transform: translateX(-15.625rem);
    }

    @media (prefers-reduced-motion: reduce) {
      opacity: 1;
    }
  }

  .performance-text-block__inner-flex.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .cmp-main-btn--pg1-s3 {
    margin-top: 2rem;
    margin-right: auto;
  }

  .performance-text-block__image-block {
    margin-top: 3rem;

    img {
      position: relative;
      width: 100%;
      height: auto;
      border-radius: 1.5em;
      box-shadow: 0 0 1rem white;
      z-index: 999;
    }

    @media (width > 47.5rem) {
      max-width: 50%;
    }
  }

  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\      *** PAGE 1 / SECTION-FOUR / PORTFOLIO ***       \\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  .pg1-s4-portfolio {
    padding-top: var(--padd-60-100);
    text-align: center;

    h2 {
      margin-inline: auto;
    }

    p {
      max-width: 75ch;
      margin-inline: auto;
    }

    @media (prefers-reduced-motion: reduce) {
      .slider {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
        gap: 1.5rem;
      }

      img {
        display: inline-block;
        width: 100%;
        height: auto;
        margin-top: 4rem;
        margin-bottom: 1rem;

        @media (width > 62.5rem) {
          margin-bottom: 6rem;
        }
      }
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    .banner {
      --max-viewport: 70;

      position: relative;
      width: 100%;
      height: 10rem;
      margin-top: clamp(4rem, 10vw, 8rem);
      margin-bottom: clamp(
        /* Between 30rem and 100rem width, the margin will change from 4rem to 20rem */
          4rem,
        calc(4rem + (20 - 4) * ((100vw - 25rem) / (var(--max-viewport) - 25))),
        /* stop scaling after viewport reaches the max rem level at '--max-viewport' */
          20rem
      );
      text-align: center;
      user-select: none;

      .slider {
        position: absolute;
        width: clamp(11rem, 35vw, 18.75rem);
        left: calc(50% - clamp(5.5rem, 17.5vw, 9.4rem));
        will-change: transform;
        transform: translateZ(0);
        transform-style: preserve-3d;
        animation: autoRun 20s linear infinite;

        .item {
          position: absolute;
          inset: 0 0 0 0;
          will-change: transform;
          transform-style: preserve-3d;
          transform: rotateY(
              calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
            )
            translateZ(clamp(4.37rem, 35vw, 25rem));

          &::after {
            content: "";
            display: block;
            height: 0.25rem;
            box-shadow: 25px -25px 20px #000;
            width: 85%;
          }

          img {
            width: 100%;
            height: auto;
            object-fit: cover;
            padding-bottom: 4rem;
          }
        }
      }
    }
  }

  .portfolio-images {
    border-radius: 10%;
    border-bottom-left-radius: 40%;
    border-bottom-right-radius: 40%;
  }

  .cmp-topper-heading--pg1-s4 {
    font-size: clamp(0.75rem, 2vw, 1.75rem);
    margin-bottom: var(--padd-60-100);
  }

  .cmp-topper-heading--pg1-s4::after {
    position: relative;
    content: "";
    display: block;
    margin-inline: auto;
    background: var(--clr-gray-100);
    height: 1px;
    width: 19em;
    margin-top: 0.25rem;
    opacity: 0.3;
    z-index: 999;
  }

  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\      *** PAGE 1 / SECTION-FIVE / PRICING ***       \\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  .cmp-topper-heading--pg1-s5,
  .cmp-sub-heading--pg1-s5 {
    position: relative;
    display: block;
    text-align: center;
    margin-inline: auto;
    margin-bottom: 0;
  }

  .pricing-card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;

    @media (width > 62.43rem) {
      grid-template-columns: 1fr 1fr;
      margin-top: 5rem;
    }
  }

  .pricing-card {
    padding: 1.5em;
    border-radius: 3%;
    border: 1px solid rgba(0, 0, 0, 0.344);
    box-shadow: 5px 5px 10px var(--bg-primary-blue);

    h3 {
      font-size: var(--fs-card-heading);
      font-family: var(--ff-headings-oswald);
      font-weight: 700;
      color: var(--clr-blue-300);
      text-transform: uppercase;
      margin-bottom: 1.5rem;
      text-align: center;
    }

    p {
      font-size: var(--clr-lighter-white);
    }

    ul {
      margin-bottom: 2rem;
    }

    li {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.75rem;

      span {
        color: var(--clr-blue-100);
      }

      svg {
        margin-left: 1.25rem;
        fill: var(--bg-svg-decorations);
      }
    }

    &:first-child {
      li span {
        color: var(--clr-blue-150);
      }
    }

    .pricing-card__main-price-span {
      font-size: 3rem;
      font-family: var(--ff-headings-oswald);
      font-weight: 900;
      color: var(--text-sub-heading-black);
    }

    a {
      display: block;
      width: fit-content;
      margin-top: 1rem;
      margin-inline: auto;
    }

    &:last-child {
      background-color: var(--bg-primary-blue);

      h3,
      p,
      .pricing-card__main-price-span,
      .pricing-card__secondary-price-span {
        color: var(--clr-lighter-white);
      }

      a {
        background-color: var(--bg-btn-active);
        color: var(--text-primary-dark);
      }
    }
  }

  .pricing-card span {
    background-color: transparent;
  }

  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\      *** PAGE 1 / SECTION-SIX / TESTIMONIALS ***       \\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  .pg1-s6-testimonials {
    position: relative;
    padding-top: var(--padd-60-100);
    padding-bottom: clamp(6rem, 13vw, 12rem);
    text-align: center;
  }

  .cmp-sub-heading--pg1-s6 {
    position: relative;
    margin-inline: auto;
    z-index: 999;
  }

  .cmp-main-text--pg1-s6 {
    max-width: 70ch;
    margin-inline: auto;
  }

  .decorative-side-svg--testimonials {
    left: -23.75rem;
    top: -11.25rem;

    @media (width > 78.75rem) {
      left: -22.5rem;
      top: -8.75rem;
    }
  }

  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\      *** FOOTER ***       \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */
  /* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ */

  #footer {
    position: relative;
    background-color: var(--bg-primary-blue);
    color: var(--text-body-white);
    padding-top: clamp(8rem, 17vw, 12rem);
    padding-bottom: clamp(1.9rem, 5vw, 3.125rem);
    clip-path: inset(0px 0px 0px 0px);
    overflow: hidden;
  }

  .footer__svg-page-decoration {
    position: absolute;
    fill: #fff;
    top: -1px;
    transform: scaleX(-1) scaleY(-1);
    backface-visibility: hidden;
  }

  .footer-flex-container {
    display: grid;
    gap: 2rem;

    .footer__image-text-block {
      grid-column: 1 / -1;
    }

    img {
      width: 19.37rem;
      margin-bottom: 2rem;
    }

    p {
      margin-bottom: 2rem;
    }

    @media (width > 47.5rem) {
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
    }
  }

  .footer__image-text-block {
    p {
      max-width: 60ch;
    }
  }

  .cmp-main-btn-footer {
    background-color: var(--clr-lighter-white);
    color: var(--text-primary-dark);

    &:after {
      background-color: var(--clr-blue-100);
    }
  }

  .footer__quick-links-block,
  .footer__contact-block {
    h3 {
      font-size: var(--fs-text-heading);
      font-family: var(--ff-headings-oswald);
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 1.25rem;
    }

    li {
      list-style: none;
      margin-bottom: 0.75rem;
    }

    a {
      text-decoration: none;
    }
  }

  .footer-business-logo {
    width: 100%;
    height: auto;
  }

  .footer__contact-block {
    li {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    a {
      display: contents;
    }
  }

  .footer-bottom-links-container {
    position: relative;
    display: flex;
    flex-direction: column;
    font-size: var(--clr-lighter-white);
    margin-top: 2.5rem;
    text-align: center;

    div:last-child {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    a {
      text-decoration: none;
    }

    &::before {
      content: "";
      display: block;
      background: var(--clr-gray-100);
      height: 1px;
      width: 100%;
      margin-bottom: 1.5rem;
      opacity: 0.6;
    }
  }

  .created-by-svg {
    margin-inline: auto;
    width: 15.62rem;
    height: auto;
    text-shadow: 2px 2px 2px var(--clr-blue-150);
    margin-bottom: 1rem;

    @media (width > 50rem) {
      position: absolute;
      top: 3.44rem;
      left: -3%;
      transform: rotate(-10deg);
      transition: transform 0.75s ease-out;
      user-select: none;

      &:hover {
        transform: scale(1.4);
        transition: transform 0.75s ease-out;
      }
    }
  }
}

@layer animations {
  @keyframes slideDown {
    from {
      transform: translateY(-100%);
    }
    to {
      transform: translateY(0);
    }
  }

  @keyframes slideDiagonal {
    0% {
      transform: translate(0px, 0px);
    }
    50% {
      transform: translate(6.25rem, 18.75rem);
    }
    100% {
      transform: translate(0px, 0px);
    }
  }

  @keyframes rotate {
    0% {
      transform: rotate(0deg) translate3d(0, 0, 0);
    }

    25% {
      transform: rotate(4deg) translate3d(0, 0, 0);
    }

    50% {
      transform: rotate(-4deg) translate3d(0, 0, 0);
    }

    75% {
      transform: rotate(2deg) translate3d(0, 0, 0);
    }

    100% {
      transform: rotate(0deg) translate3d(0, 0, 0);
    }
  }

  @keyframes autoRun {
    from {
      transform: perspective(62.5rem) rotateX(-12deg) rotateY(0deg);
    }
    to {
      transform: perspective(62.5rem) rotateX(-12deg) rotateY(360deg);
    }
  }

  @keyframes ufoFly {
    0% {
      transform: translateX(-180%) translateY(0);
    }
    10% {
      transform: translateX(0) translateY(6.25rem);
    }
    20% {
      transform: translateX(25vw) translateY(8.12rem);
    }
    30% {
      transform: translateX(50vw) translateY(-12.5rem);
    }
    40% {
      transform: translateX(75vw) translateY(2.5rem);
    }
    50% {
      transform: translateX(100vw) translateY(6.25rem);
    }
    60% {
      transform: translateX(130vw) translateY(0);
    }
    100% {
      transform: translateX(130vw) translateY(0);
    }
  }
}
