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

:root {
  --c1: #7971ff;
  --c2: #ff65c4;
  --c3: #5cd8e4;
  --glass: rgba(255, 255, 255, 0.07);
  --glass2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 20px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  --ring: rgba(255, 255, 255, 0.16);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1200px 520px at 20% 15%, rgba(121, 113, 255, 0.18), transparent 62%),
    radial-gradient(900px 520px at 90% 0%, rgba(92, 216, 228, 0.12), transparent 62%),
    radial-gradient(1000px 720px at 50% 100%, rgba(255, 101, 196, 0.09), transparent 60%),
    radial-gradient(circle at 30% 80%, #140f32 0%, #0c0a1a 70%);
  min-height: 100vh;
  color: #fff;
  padding: 64px 20px;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

::selection {
  background: rgba(121, 113, 255, 0.32);
  color: #fff;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(900px 520px at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) + 6px);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(121, 113, 255, 0.55),
    rgba(92, 216, 228, 0.34),
    rgba(255, 101, 196, 0.42)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 10;
  max-width: 700px;
  width: 100%;
  padding: 34px 26px 26px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--c1), var(--c2));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.avatar::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 55%);
  filter: blur(10px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(#fff0, #fff3, #fff0);
  animation: spin 6s linear infinite;
  opacity: 0.22;
  z-index: 1;
}

@keyframes spin {
  100% {
    transform: rotate(1turn);
  }
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  display: block;
}

.avatar__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 46px;
  z-index: 0;
}

h1 {
  font-size: 36px;
  font-weight: 760;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  color: transparent;
  animation: flow 4s linear infinite;
  margin-bottom: 10px;
}

@keyframes flow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.bio {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  text-wrap: balance;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 26px;
}

.btn {
  position: relative;
  overflow: hidden;
  padding: 16px 8px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.btn::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 70%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(18deg);
  opacity: 0;
  transition: opacity 220ms ease, transform 420ms ease;
  pointer-events: none;
}

.btn i {
  opacity: 0.92;
  transform: translateY(0.5px);
}

.btn:hover {
  transform: translateY(-3px);
  background: var(--glass2);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.btn:hover::before {
  opacity: 1;
  transform: translateX(180%) rotate(18deg);
}

.btn:active {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(121, 113, 255, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.social a {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.social a:hover {
  color: var(--c1);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ring);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.social a:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow:
    0 0 0 4px rgba(121, 113, 255, 0.18),
    0 12px 26px rgba(0, 0, 0, 0.26);
}

.footer {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 600px) {
  body {
    padding-top: 44px;
  }
  .container {
    padding: 28px 18px 22px;
  }
  .links {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .container,
  .avatar::before,
  h1 {
    animation: none;
  }
  .btn::before {
    display: none;
  }
  .btn {
    transition: none;
  }
  .social a {
    transition: none;
  }
}
