:root {
  color-scheme: light;
  --ink: #141315;
  --muted: #6a6572;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --line: #dfd6eb;
  --accent: #7057d2;
  --accent-soft: #f0eafe;
  --shadow: 0 24px 70px rgba(60, 47, 89, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f6f0fb;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

::selection {
  background: #d9ceff;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
}

body::before {
  background:
    radial-gradient(circle at 22% 18%, rgba(112, 87, 210, 0.2), transparent 30%),
    radial-gradient(circle at 78% 72%, rgba(39, 165, 138, 0.16), transparent 28%),
    linear-gradient(145deg, #f6f0fb, #ffffff 52%, #ebf7f4);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 240, 251, 0.9), rgba(246, 240, 251, 0.68)),
    repeating-linear-gradient(90deg, rgba(20, 19, 21, 0.035) 0 1px, transparent 1px 78px);
  backdrop-filter: blur(22px) saturate(0.95);
}

.landing {
  display: grid;
  min-height: 100vh;
  width: 100%;
  place-items: center;
  padding: 32px 20px;
}

.profile-panel {
  width: min(100%, 420px);
  padding: 36px 24px 26px;
  border: 1px solid rgba(223, 214, 235, 0.82);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fade-up 0.55s ease 0.04s both;
}

.avatar-button {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  cursor: pointer;
  place-items: center;
  transition:
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-button:hover {
  border-color: #bdaef0;
  box-shadow: 0 12px 28px rgba(112, 87, 210, 0.2);
  transform: translateY(-2px);
}

.avatar-button:focus-visible,
.link-button:focus-visible {
  outline: 3px solid rgba(112, 87, 210, 0.34);
  outline-offset: 4px;
}

.avatar-button.is-popping {
  animation: avatar-pop 0.48s ease;
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  display: none;
  max-width: min(220px, 78vw);
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.bubble::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 7px solid var(--ink);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
  transform: translateX(-50%);
}

.bubble.is-visible {
  display: block;
  animation: bubble-pop 1.8s ease-out forwards;
}

.identity {
  text-align: center;
}

.identity h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.identity p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.social-link {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  place-items: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease,
    color 160ms ease,
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
  border-color: #c8baf0;
  background: var(--accent-soft);
  box-shadow: 0 10px 22px rgba(112, 87, 210, 0.14);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 3px solid rgba(112, 87, 210, 0.34);
  outline-offset: 4px;
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 48px;
}

.link-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease,
    color 160ms ease,
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fade-up 0.55s ease both;
}

.link-button:nth-child(1) {
  animation-delay: 0.14s;
}

.link-button:nth-child(2) {
  animation-delay: 0.23s;
}

.link-button:nth-child(3) {
  animation-delay: 0.32s;
}

.link-button:hover {
  border-color: #c8baf0;
  background: var(--accent-soft);
  box-shadow: 0 12px 28px rgba(112, 87, 210, 0.16);
  transform: translateY(-3px);
}

.link-button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.link-button-primary:hover {
  border-color: #2a272f;
  background: #2a272f;
  box-shadow: 0 12px 28px rgba(20, 19, 21, 0.24);
}

.link-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.link-button .github-icon {
  fill: currentColor;
  stroke: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes bubble-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.65);
  }

  55% {
    opacity: 1;
    transform: translate(-50%, -3px) scale(1.04);
  }

  88% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -4px) scale(0.96);
  }
}

@keyframes avatar-pop {
  0%,
  100% {
    transform: scale(1);
  }

  35% {
    transform: scale(0.9);
  }

  65% {
    transform: scale(1.07);
  }
}

@media (max-width: 480px) {
  .landing {
    align-items: center;
    padding: 22px 16px;
  }

  .profile-panel {
    padding: 32px 18px 22px;
  }

  .link-list {
    margin-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
