:root {
  --bg-1: #0b1020;
  --bg-2: #101827;
  --card: rgba(15, 23, 42, 0.88);
  --card-border: rgba(148, 163, 184, 0.18);
  --text: #e5eefb;
  --muted: #c7d2fe;
  --shadow: rgba(15, 23, 42, 0.45);
  --github: #171717;
  --youtube: #ff0033;
  --twitch: #9146ff;
  --discord: #5865f2;
  --leetcode: #f59e0b;
  --osu: #ff4fa3;
  --osu-dark: #d92b7b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.2), transparent 25%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.page-shell {
  width: min(92vw, 900px);
  padding: 32px 16px;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: 0 26px 60px var(--shadow);
  backdrop-filter: blur(8px);
  padding: 40px 28px 30px;
  text-align: center;
}

.avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.4);
  display: block;
  margin: 0 auto 20px;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.bio {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--muted);
}

.socials {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.2);
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 25px rgba(15, 23, 42, 0.28);
}

.social-btn i {
  font-size: 1.18rem;
}

.social-btn span {
  white-space: nowrap;
}

.github {
  background: var(--github);
}

.youtube {
  background: var(--youtube);
}

.twitch {
  background: var(--twitch);
}

.discord {
  background: var(--discord);
}

.leetcode {
  background: #ffffff;
  color: #1d1d1f;
}

.osu {
  background: linear-gradient(135deg, var(--osu), var(--osu-dark));
}

.brand-mark {
  min-width: 2.25em;
  height: 2.25em;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  padding: 0;
  overflow: hidden;
}

.brand-mark i {
  font-size: 1.05rem;
  line-height: 1;
}

.brand-mark svg,
.brand-mark img {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.goals-section {
  margin-top: 36px;
  width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.goals-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.04em;
}

.goals-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 18px;
}

.years-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.year-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.year-btn:hover,
.year-btn:focus-visible {
  background: rgba(148, 163, 184, 0.14);
}

.year-btn.active {
  background: rgba(96, 165, 250, 0.2);
  border-color: rgba(96, 165, 250, 0.45);
}

.details-column {
  min-height: 160px;
}

.year-details {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.year-details a {
  color: inherit;
  text-decoration: underline;
}

.year-details li + li {
  margin-top: 6px;
}

@media (max-width: 560px) {
  .profile-card {
    padding: 28px 18px 22px;
  }

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

  .social-btn {
    width: 100%;
  }

  .goals-grid {
    grid-template-columns: 1fr;
  }

  .years-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
