* {
  box-sizing: border-box;
}

:root {
  --text: #edf2ee;
  --green: #b7d9bd;
  --green-bright: #c8e8ce;
  --card: rgba(10, 18, 13, 0.54);
  --card-hover: rgba(19, 29, 22, 0.68);
  --border: rgba(218, 232, 220, 0.17);
  --border-hover: rgba(218, 232, 220, 0.29);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #07100b;
  color: var(--text);
  font-family: Inter, sans-serif;
}

.background {
  position: fixed;
  inset: -3%;
  z-index: -4;
  background-image: url("assets/background.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.72) saturate(0.78);
  transform: scale(1.03);
}

.background-tint {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(
      180deg,
      rgba(4, 9, 6, 0.16),
      rgba(4, 10, 6, 0.44)
    );
}

#ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page {
  min-height: 100vh;
  padding: 35px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.profile-card {
  position: relative;
  width: min(100%, 570px);
  padding: 42px 27px 27px;
  border: 1px solid var(--border);
  border-radius: 27px;
  background: var(--card);
  backdrop-filter: blur(13px) saturate(115%);
  -webkit-backdrop-filter: blur(13px) saturate(115%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transform-style: preserve-3d;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.profile-card:hover {
  border-color: rgba(218, 232, 220, 0.23);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(183, 217, 189, 0.075),
      transparent 30%
    );
}

.profile {
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 126px;
  height: 126px;
  margin: 0 auto 20px;
}

.avatar {
  width: 126px;
  height: 126px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(238, 244, 239, 0.72);
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.18),
    0 15px 35px rgba(0, 0, 0, 0.4);
}

.online {
  position: absolute;
  right: 2px;
  bottom: 5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 3px solid #17221a;
  background: #a9e4b1;
  box-shadow: 0 0 15px rgba(169, 228, 177, 0.3);
}

.name {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.name h1 {
  margin: 0;
  font-size: 43px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2.5px;
}

.verified {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dceade;
  color: #26342a;
}

.verified svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 31px;
}

.link {
  position: relative;
  min-height: 70px;
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  align-items: center;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(218, 232, 220, 0.12);
  border-radius: 17px;
  background: rgba(15, 23, 18, 0.62);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(220, 240, 223, 0.055),
    transparent
  );
  transition: left 0.65s ease;
}

.link:hover {
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: var(--border-hover);
}

.link:hover::before {
  left: 130%;
}

.link-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.link-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.github .link-icon {
  color: #edf3ee;
}

.telegram .link-icon {
  color: #82c8df;
  background: rgba(73, 158, 190, 0.09);
}

.discord .link-icon {
  color: #aaa1d9;
  background: rgba(108, 91, 164, 0.09);
}

.link-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.link-arrow {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: rgba(238, 244, 239, 0.45);
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.link:hover .link-arrow {
  transform: translateX(2px);
  color: var(--green-bright);
  border-color: rgba(183, 217, 189, 0.2);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.social {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: rgba(239, 244, 240, 0.62);
  background: rgba(12, 20, 15, 0.58);
  border: 1px solid rgba(218, 232, 220, 0.1);
  border-radius: 12px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.social:hover {
  transform: translateY(-2px);
  color: #f1f5f2;
  background: rgba(30, 42, 33, 0.72);
}

.social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .page {
    padding: 18px 11px;
  }

  .profile-card {
    padding: 34px 15px 23px;
    border-radius: 24px;
  }

  .avatar-wrap,
  .avatar {
    width: 112px;
    height: 112px;
  }

  .name h1 {
    font-size: 38px;
  }

  .link {
    min-height: 66px;
    grid-template-columns: 46px 1fr 38px;
  }

  .link-icon {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .link,
  .social {
    transition: none;
  }
}
