/* Reset and Base Styles */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  font-family: 'Arial', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  scroll-behavior: smooth;
  line-height: 1.6;
  font-size: 16px;
}

/* Responsive container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(0.8px);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeIn 2s ease-in-out;
  padding: 0 20px;
}

.content .headline {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: #f8d71c;
  text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
}

#cta-button {
  padding: 15px 40px;
  background: linear-gradient(90deg, #28a745, #00c6ff);
  border: none;
  color: white;
  font-size: clamp(1rem, 3vw, 1.4rem);
  cursor: pointer;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s;
  opacity: 0.9;
}

#cta-button:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #00c6ff, #28a745);
  opacity: 1;
}

.button-container {
  margin-top: 20px;
  text-align: center;
}

.cea-button {
  background-color: #f8d71c;
  color: #000;
  border: none;
  padding: 15px 30px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(248, 215, 28, 0.5);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.cea-button:hover {
  background-color: #e0c25d;
  box-shadow: 0 0 20px rgba(248, 215, 28, 0.8), 0 0 30px rgba(248, 215, 28, 0.6);
  transform: scale(1.05);
}

/* Navigation */
.nav {
  position: fixed; /* Keeps the navbar at the top */
  top: 0; /* Sticks it to the top */
  left: 0;
  width: 100%;
  padding: 15px 200px;
  background: rgba(34, 34, 34, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000; /* Ensure it's above other content */
}

.nav,
.nav .nav-links {
  display: flex;
  align-items: center;
}

.nav {
  justify-content: space-between;
}

a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.nav .logo {
  font-size: 22px;
  font-weight: 500;
  color: #FFD700;
}

.nav .nav-links {
  column-gap: 20px;
  list-style: none;
}

.nav .nav-links a {
  padding: 10px 15px;
  border-radius: 4px;
}

.nav .nav-links a:hover {
  color: #fff;
  background-color: rgba(68, 68, 68, 0.7);
  backdrop-filter: blur(5px);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.6);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(68, 68, 68, 0.7);
  min-width: 160px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block; /* Show dropdown on hover */
  background-color: rgba(68, 68, 68, 0.7);
}

.dropdown-content a {
  color: #FFD700;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dropdown-content a:hover {
  background-color: rgba(68, 68, 68, 0.7);
  backdrop-filter: blur(5px);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.6);
}

.nav .navOpenBtn,
.nav .navCloseBtn {
  display: none;
}

@media screen and (max-width: 1160px) {
  .nav {
      padding: 15px 100px;
  }
}

@media screen and (max-width: 950px) {
  .nav {
      padding: 15px 50px;
  }
}

@media screen and (max-width: 768px) {
  .nav {
      background-color: rgba(34, 34, 34, 0.9); /* Slightly opaque background */
      backdrop-filter: blur(10px); /* Apply blur effect */
      padding: 15px 20px;
  }

  .nav .navOpenBtn,
  .nav .navCloseBtn {
      display: block;
  }

  .nav .nav-links {
      position: fixed;
      top: 0;
      left: -100%;
      height: auto;
      max-width: 280px;
      width: 100%;
      padding-top: 70px;
      padding-bottom: 70px;
      row-gap: 30px;
      flex-direction: column;
      background: rgba(34, 34, 34, 0.9);
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 10px rgba(238, 255, 0, 0.4);
      transition: all 0.4s ease;
      z-index: 100;
  }

  .nav.openNav .nav-links {
      left: 0; /* Show menu */
  }

  .nav .navOpenBtn {
      color: #FFD700;
      font-size: 20px;
      cursor: pointer;
  }

  .nav .navCloseBtn {
      position: absolute;
      top: 20px;
      right: 20px;
      color: #FFD700;
      font-size: 20px;
      cursor: pointer;
  }
}


/* Problem Section */
.problem-section {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3em);
  margin-bottom: 20px;
  color: #ffcc00;
}

.section-description {
  font-size: clamp(1rem, 2vw, 1.2em);
  margin-bottom: 30px;
}

.problem-list {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.problem-list li {
  font-size: clamp(1rem, 2vw, 1.2em);
  flex: 1 1 250px;
  padding: 15px;
  background-color: #1f1f1f;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.problem-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.statistics {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.statistic {
  text-align: center;
  flex: 1 1 200px;
  background-color: #2b2b2b;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.statistic:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.stat-value {
  font-size: clamp(1.4em, 3vw, 1.8em);
  color: #28a745;
  margin-top: 10px;
}

/* Solutions Section */
.solutions-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #1f1f1f;
}

.solutions-heading {
  font-size: clamp(2rem, 4vw, 2.5em);
  color: #ffcc00;
  margin-bottom: 20px;
}

.solutions-intro {
  font-size: clamp(1rem, 2vw, 1.2em);
  color: #e0e0e0;
  margin-bottom: 40px;
}

.solutions-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.solution-card {
  background-color: #2b2b2b;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 300px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.solution-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid #ffcc00;
}

.solution-title {
  color: #ffcc00;
  margin: 10px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.solution-description {
  margin: 10px;
  color: #e0e0e0;
  font-size: clamp(0.9rem, 2vw, 1em);
}

/* Map Section */
.map-section {
  padding: 80px 20px;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

#map-container {
  width: 100%;
  /* Ensure it takes full width */
}

#map {
  width: 100%;
  /* Set width to 100% */
  height: 600px;
  /* Match the height of NASA tools */
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* NASA Tools Section */
.nasa-tools {
  padding: 80px 20px;
  background-color: rgba(0, 0, 0, 0.85);
}

.nasa-tool-frame,
.nasa-map-frame {
  width: 100%;
  /* Ensure NASA tool frames are 100% width */
  height: 600px;
  /* Maintain height for NASA tools */
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
  margin: 10px 0;
}

.nasa-link {
  color: #f8d71c;
  text-decoration: none;
}

.nasa-link:hover {
  text-decoration: underline;
}

/* How You Can Help Section */
.help-section {
  padding: 60px 20px;
  background-color: #1f1f1f;
  text-align: center;
}

.help-heading {
  font-size: clamp(2rem, 4vw, 2.5em);
  color: #ffcc00;
  margin-bottom: 20px;
}

.help-description {
  font-size: clamp(1rem, 2vw, 1.2em);
  color: #e0e0e0;
  margin-bottom: 40px;
}

.help-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.help-card {
  background-color: #2b2b2b;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 300px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.help-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.help-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.help-title {
  color: #ffcc00;
  margin: 10px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.help-text {
  margin: 10px;
  color: #e0e0e0;
  font-size: clamp(0.9rem, 2vw, 1em);
}
.video-container {
  position: relative;
  width: 100%; /* Full width */
  padding-top: 58.33%; /* 16:9 Aspect Ratio (height / width * 100) */
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  border-radius: none; /* Optional: Adjust as needed */
}
.cta-button {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
  display: inline-block;
  transition: background-color 0.3s, transform 0.3s;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.cta-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* Weather Section */
.weather-section {
  padding: 80px 20px;
  background-color: rgba(0, 0, 0, 0.85);
  text-align: center;
}

#city-input {
  padding: 15px;
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-right: 10px;
  border: 2px solid #f8d71c;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
  max-width: 300px;
}

#city-input:focus {
  border-color: #fff;
}

#weather-button {
  padding: 15px 30px;
  background-color: #f8d71c;
  border: none;
  color: #000;
  font-size: clamp(1rem, 2vw, 1.1rem);
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#weather-button:hover {
  background-color: #e0c800;
  transform: scale(1.05);
}

#weather-result {
  margin-top: 20px;
  color: #fff;
}

/* Feedback Form Section */
.feedback-form {
  background-color: #222;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  margin: 50px auto;
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.feedback-form h2 {
  color: #ffcc00;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.feedback-form label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ffcc00;
  border-radius: 4px;
  background-color: #444;
  color: #f1f1f1;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.feedback-form input[type="text"]:focus,
.feedback-form input[type="email"]:focus,
.feedback-form textarea:focus {
  border-color: #ffcc00;
  outline: none;
}

.feedback-form button {
  background-color: #ffcc00;
  color: #000;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-top: 15px;
  transition: background-color 0.3s;
}

.feedback-form button:hover {
  background-color: #f1f100;
}


footer {
  background-color: #000; /* Black background color */
  color: #f8d71c; /* Yellow text color */
  text-align: center;
  padding: 30px 0; /* Increase padding for better spacing */
  position: relative; /* Allows for positioning of content */
  bottom: 0;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center align */
}

.developers {
  display: flex; /* Change to flex to arrange in one line */
  justify-content: center; /* Center align items horizontally */
  margin-top: 10px; /* Space above developers */
  flex-wrap: wrap; /* Allow items to wrap to the next line on smaller screens */
}

.developer {
  display: flex;
  align-items: center; /* Align items vertically */
  margin: 0 15px; /* Space between each developer */
  text-decoration: none; /* Remove underline from links */
  color: #f8d71c; /* Yellow text color for links */
  transition: color 0.3s, transform 0.3s; /* Smooth transition for hover effect */
  padding: 5px; /* Add some padding around the link */
  border-radius: 5px; /* Rounded corners */
}

.developer:hover {
  color: #fff; /* Change color on hover to white */
  transform: scale(1.05); /* Slightly enlarge the icon and text on hover */
  background-color: rgba(255, 255, 255, 0.1); /* Add a subtle background effect */
}

.developer-name {
  font-weight: bold;
  margin-left: 10px; /* Space between icon and name */
}

.developer-icon {
  font-size: 30px; /* Set the size of the icon */
  transition: color 0.3s; /* Smooth transition for icon color */
}
.developer:hover .developer-icon {
  color: #fff; /* Change icon color on hover */
}

/* Responsive styles */
@media (max-width: 768px) {
  .developer {
      margin: 10px; /* Adjust margin for smaller screens */
      flex: 1 0 45%; /* Allow two developers per row on small screens */
  }
}

@media (max-width: 480px) {
  .developer {
      flex: 1 0 100%; /* Allow one developer per row on extra small screens */
  }

  .developer-icon {
      font-size: 25px; /* Smaller icon size for small screens */
  }

  .developer-name {
      font-size: 14px; /* Smaller text size for names */
  }
}
/* Responsive Design */
@media (max-width: 1024px) {
  .navbar {
    padding: 15px;
  }

  .nav-links {
    display: none;
  }

  /* Add a hamburger menu for mobile */
  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
  }

  .menu-toggle:hover {
    color: #f8d71c;
  }

  /* Style for mobile menu when active */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
  }

  .nav-links.active li {
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
  }

  .content {
    padding: 0 10px;
  }

  .statistics {
    flex-direction: column;
    align-items: center;
  }

  .statistic {
    width: 100%;
    max-width: 300px;
  }

  .solutions-container,
  .help-container {
    flex-direction: column;
    align-items: center;
  }

  .solution-card,
  .help-card {
    width: 100%;
    max-width: 350px;
  }

  #map,
  .nasa-tool-frame,
  .nasa-map-frame {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 60vh;
  }

  #cta-button,
  .cea-button {
    width: 100%;
    max-width: 250px;
  }

  .problem-list li {
    flex-basis: 100%;
  }

  #city-input,
  #weather-button {
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }

  .feedback-form {
    width: 95%;
  }
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  body {
    background-color: #000;
    color: #fff;
  }

  .content .headline,
  .section-heading,
  .solutions-heading,
  .help-heading {
    color: #fff;
    text-shadow: none;
  }

  #cta-button,
  .cea-button,
  .cta-button {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
  }

  .statistic,
  .solution-card,
  .help-card {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
  }
}

/* Print Styles */
@media print {
  body {
    background-color: #fff;
    color: #000;
  }

  .hero-section,
  .navbar,
  #cta-button,
  .cea-button,
  .cta-button,
  #map,
  .nasa-tool-frame,
  .nasa-map-frame,
  .feedback-form {
    display: none;
  }

  .content,
  .problem-section,
  .solutions-section,
  .help-section {
    page-break-inside: avoid;
  }
}
