/* General Styles */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: black;
  color: white;
}

body, p, li, .discoveries-intro, .discovery-card p {
font-family: 'Space Mono', sans-serif;
margin: 0;
padding: 0;
}

h1, h2, h3, .discoveries-title, .discovery-card h2 {
font-family: 'Orbitron', sans-serif;
}

/* General Fix */
.hidden {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Prevent clicks on hidden elements */
}

/* Ensure Screen Transitions Work */
.screen {
  position: absolute;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* Background Video Styling */
#bg-video {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1;
transform: translate(-50%, -50%);
object-fit: cover;
}

/* Introductory Screen Container */
.intro-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #000000, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vanta Background */
.vanta-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Content Wrapper (ensures content stays above the Vanta background) */
.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 20px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Title Styling */
.intro-content .title {
  font-size: 3em;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.8);
}

/* Subtitle Styling */
.intro-content .subtitle {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* Start Button Styling */
#startButton {
  padding: 20px 40px;
  font-size: 2em;
  font-family: 'Space Mono';
  border: none;
  border-radius: 50px;
  background-color: #ffcc00;
  color: #000;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite alternate ease-in-out;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

#startButton:hover {
  background-color: #ff9800;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
}

/* Screen 2 Styling */
#screen2 {
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
}
.info-box {
  background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(20,20,20,0.8));
  padding: 2rem;
  border: 2px solid #00ffff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,255,255,0.5);
  text-align: center;
  max-width: 80%;
}
.info-box h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  color: #00ffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.info-box ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.info-box ul li {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}
.info-box ul li::before {
  content: "●";
  color: #00ffff;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 0;
}
/* Navigation Buttons */
.nav-button {
  padding: 1rem 2rem;
  margin: 1rem;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #00ffff, #0099cc);
  color: #000;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ffff;
}

#bg-video-screen2 {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
transform: translate(-50%, -50%);
object-fit: cover;
z-index: -1;
}



/* Mars Rover Styling */
#marsRover {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  z-index: 15;
}

/* Engaging & Styled Buttons */
.nav-button {
  display: block;
  margin: 15px auto;
  text-align: center;
  width: 60%;
  max-width: 300px;
  padding: 15px 25px;
  font-size: 20px;
  font-weight: bold;
  color: #000;
  background: linear-gradient(135deg, #ffcc00, #ff6600);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
  animation: glow 2s infinite alternate ease-in-out;
}

.nav-button:hover {
  background: linear-gradient(135deg, #ff3d00, #ff9800);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 152, 0, 1);
}

.nav-button:active {
  transform: scale(0.98);
}

/* Continuous Glow Animation */
@keyframes glow {
  0% { box-shadow: 0 0 10px rgba(255, 152, 0, 0.8); }
  50% { box-shadow: 0 0 25px rgba(255, 152, 0, 1); }
  100% { box-shadow: 0 0 10px rgba(255, 152, 0, 0.8); }
}

/* Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mars Rover Animation (Alternate Positioning) */
#marsRover {
  bottom: 10%;
  left: 10%;
  width: 150px;
}

/* Rotating Mars */
#mars-container {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
}

#mars {
  width: 100%;
  height: 100%;
  background: url('assets/images/mars.png') no-repeat center center/cover;
  border-radius: 50%;
  animation: rotateMars 20s linear infinite;
}

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

/* Back Button Styling */
.back-button {
  display: block;
  padding: 10px 20px;
  font-size: 1em;
  color: #fff;
  background: linear-gradient(135deg, #ff0000, #ff6600);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 20px auto 0 auto;
  transition: transform 0.3s ease;
}

.back-button:hover {
  transform: scale(1.05);
}

/* Hidden Class Override */
.hidden {
  display: none;
}

/* Intro Screen */
#screen1 {
  background: url('assets/earth-space.jpg') no-repeat center center/cover;
}

.title {
  font-size: 2.5em;
  font-weight: bold;
}

.subtitle {
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* Vanta.js Background */
.vanta-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Generic Button Styling */
button {
  padding: 15px 30px;
  font-size: 18px;
  margin: 10px;
  border: none;
  cursor: pointer;
  background-color: #ff9800;
  color: white;
  border-radius: 5px;
  transition: transform 0.3s ease, background 0.3s ease;
}

button:hover {
  transform: scale(1.1);
  background-color: #e68900;
}

/* Navigation Buttons (Override) */
.nav-button {
  background-color: #2196F3;
}

.nav-button:hover {
  background-color: #1976D2;
}

/* Back Button (Override) */
.back-button {
  background-color: red;
}

.back-button:hover {
  background-color: darkred;
}

/* Screen 3: Mission Details */
#screen3 {
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
}
.mission-wrapper {
  width: 90%;
  max-width: 1200px;
  text-align: center;
}
.mission-title {
  font-size: 2.5em;
  color: #ffcc00;
  margin-bottom: 20px;
}
.mission-intro {
  font-size: 1.2em;
  margin-bottom: 30px;
}
.mission-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
.mission-section {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 5px;
  transition: transform 0.5s ease;
  text-align: center;
}
.mission-section:hover {
  transform: translateY(-5px);
}
.mission-section h3 {
  font-size: 1.6em;
  color: #ff6600;
  margin-bottom: 10px;
}
.mission-image {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}
/* Toggle Info Button */
.toggle-info {
  padding: 8px 16px;
  font-size: 0.9em;
  color: #fff;
  background-color: #1976D2;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
}
.toggle-info:hover {
  background-color: #115293;
}
.mission-extra {
  font-size: 1em;
  color: #dcdcdc;
  line-height: 1.6;
  margin-top: 10px;
  transition: opacity 0.6s ease, max-height 0.6s ease;
}
.mission-extra.hidden {
  display: none;
}

.back-button {
  padding: 15px 30px;
  font-size: 1.4em;
  background: linear-gradient(135deg, #ff0000, #ff6600);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin: 0 auto;
  }
  
  .back-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
  }
  
/* Vanta Background for Screen 4 */
#vanta-screen4 {
top: 0;
left: 0;
width: 100%;
height: 100vh;
z-index: -1;
}

/* Screen 4 Styling */
#screen4 {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
position: relative;
padding: 10px;
}

.tech-wrapper {
width: 100%;
max-width: 1200px;
margin: 0 auto;
text-align: center;
position: relative;
z-index: 1;
}

.tech-title {
font-size: 2.2em;
color: #ffcc00;
margin-bottom: 15px;
}

.tech-content {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
width: 100%;
padding: 20px;
background: rgba(0, 0, 0, 0.5);
border-radius: 15px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.tech-bottom-row {
grid-column: 1 / -1;
display: flex;
justify-content: center;
gap: 20px;
}

.tech-section {
position: relative;
background: rgba(255, 255, 255, 0.1);
padding: 15px;
border-radius: 10px;
width: 100%;
max-width: 300px;
transition: transform 0.3s ease;
text-align: center;
}

.tech-section:hover {
transform: translateY(-5px);
}

.tech-section h2 {
font-size: 1.4em;
color: #ff6600;
margin-bottom: 8px;
}

.tech-section .info-button {
display: inline-block;
margin: 8px 0;
padding: 6px 12px;
font-size: 0.9em;
color: #fff;
background-color: #1976D2;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.tech-section .info-button:hover {
background-color: #115293;
}

.tech-explanation {
opacity: 0;
max-height: 0;
overflow: hidden;
transition: opacity 0.6s ease, max-height 0.6s ease;
font-size: 0.95em;
line-height: 1.5;
color: #dcdcdc;
margin-top: 8px;
}

.tech-explanation.active {
opacity: 1;
max-height: 300px;
}

.tech-section img {
width: 250px;
height: 250px;
object-fit: contain;
}

.backbutton {
  position: absolute;
  top: 900px;   /* Adjust this value to move it further up if needed */
  left: 480px;
  padding: 15px 30px;
  font-size: 1rem;
  background: linear-gradient(135deg, #ff0000, #ff6600);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover {
transform: scale(1.05);
box-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
}

/* Screen 5 Styling */
#screen5 {
position: relative;
width: 100vw;
height: 100vh;
overflow-y: auto;
background: linear-gradient(135deg, #000, #1a1a1a);
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
}

#vanta-screen5 {
top: 0;
left: 0;
width: 100%;
height: 100vh;
z-index: -1;
}

.discoveries-wrapper {
width: 90%;
max-width: 1200px;
background: rgba(0, 0, 0, 0.7);
padding: 40px;
border-radius: 15px;
box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
text-align: center;
}

.discoveries-title {
font-size: 3em;
color: #ffcc00;
margin-bottom: 20px;
text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.discoveries-intro {
font-size: 1.5em;
color: #ffffff;
margin-bottom: 30px;
line-height: 1.4;
}

.discoveries-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-bottom: 30px;
}

.discovery-card {
background: rgba(255, 255, 255, 0.1);
padding: 20px;
border-radius: 10px;
border: 2px solid rgba(255, 255, 255, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discovery-card:hover {
transform: translateY(-5px);
box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.discovery-card h2 {
font-size: 1.8em;
color: #ff6600;
margin-bottom: 10px;
}

.discovery-card p {
font-size: 1.2em;
color: #ddd;
line-height: 1.5;
}

.image-placeholder {
width: 100%;
height: 200px;
margin: 10px 0;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}

.image-placeholder img {
width: auto;
height: 100%;
object-fit: contain;
}

.back-button {
padding: 15px 30px;
font-size: 1.4em;
background: linear-gradient(135deg, #ff0000, #ff6600);
color: #fff;
border: none;
border-radius: 10px;
cursor: pointer;
margin: 0 auto;
}

.back-button:hover {
transform: scale(1.05);
box-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
}
