.text-p1 {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: min(600px, 90vw);
  text-align: center;
  border-radius: 20px;
  padding: 30px 36px;
  background: rgba(10, 10, 20, 0.45);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.85);
  transition: opacity 0.3s ease;
}

h1 {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(120, 160, 255, 0.5);
}

.text-p1 p {
  line-height: 1.7;
  font-size: clamp(14px, 1.5vw, 16px);
  color: #b0b8d0;
}

.container {
  height: 1500vh;
  view-timeline-name: --section-scroll;
}

@media (max-width: 768px) {
  .container {
    height: 500vh;
    margin-top: 500px;
  }
}

.sticky-box {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .elements {
    flex-direction: column;
    gap: 40px;
    height: auto;
  }
}

.elements {
  display: flex;
  gap: 20px;
  width: 90%;
  justify-content: center;
  align-items: center;
}

.box {
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-weight: bold;
  overflow: visible;
  animation-timeline: --section-scroll;
  animation-range: entry 0% exit 50%;
}

/* Specifieke styling per box zonder extra classes */
#earth {
  width: 91vw;
  max-width: 1200px;
  animation-name: shrink-to-square;
}

#earth img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.spin {
  animation: rotateLoop 40s linear infinite;
}

@keyframes rotateLoop {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#mt {
  width: 0%;
  opacity: 0;
  animation-name: grow-to-square;
}

#black-hole {
  width: 0%;
  opacity: 0;
  animation-name: grow-to-square;
}

@keyframes shrink-to-square {
  to {
    width: 30%;
  }
}

@keyframes grow-to-square {
  to {
    width: 30%;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .track {
    flex-direction: column;
    gap: 15px;
  }

  #earth {
    width: 80vw;
    height: auto;
    animation-name: shrink-vertical;
  }

  #mt,
  #black-hole {
    height: 0;
    width: 80vw;
    animation-name: grow-vertical;
  }

  @keyframes shrink-vertical {
    to {
      height: 25vh;
      width: 25vh;
    }
  }

  @keyframes grow-vertical {
    to {
      height: 25vh;
      width: 25vh;
      opacity: 1;
    }
  }
}

/* meet gedeelte komt hier  */

.measurement {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 3;
  animation: showMeasurement linear both;
  animation-timeline: --space-timeline;
  animation-range: entry 100% exit 0%;
}

.track {
  position: absolute;
  top: 50%;
  left: 40%;
  right: 40%;
  height: 2px;
  transform: translateY(-50%);
}

.dotline {
  width: 100%;
  border-top: 3px dashed #bc2b2d50;
  position: absolute;
  top: 0;
}

.shuttle-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff4d4f;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  animation:
    bounce 9s linear infinite,
    shuttle 2s ease-in-out infinite;
}

@keyframes shuttle {
  0% {
    box-shadow: 0 0 0 0 #e05721;
  }

  100% {
    box-shadow: 0 0 0 8px #f8765c00;
  }
}

@keyframes bounce {
  0% {
    left: 0%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 0%;
  }
}

@media (max-width: 768px) {
  .track {
    top: 40%;
    bottom: 40%;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .dotline {
    width: auto;
    height: 100%;
    border-top: none;
    border-left: 3px dashed #bc2b2d50;
    top: 0;
    left: 0;
  }

  .shuttle-dot {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    animation:
      bounce-vertical 9s linear infinite,
      shuttle 2s ease-in-out infinite;
  }

  @keyframes bounce-vertical {
    0% {
      top: 0%;
    }
    50% {
      top: 100%;
    }
    100% {
      top: 0%;
    }
  }
}

/* =========================================
   PULSE POINTS (Floating & Interactive)
   ========================================= */

/* ----- MARK: PULSE DATA  
*/

.data-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pulse-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #eb5d34;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  /* De zweef-animatie */
  animation: floatEffect 3s ease-in-out infinite;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

/* De pulserende ringen */
.pulse-point .ring {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #eb5d34;
  border-radius: 50%;
  opacity: 0;
  animation: orbit-pulse 2s infinite ease-out;
  pointer-events: none;
}

/* Hover: Animatie pauzeren en kaart tonen */
.pulse-point:hover {
  animation-play-state: paused;
  transform: scale(1.3);
}

.info-card {
  position: absolute;
  left: 30px; /* Ruimte vanaf het puntje */
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  width: 240px;
  padding: 15px;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(235, 93, 52, 0.4);
  color: white;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.pulse-point:hover .info-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.info-card h3 {
  color: #eb5d34;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.info-card p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: #d1d8e6;
}

@keyframes floatEffect {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4px, -8px);
  } /* Zweeft schuin omhoog */
}

@keyframes orbit-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/*
----- MARK: INFORMATION TEXT 
*/
.text-mission {
  display: flex;
  gap: 10px;
  flex-direction: column;

  width: 100%;
  max-width: 500px;

  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.mission {
  padding: 6em 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mission img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
}

@media (min-width: 768px) {
  .mission {
    flex-direction: row;
    justify-content: center;
    padding: 6em 40px;
    gap: 50px;
  }

  .text-mission {
    text-align: left;
    align-items: flex-start;
  }

  .mission img {
    width: 35%;
    max-width: none;
  }
}

h5 {
  font-size: 14px;
  text-transform: uppercase;
  color: #494949;
  font-weight: 400;
}
h5 span {
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 1px;
  background-color: #494949;
  margin: 0 10px;
  opacity: 0.5;
}

p {
  color: white;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

/* lijntje */

.line {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 15px 0;
}

/* ----- MARK: LOSSE CONTENT BLOkKEN  
*/

.extra-info {
  display: flex;
  gap: 20px;
  flex-direction: row;
  padding: 0 150px;
}

.extra-info ul {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-direction: row;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.extra-info li {
  flex: 1;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px;
  border-radius: 4px;
  background: rgba(10, 10, 20, 0.45);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid (255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 40px 0 rgba(0, 0, 0, 0.85);
  transition: opacity 0.3s ease;
}

.extra-info li h6 {
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-size: 45px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
}

.extra-info li p {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Courier New", Courier, monospace;
  font-size: 15.2px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.304px;
  margin: 0;
}

.extra-info span {
  display: inline-block;
  width: fit-content;
  min-width: 120px;
  padding: 5px 15px;
  color: #eb5d34;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid rgba(235, 93, 52, 0.5);
  background: rgba(235, 93, 52, 0.2);
  box-shadow: 0 0 10px 0 rgba(235, 93, 52, 0.3);
  text-align: center;
}

@media (max-width: 1024px) {
  .extra-info {
    padding: 0 50px;
  }

  .extra-info ul {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .extra-info {
    padding: 0 20px;
    flex-direction: column;
  }

  .extra-info li {
    width: 100%;
    padding: 25px;
  }

  .extra-info li h6 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .extra-info li p {
    font-size: 14px;
  }

  .extra-info span {
    width: 100%;
    max-width: 200px;
  }
}
