/* ===== Base Reset ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #0b0f1a;
  color: #ffffff;
  line-height: 1.6;
}

/* ===== Layout ===== */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

header {
  background-color: #111827;
  padding: 1rem 0;
}
header .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.logo {
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* ===== Hero ===== */

.hero {
  background: linear-gradient(to right, #1e3a8a, #0f172a);
  padding: 4rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ===== Footer ===== */

footer {
  background-color: #111827;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
    width: fit-content;
  }
}
/* ===== Default desktop behaviour ===== */

.menu-toggle {
  display: none;
}

/* ===== Mobile view ===== */

@media (max-width: 768px) {

  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    background: white;
    color: black;
    padding: 0.5rem;
    border: none;
    cursor: pointer;
  }

}
/* ===== Planets Page ===== */

.planets-section {
  padding: 4rem 0;
}

.planet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.planet-card {
  background-color: #1e293b;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.planet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.planet-card h3 {
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: #2563eb;
}
/* ===== Planet Detail Page ===== */

.planet-detail {
  padding: 4rem 0;
}

.planet-detail ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.planet-detail li {
  margin-bottom: 0.5rem;
}
.planet-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}