/* Global Styles */
:root {
    --background: #000000;
    --foreground: #f8f8f8;
    --primary: #f8f8f8;
    --secondary: #333333;
    --accent: #404040;
    --muted: #262626;
    --border: #666666;
    --radius: 0.75rem;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  a:hover {
    color: #cccccc;
  }
  
  /* Header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease;
  }
  
  .header-transparent {
    background-color: transparent;
  }
  
  .header-scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
  }
  
  .nav {
    display: flex;
    gap: 2rem;
  }
  
  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    font-size: 1.5rem;
  }
  
  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  /* Main Content */
  main {
    padding-top: 5rem;
    min-height: 100vh;
  }
  
  section {
    margin-bottom: 5rem;
  }
  
  .hero {
    text-align: center;
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
  
  .hero p {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
  }
  
  .btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .btn-primary {
    background-color: var(--primary);
    color: var(--background);
  }
  
  .btn-primary:hover {
    background-color: #e0e0e0;
    color: var(--background);
  }
  
  .btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
  }
  
  .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Grid Layouts */
  .grid {
    display: grid;
    gap: 2rem;
  }
  
  .grid-cols-1 {
    grid-template-columns: 1fr;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Cards */
  .card {
    background-color: var(--muted);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
  }
  
  .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  /* Rover Details */
  .rover-hero {
    height: 60vh;
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
  }
  
  .rover-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .rover-info {
    background-color: var(--muted);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .rover-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .rover-stat-label {
    color: #a0a0a0;
    font-size: 0.875rem;
  }
  
  .rover-gallery {
    margin-top: 2rem;
    margin-bottom: 50px;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
  }
  
  /* Mars Terrain */
  .terrain-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
  }
  
  .terrain-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
  }
  
  /* Quiz */
  .quiz-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .quiz-card {
    background-color: var(--muted);
    border-radius: var(--radius);
    padding: 2rem;
  }
  
  .quiz-title {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }
  
  .form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background-color: var(--background);
    color: var(--foreground);
  }
  
  .form-textarea {
    min-height: 100px;
    resize: vertical;
  }
  
  .radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
  }
  
  .quiz-results {
    text-align: center;
  }
  
  .quiz-score {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
  }
  
  /* Stars Background */
  .stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
  }
  iframe {
    border-radius: 20px;
    overflow: hidden; /* Ensures video content doesn't exceed rounded corners */
  }
  
  
  /* Responsive */
  @media (max-width: 768px) {
    .nav {
      display: none;
    }
    
    .mobile-menu-btn {
      display: block;
    }
    
    .mobile-nav.active {
      display: flex;
    }
    
    .grid-cols-2, .grid-cols-3 {
      grid-template-columns: 1fr;
    }
    
    .rover-details {
      grid-template-columns: 1fr;
    }
    
    .terrain-feature {
      grid-template-columns: 1fr;
    }
    
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
      font-size: 2rem;
    }
    
    h2 {
      font-size: 1.75rem;
    }
  }
  
  @media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3 {
      grid-template-columns: repeat(2, 1fr);
    }
  }  



.invalid {
  border-color: #ff4d4f !important;
  background-color: rgba(255, 77, 79, 0.1) !important;
}

.error-message {
  color: #ff4d4f;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.invalid + .error-message {
  display: block;
}

input[type="date"].form-input {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  width: 100%;
}