:root {
  --bg-900: #120600; /* deep reddish-black space */
  --bg-800: #1e0a00; /* warm dark backdrop */
  --accent: #ff9800; /* solar orange */
  --accent-2: #ffc107; /* golden yellow */
  --muted: #ffe0b2; /* soft warm beige text */
  --glass: rgba(255, 160, 0, 0.08); /* glowing solar glass */
  --radius: 16px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: url(../Media/Space.cur), auto;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: #e9f2ff;
  background-color: var(--bg-800);
  line-height: 1.6;
}

/* -------- Background Layers -------- */
#vanta-bg,
#stars,
#halo,
#sun-particles,
#sun {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#vanta-bg {
  z-index: -5;
}

#stars {
  z-index: -4;
}

#halo {
  z-index: -3;
}

#sun-particles {
  z-index: -2;
}

#sun {
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------- Sun Globe -------- */
.globe {
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: url(../Media/sun.jpg);
  background-size: cover;
  animation: spin 80s linear infinite;
  position: relative;
  box-shadow: inset -40px 0 60px rgba(0, 0, 0, 0.5),
    0 0 150px rgba(255, 200, 0, 0.9),
    /* brighter golden glow */ 0 0 300px rgba(255, 120, 0, 0.6); /* deeper orange glow */
}

.globe::after {
  content: "";
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 0, 0.3), transparent 70%);
  z-index: -1;
}

@keyframes spin {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -200% 0;
  }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  color: #fff;
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid var(--accent-2);
}

p {
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.main-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(
    180deg,
    rgba(3, 4, 10, 0.7) 0%,
    rgba(3, 4, 10, 0) 100%
  );
}

.main-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand .logo-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
}

.header-brand .logo-icon i {
  font-size: 22px;
  color: var(--bg-900);
}

.header-brand .brand-text h1 {
  font-size: 1.2rem;
  margin: 0;
}

.main-nav-links a {
  padding: 8px 16px;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
}

.main-nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.planet-hero {
  min-height: 50vh;
  padding: 120px 0 60px;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: transparent;
}

.planet-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}

.planet-tag {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--bg-900);
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

.planet-hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #ff9800, #ffc107, #ff5722);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(255, 140, 0, 0.7);
  animation: shimmer 6s linear infinite;
}

.planet-tag {
  background: linear-gradient(135deg, #ff9800, #ffc107);
  color: #120600; /* dark contrast text */
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.7);
}

@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

.planet-info {
  padding: 40px 0 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.stat-card {
  background: var(--bg-900);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card .icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 12px;
}

.stat-card h3 {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: "Inter";
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
}

.structure-section {
  margin-bottom: 60px;
  padding: 24px;
  background: rgba(255, 200, 120, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(5px); /* ✅ subtle blur */
  -webkit-backdrop-filter: blur(5px); /* Safari support */
  box-shadow: 0 0 20px rgba(255, 183, 77, 0.15); /* warm glow */
}

.structure-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.structure-section p {
  color: var(--muted);
  max-width: 80ch;
  line-height: 1.7;
}

.structure-section p:last-child {
  margin-bottom: 0;
}

.discoveries-list {
  list-style: none;
  counter-reset: discoveries-counter;
}

.discovery-item {
  background: var(--bg-900);
  padding: 20px 24px 20px 70px;
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.discovery-item::before {
  content: counter(discoveries-counter);
  counter-increment: discoveries-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg-900);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
}

/* --------- Footer --------- */
.main-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(3, 4, 10, 0.5);
  text-align: center;
}

.main-footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mars scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff5722, #ff9800);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e64a19, #f57c00);
}
::-webkit-scrollbar-track {
  background: var(--bg-900);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #ff7043 var(--bg-900);
}

/* Mars text selection */
::selection {
  background: #ff7043;
  color: #ffffff;
}
::-moz-selection {
  background: #ff7043;
  color: #ffffff;
}

@media (max-width: 860px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-brand .brand-text h1 {
    font-size: 1rem;
  }

  .main-nav-links a {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
