:root {
  --color-bg: #ffffff;
  --color-surface: #f6f8fa;
  --color-text: #1f2328;
  --color-text-muted: #656d76;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --font-sans: "Inter", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--color-accent);
}

/* ---------- Sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}

.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section__title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section__desc {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 48px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 64px 24px;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(600px 300px at 80% 90%, rgba(99, 102, 241, 0.06), transparent 60%);
}

.hero__inner {
  max-width: 720px;
  text-align: center;
}

.hero__avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.hero__greeting {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.hero__name {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #2563eb, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__role {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero__bio {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ---------- Skills ---------- */
.skills {
  background: var(--color-surface);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.skill-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(24px);
}

.skill-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.skill-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--c);
  margin-bottom: 18px;
}

.skill-card__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.skill-card__detail {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.skill-card__bar {
  height: 6px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.skill-card__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), #6366f1);
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card__level {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: right;
}

.skills__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  cursor: default;
}

.tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* ---------- Contact ---------- */
.contact__methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.contact__card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.contact__card-icon {
  font-size: 28px;
  color: var(--color-accent);
}

.contact__card-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact__card-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  word-break: break-all;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer__heart {
  color: #ef4444;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__inner > * {
  animation: fadeUp 0.7s ease both;
}

.hero__inner > *:nth-child(2) {
  animation-delay: 0.1s;
}

.hero__inner > *:nth-child(3) {
  animation-delay: 0.2s;
}

.hero__inner > *:nth-child(4) {
  animation-delay: 0.3s;
}

.hero__inner > *:nth-child(5) {
  animation-delay: 0.4s;
}

.hero__inner > *:nth-child(6) {
  animation-delay: 0.5s;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav__links {
    gap: 18px;
  }

  .nav__cta {
    display: none;
  }

  .hero__name {
    font-size: 40px;
  }

  .section {
    padding: 64px 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
}
