.heading {
  padding: 10rem 0 0 0;
}

.heading h1 {
  font-size: 9rem;
  line-height: 9rem;
  color: var(--text);
  font-weight: normal;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 3rem;
  height: 9.7rem;
  margin-bottom: 0;
}

.heading h1 > .highlighted {
  overflow: hidden;
}

.heading h1 > .highlighted > div {
  color: var(--primary);
  white-space: nowrap;
  text-align: left;
  height: 100%;
  animation: move-up linear 20s infinite;
  animation-delay: 1s;
}

.heading h4 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  margin-top: 2.6rem;
  margin-bottom: 0;
  font-size: 2.8rem;
  line-height: 3rem;
  color: var(--text);
  text-align: center;
  font-weight: 400;
}

.heading p {
  font-family: "Roboto", sans-serif;
  font-weight: normal;
  margin-top: 1.6rem;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  font-size: 2.4rem;
  line-height: 4rem;
  color: var(--text);
  text-align: center;
  font-weight: 400;
  max-width: 127rem;
}

.heading .btn-primary {
  margin-top: 6rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  font-size: 1.8rem;
  padding: 2rem 6rem;
}

@keyframes move-up {
  0%,
  6% {
    transform: translateY(0);
  }
  10%,
  20% {
    transform: translateY(-100%);
  }
  24%,
  34% {
    transform: translateY(-200%);
  }
  38%,
  48% {
    transform: translateY(-300%);
  }
  52%,
  62% {
    transform: translateY(-400%);
  }
  66%,
  76% {
    transform: translateY(-500%);
  }
  80%,
  90% {
    transform: translateY(-600%);
  }
  94%,
  100% {
    transform: translateY(-700%);
  }
}

/* X-Large devices (large desktops, less than 1400px) */
@media (max-width: 1399.98px) {
  .heading h4 {
    font-size: 2.4rem;
    line-height: 2.6rem;
    padding: 0 2rem;
  }

  .heading p {
    font-size: 2rem;
    line-height: 3rem;
    padding: 0 2rem;
  }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199px) {
  .heading {
    padding: 5rem 0 0 0;
  }

  .heading h1 {
    font-size: 7rem;
    line-height: 7rem;
  }

  .heading h4 {
    font-size: 2.1rem;
    line-height: 2.6rem;
    padding: 0 1rem;
  }

  .heading p {
    font-size: 1.8rem;
    line-height: 3rem;
    padding: 0 1rem;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .heading h1 {
    font-size: 6rem;
    line-height: 6rem;
    height: 13rem;
    gap: 1rem;
    flex-direction: column;
  }

  .heading h1 > .highlighted > div {
    text-align: center;
    line-height: 5.5rem;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .heading {
    padding: 10rem 0 2rem 0;
  }

  .heading h1 {
    font-size: 5rem;
    line-height: 5rem;
    height: 11rem;
    gap: 1rem;
    flex-direction: column;
  }

  .heading h1 > .highlighted > div {
    text-align: center;
    line-height: 4.5rem;
  }

  .heading h4 {
    font-size: 2rem;
    line-height: 2.4rem;
    padding: 0 2rem;
  }

  .heading p {
    font-size: 1.8rem;
    line-height: 2.4rem;
    padding: 0 2rem;
  }

  .heading .btn-primary {
    padding: 2rem 4rem;
  }
}

/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
}
