/* ==========================================================================
   Scroll Text Reveal Section Styles (Single Text Line Italic -> Bold Upright Transition)
   ========================================================================== */

.scroll-text-reveal {
  position: relative;
  width: 100%;
  padding: 90px 0;
  background: #000000;
  overflow: hidden;
}

.scroll-text-reveal__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 680px);
  margin: 0 auto;
  text-align: center;
}

.scroll-text-reveal__item {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: default;
}

.scroll-text-reveal__content {
  display: inline-block;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 80px;
  font-style: italic;
  font-weight: 300;
  line-height: 100px;
  transform: skewX(-12deg) scale(0.96);
  opacity: 0.35;
  transition: color 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    font-weight 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: color, font-weight, opacity, transform;
}

.scroll-text-reveal__text {
  display: inline-block;
}

.scroll-text-reveal__item.is-active .scroll-text-reveal__content {
  color: #ffffff;
  font-style: normal;
  font-weight: 800;
  opacity: 1;
  transform: skewX(0deg) scale(1);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.25));
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  .scroll-text-reveal {
    padding: 80px 0;
  }

  .scroll-text-reveal__item:first-child {
    margin-top: 0;
  }

  .scroll-text-reveal__item {
    margin-top: 16px;
  }

  .scroll-text-reveal__content {
    font-size: 40px;
    line-height: 50px;
  }
}