:root {
  --bg-start: #03050b;
  --bg-end: #071225;
  --card-top: #1b2335;
  --card-bottom: #101726;
  --text-main: #f2fbff;
  --text-sub: #afc6e0;
  --text-regular: #d1d5db;
  --link: #dff6ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 209, 255, 0.2) 0%, rgba(0, 16, 24, 0) 58%),
    linear-gradient(135deg, var(--bg-start), var(--bg-end));
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    radial-gradient(100% 60% at 50% 10%, rgba(105, 230, 255, 0.17) 0%, rgba(11, 18, 32, 0) 90%),
    linear-gradient(160deg, var(--card-top) 0%, var(--card-bottom) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 20px 44px rgba(0, 26, 58, 0.6),
    0 0 26px rgba(0, 217, 255, 0.18),
    inset 0 1px 1px rgba(182, 246, 255, 0.35);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(94, 235, 255, 0.54), rgba(122, 92, 255, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.avatar-wrap {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(160deg, #7eebff, #7d7cff);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 18px rgba(69, 232, 255, 0.35);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0a0f1a;
}

.name {
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 5.2vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(180deg, #f2fbff, #cce8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(88, 223, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.subtitle {
  margin: 0;
  text-align: center;
  color: var(--text-sub);
  font-size: 16px;
}

.contacts {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  text-align: center;
  color: var(--text-regular);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts a { color: var(--link); text-decoration: none; }
.contacts a:hover { text-decoration: underline; }

.socials {
  width: 100%;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.social-btn {
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #f2f6ff;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.telegram { background: linear-gradient(180deg, #2a3344, #171c24); box-shadow: 0 4px 14px rgba(0,0,0,.34), 0 0 16px rgba(49,168,255,.3); }
.github { background: linear-gradient(180deg, #2c3444, #151a22); box-shadow: 0 4px 14px rgba(0,0,0,.34), 0 0 15px rgba(169,112,255,.24); }
.linkedin { background: linear-gradient(180deg, #28374a, #171e27); box-shadow: 0 4px 14px rgba(0,0,0,.34), 0 0 16px rgba(51,209,255,.27); }
.x { background: linear-gradient(180deg, #273143, #131820); box-shadow: 0 4px 14px rgba(0,0,0,.34), 0 0 14px rgba(143,167,255,.24); }

.social-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.social-btn:focus-visible { outline: 2px solid #7eebff; outline-offset: 2px; }

@media (max-width: 520px) {
  .card { padding: 22px; }
  .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
