/*
 * Acidwoody links page theme.
 * Replaces the LittleLink skeleton/brands styles (those files are kept in the repo but no longer loaded).
 */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/unbounded-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #07080a;
  --ink: #f2f5ee;
  --muted: #9ca59b;
  --acid: #c8ff2e;
  --violet: #7a3cff;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --display: "Unbounded", "Open Sans", system-ui, sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Backdrop: two colour glows and a faint studio grid that fades out downwards */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 45vmax at 50% -10%, rgba(200, 255, 46, 0.2), transparent 60%),
    radial-gradient(50vmax 50vmax at 105% 105%, rgba(122, 60, 255, 0.28), transparent 60%),
    radial-gradient(40vmax 40vmax at -10% 70%, rgba(200, 255, 46, 0.07), transparent 60%),
    var(--bg);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
}

.page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}

/* Hero
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.hero {
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto 28px;
}
/* spinning acid ring */
.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--acid), var(--violet), #00e5ff, var(--acid));
  animation: spin 9s linear infinite;
  filter: drop-shadow(0 0 18px rgba(200, 255, 46, 0.45));
}
.avatar {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: #000;
  object-fit: cover;
}
/* sound waves radiating from the avatar */
.pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--acid);
  opacity: 0;
  animation: pulse 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.pulse:nth-child(2) { animation-delay: 1.2s; }
.pulse:nth-child(3) { animation-delay: 2.4s; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 10.5vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
h1 .acid {
  color: var(--acid);
  text-shadow: 0 0 28px rgba(200, 255, 46, 0.55);
}

/* animated equaliser under the name */
.eq {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 44px;
  margin: 18px auto 20px;
}
.eq span {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to top, var(--violet), var(--acid));
  transform: scaleY(0.2);
  animation: eq 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.37s);
}
.eq span:nth-child(3n) { animation-duration: 0.8s; }
.eq span:nth-child(4n + 1) { animation-duration: 1.45s; }
.eq span:nth-child(5n + 2) { animation-duration: 0.65s; }

.roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.roles li {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.roles li.hl {
  border-color: rgba(200, 255, 46, 0.5);
  color: var(--acid);
}

/* Link sections
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.filters[hidden],
.group[hidden],
.links li[hidden] {
  display: none;
}
.filters button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filters button:hover {
  border-color: var(--acid);
}
.filters button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
.filters button[aria-pressed="true"] {
  background: var(--acid);
  border-color: var(--acid);
  color: #0a0c06;
  box-shadow: 0 0 24px -6px var(--acid);
}

.section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 44px 0 16px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.section::before,
.section::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.section::after {
  background: linear-gradient(90deg, var(--line), transparent);
}

.links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link {
  --c: var(--acid);
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
/* brand-coloured wash that slides in on hover */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--c), transparent 70%);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.link > * {
  position: relative;
}
.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--c);
  box-shadow: 0 14px 40px -18px var(--c), 0 0 0 1px var(--c) inset;
}
.link:hover::before,
.link:focus-visible::before {
  opacity: 0.16;
}
.link:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
.link:active {
  transform: translateY(0) scale(0.99);
}

.label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.tag {
  padding: 3px 8px 2px;
  border: 1px solid rgba(182, 156, 255, 0.55);
  border-radius: 6px;
  background: rgba(122, 60, 255, 0.22);
  color: #cdbcff;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  background: color-mix(in srgb, var(--c) 20%, #0c0d10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
}
.badge img {
  display: block;
  width: 22px;
  height: 22px;
}

.arrow {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
}
.link:hover .arrow,
.link:focus-visible .arrow {
  transform: translate(3px, -3px);
  color: var(--c);
}

/* brand colours */
.yt { --c: #ff2a3d; }
.bandcamp { --c: #25b6dc; }
.beatstars { --c: #f52626; }
.tiktok { --c: #25f4ee; }
.tiktok-alt { --c: #fe2c55; }
.fiverr { --c: #1dbf73; }
.upwork { --c: #4fd630; }
.linkedin { --c: #3d8fe6; }
.github { --c: #d7dde4; }
.ig-home { --c: #c8ff2e; }
.play { --c: #34a853; }
.instagram { --c: #f0357f; }

/* Wide screens: name on the left, links on the right
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (min-width: 1000px) {
  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 72px;
    align-items: start;
    max-width: 1040px;
    padding: 72px 32px 96px;
  }
  .hero {
    position: sticky;
    top: 0;
    min-height: 100vh;
    margin: -72px 0 -96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .avatar-wrap {
    width: 168px;
    height: 168px;
  }
  h1 {
    font-size: clamp(42px, 4.6vw, 52px);
  }
  .eq {
    height: 56px;
  }
  .filters {
    justify-content: flex-start;
    margin-top: 0;
  }
  .section {
    margin-top: 32px;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes eq {
  from { transform: scaleY(0.15); }
  to { transform: scaleY(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-wrap::before,
  .pulse,
  .eq span,
  .link {
    animation: none;
  }
  .eq span:nth-child(odd) { transform: scaleY(0.7); }
  .eq span:nth-child(3n) { transform: scaleY(0.4); }
  .eq span:nth-child(4n) { transform: scaleY(1); }
  .link,
  .arrow,
  .filters button {
    transition: none;
  }
}
