/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}
body {
  background: #000;  /* use black primarily */
  color: #e0e6f0;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.5;
  position: relative;
  z-index: 0;
}

/* Starfield canvas behind everything */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #000;
  overflow: hidden;
}

/* Navbar / header */
.site-header {
  position: relative;
  z-index: 10;
  background: rgba(10, 15, 36, 0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.logo a {
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #e0e6f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #f8e16a;
}

/* Main content area */
.container {
  width: 90%;
  max-width: 960px;
  margin: 3rem auto;
  position: relative;
  z-index: 5;
}

/* Footers */
footer {
  text-align: center;
  color: #a3afc2;
  padding: 2rem 0;
}

/* APOD / news page styling */
.content img,
.content iframe {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.7);
}
.news-item {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.news-item h2 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.news-item h2 a {
  color: #e0e6f0;
  text-decoration: none;
}
.news-item h2 a:hover {
  color: #f8e16a;
  text-decoration: underline;
}
.news-item p {
  color: #a3afc2;
}

/* Shooting star effect - small sparkle */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 80px; /* long streak */
  background: linear-gradient(white, rgba(255,255,255,0));
  opacity: 0.8;
  transform: rotate(-20deg);
  pointer-events: none;
  mix-blend-mode: screen;
}
/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.hero-content {
  z-index: 5;
}

.planet-carousel {
  position: absolute;
  bottom: 5%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 3;
}

.planet-carousel img {
  width: 120px;
  height: auto;
  opacity: 0.6;
  transition: transform 0.5s, opacity 0.5s;
}
.planet-carousel img.active {
  transform: scale(1.3);
  opacity: 1;
}

/* Planet Fact Box */
.planet-fact {
  position: absolute;
  top: 10%;
  right: 5%;
  background: rgba(10, 15, 36, 0.8);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  max-width: 260px;
  font-size: 0.95rem;
  color: #dce3ec;
  z-index: 4;
}

