/* =========================================
   THE GHOSTLIGHT · Vaporwave Minimal (Full)
   ========================================= */

/* Fonts: 80s-inspired header + modern, legible body/UI */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Inter:wght@400;600&family=Spectral+SC:wght@500&display=swap');

/* ---- Tokens ---- */
:root {
  --bg: #faf6ff;
  --bg-soft: #f7ebff;
  --text: #0a0014;
  --muted: #6e5a84;

  --accent: #ff71ce;   /* hot pink */
  --accent-2: #01cdfe; /* cyan */
  --accent-3: #b967ff; /* violet */
  --highlight: #05ffa1;/* mint */

  --ink: #1a1024;
  --rule: #cbb5e6;

  --outline: rgba(185, 103, 255, 0.6);
  --outline-hover: rgba(1, 205, 254, 0.7);
  --card-glow: rgba(185, 103, 255, 0.25);

  --font-title: "Audiowide", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --font-accent: "Spectral SC", serif;

  --title-size: clamp(2rem, 4vw, 3rem);
  --h2-size: clamp(1.1rem, 2.3vw, 1.4rem);

  --radius: 10px;
  --space: 24px;

  --grid-line: rgba(185,103,255,0.28);
  --grid-line-2: rgba(1,205,254,0.20);
  --sun-core: rgba(255,113,206,0.28);
  --sun-glow: rgba(45,226,230,0.16);
}

/* ---- Dark Mode ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0014;
    --bg-soft: #140021;
    --text: #fefaff;
    --muted: #b8a6cc;
    --ink: #efe7f6;
    --rule: #3b2a4f;

    --outline: rgba(185, 103, 255, 0.5);
    --outline-hover: rgba(1, 205, 254, 0.6);
    --card-glow: rgba(1, 205, 254, 0.18);

    --grid-line: rgba(185,103,255,0.38);
    --grid-line-2: rgba(1,205,254,0.24);
    --sun-core: rgba(255,139,211,0.22);
    --sun-glow: rgba(255,250,92,0.12);
  }
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at 50% 18%, var(--bg-soft) 0%, var(--bg) 92%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 960px; margin: 0 auto; padding: calc(var(--space)*1.2) var(--space); }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: .01em;
  margin: 1.6rem 0 .7rem;
}
h2 { font-size: var(--h2-size); color: var(--accent-3); }

hr {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 2rem 0;
}

/* =========================================
   Title
   ========================================= */
.site-title {
  display: flex; justify-content: center; align-items: center; gap: .4em;
  font-family: var(--font-title);
  font-size: var(--title-size);
  text-transform: lowercase;
  line-height: 1.1;
  margin: 0 0 .5rem 0;
  color: var(--accent-2);
  text-shadow:
    0 0 4px rgba(185,103,255,0.25),
    0 0 10px rgba(1,205,254,0.15);
}
.mirror {
  font-size: .8em;
  line-height: 1;
  position: relative;
  top: .03em;
  opacity: .9;
}
.title-text {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 50%, var(--accent-3) 100%);
  background-clip: text; -webkit-background-clip: text; color: transparent;
  animation: titleSheen 26s linear infinite;
}
@keyframes titleSheen {
  0% { filter: drop-shadow(0 0 2px rgba(185,103,255,.15)); }
  50% { filter: drop-shadow(0 0 3px rgba(1,205,254,.18)); }
  100% { filter: drop-shadow(0 0 2px rgba(255,113,206,.15)); }
}
.tagline {
  text-align: center;
  font-style: italic;
    font-family: var(--font-title);
  color: var(--muted);
  opacity: .9;
  margin-bottom: 1.6rem;
}
@media (prefers-reduced-motion: reduce) {
  .title-text { animation: none; filter: none; }
}

/* =========================================
   Social Links (pills)
   ========================================= */
.social-links {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: .9rem; margin: .8rem 0 2rem;
}
.social-links a {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--accent-2);
  background: var(--bg);
  padding: .5em .9em;
  border-radius: 999px;
  border: 1px solid var(--outline);
  box-shadow:
    0 0 4px var(--card-glow),
    0 1px 0 rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.social-links a:hover {
  background: var(--bg-soft);
  color: var(--accent);
  border-color: var(--outline-hover);
  box-shadow:
    0 0 6px var(--outline-hover),
    0 2px 6px rgba(0, 0, 0, 0.1);
}
.social-links a:active { transform: translateY(1px); }
.social-links a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* =========================================
   Card Grid (clickable cards with arrow)
   ========================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1rem;
  margin: 1rem 0 2.2rem;
}
.card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 6px var(--card-glow),
    0 2px 10px rgba(0,0,0,.06);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--outline-hover);
  box-shadow:
    0 0 10px var(--outline-hover),
    0 4px 16px rgba(0,0,0,.12);
}

/* =========================================
   Card Text (no glow or highlight on hover)
   ========================================= */

/* Reset any text glow within hovered cards */
.card:hover .card-title,
.card:hover .card-sub,
.card:hover .card-desc {
  color: inherit;
  text-shadow: none;
  filter: none;
}

/* Ensure nested links or spans don’t glow */
.card:hover a,
.card:hover span {
  text-shadow: none !important;
  filter: none !important;
}

.card:hover .card-sub {
    color: var(--muted);
  text-shadow: none;
}

.card:hover .card-desc {
  color: var(--text);
  text-shadow: none;
}

.card img {
  display: block; width: 100%; height: 220px; object-fit: cover; background: #000;
}
.card-body { padding: .9rem 1rem 1.1rem; }
.card-title {
  margin: .15rem 0 .25rem; font-size: 1.05rem; font-weight: 600; letter-spacing: .01em;
  color: var(--accent-3);
}
.card-sub { margin: 0 0 .6rem 0; color: var(--muted); font-size: .95rem; }
.card-desc {
  color: var(--text);
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}
.card:hover .card-desc { opacity: 1; }

/* Download arrow icon */
.card::after {
  content: "⤓";
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.25rem;
  color: var(--accent-2);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  pointer-events: none;
}
.card:hover::after {
  opacity: 1;
  transform: translateY(0);
  color: var(--accent);
}

/* =========================================
   Buttons (still usable elsewhere)
   ========================================= */
.btn {
  display: inline-block;
  padding: .5rem .9rem;
  border-radius: 8px;
  border: 1px solid var(--outline);
  background: var(--bg-soft);
  color: var(--accent-2);
  font-weight: 600; font-size: .94rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}
.btn:hover {
  background: #efe2ff;
  color: var(--accent);
  border-color: var(--outline-hover);
  box-shadow: 0 0 6px var(--outline-hover);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* =========================================
   About Section
   ========================================= */
#about { margin-top: 2.2rem; }
#about h2 { text-align: center; margin-bottom: 1rem; }
#about .quote {
  text-align: center; font-style: italic; opacity: .9; letter-spacing: .02em;
  margin-bottom: .5rem; font-family: var(--font-accent);
}
#about .divider {
  text-align: center; opacity: .8; font-family: var(--font-accent);
  letter-spacing: .05em; margin-bottom: 1.2rem; user-select: none;
}
#about .quote, #about .divider { animation: fadein 800ms ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

/* =========================================
   Footer
   ========================================= */
footer {
  text-align: center; color: var(--muted);
  margin-top: 2.4rem; padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-style: italic;
}

/* =========================================
   Horizon Grid & Sun
   ========================================= */
body::before {
  content: "";
  position: fixed; left: 50%; top: -14vmin;
  width: 58vmin; height: 58vmin; transform: translateX(-50%);
  pointer-events: none; z-index: -2;
  background: radial-gradient(ellipse at center,
    var(--sun-core) 0%,
    var(--sun-core) 40%,
    var(--sun-glow) 68%,
    transparent 72%);
  filter: blur(2px); opacity: .35;
}
body::after {
  content: "";
  position: fixed; left: 0; right: 0; bottom: -18vh; height: 60vh;
  pointer-events: none; z-index: -2;
  background-image:
    linear-gradient(to top, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.18) 60%, transparent 100%),
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(to top, var(--grid-line-2) 0 1px, transparent 1px 52px);
  background-size: 100% 100%, 52px 100%, 100% 52px;
  transform: perspective(700px) rotateX(63deg);
  transform-origin: bottom center;
  opacity: .28;
  animation: gridPan 24s linear infinite;
  will-change: background-position;
}
@keyframes gridPan {
  0% { background-position: 0 0,0 0,0 0;}
  100%{ background-position:0 0,0 0,0 -520px;}
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* =========================================
   Global Links
   ========================================= */
a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
a:hover, a:focus {
  color: var(--accent);
}
a:visited { color: var(--accent-3); }
a:active { color: var(--highlight); }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 640px) {
  .container { padding: 20px; }
  .card img { height: 200px; }
  .social-links { gap: .7rem; }
}
