:root {
  color-scheme: dark;
  font-family: 'Space Grotesk', 'Noto Sans SC', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #05060a;
  --card: rgba(16, 18, 27, 0.78);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent: #6df3ff;
  --accent-strong: #4be3c8;
  --text: #eef4ff;
  --muted: #98a2b3;
  --divider: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top, #0f1829, var(--bg));
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.background-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 20%, rgba(100, 255, 218, 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(111, 154, 255, 0.18), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255, 118, 189, 0.15), transparent 40%);
  filter: blur(80px);
  opacity: 0.9;
  pointer-events: none;
}

.resume-shell {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero {
  padding: 2.5rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(14, 23, 45, 0.9), rgba(22, 32, 52, 0.75));
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.hero__tag {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0;
}

.hero__location {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: var(--text);
}

.section-card {
  padding: 2rem;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 1.4rem;
}

.divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-content {
  display: grid;
  gap: 0.75rem;
}

.section-content p {
  margin: 0;
  color: var(--muted);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.skill-chip {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.timeline article,
.timeline-item {
  padding: 1.2rem 1.4rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.timeline article h3,
.timeline-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.timeline article p,
.timeline-item p {
  margin: 0.45rem 0;
  color: var(--muted);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0.35rem 0 0.1rem;
}

.tech-stack__label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.tech-stack__chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #04101b;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid transparent;
}

.tech-stack__chip--express,
.skill-chip--express {
  background: linear-gradient(135deg, #f9d423, #ff4e50);
  border-color: rgba(255, 255, 255, 0.15);
}

.tech-stack__chip--react,
.skill-chip--react {
  background: linear-gradient(135deg, #00d8ff, #007acc);
  border-color: rgba(255, 255, 255, 0.12);
}

.tech-stack__chip--ts,
.skill-chip--ts {
  background: linear-gradient(135deg, #4b6fff, #00b5ff);
  border-color: rgba(255, 255, 255, 0.12);
}

.tech-stack__chip--umi,
.skill-chip--umi {
  background: linear-gradient(135deg, #ff6cab, #7366ff);
  border-color: rgba(255, 255, 255, 0.12);
}

.tech-stack__chip--ant-design-pro,
.skill-chip--ant-design-pro {
  background: linear-gradient(135deg, #13c2c2, #52c41a);
  border-color: rgba(255, 255, 255, 0.12);
}

.tech-stack__chip--vue3,
.skill-chip--vue3 {
  background: linear-gradient(135deg, #42b883, #2c3e50);
  border-color: rgba(255, 255, 255, 0.14);
  color: #04101b;
}

.tech-stack__chip--vue2,
.skill-chip--vue2 {
  background: linear-gradient(135deg, #4fc08d, #1f2933);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

.tech-stack__chip--vuex,
.skill-chip--vuex {
  background: linear-gradient(135deg, #facc15, #f97316);
  border-color: rgba(255, 255, 255, 0.14);
}

.tech-stack__chip--vue-router,
.skill-chip--vue-router {
  background: linear-gradient(135deg, #f6d365, #fda085);
  border-color: rgba(255, 255, 255, 0.14);
}

.tech-stack__chip--element-plus,
.skill-chip--element-plus {
  background: linear-gradient(135deg, #409eff, #66b1ff);
  border-color: rgba(255, 255, 255, 0.12);
}

.tech-stack__chip--axios,
.skill-chip--axios {
  background: linear-gradient(135deg, #7f7fd5, #86a8e7);
  border-color: rgba(255, 255, 255, 0.12);
}

.tech-stack__chip--sass,
.skill-chip--sass {
  background: linear-gradient(135deg, #f78ca0, #f9748f);
  border-color: rgba(255, 255, 255, 0.12);
}

.tech-stack__chip--less,
.skill-chip--less {
  background: linear-gradient(135deg, #5a8dee, #2f63cf);
  border-color: rgba(255, 255, 255, 0.12);
}

.tech-stack__chip--pinia,
.skill-chip--pinia {
  background: linear-gradient(135deg, #ffd952, #ffb347);
  border-color: rgba(255, 255, 255, 0.14);
  color: #4e2600;
}

.tech-stack__chip--dexie,
.skill-chip--dexie {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8f7ff;
}

.tech-stack__chip--chartjs,
.skill-chip--chartjs {
  background: linear-gradient(135deg, #fdc830, #f37335);
  border-color: rgba(255, 255, 255, 0.14);
  color: #3d1d00;
}

.tech-stack__chip--vue-chartjs,
.skill-chip--vue-chartjs {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
  border-color: rgba(255, 255, 255, 0.14);
}

.tech-stack__chip--silicon-ai,
.skill-chip--silicon-ai {
  background: linear-gradient(135deg, #7b4397, #dc2430);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff1f2;
}

.tech-stack__chip--uni-app,
.skill-chip--uni-app {
  background: linear-gradient(135deg, #ff9966, #ff5e62);
  border-color: rgba(255, 255, 255, 0.16);
}

.tech-stack__chip--vite,
.skill-chip--vite {
  background: linear-gradient(135deg, #3f5efb, #fc466b);
  border-color: rgba(255, 255, 255, 0.14);
}

.tech-stack__chip--strapi,
.skill-chip--strapi {
  background: linear-gradient(135deg, #654ea3, #eaafc8);
  border-color: rgba(255, 255, 255, 0.14);
}

.tech-stack__chip--jwt,
.skill-chip--jwt {
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  border-color: rgba(255, 255, 255, 0.14);
  color: #3d1b00;
}

.tech-stack__chip--edm-kit,
.skill-chip--edm-kit {
  background: linear-gradient(135deg, #ec4899, #f97316);
  border-color: rgba(255, 255, 255, 0.14);
}
.tech-stack__chip--default {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.skill-chip--default {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.link-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.link-list a:hover {
  color: var(--accent-strong);
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .resume-shell {
    padding: 1.5rem 1rem 2.5rem;
  }

  .hero,
  .section-card {
    padding: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .section-head h2 {
    font-size: clamp(1.1rem, 5vw, 1.3rem);
  }
}
