@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400&display=swap');

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.section5-background {
  background: radial-gradient(circle, #045764 5%, #023f55 20%, rgb(2, 46, 62) 30%, rgb(1, 27, 40) 50%);
}

.amsterdam-label {
  position: absolute;
  color: rgb(218, 88, 13);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 2px 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  white-space: nowrap;
  text-shadow: 2px 2px 3px black,
    0 0 25px rgb(14, 10, 141),
    0 0 10px rgba(157, 56, 5, 1);
}

#title-container {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 85%;
  z-index: 200;
  width: 320px;
  text-align: center;
  pointer-events: none;

}

/* For mobile responsiveness */
@media (max-width: 768px) {
  #title-container {
    left: 10%;
    width: 80%;
  }
}

.animated-title {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: #ff8c00;
  white-space: nowrap;
  text-align: left !important;
  /* animation: glow 6s ease-in-out infinite; */
  opacity: 1 !important;
  /* Override any inline styles */
}

@keyframes glow {
  0% {
    text-shadow: 0 0 0px #ff8c00, 0 0 1px #ff8c00, 0 0 2px #ff8c00;
  }

  20% {
    text-shadow: 0 0 1px #ff8c00, 0 0 2px #ff4500, 0 0 3px #ffd700;
  }

  40% {
    text-shadow: 0 0 2px #ff8c00, 0 0 3px #ff8c00, 0 0 4px #ff8c00;
  }

  60% {
    text-shadow: 0 0 3px #ff8c00, 0 0 4px #ff8c00, 0 0 5px #ff8c00;
  }

  80% {
    text-shadow: 0 0 2px #ff8c00, 0 0 3px #ff8c00, 0 0 4px #ff8c00;
  }

  100% {
    text-shadow: 0 0 1px #ff8c00, 0 0 2px #ff4500, 0 0 3px #ffd700;
  }
}

.animated-subtext {
  position: relative;
  margin: 0;
  padding: 0;
  transform: translate(-30%, 0%);
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 200;
  color: #ff8c00;
  width: 320px;
  line-height: 2;
  white-space: pre-wrap;
  word-wrap: break-word;
  opacity: 1 !important;
  /* Override any inline styles */
}

.animated-title span,
.animated-subtext span {
  opacity: 0;
}

.more-details {
  color: rgb(6, 142, 163);
  /* Change link color */
  text-decoration: underline;
  /* Add underline */
  cursor: pointer;
  /* Change cursor to pointer */
  font-weight: 200;
  pointer-events: auto;
  /* Allow clicking on the link */
}

.more-details:hover {
  color: darkorange;
  /* Change link color on hover */
}

.cursor-feedback1 {
  position: absolute;

  pointer-events: none;
  /* Prevent interaction with the cursor */
  z-index: 1000;
  /* Ensure it's above other elements */
  transform-origin: center center;
  /* Rotate around the center */
}

.cursor-feedback1 span {
  position: absolute;
  white-space: nowrap;
  /* Prevent text from wrapping */
  transform-origin: 0 0;
  /* Rotate around the center of the circle */
}


.cursor-message {
  position: absolute;
  pointer-events: none;
  /* Prevent interaction with the cursor */
  z-index: 999999;
  /* Ensure it's above other elements */
  display: none;
  /* Hidden by default */
  /* Rotate the SVG */
  margin-left: 0;
  margin-top: 0;
}

/* 1. New Hiding Class (used only for initial load) */
.is-hidden-m6 {
  display: none !important;
}

/* 2. Update Base Class (must not hide the element) */
.cursor-message-M6 {
  position: fixed !important;
  pointer-events: none;
  z-index: 999999;
  /* REMOVED: display: none; */
  margin-left: 0;
  margin-top: 0;
}

#animation-message-F8 {
  /* Base positioning and hidden state */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99;

  /* Ensure message is hidden by default */
  opacity: 0;
  display: none;

  /* IMPORTANT: Force transition to NONE to prevent conflicts with external CSS */
  transition: none;
}

.hover-wait-message-fixed {
  position: fixed !important;
  /* Forces it to follow the viewport */
  pointer-events: none;
  z-index: 9999999;
  /* Replicate the centering for correct mouse alignment */
  transform: translate(-50%, -50%);
  display: none;
}

@keyframes spin-m6 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Apply the animation to the container */
.spinning-message {
  position: absolute;
  /* 25 seconds duration, consistent speed, loop forever */
  animation: spin-m6 25s linear infinite;
  pointer-events: none;
  /* display: none; */
  z-index: 9999999;
  /* CRITICAL: Set the rotation point to the center of your 120x120 SVG */
  transform-origin: 60px 60px;
}

/* ---------------------------------------------------------------------- */
/* CSS Float/Breathe Effect for Message 4 (S3F4) */
/* ---------------------------------------------------------------------- */
/** ------------ NOT USED ANY MORE ---------------------------------------*/
/** ==== this css effect works only with "merged-frameHome-36A-IMPROVEMENT-64-a MARK.js" ============*/

/* 1. Define the Keyframes for subtle movement */

@keyframes subtle-float-s3f4 {
  0% {
    /* Move slightly up and left */
    transform: translate(calc(var(--initial-x) - 12px), calc(var(--initial-y) - 12px)) rotate(-0.5deg);
  }

  50% {
    /* Move slightly down and right */
    transform: translate(calc(var(--initial-x) + 12px), calc(var(--initial-y) + 12px)) rotate(0.5deg);
  }

  100% {
    /* Return to start */
    transform: translate(calc(var(--initial-x) - 12px), calc(var(--initial-y) - 12px)) rotate(-0.5deg);
  }
}

/* 2. Define the class that applies the animation */
.float-active {
  /* Apply the animation */
  animation: subtle-float-s3f4 6s ease-in-out infinite alternate;
  /* Important: Use will-change for performance */
  will-change: transform;
}



/* 3. Helper to prevent the CSS animation from interfering with GSAP tracking */
.float-paused {
  animation-play-state: paused;
}

.cursor-message-S3F4 {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  display: none;
}



.cursor-feedback {
  position: fixed;
  pointer-events: none;
  /* Prevent interaction with the cursor */
  z-index: 9999999;
  /* Ensure it's above other elements */
  display: none;
  /* Hidden by default */

  animation: rotateText 25s linear infinite;
  /* Rotate the SVG */
  transform: translate(-50%, -50%);


  margin-left: -60px;
  margin-top: -60px;

}


/* Rotating animation */
@keyframes rotateText {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* CSS for the overlay */
#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.5s ease;
  /*Smooth fade animation */
}

.overlay-image {
  position: absolute;
  top: 45%;
  /* Center vertically */
  left: 45%;
  /* Center horizontally */
  transform: translate(-50%, -50%);
  /* Center the image */
  width: auto;
  /* Allow the image to maintain its aspect ratio */
  height: auto;
  /* Allow the image to maintain its aspect ratio */
  max-width: 500px;
  /* 1100px Set maximum width */
  max-height: 500px;
  /* 1100px Set maximum height */
  opacity: 0;
  /* Start fully transparent */
  display: block;
  /* Change from none to block */
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 50;
}

/* Three.js canvas positioning */
#Section-5>canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* CSS2DRenderer container */
#Section-5>div[style*="position: absolute"] {
  z-index: 100 !important;
}