/* ===== Base Styles ===== */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e6edf3;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  background: #0b1a2a;
}

/* ===== Starfield Background ===== */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.03) 1px, transparent 2px),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,0.02) 1px, transparent 3px),
              linear-gradient(to bottom, #0b1a2a 0%, #050a14 100%);
  background-size: 3px 3px, 4px 4px, 100% 100%;
  z-index: -2;
}

/* ===== Drifting Stars ===== */
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: drift linear infinite, twinkle ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(0) translateX(0); }
  to   { transform: translateY(-100vh) translateX(20vw); }
}

@keyframes twinkle {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* ===== Top Bar ===== */
.topbar {
  background: rgba(10, 25, 45, 0.95);
  padding: 0.8rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar a {
  color: #8ecbff;
  margin: 0 0.9rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.topbar a:hover {
  color: #ffffff;
}

/* ===== Page Card ===== */
.page {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  background: rgba(15, 25, 40, 0.92);
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1;
}

h1 {
  text-align: center;
  margin-top: 0;
  font-size: 2rem;
  color: #8ecbff;
}

h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #a7d8ff;
}

a {
  color: #8ecbff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.section a {
  display: block;
  margin: 0.35rem 0;
}

.footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  text-align: center;
  color: #b0c4d8;
}

.footer a {
  color: #8ecbff;
}

.footer a:hover {
  color: #ffffff;
}

@media (max-width: 700px) {
  .page {
    margin: 1.5rem;
    padding: 1.5rem;
  }

  .topbar a {
    display: inline-block;
    margin: 0.4rem 0.6rem;
  }
}

