.section-image {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
}

.left-image {
  left: 0;
}

.right-image {
  right: 0;
}

.section-content {
  padding-left: 5rem;
  padding-right: 5rem;
  display: flex;
  flex-direction: column;
}

.section-title {
  margin: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 2.5rem;
  font-family: "Sen";
}

.section-subtitle {
  margin: 0;
  padding-bottom: 2rem;
  font-size: 2rem;
  font-family: "Catamaran";
  font-weight: 800;
  display: flex;
  align-items: center;
}

.section-paragraph {
  margin: 0;
  padding-bottom: 2rem;
  max-width: 55%;
  line-height: 1.25;
  font-size: 1.5rem;
  font-family: "Catamaran";
  font-weight: 800;
}

.section-paragraph-small {
  margin: 0;
  padding-top: 2rem;
  max-width: 30%;
  line-height: 1.25;
  font-size: 1.5rem;
  font-family: "Catamaran";
  font-weight: 400;
}

.star-container {
  display: flex;
  flex: 1;
  gap: 2rem;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.single-star {
  position: relative;
  width: 15%;
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.star-white {
  background-image: url("../images/ui/white-sun.avif");
}

.star-blue {
  background-image: url("../images/ui/blue-sun.avif");
}

.star-text {
  text-align: center;
  font-size: 1rem;
  font-family: "Catamaran";
  color: var(--deepblue);
  font-weight: 700;
  margin: 0;
  padding: 0% 35%;
  line-height: 1.5;
}

#section1 {
  display: flex;
  justify-content: flex-start;
  position: relative;
  min-height: 100vh;
  background-color: var(--deepblue);
  background-image:
    var(--noise-texture),
    radial-gradient(circle at right, var(--starlight) 0%, var(--deepblue) 50%);
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
  background-position:
    left top,
    center;
  color: white;
}

#section2 {
  display: flex;
  justify-content: flex-end;
  position: relative;
  min-height: 100vh;
  background-color: var(--starlight);
  background-image:
    var(--noise-texture),
    radial-gradient(circle at left, var(--deepblue) 0%, var(--starlight) 50%);
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
  background-position:
    left top,
    center;
  color: var(--deepblue);
}

#section2 .section-subtitle {
  padding-top: 8rem;
  padding-left: 35%;
}

#section2 .section-paragraph {
  max-width: 100%;
  padding-left: 35%;
}

#section2 .section-paragraph-small {
  max-width: 35%;
  padding-left: 35%;
}

#section2 .star-container {
  justify-content: flex-end;
}

#section3 {
  display: flex;
  justify-content: flex-start;
  position: relative;
  min-height: 100vh;
  background-color: var(--deepblue);
  background-image:
    var(--noise-texture),
    radial-gradient(circle at right, var(--starlight) 0%, var(--deepblue) 50%);
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
  background-position:
    left top,
    center;
  color: white;
}

#section3 .section-subtitle {
  padding-top: 8rem;
}

.decorator-wrapper {
  display: contents;
}

.white-text {
  color: white !important;
}

.subtitle-decor {
  height: 1em;
  width: auto;
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  .mobile-hidden, .star-container {
    display: none !important;
  }

  .fullscreen-section {
    flex-direction: column;
  }

  #section1, #section2, #section3 {
    min-height: auto;
  }

  .decorator-wrapper {
    display: block !important;
    order: 1;
    width: 100%;
    aspect-ratio: 2 / 1;
  }

  .subtitle-decor {
    display: none;
  }

  .section-title {
    text-align: center;
  }

  .section-paragraph, .section-paragraph-small {
    max-width: 100%;
  }

  .section-paragraph-small {
    padding: 0 0 2rem 0;
  }

  .section-content {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  #section1 {
    background-image:
      var(--noise-texture),
      radial-gradient(circle at bottom center, var(--starlight) 10%, var(--deepblue) 60%);
  }

  #section2 {
    background-image:
      var(--noise-texture),
      radial-gradient(circle at bottom center, var(--deepblue) 10%, var(--starlight) 60%);
    align-items: flex-start;
  }

  #section3 {
    background-image:
      var(--noise-texture),
      radial-gradient(circle at bottom center, var(--starlight) 10%, var(--deepblue) 60%);
  }

  #section2 .section-subtitle,
  #section2 .section-paragraph,
  #section2 .section-paragraph-small {
    padding-left: 0;
  }

  #section2 .section-paragraph-small {
    max-width: 100%;
  }
  
  #section2 .section-subtitle, #section3 .section-subtitle {
    padding-top: 2rem;
  }

  /* Shared Decorative Image Orientation on Mobile 
     We precisely rotate the natural bounding box without creating a fake 100vw square.
  */
  .section-image.right-image {
    top: auto;
    right: 100%;
    height: 100vw;
    transform-origin: bottom right;
    transform: rotate(90deg);
  }

  .section-image.left-image {
    top: auto;
    height: 100vw;
    transform-origin: bottom left;
    transform: rotate(-90deg) scaleY(-1);
  }
}
