/* -------------------------------------------------
   Dark‑theme additive stylesheet – Galaxy Reboot
   -------------------------------------------------
   • Works when the file is loaded **after** the original CSS.
   • You only need to add a `<link>` tag and, optionally,
     the `dark-theme` class on <body> (adds no deletions).
   ------------------------------------------------- */

/* 1️⃣ Activate the theme – add a class to <body> (or
    rely on the selector below if you cannot edit HTML). */
body.dark-theme,
body[data-theme="dark"] {
  /* --- CSS custom properties (override defaults) --- */
  --color-primary:   #7F3FBF;   /* violet from logo   */
  --color-accent:    #00FFFF;   /* cyan   */
  --color-bg-1:      #0A0A0A;   /* deepest dark */
  --color-bg-2:      #121212;
  --color-bg-3:      #1A1A1A;
  --color-bg-4:      #242424;
  --color-text:      #E0E0E0;
  --color-muted:     #777777;

  /* --- Background: animated multi‑tone gradient --- */
  background: linear-gradient(
      135deg,
      var(--color-bg-1) 0%,
      var(--color-bg-2) 30%,
      var(--color-primary) 55%,
      var(--color-accent) 75%,
      var(--color-bg-3) 90%,
      var(--color-bg-1) 100%
    );
  background-size: 300% 300%;
  animation: dgShift 30s ease infinite;
  color: var(--color-text) !important;
}

/* Gradient animation */
@keyframes dgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Optional subtle star‑field overlay (pure CSS) */
body.dark-theme::before,
body[data-theme="dark"]::before {
  content:"";
  position:fixed; inset:0; pointer-events:none;
  background:transparent url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2">\
  <circle cx="1" cy="1" r="1" fill="%23fff" fill-opacity="0.07"/>\
</svg>') repeat;
  opacity:0.12;
}

/* -------------------------------------------------
   2️⃣ Overrides for common elements (no deletions)
   ------------------------------------------------- */

/* Links – cyan accent */
body.dark-theme a,
body[data-theme="dark"] a { color: var(--color-accent) !important; }
body.dark-theme a:hover,
body[data-theme="dark"] a:hover { color:#00e5e5 !important; }

/* Buttons / CTA – use accent background */
body.dark-theme button,
body[data-theme="dark"] button,
body.dark-theme .cta,
body[data-theme="dark"] .cta {
  background: var(--color-accent) !important;
  color: var(--color-bg-1) !important;
  border:none !important;
  border-radius:0.5rem !important;
  padding:0.75rem 1.5rem !important;
  font-weight:600 !important;
  cursor:pointer !important;
  transition:transform .2s, background .2s, box-shadow .2s !important;
}
body.dark-theme button:hover,
body[data-theme="dark"] button:hover,
body.dark-theme .cta:hover,
body[data-theme="dark"] .cta:hover {
  transform:scale(1.05) !important;
  background:#00e5e5 !important;
  box-shadow:0 4px 12px rgba(0,255,255,0.4) !important;
}

/* Header – keep violet background, ensure text stays light */
body.dark-theme header,
body[data-theme="dark"] header {
  background: var(--color-primary) !important;
  color: var(--color-bg-1) !important;
}

/* Feature cards – dark surface with hover highlight */
body.dark-theme .feature-card,
body[data-theme="dark"] .feature-card {
  background: var(--color-bg-3) !important;
  border-radius:0.5rem !important;
  padding:1.5rem !important;
  transition:transform .2s, box-shadow .2s, background .2s !important;
}
body.dark-theme .feature-card:hover,
body[data-theme="dark"] .feature-card:hover {
  transform:translateY(-4px) !important;
  box-shadow:0 8px 20px rgba(0,0,0,0.4) !important;
  background: var(--color-bg-4) !important;
}
body.dark-theme .feature-card h3,
body[data-theme="dark"] .feature-card h3 {
  color: var(--color-primary) !important;
}

/* Footer – dark surface, cyan links */
body.dark-theme footer,
body[data-theme="dark"] footer {
  background: var(--color-bg-3) !important;
  color: var(--color-muted) !important;
}
body.dark-theme footer a,
body[data-theme="dark"] footer a {
  color: var(--color-accent) !important;
}
body.dark-theme footer a:hover,
body[data-theme="dark"] footer a:hover {
  color:#00e5e5 !important;
}

/* -------------------------------------------------
   3️⃣ Simple scroll‑in animation (no HTML changes)
   ------------------------------------------------- */
[data-fade] {
  opacity:0;
  transform:translateY(20px);
  transition:opacity .6s ease-out, transform .6s ease-out !important;
}
[data-fade].visible {
  opacity:1;
  transform:none !important;
}

/* -------------------------------------------------
   How to add the snippet (no deletions, only additions)
   ------------------------------------------------- */

/* 1️⃣ Create the file */
   /* Save the CSS block above as */   assets/dark-theme-add.css

/* 2️⃣ Add a single <link> after the existing stylesheet(s) */
   <!-- Example (append at the bottom of <head>) -->
   <link rel="stylesheet" href="assets/dark-theme-add.css">

/* 3️⃣ Activate the theme – add ONE of the following (both are pure additions) */
   • Add class="dark-theme" to the <body> tag, **or**
   • Add a data attribute: <body data-theme="dark">
   (Both are just attribute additions – no existing code is removed.)

/* 4️⃣ Refresh – the site now displays the interactive dark theme
   while keeping all original markup and functionality intact. */
