.parallax-section {
    position: relative;
}

.bg-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 0;
}

.parallax-text {
    opacity: 1;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.parallax-section.scrolled .parallax-text {
    transform: translateY(-100px);
    opacity: 0;
}
#text-block {
  position: absolute;
  opacity: 1;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
#text-block.hide {
  transform: translateY(-100px);
  opacity: 0;
}
#text-block2 {
  position: absolute;
  opacity: 1;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
#text-block2.hide {
  transform: translateY(-100px);
  opacity: 0;
}