@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/exo2-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/exo2-latin-italic.woff2") format("woff2");
}

:root {
  --navy-900: #040a1c;
  --navy-800: #060d22;
  --navy-700: #0b1838;
  --green: #5cff2e;
  --blue: #3ec5ff;
  --blue-deep: #1a5cff;
  --text: #f2f6ff;
  --muted: #9fb3d9;
  --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--navy-800);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Background: tech grid, neon glows and chevrons, all drawn in CSS */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, var(--navy-700) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 197, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 197, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
}

.bg__glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}

.bg__glow--green {
  background: radial-gradient(circle, var(--green) 0%, transparent 60%);
  left: -30vmax;
  bottom: -28vmax;
}

.bg__glow--blue {
  background: radial-gradient(circle, var(--blue-deep) 0%, transparent 60%);
  right: -30vmax;
  top: -25vmax;
  animation-delay: -9s;
}

.bg__chevrons {
  position: absolute;
  left: 24px;
  bottom: 28px;
  display: flex;
  gap: 6px;
  opacity: 0.5;
}

.bg__chevrons span {
  width: 18px;
  height: 26px;
  background: var(--blue);
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
}

.bg__chevrons span:nth-child(n + 3) {
  background: var(--green);
}

@keyframes drift {
  to {
    transform: translate(6vmax, -4vmax) scale(1.1);
  }
}

/* Layout */
.card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

.profile {
  text-align: center;
  margin-bottom: 28px;
}

.avatar {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 0deg, var(--green), var(--blue), var(--blue-deep), var(--green));
  box-shadow: 0 0 28px rgba(92, 255, 46, 0.35), 0 0 56px rgba(62, 197, 255, 0.25);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--navy-800);
  object-fit: cover;
}

.name {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.name span {
  color: var(--green);
  text-shadow: 0 0 18px rgba(92, 255, 46, 0.55);
}

.handle {
  margin: 4px 0 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}

.bio {
  margin: 10px 0 0;
  color: #c9d4ea;
  font-size: 1.2rem;
  text-wrap: balance;
}

/* Keep each platform name with its emoji so nothing is left alone on a line */
.bio span {
  white-space: nowrap;
}

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

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  background: linear-gradient(135deg, rgba(20, 40, 90, 0.72), rgba(8, 18, 44, 0.72));
  border: 1px solid rgba(62, 197, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(92, 255, 46, 0.4), 0 8px 26px rgba(92, 255, 46, 0.18);
  outline: none;
}

.link:active {
  transform: translateY(0);
}

.link__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--glyph, #fff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.link__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.link__label {
  flex: 1;
  text-align: center;
  padding-right: 30px;
}

.link__arrow {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.18s ease, transform 0.18s ease;
}

.link:hover .link__arrow,
.link:focus-visible .link__arrow {
  stroke: var(--green);
  transform: translate(2px, -2px);
}

/* Official brand colors (Simple Icons) */
.link--discord { --brand: #5865f2; }
.link--twitch { --brand: #9146ff; }
.link--kick { --brand: #53fc19; --glyph: #000; }
.link--tiktok { --brand: #000; }
.link--instagram { --brand: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.link--threads { --brand: #000; }
.link--youtube { --brand: #ff0000; }
.link--x { --brand: #000; }
.link--facebook { --brand: #0866ff; }

.footer {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (min-width: 640px) {
  .card {
    padding-top: 72px;
  }

  .avatar {
    width: 148px;
    height: 148px;
  }

  .name {
    font-size: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg__glow {
    animation: none;
  }

  .link,
  .link__arrow {
    transition: none;
  }
}
