/*Highlighted text*/
.highlight {
  color: var(--yellow);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: var(--orange);
}

@media (max-width: 600px) {
  /*remove video for smaller screens*/
  /* .home-video {
    display:none; 
  } */
  .home-hero-title {
    font-size: clamp(
      30px,
      6vw,
      50px
    ); /* Adjust font size for smaller screens */
  }

  .earth-fixed,
  .satellite-stack {
    opacity: 10%; /* Adjust the width for smaller screens */
  }

  .metal-particles {
    translate: 0 0 !important; /* Reset translation for smaller screens */
  }

  .fluorescence-section {
    height: auto;
    min-height: calc(100vh - var(--navbar-height));
    padding: 40px 0;
  }

  .fluorescence-text {
    text-align: center;
    padding: 30px;
  }

  .fluorescence-visual {
    display: none; /* Allow the aspect ratio to adjust for smaller screens */
  }

  .introduction-video-section {
    padding: 40px 0;
  }

  .introduction-video-content h2 {
    margin-bottom: 25px;
  }
}

/*================================================
HP title styling
================================================ */
/*Space remaining below header*/
.home-section {
  /* height: calc(100vh - var(--navbar-height)); Adjust this value based on your header height */
  display: flex;
  flex-direction: column;

  height: var(--height); /* Adjust this value based on your header height */

  /* box-shadow: inset 0 0 0 3px red; */
  position: relative; /* Ensure the video is positioned relative to this container */
  overflow: hidden; /* Hide any overflow content, especially for the video */
}

/* Keep both sections in one pinned viewport while the user scrolls. */
.home-transition {
  --home-stage-height: var(--height);
  --home-progress: 0;
  position: relative;
  height: calc(var(--home-stage-height) * 3);
}

.home-transition-stage {
  position: sticky;
  top: var(--navbar-height);
  height: var(--home-stage-height);
  isolation: isolate;
}

.home-transition-stage .home-section {
  position: absolute;
  inset: 0;
  height: 100%;
}

/* Fade between the video/title and intro text in the same position. */
.home-hero-section {
  opacity: calc(1 - var(--home-progress) * var(--home-progress));
  will-change: opacity;
  pointer-events: none;
  z-index: 0;
}

.home-intro-section {
  opacity: var(--home-progress);
  will-change: opacity;
  z-index: 1;
}

/* Wrapper inside the home section, center titles*/
.home-container {
  flex: 1; /*take all space after header*/
  display: flex; /* use flexbox layout */
  flex-direction: column; /*stack child elements vertically*/
  justify-content: center; /* center them vertically */
  align-items: center; /* center them horizontally */
  text-align: center; /* center text inside the container */
  padding: 20px;
  box-sizing: border-box;
  gap: 10px; /* Space between child elements */
  /* box-shadow: inset 0 0 0 3px lime; */

  z-index: 1; /* Ensure the content is above the video */
}

/* Hero title styling, typing animation */
.home-hero-title {
  margin: 0;
  font-size: clamp(50px, 7vw, 80px);
  font-weight: 900;
  color: var(--yellow);
  /* box-shadow: inset 0 0 0 3px var(--orange); */
  overflow: hidden; /* Ensures the text doesn't overflow the container */
  white-space: nowrap; /* Prevents the text from wrapping to the next line */
  border-right: 3px solid var(--yellow); /* Creates a cursor effect */
  animation:
    typing 2s steps(40, end),
    blinking 1s steps(1, end) infinite;
}
/* 
.home-hero-title-transition{
  opacity: calc(1 - var(--home-progress)*3); 
  will-change: opacity;
} */

@keyframes blinking {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--yellow);
  }
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Sentence below title styling */
.home-hero-paragraph {
  margin: 0;
  font-size: clamp(28px, 4vw, 60px);
  color: var(--white);

  opacity: 0; /* Start with the paragraph hidden */
  transform: translateY(
    0px
  ); /* Start with the paragraph slightly below its final position */
  animation: pop-in 0.7s ease-out 2s forwards; /* Apply the fadeInUp animation*/
  /* box-shadow: inset 0 0 0 3px var(--orange); */
}

@keyframes pop-in {
  from {
    opacity: 0; /* Start with the paragraph hidden */
  }
  to {
    opacity: 1; /* Fade in the paragraph */
  }
}

/* .home-hero-paragraph-transition{
  opacity: calc(1 - var(--home-progress)*3); 
  will-change: opacity;
} */

.home-hero-content {
  opacity: calc(1 - var(--home-progress) * 6);
  will-change: opacity;
}
/*================================================
HP background video styling
================================================ */
.home-video {
  position: absolute; /* Position the video absolutely within the home section */
  inset: 0; /* top, right, bottom, left all set to 0 */
  width: 100%; /* Make the video cover the entire width of the home section */
  height: 100%; /* Make the video cover the entire height of the home section */
  border: none; /* Remove any default border */
  z-index: 0; /* Place the video behind other content */
}

/*================================================
Earth story 
================================================ */

/*container for the text+image in the part 1*/
.home-container-part1 {
  flex: 1; /*take all space after header*/
  display: flex; /* use flexbox layout */
  flex-direction: column; /*stack child elements vertically*/
  justify-content: center; /* center them vertically */
  align-items: center; /* center them horizontally */
  text-align: center; /* center text inside the container */
  padding: 20px;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  /* box-shadow: inset 0 0 0 3px lime;  */
}

/* Intro styling */
.part1-p1 {
  font-size: clamp(30px, 4vw, 50px);
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--white);
  /* box-shadow: inset 0 0 0 3px cyan; */
}

/*=================================================
Earth satellite story section styling.
==================================================*/

/* Image styling for inside this container*/
.earth-story {
  position: relative;
}

/* container the earth/satellite images and text */
.image-text-container {
  position: sticky; /* Make the container sticky */
  margin: 0 auto; /* Center the container horizontally */
  padding: 10px; /* Optional: add some padding around the container */
  height: var(--height); /* Adjust this value based on your header height */
  top: var(--navbar-height); /* Adjust this value based on your header height */
  gap: 10px; /* Space between image and text */

  width: 100%; /* Ensure the container doesn't exceed the viewport width */
  max-width: 100%; /* Optional: limit the maximum width of the container */
  box-sizing: border-box; /*Include padding and border in the element's total width and height */
  /* box-shadow: inset 0 0 0 3px red; */
  border-radius: 10px; /* Optional: add rounded corners */
}

/*parent of the earth and satellite images, used to position them*/
.earth-fixed,
.satellite-stack {
  position: absolute; /* Position the element absolutely within its parent */

  left: 0; /* Align the element to the left edge of its parent */
  top: 50%; /* Align the element to the vertical center of its parent */
  transform: translateY(-50%); /* Center the element vertically */

  height: 100%; /* Make the layer take the full height of its container */
  width: auto; /* Adjust the width as needed */

  aspect-ratio: 3240/5759; /* Maintain a square aspect ratio */
}

.earth-fixed img {
  position: absolute;
  inset: 0; /* top, right, bottom, left all set to 0 */

  width: 100%; /* Make the layer take the full width of its container */
  height: 100%; /* Make the layer take the full height of its container */
}

.satellite-layer {
  position: absolute;
  inset: 0; /* top, right, bottom, left all set to 0 */

  width: 100%; /* Make the layer take the full width of its container */
  height: 100%; /* Make the layer take the full height of its container */
}

.earth-slide {
  position: absolute;
  inset: 0; /* top, right, bottom, left all set to 0 */

  opacity: 0; /* Hide all slides by default */
  /* transform: translateX(-5px); Move all slides to the right by default */

  transition: opacity 0.25s ease-out;

  z-index: 2;
}

.earth-slide.active {
  opacity: 1; /* Make the active slide visible */
  transform: translateX(0); /* Reset the offset for the active slide */
}

.earth-slide p {
  position: absolute; /* Position the text relative to its container */
  left: 40%; /* top, right, bottom, left all set to 0 */
  right: 25%; /* top, right, bottom, left all set to 0 */
  top: 50%; /* top, right, bottom, left all set to 0 */
  transform: translateY(-50%); /* Center the text vertically */

  font-size: clamp(20px, 3vw, 40px);
  color: var(--white);
  text-align: center; /* Align text to the center */

  margin: 0; /* Remove default margin */

  /* box-shadow: inset 0 0 0 3px cyan; */
  z-index: 3; /* Ensure the text is above the images */
}

.story-step {
  height: 50vh; /* Each step takes up half the viewport height */
}

.story-step:last-child {
  height: 100vh; /* The last step takes up the full viewport height */
}

/*=================================================
Journey
==================================================*/

.rentry-journey {
  position: relative; /* Position the container relative to its parent */
  width: 100%;
}
.gradient {
  /* Clip without creating a scroll container that captures the steps' snap points. */
  background: linear-gradient(
    to top,
    #121a2b 50%,
    #0b1320 75%,
    var(--background-color) 100%
  );
  /* box-shadow: inset 0 0 0 3px red; */
}

/*=================================================
Satellite combustion
==================================================*/

.combustion {
  position: relative;
  width: 100%;
}

.combustion-step {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Three equal columns: left, center, right */
  align-items: center; /* Vertically center the content in each row */
  grid-template-rows: 100%; /* important */
  width: 100%;
  height: calc(var(--height) / 1.5);
  /* scroll-snap-align: start;
  scroll-snap-stop: always; */

  /* box-shadow: inset 0 0 0 3px cyan; */
}

.combustion-image {
  object-fit: contain; /* Ensure the image scales correctly without distortion */
  max-height: 100%;
  grid-column: 2; /* Place the image in the center column */
  grid-row: 1; /* Place the image in the first row */
}

.combustion-text {
  grid-row: 1; /* Place the text in the first row */
  color: var(--white);
  font-size: clamp(14px, 1.5vw, 30px);
}

.text-left {
  grid-column: 1; /* Place the text in the left column */
  text-align: left;
  justify-self: center; /* Align the text to the start of the grid cell */
  margin-left: 40px;
}

.text-right {
  grid-column: 3; /* Place the text in the right column */
  text-align: left;
  justify-self: center; /* Align the text to the end of the grid cell */
  margin-right: 40px;
}

.combustion-step {
  opacity: 0.05;
  transition: opacity 0.4s ease;
}

.combustion-step.active {
  opacity: 1;
}

.combustion-image {
  animation: satellite-wobble 1.5s ease-in-out infinite alternate;
}

.combustion-step:not(.active) .combustion-image {
  animation: none; /* Pause the wobble animation for inactive steps */
}

/* Satellite wobble animation */
@keyframes satellite-wobble {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  25% {
    transform: translateX(-3px) rotate(-3deg);
  }

  50% {
    transform: translateX(2px) rotate(1deg);
  }

  75% {
    transform: translateX(3px) rotate(3deg);
  }
}

/*=================================================
Potential impacts section
==================================================*/
/* Parent wrapper for all impact sections */
.potential-impacts {
  position: relative;
  width: 100%;
}

.impacts-intro {
  position: relative;
  height: calc(var(--height) * 3);
}

.impacts-intro-stage {
  position: sticky;
  top: var(--navbar-height);
  height: var(--height);
  width: 100%;
  box-sizing: border-box;

  display: grid;
  place-items: center;

  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
}

/*=================================================
Shared heading styling
==================================================*/

.impacts-question,
.impacts-answer,
.impacts {
  position: relative;
  grid-area: 1 / 1; /* Both headings occupy the same position */
  z-index: 2;

  width: 100%;
  max-width: 900px;
  margin: 0;

  color: var(--white);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: bold;
  opacity: 0;
}

/*=================================================
Impacts question
==================================================*/

.impacts-question {
  transition: opacity 1s ease; /* Initial fade-in */
}

/* Question appears when section becomes visible */
.impacts-intro.active .impacts-question {
  opacity: 1;
}

/* Question disappears when text changes */
.impacts-intro.active.text-changed .impacts-question {
  opacity: 0;
  transition: opacity 0.4s ease-in; /* Faster fade-out */
}

/*impacts answer*/
.impacts-answer {
  transform: scale(0.8);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* Answer replaces the question */
.impacts-intro.text-changed .impacts-answer {
  opacity: 1;
  transform: scale(1);
}

/*impacts*/
.impacts {
  transform: scale(0.8);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

/* Hide the answer when the third heading appears */
.impacts-intro.impacts-changed .impacts-answer {
  opacity: 0;
}

/* Show the third heading */
.impacts-intro.impacts-changed .impacts {
  opacity: 1;
  transform: scale(1);
}

/* Container covering the entire section */
.metal-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3; /* Ensure particles are above the text but below other interactive elements */

  opacity: 0.05; /* Adjust the opacity to make particles less prominent */
  transition: opacity 1s ease; /* Smooth transition for opacity changes */
}

/* Individual metal particles */
.metal-particle {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;

  background: radial-gradient(
    circle at 30% 25%,
    #dce5ed,
    #899aaf 60%,
    #405066 100%
  );

  color: var(--white);
  font-weight: bold;
  /* text-shadow: 0 0 10px red; */
  opacity: 0.7;
}

/* Show particles when the impacts section is active */
.impacts-intro.active .metal-particles {
  opacity: 1; /* Make particles fully visible when the section is active */
  transition-delay: 0.25s; /* Optional: delay the transition to make it smoother */
}

.fe-glow {
  box-shadow:
    0 0 15px #6b2d25,
    0 0 30px #4a1c1c;
  text-shadow: 0 0 5px #800020;
}

.al-glow {
  box-shadow: 0 0 30px silver;
  text-shadow:
    0 0 5px #dce5ed,
    0 0 10px #899aaf,
    0 0 20px #405066;
}

/* Aluminium particles */
.metal-particle:nth-child(odd) {
  background: radial-gradient(
    circle at 30% 25%,
    #dce5ed,
    #899aaf 60%,
    #405066 100%
  );
}

/* Iron particles */
.metal-particle:nth-child(even) {
  background: radial-gradient(
    circle at 30% 25%,
    #b5a9a2,
    #7a6865 60%,
    #403d46 100%
  );
}

/* Particle positions and different animation delays */
.metal-particle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation: float-1 6s ease-in-out infinite alternate;
}

.metal-particle:nth-child(2) {
  top: 25%;
  left: 85%;
  animation: float-2 8s ease-in-out infinite alternate;
}
.metal-particle:nth-child(3) {
  top: 70%;
  left: 25%;
  animation: float-3 5s ease-in-out infinite alternate;
}
.metal-particle:nth-child(4) {
  top: 15%;
  left: 60%;
  animation: float-4 9s ease-in-out infinite alternate;
}
.metal-particle:nth-child(5) {
  top: 80%;
  left: 75%;
  animation: float-2 7s ease-in-out infinite alternate;
}
.metal-particle:nth-child(6) {
  top: 50%;
  left: 10%;
  animation: float-3 10s ease-in-out infinite alternate;
}
.metal-particle:nth-child(7) {
  top: 60%;
  left: 90%;
  animation: float-1 8s ease-in-out infinite alternate;
}
.metal-particle:nth-child(8) {
  top: 85%;
  left: 45%;
  animation: float-4 6s ease-in-out infinite alternate;
}

.metal-particle:nth-child(9) {
  top: 20%;
  left: 40%;
  animation: float-3 7s ease-in-out infinite alternate;
}

.metal-particle:nth-child(10) {
  top: 75%;
  left: 60%;
  animation: float-1 9s ease-in-out infinite alternate;
}

/* Gentle floating animation */
/* Particle 1: Moves upward and to the right */
@keyframes float-1 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(15px, -20px);
  }
  100% {
    transform: translate(30px, -10px);
  }
}
/* Particle 2: Moves downward and to the left */
@keyframes float-2 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-20px, 15px);
  }
  100% {
    transform: translate(-10px, 30px);
  }
}
/* Particle 3: Moves primarily sideways */
@keyframes float-3 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(25px, -5px);
  }
  100% {
    transform: translate(-15px, 10px);
  }
}
/* Particle 4: Moves primarily vertically */
@keyframes float-4 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, -30px);
  }
  100% {
    transform: translate(10px, 15px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .metal-particle {
    animation: none;
  }
}

/*=================================================
Sampling section
==================================================*/
/* Outer container controls scrolling distance */
.balloon-journey {
  position: relative;
  height: 400vh;
  width: 100%;
}

/* Sticky container stays below the navbar */
.balloon-stage {
  position: sticky;
  top: var(--navbar-height);

  height: calc(100vh - var(--navbar-height));
  width: 100%;

  display: grid;
  grid-template-columns: 1fr 1fr;

  overflow: hidden;
}

/* Left half of the screen */
.balloon-visual {
  display: flex;
  justify-content: center;
  align-items: center;

  min-width: 0;
  min-height: 0;
  height: 100%;
}

/* Image container, relative to the visible screen */
.balloon-image-container {
  width: 80%;
  height: 80%;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 0;
  overflow: visible; /* Allow the image to overflow the container */
}

/* Image fits inside its container */
#balloon-frame {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.5);
}

/* Right: Text container */
.balloon-content {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 5%;
  min-width: 0;
}

/* All text panels */
.balloon-text {
  position: absolute;
  width: 80%;

  opacity: 0;
  transition: opacity 0.4s ease;

  pointer-events: none;
}

/* Visible text panel */
.balloon-text.active {
  opacity: 1;
}

/* Text headings */
.balloon-text h2 {
  color: var(--yellow);
  font-size: clamp(30px, 3vw, 50px);
  margin-bottom: 10px;
}

/* Text paragraphs */
.balloon-text p {
  color: var(--white);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.5;
  margin: 0;
}

/*=================================================
  Laboratory Section
==================================================*/

/* Main section */
.laboratory-section {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--navbar-height));

  overflow: hidden;
  /* box-shadow: inset 0 0 0 3px red; */
}

/* Laboratory bench illustration */
.laboratory-image {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: flex-end;

  opacity: 0;
  transform: translateY(100px); /* Start 200px lower */

  transition:
    opacity 1.5s ease,
    transform 1.5s ease;

  z-index: 1;
}

/* Image sizing */
.laboratory-image img {
  width: 65%;
  height: 75%;
  object-fit: contain;
  object-position: center bottom;
  translate: 70px 0px;
}

/* Shared text styling */
.laboratory-text {
  position: absolute;
  top: 50%;
  width: 26%;

  translate: 0 -50%;
  opacity: 0;
  transition:
    transform 1s ease,
    opacity 1s ease;
  padding: 5px;

  z-index: 2;
}

/* Left text */
.laboratory-text-left {
  left: 4%;
  transition-delay: 0s;
  transform: translateX(-200px);
  /* box-shadow: inset 0 0 0 3px cyan; */
}

/* Right text */
.laboratory-text-right {
  right: 4%;
  transform: translateX(200px);
  transition-delay: 0s;
  /* box-shadow: inset 0 0 0 3px pink; */
}

/* Headings */
.laboratory-text h2 {
  color: var(--yellow);
  font-size: clamp(28px, 2.5vw, 42px);
  margin-bottom: 15px;
}

/* Paragraphs */
.laboratory-text p {
  color: var(--white);
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.5;
  margin: 0;
}

/* Activate animations when section is visible */
.laboratory-section.active .laboratory-image {
  opacity: 1;
  transform: translateY(0);
}

.laboratory-section.active .laboratory-text-left {
  opacity: 1;
  transition-delay: 0.8s;
  transform: translateX(0);
}

.laboratory-section.active .laboratory-text-right {
  opacity: 1;
  transition-delay: 1.6s;
  transform: translateX(0);
}

/*=================================================
  Fluorescence Section
==================================================*/
.fluorescence-section {
  height: calc(100vh - var(--navbar-height));
  min-height: 0;
  padding: 0;
}

/* Center the entire fluorescence layout */
.fluorescence-container {
  max-width: 100%;
  margin: 0 auto;
}

/* Background container */
.fluorescence-visual {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}

/* Background images */
.fluorescence-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: 10px;
  /* border: 1px solid var(--orange); */

  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Visible image */
.fluorescence-image.active {
  opacity: 1;
}

/* Text styling */
.fluorescence-text {
  color: var(--white);
  padding: 15px 15px;
}

.fluorescence-row {
  column-gap: 50px;
}

/* Headings */
.fluorescence-text h2 {
  font-size: clamp(20px, 3vw, 40px);
  color: var(--yellow);
  margin-bottom: 15px;
}

.fluorescence-text p {
  font-size: clamp(12px, 2vw, 20px);
  margin-bottom: 30px;
}

/* Hide inactive biosensor information */
.fluorescence-info {
  display: none;
}

/* Show active biosensor information */
.fluorescence-info.active {
  display: block;
}

.fluorescence-section .btn-outline-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 20px;

  color: var(--white);
  background: transparent;

  border: 2px solid var(--blue);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(167, 199, 231, 0.35);

  font-size: 16px;
  font-weight: 500;

  cursor: pointer;

  transition: all 0.35s ease;
}

/* Hover effect */
.fluorescence-section .btn-outline-warning:hover {
  color: var(--yellow);

  background: rgba(63, 71, 110, 0.2);
  border-color: var(--yellow);

  box-shadow: 0 0 18px rgba(254, 167, 17, 0.15);

  transform: translateY(-2px);
}

/* When button is clicked */
.fluorescence-section .btn-outline-warning:active {
  color: var(--yellow);

  background: rgba(63, 71, 110, 0.2);
  border-color: var(--yellow);

  box-shadow: 0 0 18px rgba(254, 167, 17, 0.15);
}

/* Keyboard focus */
.fluorescence-section .btn-outline-warning:focus-visible {
  color: var(--yellow);
  background: rgba(63, 71, 110, 0.2);
  border-color: var(--yellow);
  box-shadow: 0 0 18px rgba(254, 167, 17, 0.15);
}

/* Initial positions */
.fluorescence-visual {
  opacity: 0;
  transform: translateX(-200px);
  transition:
    opacity 1.5s ease,
    transform 1.5s ease;
}

.fluorescence-text {
  opacity: 0;
  transform: translateX(200px);
  transition:
    opacity 1.5s ease,
    transform 1.5s ease;
}

/* Activated by IntersectionObserver */
.fluorescence-section.active .fluorescence-visual,
.fluorescence-section.active .fluorescence-text {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .fluorescence-visual,
  .fluorescence-text {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/*=================================================
  Conclusion Section
==================================================*/
/* Main conclusion section */
.conclusion-section {
  padding: 100px 0;

  display: flex;
  align-items: center;

  background-color: var(--background-color);

  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Overall content */
.conclusion-content {
  width: 100%;
}

.conclusion-header {
  text-align: center;
  margin-bottom: 60px;
  margin-top: -40px;
}

.conclusion-header h2 {
  color: var(--yellow);
  font-size: clamp(36px, 4vw, 60px);
  margin-bottom: 5px;
  text-shadow:
    0 0 10px rgba(254, 167, 17, 0.5),
    0 0 25px rgba(254, 167, 17, 0.2);
}

.conclusion-header p {
  color: var(--white);
  font-size: clamp(20px, 2vw, 28px);
  margin: 0;
}

/* Shared box styling */
.conclusion-box {
  position: relative;

  height: 100%;
  min-height: 280px;
  padding: 35px 30px;

  background-color: var(--background-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Highlighted middle box */
.conclusion-box-highlight {
  background-color: var(--background-color);
  border-color: var(--orange);
  transform: translateY(-30px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* Highlighted box hover */
.conclusion-box-highlight:hover {
  transform: translateY(-55px);

  border-color: var(--yellow);

  box-shadow:
    0 0 20px rgba(255, 118, 0, 0.7),
    0 0 45px rgba(255, 118, 0, 0.45),
    0 0 80px rgba(255, 118, 0, 0.25);
}

/* Brighter animated border on hover */
.conclusion-box-highlight:hover::before {
  border-color: var(--yellow);

  box-shadow:
    0 0 20px rgba(255, 118, 0, 0.9),
    0 0 45px rgba(255, 118, 0, 0.6),
    0 0 80px rgba(255, 118, 0, 0.35);
}

.conclusion-box-highlight h3 {
  color: var(--yellow);
  text-shadow: 0 0 10px var(--orange);
}

/* Glowing border on highlighted box only */
.conclusion-box-highlight::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid var(--orange);

  box-shadow:
    0 0 10px rgba(255, 118, 0, 0.6),
    0 0 25px rgba(255, 118, 0, 0.3),
    0 0 50px rgba(255, 118, 0, 0.15);

  pointer-events: none;

  animation: conclusion-glow 1.5s ease-in-out infinite alternate;
}

@keyframes conclusion-glow {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

.conclusion-box:not(.conclusion-box-highlight) {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 10px rgba(167, 199, 231, 0.2),
    0 0 25px rgba(167, 199, 231, 0.1),
    0 0 45px rgba(167, 199, 231, 0.05);
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

/* Side boxes hover */
.conclusion-box:not(.conclusion-box-highlight):hover {
  border-color: var(--blue-light);

  box-shadow:
    0 0 15px rgba(167, 199, 231, 0.35),
    0 0 35px rgba(167, 199, 231, 0.15),
    0 0 55px rgba(167, 199, 231, 0.08);

  transform: translateY(-5px);
}

/* Box headings */
.conclusion-box h3 {
  color: var(--white);
  font-size: clamp(24px, 2vw, 32px);
  margin-bottom: 20px;
}

/* Highlighted box heading */
.conclusion-box-highlight h3 {
  color: var(--yellow);
}

/* Box descriptions */
.conclusion-box p {
  color: var(--white);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  margin: 0;
}

.conclusion-statement {
  text-align: center;
  margin-top: 20px;
}

/* Yellow separator */
.conclusion-divider {
  width: 60px;
  height: 2px;
  background-color: var(--yellow);
  margin: 0 auto 30px;
}

/* Final statement */
.conclusion-statement p {
  max-width: 900px;
  margin: 0 auto;

  color: var(--white);
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.5;
}

/* Highlight important words */
.conclusion-statement strong {
  color: var(--yellow);
  text-shadow:
    0 0 10px rgba(254, 167, 17, 0.5),
    0 0 25px rgba(254, 167, 17, 0.2);
  font-weight: 600;
}

/*==============================================
  Shared Canvas Styling
===============================================*/
/* Sections with binary animation */
.conclusion-section,
.introduction-video-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Binary background */
.conclusion-binary-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;

  opacity: 0; /* Adjust the opacity to make the binary background less prominent */
}

/* Content above the binary background */
.conclusion-section > .container,
.introduction-video-section > .container {
  position: relative;
  z-index: 1;
}

/*=================================================
  Video Section
==================================================*/
/* Main section */
.introduction-video-section {
  height: auto;
  padding: 60px 0;

  display: flex;
  align-items: center;

  background-color: var(--background-color);
}

/* Content */
.introduction-video-content {
  width: 100%;
  text-align: center;
}

/* Heading */
.introduction-video-content h2 {
  color: var(--yellow);
  text-shadow: 0 0 8px var(--orange);
  font-size: clamp(36px, 4vw, 60px);
  margin-bottom: 40px;
}

.introduction-video-content span {
  color: var(--white);
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.2);
}
