html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 20px;
  font-family: sans-serif;
  color: white;
  /* Add padding to body top to prevent content from being hidden by fixed navbar */
  /* Adjust this value based on your navbar's height */
  /* padding-top: 60px; */
  /* Example if navbar is 60px tall - or handle within panel styling */
}

body.loading-content {
  background: url('../images/landing/sky-ocean-bg.jpg') no-repeat center center/cover;
  /* background: rgba(251, 248, 242, 255); */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

body.loaded-page-content {
  height: 100%;
}

.fade-out {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.5s, opacity 0.5s linear;
}

.fade-in {
  opacity: 1;
  animation-name: fadeInOpacity;
  animation-iteration-count: 1;
  animation-timing-function: ease-in;
  animation-duration: 0.25s;
}

@keyframes fadeInOpacity {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#loader {
  height: 100vh;
  width: 100vw;
}

#loader .loading-logo-container {
  height: 100vh;
}

#loader .bottom-white-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 11%;
  background: rgba(251, 248, 242, 255);
}

.loading-content .logo {
  height: 100vh;
  transition: transform 2s ease;
  object-fit: cover;
  position: absolute;
  top: -10%;
}

.loading-content .logo.zoomed-small {
  transform: scale(1.15);
}

.loading-content .logo.zoomed {
  transform: scale(6);
}

.white-container {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translateX(-50%);
}

.loading-content .white-container .logo-text-container .logo-text {
  letter-spacing: 10px;
  font-size: 50px;
  font-family: 'Futura';
  padding-left: 20px;
}

.loading-content .loading-container {
  width: 500px;
  position: relative;
}

.loading-content .loading-label {
  font-size: 14px;
  color: #999;
  position: absolute;
  top: 30px;
}

.loading-content .progress-wrapper {
  display: flex;
  align-items: center;
}

.loading-content .progress-bar {
  flex-grow: 1;
  height: 2px;
  background: #ccc;
  position: relative;
  margin-right: 10px;
}

.loading-content .progress-fill {
  height: 100%;
  width: 0%;
  background: #333;
  transition: width 0.1s;
}

.loading-content .progress-text {
  font-size: 50px;
  color: #999;
  width: 40px;
  text-align: right;
  margin-bottom: 50px;
}

.panel {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* font-size: 48px; */
  box-sizing: border-box;
  /* padding: 2rem; */
}

/* Styles for text elements within P3 - REVISED */
.panel.p3 .wording-5,
.panel.p3 .wording-6 {
  position: relative;
  /* Context for absolute positioned child spans */
  /* Consider min-height if text content changes cause height jumps: e.g., min-height: 100px; */
}

.panel.p3 .p3-text-initial,
.panel.p3 .p3-text-updated {
  display: block;
  /* Or inline-block if preferred, block allows width/height */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  /* Adjusts to content height */
  /* Text alignment should be inherited from .wording-5/.wording-6 or set explicitly here if needed */
}

.panel.p3 .p3-text-updated {
  opacity: 0;
  /* Initially hidden */
}


.pinned-container-wrapper {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  /* Essential for containing the horizontal track */
}

.panels-track {
  height: 100vh;
  display: flex;
}

#track-p3-p4 {
  width: 300vw;
  /* P3, P4, P4-5 = 3 panels * 100vw each */
}

/* .scroll-spacer class and its div were removed by user for P3-P4 */

/* Landing Section 1 */
.pageContent-section-1 .hero {
  background: url('../images/landing/sky-ocean-bg.jpg') no-repeat center center/cover;
  height: 100vh;
  position: relative;
  color: white;
}

.pageContent-section-1 .logo {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.pageContent-section-1 .logo img {
  height: 175px;
}

.pageContent-section-1 .headline {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.pageContent-section-1 .headline .line-1 {
  /* letter-spacing: 45px; */
  font-size: 80px;
  /* padding-left: 45px; */
}

.pageContent-section-1 .headline .line-2 {
  letter-spacing: 7px;
  font-size: 60px;
  padding-top: 25px;
}

.pageContent-section-1 .headline .line-1,
.pageContent-section-1 .headline .line-2 {
  font-weight: 300;
  line-height: 1.2;
  font-family: 'Futura Light';
}

.pageContent-section-1 .divider-line {
  position: absolute;
  top: 57.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 150px;
  background-color: white;
}

.pageContent-section-1 .cta {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.pageContent-section-1 .cta .btn {
  background-color: white;
  color: #000;
  font-family: 'Futura';
  font-size: 20px;
  letter-spacing: 2px;
}

/* Landing Section 1 */

/* Landing Section 2 */
.pageContent-section-2 {
  background-image: url('../images/landing/ocean-boat.png');
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  background-color: #001d30;
}

.pageContent-section-2 .vertical-line {
  position: absolute;
  top: 60%;
  left: 25%;
  width: 2px;
  height: 0;
  background: #fff;
  z-index: 1;
}

.pageContent-section-2 .vertical-line.animate {
  animation: drawLine 2s forwards;
}

@keyframes drawLine {
  0% {
    height: 0;
  }

  100% {
    height: 55%;
  }
}

.pageContent-section-2 .pageContent-section-2-content-1 {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 65%;
}

/* RESTORED STYLES FOR WORDING-1 */
.pageContent-section-2 .pageContent-section-2-content-1 .wording-1 {
  font-size: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fbf8f2;
  font-weight: 500;
  font-family: "Futura";
}

/* RESTORED STYLES FOR WORDING-2 */
.pageContent-section-2 .pageContent-section-2-content-1 .wording-2 {
  font-size: 55px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fbf8f2;
  font-weight: 300;
  font-style: italic;
  font-family: "Futura Light";
}

/* Styles for Section 2 Text Fade-in Effect */
.pageContent-section-2 .wording-1,
.pageContent-section-2 .wording-2,
.pageContent-section-2 .wording-3 {
  opacity: 0;
  /* Base transition for when opacity changes */
  transition-property: opacity;
  transition-duration: 0.8s;
  transition-timing-function: ease-in-out;
}

/* When .fade-in-visible is added, apply these specific delays and set opacity to 1 */
.pageContent-section-2 .wording-1.fade-in-visible {
  opacity: 1;
  transition-delay: 0.2s;
}

.pageContent-section-2 .wording-2.fade-in-visible {
  opacity: 1;
  transition-delay: 0.5s;
}

.pageContent-section-2 .wording-3.fade-in-visible {
  opacity: 1;
  transition-delay: 0.8s;
}

.pageContent-section-2 .pageContent-section-2-content-2 {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 45%;
}

.pageContent-section-2 .pageContent-section-2-content-2 .wording-3 {
  font-size: 25px;
  letter-spacing: 2px;
  color: #fbf8f2;
  font-weight: 300;
  font-family: "Futura Light";
  text-align: end;
}

/* Landing Section 2 */

/* Landing Section 3 */
.pageContent-section-3 {
  background-image: url('../images/landing/ocean-full.png');
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  transition: transform 0.7s ease-in-out;
  will-change: transform;
  position: relative;
  z-index: 1;
}

.pageContent-section-3 .section3-content1 .wording-4 {
  font-size: 50px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fbf8f2;
  font-weight: 300;
  font-family: 'Futura Light';
  width: 64%;
}

.pageContent-section-3 .section3-content2 .wording-5 {
  font-size: 90px;
  text-transform: uppercase;
  color: #fbf8f2;
  font-weight: 500;
  font-family: 'Futura';
}

.pageContent-section-3 .section3-content2 .wording-6 {
  font-size: 38px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fbf8f2;
  font-weight: 300;
  font-family: 'Futura Light';
  margin-bottom: 65px;
}

.pageContent-section-3 .section3-content2 .vertical-divider {
  margin-top: 40px;
  height: 100px;
  width: 2px;
  background: #fff;
  margin-right: 30px;
}

.pageContent-section-3 .horizontal-line {
  position: absolute;
  top: 53%;
  /* right: 0; */
  left: 7%;
  /* width: 95%; */
  width: 0;
}

.pageContent-section-3 .horizontal-line hr {
  height: 3px;
  background: #fff;
  opacity: 1;
  z-index: 1;
}

.pageContent-section-3 .horizontal-line.animate {
  animation: drawHorizontalLine 2s forwards;
}

/* Landing Section 3 */

/* Landing Section 4 */
.pageContent-section-4 {
  background: rgba(251, 248, 242, 255);
  transition: transform 0.7s ease-in-out;
  will-change: transform;
  position: relative;
  height: 100vh;
  z-index: 1;
}

.pageContent-section-4.is-visually-hidden-right {
  transform: translateX(100%);
}

.parallax-container {
  /* perspective: 1000px; */
  /* overflow: hidden; */
  position: relative;
}

.parallax-container .cup-image {
  position: absolute;
  top: 50px;
  z-index: 2;
  width: 40%;
}

.parallax-container .dragon-image {
  /* position: absolute;
  width: 45%;
  height: 550px;
  object-fit: cover;
  top: -175px;
  left: 35%; */
  width: 100%;
  z-index: 1;
}

.parallax-container .cup-image,
.parallax-container .dragon-image {
  transition: transform 2s ease-out;
  will-change: transform;
}

.pageContent-section-4 .cta-wording {
  font-size: 60px;
  letter-spacing: 2px;
  color: #03173e;
  font-weight: 300;
  font-family: 'Futura Light';
}

.pageContent-section-4 .primary-button {
  background-color: #03173e;
  background: #03173e;
  color: #fbf8f2;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  border-color: transparent;
  padding: 15px 30px;
  font-family: 'Futura';
}

.pageContent-section-4 .section-4-cta {
  z-index: 2;
}

.pageContent-section-4 .horizontal-line {
  position: absolute;
  top: calc(53% - 1px);
  /* width: 93%; */
  width: 0;
}

.pageContent-section-4 .horizontal-line hr {
  height: 4px;
  background: #000;
  opacity: 1;
  z-index: 1;
}

.pageContent-section-4 .horizontal-line.animate {
  animation: drawHorizontalLine 5s forwards;
}

@keyframes drawHorizontalLine {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* Landing Section 4 */

/* Styles for new Panel P4.5 */
.pageContent-section-4-5 {
  background: rgba(251, 248, 242, 255);
  position: relative;
  height: 100vh;
}

.pageContent-section-4-5 .curve-line-container {
  /* position: relative;
  top: calc(45% + 25px);
  left: 0%;
  height: 100%; */

  position: absolute;
  top: calc(53% + 20px);
  left: 0%;
  /* height: 100%;
  width: 100%; */
  height: calc(47% - 20px);
  width: 20%;
}

/* .pageContent-section-4-5 .curve-line-container .black-line {
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 2px;
  background-color: #000;
} */

.pageContent-section-4-5 .curve-line {
  position: absolute;
  top: 0;
  left: 0;
  border-top: 3px solid #000;
  border-right: 3px solid #000;
  border-radius: 0px 600px;
  /* height: 55%; */
  height: 100%;
  width: 100%;
  /* width: 20%; */
}

@media (min-width: 2000px) {
  .white-container {
    top: 80%;
    left: 40%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .loading-content .loading-container {
    width: 400px;
  }

  .pageContent-section-1 .headline {
    width: 100%;
  }

  .pageContent-section-1 .headline .line-1,
  .pageContent-section-1 .headline .line-2 {
    font-size: 50px;
  }

  .pageContent-section-1 .divider-line {
    height: 100px;
  }

  .pageContent-section-2 .pageContent-section-2-content-1 {
    width: 65%;
  }

  .pageContent-section-2 .pageContent-section-2-content-1 .wording-1 {
    font-size: 25px;
  }

  .pageContent-section-2 .pageContent-section-2-content-1 .wording-2 {
    font-size: 35px;
  }

  .pageContent-section-2 .pageContent-section-2-content-2 {
    width: 50%;
  }

  .pageContent-section-2 .pageContent-section-2-content-2 .wording-3 {
    font-size: 20px;
  }

  .pageContent-section-3 .section3-content1 .wording-4 {
    font-size: 40px;
    width: 74%;
  }

  .pageContent-section-3 .section3-content2 .wording-5 {
    font-size: 55px;
  }

  .pageContent-section-3 .section3-content2 .wording-6 {
    font-size: 40px;
  }

  .pageContent-section-4 .cta-wording {
    font-size: 45px;
  }
}

@media (max-width: 767.98px) {
  .white-container {
    top: 70%;
    /* left: 0; */
    width: 100%;
  }

  .loading-content .white-container .logo-text-container .logo-text {
    font-size: 25px;
  }

  .loading-content .loading-container {
    width: 100%;
  }

  .loading-content .loading-label {
    top: 15px;
  }

  .loading-content .progress-text {
    font-size: 30px;
    margin-bottom: 40px;
  }

  .panel {
    height: unset;
  }

  .pageContent-section-1 .logo img {
    height: 150px;
  }

  .pageContent-section-1 .headline {
    width: 100%;
    top: 47.5%;
  }

  .pageContent-section-1 .headline .line-1 {
    /* letter-spacing: 20px; */
    font-size: 30px;
    /* padding-left: 20px; */
  }

  .pageContent-section-1 .headline .line-2 {
    font-size: 20px;
  }

  .pageContent-section-1 .divider-line {
    height: 100px;
    top: 60%;
  }

  .pageContent-section-1 .cta {
    width: 90%;
    text-align: center;
  }

  .pageContent-section-1 .cta .btn {
    font-size: 12.5px;
  }

  .pageContent-section-2 .vertical-line {
    left: 50%;
    transform: translate(-50%);
  }

  .pageContent-section-2 .pageContent-section-2-content-1 {
    width: 100%;
    top: unset;
    left: unset;
    position: relative;
  }

  .pageContent-section-2 .pageContent-section-2-content-1 .wording-1 {
    font-size: 15px;
    text-align: center;
  }

  .pageContent-section-2 .pageContent-section-2-content-1 .wording-2 {
    font-size: 15px;
    text-align: center;
  }

  .pageContent-section-2 .pageContent-section-2-content-2 {
    padding-top: 10px;
    width: 100%;
    left: unset;
    top: unset;
    position: relative;
    bottom: unset;
    right: unset;
  }

  .pageContent-section-2 .pageContent-section-2-content-2 .wording-3 {
    font-size: 12.5px;
    text-align: center;
  }

  .pageContent-section-3 .horizontal-line {
    top: 50%;
  }

  .pageContent-section-3 .section3-content1 .wording-4 {
    font-size: 15px;
    width: 100%;
    text-align: center;
  }

  .pageContent-section-3 .section3-content2 .wording-5 {
    font-size: 20px;
    text-align: center;
  }

  .pageContent-section-3 .section3-content2 .vertical-divider {
    margin-top: 15px;
    height: 90px;
  }

  .pageContent-section-3 .section3-content2 .wording-6 {
    font-size: 15px;
    text-align: center;
  }

  .pageContent-section-4 .parallax-container { 
    text-align: center;
  }

  .pageContent-section-4 .parallax-container .dragon-image {
    width: 65%;
    transform: none;
    transition: none;
    will-change: unset;
  }

  /* .parallax-container .cup-image {
    top: -150px
  } */

  /* .parallax-container .dragon-image {
    top: -300px;
    height: 400px;
  } */

  .pageContent-section-4 .horizontal-line {
    top: 50%;
    width: 100%;
  }

  /* .pageContent-section-4 .section4-content-container {
    position: absolute;
    top: 65%;
  } */

  .pageContent-section-4 .cta-wording {
    font-size: 20px;
  }

  .pageContent-section-4 .primary-button {
    font-size: 12.5px;
    padding: 10px 20px;
  }

  .pageContent-section-4-5 .curve-line-container {
    top: calc(50% + 21px);
    height: calc(50% - 21px);
    width: 50%;
  }
}