/* Progress Section Component Styles */

.progress-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  background-color: #FBF3F2; /* tertiary-40 */
}

.progress-section-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text Content */
.progress-section-text {
  position: relative;
  z-index: 10;
  padding-top: 0;
  padding-bottom: 0;
  text-align: left;
}

.progress-section-text-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-section-text-part-1,
.progress-section-text-part-2 {
  display: inline-block;
  line-height: 2.25rem; /* leading-9 */
}

.progress-section-text-part-1,
.progress-section-text-part-2 {
  color: #BD93AE; /* primary-40 - default color for all text */
}

/* Word spans for animation */
.progress-section-text-part-1 .word,
.progress-section-text-part-2 .word {
  display: inline-block;
  transition: color 0.3s ease;
  color: #BD93AE; /* primary-40 - default color */
}

.progress-section-text-part-1 .word.animated,
.progress-section-text-part-2 .word.animated {
  color: #680144; /* primary-100 - animated color */
}

/* Parallax Images */
.progress-section-images {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.progress-section-image-1,
.progress-section-image-2 {
  position: absolute;
  transform-origin: top left;
}

.progress-section-image-1 {
  width: 320px; /* w-80 */
  height: 256px; /* h-64 */
  left: 338px;
  top: 100%;
  transform: rotate(180deg) translateY(0);
  transition: transform 0.1s ease-out;
}

.progress-section-image-2 {
  width: 320px; /* w-80 */
  height: 384px; /* h-96 */
  right: -320px;
  top: 407px;
  transform: rotate(180deg) translateY(0);
  transition: transform 0.1s ease-out;
}

.progress-section-image-1 img,
.progress-section-image-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1279px) {
  .progress-section-image-1 {
    left: max(20px, calc(338px - (1279px - 100vw) / 2));
  }
}

@media (max-width: 1024px) {
  .progress-section {
    height: 100vh;
    min-height: 100vh;
  }

  .progress-section-container {
    height: 100vh;
    min-height: 100vh;
  }

  .progress-section-text {
    padding-top: 200px;
    padding-bottom: 200px;
    max-width: 90%;
  }

  .progress-section-text-part-1,
  .progress-section-text-part-2 {
    font-size: 1.5rem; /* text-2xl */
    line-height: 2rem;
  }

  .progress-section-image-1 {
    width: 240px;
    height: 192px;
    left: 10%;
    top: 80%;
  }

  .progress-section-image-2 {
    width: 240px;
    height: 288px;
    right: 5%;
    top: 50%;
  }
}

@media (max-width: 768px) {
  .progress-section {
    height: 100vh;
    min-height: 100vh;
  }

  .progress-section-container {
    height: 100vh;
    min-height: 100vh;
  }

  .progress-section-text {
    padding-top: 150px;
    padding-bottom: 150px;
    max-width: 95%;
  }

  .progress-section-text-part-1,
  .progress-section-text-part-2 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .progress-section-image-1 {
    width: 180px;
    height: 144px;
    left: 0 !important;
    top: 0 !important;
    transform: rotate(0deg) translateY(0) !important;
    transform-origin: top left;
  }

  .progress-section-image-2 {
    width: 180px;
    height: 216px;
    right: 0 !important;
    left: auto !important;
    top: auto !important;
    bottom: 0 !important;
    transform: rotate(0deg) translateY(0) !important;
    transform-origin: bottom right;
  }
}

@media (max-width: 480px) {
  .progress-section {
    height: 100vh;
    min-height: 100vh;
  }

  .progress-section-container {
    height: 100vh;
    min-height: 100vh;
  }

  .progress-section-text {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .progress-section-text-part-1,
  .progress-section-text-part-2 {
    font-size: 1.125rem;
    line-height: 1.625rem;
  }

  .progress-section-image-1 {
    width: 140px;
    height: 112px;
    left: 0 !important;
    top: 0 !important;
    transform: rotate(0deg) translateY(0) !important;
    transform-origin: top left;
  }

  .progress-section-image-2 {
    width: 140px;
    height: 168px;
    right: 0 !important;
    left: auto !important;
    top: auto !important;
    bottom: 0 !important;
    transform: rotate(0deg) translateY(0) !important;
    transform-origin: bottom right;
  }
}
