#service {
  height: fit-content;
  width: 100%;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  background-color: black;
  margin-top: -50px;
  padding-bottom: 100px;
  z-index: 4;
  position: relative;

  background-color: hsla(359, 100%, 50%, 1);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1746 1746' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
    radial-gradient(
      circle at 0% 99%,
      hsla(11, 100%, 50%, 1) 0%,
      transparent 67%
    ),
    radial-gradient(
      circle at 46% 94%,
      hsla(177, 100%, 50%, 1) 0%,
      transparent 81%
    ),
    radial-gradient(
      circle at 89% 8%,
      hsla(304, 100%, 9%, 1) 0%,
      transparent 150%
    ),
    radial-gradient(
      circle at 89% 8%,
      hsla(206, 100%, 9%, 1) 0%,
      transparent 150%
    ),
    radial-gradient(
      circle at 93% 95%,
      hsla(236, 100%, 23%, 1) 0%,
      transparent 66%
    ),
    radial-gradient(
      circle at 89% 8%,
      hsla(0, 100%, 99%, 1) 0%,
      transparent 150%
    ),
    radial-gradient(
      circle at 89% 8%,
      hsla(55, 94%, 54%, 1) 0%,
      transparent 150%
    );
  background-blend-mode: overlay, normal, normal, normal, normal, normal, normal,
    normal;
}

#service .infinite-text {
  font-size: 4vw;
  font-family: "Audiowide", sans-serif;
  display: flex;
  color: white;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  animation: reveal 1s ease forwards;
  animation-timeline: view();
  /* gap: -10px; */
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 30%,
    rgba(0, 0, 0, 1) 90%,
    rgba(0, 0, 0, 0) 100%
  );

  ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    animation: moveText 20s linear infinite;
  }
  ul:first-child {
    /* background-color: lightpink; */
  }
  ul:last-child {
    /* background-color: yellow; */
  }
  ul li {
    list-style: none;
    -webkit-text-stroke: 1px #fff;
    -webkit-text-fill-color: transparent;
  }
}

@keyframes moveText {
  to {
    transform: translateX(-100%);
  }
}

@keyframes reveal {
  from {
    transform: translateY(-1px);
    opacity: 0;
  }
  to {
    transform: translateY(0%);
    opacity: 1;
  }
}

#service .part2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
  /* background-color: aqua; */
  position: relative;
  /* overflow: hidden; */
}

#service .part2inside {
  height: fit-content;
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 100px;

  .card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    color: white;
    animation: eachCardReveal 1s both;
    animation-timeline: view();

    .imgcont {
      /* background-color: aqua; */
      width: 50%;
      text-align: right;

      img {
        width: 40%;
        height: auto;
        border-radius: 20px;
      }
      span {
        font-size: 4vw;
        /* background-color: aqua; */
      }
    }
    p {
      /* font-family: "Rampart One", cursive; */
      /* font-family: "Zain", sans-serif; */
      font-family: "Audiowide", sans-serif;
      /* font-family: "Bebas Neue", sans-serif; */
      /* background-color: lightgreen; */
      width: 50%;
      font-size: 2.2vw;
      span {
        font-weight: 100;
        text-decoration: underline;
        color: rgb(94, 255, 0);
      }
    }
  }

  .card:nth-child(1) {
    animation-range: entry 20% cover 40%;
  }
  .card:nth-child(2) {
    animation-range: entry 40% cover 60%;
    flex-direction: row-reverse;
    .imgcont {
      text-align: left;
    }
  }
  .card:nth-child(3) {
    animation-range: entry 60% cover 80%;
  }
  .card:nth-child(4) {
    animation-range: entry 30% cover 50%;
    flex-direction: row-reverse;
    .imgcont {
      text-align: left;
    }
  }
}

#service .part2 .vertLine {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: white;
  border-radius: 30px;
  /* animation: lineGrow 5s both; */
  /* animation-timeline: view(); */
  /* animation-range: entry 40% cover 100%; */
}

@keyframes eachCardReveal {
  from {
    transform: translateY(20px) scale(0.5);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes eachCardRevealMobile {
  from {
    transform: translateX(-50px) scale(1);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes eachCardRevealMobile2 {
  from {
    transform: translateX(50px) scale(1);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes lineGrow {
  from {
    height: 0%;
  }
  to {
    height: 100%;
  }
}

@media (max-width: 968px) {
  #service .part2inside {
    gap: 20px;
    width: 80%;

    .card {
      width: fit-content;
      gap: 40px;
      .imgcont {
        /* width: 60%; */
        span {
          font-size: 6vw;
        }
      }
      p {
        font-size: 3.5vw;
      }
    }
  }
}

@media (max-width: 768px) {
  #service .part2 .vertLine {
    left: 10%;
    display: none;
  }
  #service .infinite-text {
    font-size: 6vw;
  }
  #service .part2inside {
    /* background-color: tomato; */
    width: 90%;
    gap: 50px;

    .card {
      animation: eachCardRevealMobile 2s both;
      animation-timeline: view();
      flex-direction: row;
      gap: 50px;
      .imgcont {
        text-align: left;
        width: fit-content;
        span {
          font-size: 6vw;
        }
      }
      p {
        /* background-color: turquoise; */
        width: 80%;
        font-family: "Zain", sans-serif;
        font-size: 4vw;
      }
    }
    .card:nth-child(even) {
      flex-direction: row;
      animation: eachCardRevealMobile 2s both;
      animation-timeline: view();
      .imgcont {
        text-align: left;
      }
      /* flex-direction: row; */
    }
  }
}

@media (max-width: 568px) {
  #service .infinite-text {
    font-size: 8vw;
  }
  #service .part2inside {
    width: 90%;
    gap: 50px;
    .card {
      gap: 30px;
      /* background-color: aqua; */
      .imgcont {
        span {
          font-size: 7vw;
        }
      }
      p {
        font-size: 5vw;
      }
    }
  }
}
