#intro-scroll-section {
  height: 250vh;
  position: relative;
}

#default-img-app {
  transition: opacity 0.2s;
  opacity: 0;
  width: 0px;
}

#intro-sticky-container {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: hidden;
  overflow-x: hidden;
  backface-visibility: visible;
}

#intro-image-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: center;
  will-change: transform;
  contain: inline-size;
  overflow: clip;
  width: 100vw;
}

#intro-image {
  object-fit: cover;
  backface-visibility: hidden;
  overflow: hidden;
  justify-self: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

.section-description {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 1rem;
}

.sticky-header-content {
  top: 115px;
  z-index: 10;
  background: transparent;
}

.sticky-phone-container {
  position: -webkit-sticky;
  position: sticky;
  transform: translate(0%, -50%);
  top: 50%;
  align-self: flex-start;
  overflow: hidden;
  z-index: 9;
  margin-bottom: -200px;
}

.mockup-phone {
  height: auto;
  display: block;
  justify-self: center;
}

.mockup-phone,
.mockup-phone-overlay {
  display: block;
  height: auto;
}

.mockup-phone {
  z-index: 0;
  position: relative;
}

#card-stack {
  top: 29vh;
  z-index: 8;
  padding-top: 22vh;
  padding-bottom: 30vh;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  border-radius: 28px;
  transition: transform 0.5s ease, opacity 0.2s ease;
  position: relative;
  background: #f1f1f1;
  margin-bottom: 50px;
}

.feature-card .card-img {
  border-radius: 28px 0px 0px 28px;
  object-fit: cover;
  height: 100%;
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  z-index: 20;
}

.feature-card.is-past {
  position: sticky;
  top: 30vh;
  z-index: 1;
  transform: scale(0.95);
}

.feature-card.is-past:not(:last-of-type) {
  transform: scale(0.95);
}

#cards-scroll-section {
  margin-top: -60vh;
}

@media (max-width: 991.98px) {

  .feature-card.is-past {
    top: 10vh;
  }

  #cards-scroll-section {
    margin-top: -55vh;
  }

  .sticky-phone-container {
    position: relative;
    padding-bottom: 20px;
  }

  .sticky-header-content,
  #card-stack {
    position: static;
    background-color: transparent;
    max-height: none;
    overflow-y: visible;
    margin-top: 0;
    padding-top: 0;
    z-index: auto;
  }

  #card-stack {
    margin-top: 1.5rem;
    padding-right: 0;
    padding-top: 10vh;
  }

  .section-description {
    margin-bottom: 0;
  }

  .feature-card+.feature-card {
    margin-top: 1rem;
  }

  #default-img-app {
    /*transition: opacity 0.2s;*/
    opacity: 0;
    width: auto;
    justify-items: center;
    margin: 0 auto;
  }

}

@media (max-width: 767px) {
  .feature-card .card-img {
    border-radius: 28px 28px 0px 0px;
    object-fit: cover;
    height: 100%;
  }
}

.mockup-phone-wrapper {
  position: relative;

}

.mockup-phone-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  /*transition: opacity 0.2s ease;*/
  pointer-events: none;
  z-index: 1;
  width: 0px;
}

.card.feature-card.last-card.is-past {
  opacity: 1;
  transform: none;
}

.overlay-container {
  position: relative;
  display: inline-block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  pointer-events: none;
  text-align: center;
}

.overlay-text {
  font-size: 3.5rem;
  padding: 1rem;
  font-weight: 800;
}
