/* ===== Base / Variables ======================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-main: #050509;
  --bg-alt: #101018;
  --bg-card: #151521;
  --accent: #5df0ff;
  --accent-soft: rgba(93, 240, 255, 0.18);
  --text-main: #f5f5ff;
  --text-muted: #a0a0c0;
  --border-subtle: #26263a;
  --danger: #ff4b6f;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* ===== Global layout + trippy background ====================== */

body.theme-dark {
  margin: 0;
  padding-top: 72px; /* space for fixed header */
  font-family: var(--font-sans);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #02030a;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(53, 255, 229, 0.18), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(255, 94, 154, 0.20), transparent 55%),
    radial-gradient(circle at 60% 20%, rgba(118, 143, 255, 0.16), transparent 55%),
    radial-gradient(circle at 50% 50%, #02030a 0, #000000 70%);
  background-size:
    170% 170%,
    170% 170%,
    200% 200%,
    100% 100%;
  background-position: 0% 0%, 100% 100%, 50% 50%, 50% 50%;
  animation: bgDrift 40s ease-in-out infinite alternate;
}

/* moving spiral light layers */
body.theme-dark::before,
body.theme-dark::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.32;
  filter: blur(6px);
  z-index: 0;
}

body.theme-dark::before {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(53, 255, 229, 0.24) 70deg,
    transparent 130deg,
    rgba(255, 94, 154, 0.18) 210deg,
    transparent 1turn
  );
  animation: spiralSweep 45s linear infinite;
}

body.theme-dark::after {
  background: conic-gradient(
    from 180deg,
    transparent 0deg,
    rgba(118, 143, 255, 0.24) 80deg,
    transparent 150deg,
    rgba(53, 255, 229, 0.18) 230deg,
    transparent 1turn
  );
  animation: spiralSweepReverse 60s linear infinite;
}

@keyframes bgDrift {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 40%, 50% 50%;
  }
  50% {
    background-position: 20% 10%, 80% 90%, 45% 60%, 50% 50%;
  }
  100% {
    background-position: 0% 20%, 100% 80%, 55% 45%, 50% 50%;
  }
}

@keyframes spiralSweep {
  0%   { transform: rotate(0deg) scale(1.05); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1.05); }
}

@keyframes spiralSweepReverse {
  0%   { transform: rotate(360deg) scale(1.1); }
  50%  { transform: rotate(180deg) scale(1.03); }
  100% { transform: rotate(0deg) scale(1.1); }
}

/* content should sit above background layers */
.landing,
.map-page,
.gallery-main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ===== Header / Nav ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  padding: 0 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(1, 5, 12, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* animated glow line under header */
.site-header::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #35ffe5, #ff5e9a, #35ffe5);
  opacity: 0.5;
  filter: blur(0.5px);
  transform-origin: left;
  animation: headerPulse 18s ease-in-out infinite alternate;
}

@keyframes headerPulse {
  0%   { transform: translateX(-4%) scaleX(1.05); opacity: 0.35; }
  50%  { transform: translateX(0)   scaleX(1.0);  opacity: 0.6;  }
  100% { transform: translateX(4%)  scaleX(1.05); opacity: 0.35; }
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #89f5ff;
}

.nav-links a {
  font-size: 0.86rem;
  margin-left: 1.75rem;
  text-decoration: none;
  color: #f3f4ff;
  opacity: 0.8;
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #35ffe5, #ff5e9a);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== Landing (Home) ======================================== */

.landing {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
}

.landing-inner {
  max-width: 720px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  border-radius: 28px;
  padding: 2.4rem 2.1rem;
  background:
    radial-gradient(circle at top left, rgba(93, 240, 255, 0.13), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 75, 111, 0.12), transparent 55%),
    linear-gradient(135deg, #090914, #050509);
  border: 1px solid rgba(93, 240, 255, 0.18);
}

.landing-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.landing-title {
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0 0 0.9rem;
}

.landing-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #021015;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(93, 240, 255, 0.45);
  transition:
    transform 0.1s ease-out,
    box-shadow 0.1s ease-out,
    filter 0.1s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 40px rgba(93, 240, 255, 0.6);
}

/* ===== Footer ================================================ */

.site-footer {
  padding: 0.7rem 1.2rem 1rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

/* ===== Map Page ============================================== */

.map-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.map-container {
  flex: 1;
  padding: 1rem;
}

#map {
  width: 100%;
  height: calc(100vh - 170px);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.map-actions {
  padding: 0 1rem 1.5rem;
  display: flex;
  justify-content: center;
}

.btn-secondary {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== Gallery (Hubs) ======================================== */

.gallery-main {
  flex: 1;
  padding: 1.2rem 1rem 1.8rem;
}

.gallery-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 1.2rem;
}

.filters {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.filters h2 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.filters p {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-chip {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  padding: 0.15rem 0.6rem;
  background: rgba(15, 15, 25, 0.9);
  color: var(--text-muted);
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Hub list + cards */

.hub-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.hub {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
  scroll-margin-top: 100px;
  position: relative;
  cursor: default;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

/* expanded hub on click */
.hub--expanded {
  transform: scale(1.02);
  background:
    radial-gradient(circle at top left, rgba(93, 240, 255, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 94, 154, 0.14), transparent 55%),
    var(--bg-card);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(93, 240, 255, 0.6),
    0 24px 60px rgba(93, 240, 255, 0.45);
}

.hub.highlight {
  box-shadow:
    0 0 0 1px var(--accent),
    0 22px 50px rgba(93, 240, 255, 0.4);
}

/* if highlighted AND expanded, keep it strong */
.hub.highlight.hub--expanded {
  box-shadow:
    0 0 0 1px var(--accent),
    0 28px 70px rgba(93, 240, 255, 0.6);
}

.hub-header {
  display: flex;
  gap: 0.75rem;
}

.hub img {
  width: 130px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.hub-main {
  flex: 1;
}

.hub-main h2 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}

.hub-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.hub-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

.hub-tag--night {
  border-color: var(--accent);
  color: var(--accent);
}

.hub-tag--art {
  border-color: #ffb347;
  color: #ffb347;
}

.hub-tag--community {
  border-color: #9aff7d;
  color: #9aff7d;
}

.hub-tag--diaspora {
  border-color: #ff4b6f;
  color: #ff4b6f;
}

.hub-body {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hub-links {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hub-links a {
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px dotted rgba(93, 240, 255, 0.7);
}

/* Archived hubs styling (Archive page) */
.hub--archived {
  opacity: 0.96;
  background:
    radial-gradient(circle at top left, rgba(255, 94, 154, 0.09), transparent 60%),
    var(--bg-card);
  border-style: dashed;
}

/* ===== About page cards ======================================= */

.about-page {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.about-card {
  position: relative;
  padding: 1.75rem 2rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(70, 255, 230, 0.06), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 94, 154, 0.08), transparent 55%),
    rgba(4, 8, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% -20%, rgba(53, 255, 229, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

.about-card h1,
.about-card h2 {
  position: relative;
  margin-bottom: 0.75rem;
}

.about-card p,
.about-card ul {
  position: relative;
  margin-bottom: 0.65rem;
}

.about-card ul {
  padding-left: 1.2rem;
}

.about-card--intro {
  margin-top: 0.5rem;
}

.about-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

/* ===== Responsive ============================================= */

/* ===== Image Lightbox (zoom on click) ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.75), rgba(0,0,0,0.95));
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 960px);
  max-height: min(80vh, 640px);
  margin: 0;
  padding: 1rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(93, 240, 255, 0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(255, 94, 154, 0.2), transparent 60%),
    #050509;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 901;
}

#lightbox-img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: contain;
}

#lightbox-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* cursor change on zoomable images */
.hub img {
  cursor: zoom-in;
}


@media (max-width: 840px) {
  .site-header {
    padding: 0 1.5rem;
  }

  .gallery-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .landing-inner {
    padding: 1.8rem 1.4rem;
  }

  .hub-header {
    flex-direction: column;
  }

  .hub img {
    width: 100%;
    height: 160px;
  }

  #map {
    height: calc(100vh - 210px);
  }

  .about-card {
    padding: 1.5rem 1.4rem;
    border-radius: 18px;
  }

  .nav-links a {
    margin-left: 1rem;
  }
}
.audio-toggle {
  margin-left: 1.5rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 232, 255, 0.7);
  background: rgba(4, 10, 20, 0.9);
  color: #e5f9ff;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.audio-toggle.muted {
  opacity: 0.6;
  border-style: dashed;
}


