  /* Intro Screen */
 .intro {
    background-color:black;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    position: relative;
    overflow: hidden;
}

.sun {

  /*background: radial-gradient(circle at 50% 50%, #ffcc33 40%, #ff9933 70%, rgba(255, 204, 51, 0) 100%); */
  width: 0;
  height: 0;
  border-radius: 50%;
  position: absolute;
  opacity: 0;
  box-shadow: 0 0 80px 40px rgba(229, 82, 14, 0.852), 0 0 150px 60px rgba(243, 156, 18, 0.2);
  animation: fadeInSun 5s ease-in-out forwards;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sun-line {
  position: absolute;
  bottom: 40%; /* Align with bottom of the sun */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 5px;
  background-color: white;
  opacity: 0;
  animation: drawLine 5s ease-in-out forwards;
}

.rotating-outline {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 320px;
  height: 320px;
  border: 5px solid transparent;
  border-top: 5px solid #ffcc33;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #ffcc33;
  border-left: 5px solid transparent;
  border-radius: 50%;
  animation: rotateOutline 10s linear infinite;
  z-index: 1;
  opacity: 0;
  animation: fadeInOutline 5s ease-in-out forwards, rotateOutline 10s linear infinite;
}

@keyframes rotateOutline {
  0% {
      transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
      transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes fadeInOutline {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}



@keyframes fadeInSun {
  0% {
      width: 0;
      height: 0;
      opacity: 0;
  }
  100% {
      width: 300px;
      height: 300px;
      opacity: 1;
  }
}

@keyframes drawLine {
  0% {
      width: 0;
      opacity: 0;
  }
  100% {
      width: 80%;
      opacity: 1;
  }
}

.intro h1 {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  margin-bottom: 0;
  color:  #b90b0b;
  /*text-shadow: 0 0 30px #ff9933, 0 0 50px rgba(255, 153, 51, 0.8);*/
  opacity: 0;
  animation: fadeInText 5s ease-in-out forwards;
}

@keyframes fadeInText {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

.intro h1 span {
  display: inline-block;
  opacity: 0;
  animation: fadeInLetter 0.3s ease-in-out forwards;
}

@keyframes fadeInLetter {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}


.button {
  width: 15%;
  height: 7%;
  position: absolute;
  bottom: 20%; /* Position it below the line */
  transform: translateX(-50%);
  padding: 10px 20px;
  font-size: 1.5rem;
  font-weight: bolder;
  font-family: 'Roboto', serif;
  color: #000; /* Black text */
  background-color: #ff0000; /* Red background */
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  /* box-shadow: 0 0 20px rgba(255, 165, 0, 0.7); Orange glow */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
  box-shadow: 0 0 12px rgba(255, 165, 0, 0.8); /* Intensified orange glow on hover */
  background-color: #ff3300; /* Slightly darker red background on hover */
}



section#roverInfo {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  background-color: black;
  color: #1e2023;
  font-size: 2rem;
  transition: visibility 0s, opacity 1s ease-in-out; /* Smooth transition */
}

/* Name and Info Container */
.rover-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Default style for rover-name */
.rover-name {
  margin-top: -5vh;
  margin-left: 13vw;
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  color: rgb(207, 35, 35);
  position: relative;
  font-size: 5rem;
  opacity: 0; /* Hidden by default */
}

/* Animation for the "JARS Rover" text */
.rover-name.animate {
  animation: fadeInRoverName 2.5s ease-in-out forwards;
}

/* Keyframes for fading in */
@keyframes fadeInRoverName {
  0% {
    opacity: 0; /* Fully transparent */
    transform: translateY(20px); /* Slightly lower position */
  }
  100% {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Original position */
  }
}


@keyframes lineMove {
  from {
      transform: translateX(100%);
  }
  to {
      transform: translateX(0);
  }
}

/* Custom Line */
.custom-line {
  height: 3px; /* Thin line */
  background: white;
  width: 40vw; /* Responsive width */
  max-width: 550px;
  opacity: 1;
  display: block;
  position: absolute; /* Stays above heading */
  top: -20px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
}

/* Heading Container */
.heading-container {
  position: relative;
  margin-top: 5vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align everything to the left */
  justify-content: center;
  width: 40vw; /* Same as .custom-line */
  max-width: 550px;
  transform: translateX(-50%); /* Align with .custom-line */
}

/* Small Heading */
.small-heading {
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  font-size: 1.2vw;
  color: white;
  transition: opacity 0.5s ease-in-out;
  text-align: left; /* Align to the left */
  margin-top: 10px;
}

/* Info Content */
.info-content {
  font-family: 'Inter', sans-serif;
  font-size: 1vw;
  color: rgb(180, 176, 176);
  transition: opacity 0.5s ease-in-out;
  text-align: left; /* Align text left */
  max-width: 100%; /* Ensure it stays inside the container */
  margin-top: 5px;
}


::-webkit-scrollbar {
  width: 0; /* Set the width of the scrollbar to 0 */
  height: 0; /* Set the height of the horizontal scrollbar to 0 */
}


.video-container {
  margin-top: 5%;
  margin-left: 23%;
  width: 50vw;
  height: 50vh;
  box-shadow: 0 0 40px rgba(229, 82, 14, 0.852), 0 0 80px rgba(243, 156, 18, 0.2);
  border-radius: 10px;
  overflow: hidden;
  z-index: 2;
}

.video-container video {
  width: 100%;
  height: 100%;
  border: none;
}

.small-heading, .info-content, .video-container, .custom-line {
  display: none; /* Prevents rendering before animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}



/* ==== Responsive Adjustments ==== */

/* Wide Monitors ()*/
@media screen and (min-width: 2550px){
  .sun {
    animation-duration: 4s;
    top: 35%;
    left: 50%;
}

.sun-line{
  bottom: 38%;
}

.rotating-outline {
    width: 400px;
    height: 400px;
    top: 35%;
    left: 50%;
}

.intro h1 {
  top: 35%;
  left: 50%;
  font-size: 4vw;
}

.button {
    width: 40vw;
    height: 7vh;
    font-size: 1.7rem;
    bottom: 20%;
}

@keyframes fadeInSun {
  0% {
      width: 0;
      height: 0;
      opacity: 0;
  }
  100% {
      width: 400px;
      height: 400px;
      opacity: 1;
  }
}

.rover-name{
  margin-top: -1vh;
  margin-left: 20vw;
  font-size: 6rem;
}

.custom-line{
  max-width: 800px;
}

.video-container{
  margin: 1% auto;
}
}



/* Mid size Monitors ()*/
@media screen and (max-width: 1600px) and (min-width: 1400px){
  .sun {
    animation-duration: 4s;
    top: 35%;
    left: 50%;
  }

.sun-line{
  bottom: 30%;
}

.rotating-outline {
    width: 300px;
    height: 300px;
    top: 35%;
    left: 50%;
}

.intro h1 {
  top: 35%;
  left: 50%;
  font-size: 4vw;
}

.button {
    width: 40vw;
    height: 8vh;
    font-size: 1.7rem;
    bottom: 15%;
}

@keyframes fadeInSun {
  0% {
      width: 0;
      height: 0;
      opacity: 0;
  }
  100% {
      width: 300px;
      height: 300px;
      opacity: 1;
  }
}
/* 
.rover-name{
  margin-top: -1vh;
  margin-left: 20vw;
  font-size: 6rem;
}

.custom-line{
  max-width: 800px;
}

.video-container{
  margin: 1% auto;
} */
}



/* Tablets (1024px and below) */
@media screen and (max-width: 1024px) {
  .sun {
    animation-duration: 4s;
    top: 25%;
    left: 50%;
}

.sun-line{
  bottom: 58%;
}

.rotating-outline {
    width: 260px;
    height: 260px;
    top: 25%;
    left: 50%;
}

.intro h1 {
  top: 25%;
  left: 50%;
  font-size: 8vw;
}

.button {
    width: 60vw;
    height: 7vh;
    font-size: 1.7rem;
    bottom: 40%;
}

@keyframes fadeInSun {
  0% {
      width: 0;
      height: 0;
      opacity: 0;
  }
  100% {
      width: 250px;
      height: 250px;
      opacity: 1;
  }
}
.rover-container {
  width: 100%;
  height: 100%;
}

.header-container{
  width: 100%;
  height: 10vw;
}
/* Ensure the rover name appears FIRST */
.rover-name {
  margin-top: 0vh;
  font-size: 4rem; /* Reduce size for mobile */
  margin-left: 0;
  text-align: center;
}

/* Ensure the heading container appears BELOW the rover name */
.info-container, .heading-container,.custom-line,.small-heading,.info-container {
  display: none !important;
}

.video-container {
  display: flex; /* Enables flexbox */
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  margin: 20% auto; /* Centers the container itself */
  width: 80vw;
  height: 40vh;
  box-shadow: 0 0 40px rgba(229, 82, 14, 0.852), 0 0 80px rgba(243, 156, 18, 0.2);
  border-radius: 10px;
  overflow: hidden;
  z-index: 2;
}

.video-container video {
  width: 100%; /* Ensures the video scales */
  height: 100%;
  object-fit: contain; /* Ensures the full video is visible without cropping */
} 
}

/* Mobile Devices (768px and below) */
@media screen and (max-width: 768px) {
  .sun {
    animation-duration: 4s;
    top: 25%;
    left: 50%;
}

.sun-line{
  bottom: 58%;
}

.rotating-outline {
    width: 260px;
    height: 260px;
    top: 25%;
    left: 50%;
}

.intro h1 {
  top: 25%;
  left: 50%;
  font-size: 8vw;
}

.button {
    width: 60vw;
    height: 7vh;
    font-size: 1.7rem;
    bottom: 40%;
}

@keyframes fadeInSun {
  0% {
      width: 0;
      height: 0;
      opacity: 0;
  }
  100% {
      width: 250px;
      height: 250px;
      opacity: 1;
  }
}

.rover-container {
  width: 100%;
  height: 100%;
}

.header-container{
  width: 100%;
  height: 10vw;
}
/* Ensure the rover name appears FIRST */
.rover-name {
  font-size: 4rem; /* Reduce size for mobile */
  margin-left: 0;
  text-align: center;
  margin-top: 0vh;
}

/* Ensure the heading container appears BELOW the rover name */
.info-container, .heading-container,.custom-line,.small-heading,.info-container {
  display: none !important;
}

.video-container {
  display: flex; /* Enables flexbox */
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  margin: 20% auto; /* Centers the container itself */
  width: 80vw;
  height: 40vh;
  box-shadow: 0 0 40px rgba(229, 82, 14, 0.852), 0 0 80px rgba(243, 156, 18, 0.2);
  border-radius: 10px;
  overflow: hidden;
  z-index: 2;
}

.video-container video {
  width: 100%; /* Ensures the video scales */
  height: 100%;
  object-fit: contain; /* Ensures the full video is visible without cropping */
} 
}

/* Small Phones (480px and below) */
@media screen and (max-width: 480px) {

  .sun {
      width: 120px;
      height: 120px;
      animation-duration: 2.5s;
  }

  .sun-line{
    bottom: 48%;
  }

  .rotating-outline {
      width: 210px;
      height: 210px;
  }

  .intro h1 {
      font-size: 10vw;
  }

  .button {
      width: 60vw;
      height: 35vw;
      height: 12vh;
      font-size: 0.9rem;
      bottom: 20%;
  }
  
  @keyframes fadeInSun {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 1;
    }
  }

  .rover-container {
    width: 100%;
    height: 100%;
  }

  .header-container{
    width: 100%;
    height: 10vw;
  }
  /* Ensure the rover name appears FIRST */
  .rover-name {
    font-size: 3rem; /* Reduce size for mobile */
    margin-left: 0;
    margin-top: -3vh;
    text-align: center;
  }

  /* Ensure the heading container appears BELOW the rover name */
  .info-container, .heading-container,.custom-line,.small-heading,.info-container {
    display: none !important;
  }

  .video-container {
    display: flex; /* Enables flexbox */
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    margin: 20% auto; /* Centers the container itself */
    width: 80vw;
    height: 40vh;
    box-shadow: 0 0 40px rgba(229, 82, 14, 0.852), 0 0 80px rgba(243, 156, 18, 0.2);
    border-radius: 10px;
    overflow: hidden;
    z-index: 2;
  }
  
  .video-container video {
    width: 100%; /* Ensures the video scales */
    height: 100%;
    object-fit: contain; /* Ensures the full video is visible without cropping */
  } 
}



