/* ============================================================
   Sponers — Portfolio
   Toxic-green glow theme over a music-reactive WebGL background.
   --accent (toxic green), --accent-2 (spring green), --accent-3 (acid lime)
   ============================================================ */

:root {
  --bg: #030806;
  --bg-soft: #071209;
  --bg-card: rgba(6, 18, 10, 0.82);
  --line: #14351c;
  --text: #e6ffe9;
  --text-dim: #8fbf99;
  --accent: #39ff14;
  --accent-2: #00ff9d;
  --accent-3: #b8ff2e;
  --glow: rgba(57, 255, 20, 0.4);
  --radius: 14px;
  --nav-h: 64px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* fixed background: black-to-green shade with film-grain noise on top */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/></svg>") repeat,
    radial-gradient(ellipse 90% 70% at 75% 0%, rgba(57, 255, 20, 0.12), transparent 60%),
    radial-gradient(ellipse 80% 60% at 15% 100%, rgba(0, 255, 157, 0.08), transparent 65%),
    linear-gradient(180deg, #051408, #020603);
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #0c9422);
  color: #02120a;
  box-shadow: 0 0 24px var(--glow);
  animation: breatheGlow 3s ease-in-out infinite;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(57, 255, 20, 0.65); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 18px rgba(57, 255, 20, 0.25); }
.btn--small { padding: 0.45rem 1.1rem; font-size: 0.85rem; background: var(--accent); color: #02120a; box-shadow: 0 0 14px rgba(57, 255, 20, 0.3); }
.btn--small:hover { transform: translateY(-1px); }
.btn--small.btn--ghost { background: transparent; color: var(--text-dim); }
.btn--big { font-size: 1.1rem; padding: 0.9rem 2rem; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(3, 8, 6, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none !important;
}
.nav__logo { color: var(--accent-2); display: grid; place-items: center; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--accent-2) !important;
  border: 1px solid var(--accent-2);
  padding: 0.35rem 1rem;
  border-radius: 999px;
}
.nav__cta:hover { background: rgba(0, 255, 157, 0.1); box-shadow: 0 0 16px rgba(0, 255, 157, 0.3); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
}
.hero__inner { position: relative; max-width: 720px; }
.hero__kicker {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.6);
}
.hero__title {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(120deg, var(--text) 25%, var(--accent) 65%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 22px rgba(57, 255, 20, 0.45));
  animation: titleGlow 4s ease-in-out infinite;
}
@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(57, 255, 20, 0.35)); }
  50% { filter: drop-shadow(0 0 34px rgba(57, 255, 20, 0.6)); }
}
@keyframes breatheGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(57, 255, 20, 0.35); }
  50% { box-shadow: 0 0 34px rgba(57, 255, 20, 0.6); }
}
.hero__sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero__sub strong { color: var(--text); }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  font-size: 1.4rem;
  text-decoration: none !important;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ Sections ============ */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 2rem);
}
.section__head { margin-bottom: 2.5rem; }
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.section__num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.section__desc { color: var(--text-dim); margin-top: 0.5rem; max-width: 560px; }
.section__note { margin-top: 2rem; color: var(--text-dim); font-size: 0.95rem; }

/* ============ Music / Tracks ============ */

.tracks { display: grid; gap: 1rem; }

.track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #17181b;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.15rem 1.25rem 1rem;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.track:hover { border-color: rgba(57, 255, 20, 0.55); box-shadow: 0 0 24px rgba(57, 255, 20, 0.12); }

.track__progress {
  --progress: 0%;
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 4px;
  margin: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: linear-gradient(90deg, var(--accent) var(--progress), #45464b var(--progress));
  cursor: pointer;
}
.track__progress::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.6);
}
.track__progress::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

.track__controls { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }

.track__play,
.track__stop {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s ease, background 0.15s ease;
}
.track__play:hover,
.track__stop:hover { color: var(--accent); background: rgba(255, 255, 255, 0.06); }
.track__play .icon-pause { display: none; }
.track.is-playing .track__play .icon-play { display: none; }
.track.is-playing .track__play .icon-pause { display: block; }

.track__time {
  min-width: 78px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.track__art { width: 48px; height: 48px; border-radius: 3px; object-fit: cover; margin-left: 0.25rem; }

.track__info { min-width: 0; flex: 1; }
.track__name { font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__meta { color: var(--text-dim); font-size: 0.85rem; }

.track__volume {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-dim);
}
.track__volume-slider {
  --volume: 80%;
  width: 90px;
  height: 4px;
  appearance: none;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-2) var(--volume), #45464b var(--volume));
  cursor: pointer;
}
.track__volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
}
.track__volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
}

/* ============ Sample Packs ============ */

.subsection { margin-top: 4rem; }
.subsection__head { margin-bottom: 1.75rem; }
.subsection__title {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.subsection__title::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.packs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.pack {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pack:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 26px rgba(57, 255, 20, 0.15);
}
.pack__cover {
  height: 110px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.pack__cover--violet { background: linear-gradient(135deg, rgba(57, 255, 20, 0.22), var(--bg-soft)); color: var(--accent); }
.pack__cover--mint   { background: linear-gradient(135deg, rgba(0, 255, 157, 0.2), var(--bg-soft)); color: var(--accent-2); }
.pack__cover--pink   { background: linear-gradient(135deg, rgba(184, 255, 46, 0.2), var(--bg-soft)); color: var(--accent-3); }
.pack__body { padding: 1.25rem; }
.pack__name { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.35rem; }
.pack__desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 0.85rem; }
.pack__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ============ Art / Gallery ============ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease;
  background: var(--bg-card);
}
.gallery__item:hover,
.gallery__item:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  outline: none;
}
.gallery__item svg, .gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(10, 10, 16, 0.92));
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery__item:hover figcaption,
.gallery__item:focus-visible figcaption { opacity: 1; }
.gallery__item figcaption span { color: var(--text-dim); font-weight: 400; font-size: 0.8rem; }

/* ============ Lightbox ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 8, 5, 0.92);
  backdrop-filter: blur(8px);
  display: grid;
  place-content: center;
  gap: 1rem;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox__content svg, .lightbox__content img {
  max-width: min(80vw, 640px);
  max-height: 75vh;
  border-radius: var(--radius);
}
.lightbox__caption { text-align: center; color: var(--text-dim); }
.lightbox__close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}
.lightbox__close:hover { color: var(--accent-3); }

/* ============ Projects ============ */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.project {
  display: flex;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.project:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 26px rgba(57, 255, 20, 0.15);
}
.project__icon {
  color: var(--accent);
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.project__name { font-size: 1.15rem; font-weight: 800; margin: 0.4rem 0 0.35rem; }
.project__desc { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1rem; }
.project__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.project__links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.download-count {
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.tag--vst { color: var(--accent); border-color: var(--accent); }
.tag--web { color: var(--accent-2); border-color: var(--accent-2); }

/* ============ Contact ============ */

.section--contact { text-align: center; }
.contact__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.contact__desc { color: var(--text-dim); margin-bottom: 2rem; }
.contact__socials {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact__socials a { color: var(--text-dim); font-weight: 600; }
.contact__socials a:hover { color: var(--accent-2); }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ============ Mobile ============ */

@media (max-width: 680px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 1rem; border-top: 1px solid var(--line); }
  .nav__cta { border: none; border-radius: 0; }

  .track { flex-wrap: wrap; gap: 0.75rem; }
  .track__controls { order: 2; width: 100%; }
  .track__art { order: 0; margin-left: 0; }
  .track__info { order: 1; }
  .track__volume { order: 3; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
