@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
  --brand: #2E5FF8;
  --brand-light: #5a7cf5;
  --brand-dark: #1a3fcc;
  --dark: #000000;
  --gray-900: #1a1a1a;
  --gray-700: #333333;
  --gray-600: #666666;
  --gray-500: #808080;
  --gray-400: #999999;
  --gray-300: #cccccc;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --yellow: #faad14;
  --orange: #f3a200;
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --gradient-primary: linear-gradient(135deg, #2E5FF8 0%, #7c3aed 100%);
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #2E5FF8 100%);
  --gradient-warm: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Nav ──────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--dark);
  text-decoration: none;
}
.nav-logo span { background: var(--gradient-primary); -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text; }
.nav-logo .logo-brand { color: var(--brand); background: none; -webkit-text-fill-color: initial; -webkit-background-clip: initial; background-clip: initial; }

.nav-links {
  display: flex; align-items: center; gap: 40px; list-style: none;
}

.nav-links a {
  text-decoration: none; color: var(--gray-700);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em; transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--brand); transition: width 0.25s;
}

.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 8px 24px;
  background: var(--gradient-primary);
  color: var(--white) !important; border-radius: 8px; font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,95,248,0.3);
}

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px 48px; position: relative;
  background: 
    radial-gradient(ellipse at 80% 20%, rgba(46,95,248,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(124,58,237,0.07) 0%, transparent 50%),
    linear-gradient(180deg, #dce5ff 0%, #f0f4ff 30%, var(--white) 60%);
}

/* Hero background decoration overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero_bg_字母装饰.png') center center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; background: rgba(46,95,248,0.08);
  color: var(--brand); font-size: 13px; font-weight: 500;
  border-radius: 100px; margin-bottom: 20px; letter-spacing: 0.04em;
}

.hero-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--brand); border-radius: 50%;
}

/* Avatar */
.hero-avatar {
  position: relative;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Decorative dots around avatar */
.hero-avatar::before,
.hero-avatar::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-avatar::before {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, rgba(46,95,248,0.25) 0%, rgba(124,58,237,0.15) 100%);
  opacity: 0.35;
  top: -8px;
  right: -16px;
  animation: floatDot 3s ease-in-out infinite, dotPulse 2s ease-in-out infinite;
}

.hero-avatar::after {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, rgba(16,185,129,0.2) 0%, rgba(46,95,248,0.1) 100%);
  opacity: 0.25;
  bottom: 4px;
  left: -12px;
  animation: floatDot 3s ease-in-out infinite 1.5s, dotPulse 2s ease-in-out infinite 1s;
}

@keyframes floatDot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Purple ring around avatar */
.hero-avatar-ring {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.12);
  pointer-events: none;
  z-index: 0;
  animation: ringRotate 6s linear infinite, ringPulse 3s ease-in-out infinite;
}

/* Decorative circles */
.hero-avatar-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: dotFloat 3s ease-in-out infinite;
}

.hero-avatar-dot:nth-child(1) {
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, rgba(46,95,248,0.12) 0%, rgba(124,58,237,0.08) 100%);
  top: -14px;
  left: 50%;
  margin-left: -3.5px;
  opacity: 0.3;
}

.hero-avatar-dot:nth-child(2) {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, rgba(219,112,147,0.25) 0%, rgba(124,58,237,0.15) 100%);
  bottom: -12px;
  right: 10%;
  opacity: 0.3;
  animation-delay: 0.8s;
}

.hero-avatar-dot:nth-child(3) {
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, rgba(249,115,22,0.4) 0%, rgba(251,191,36,0.25) 100%);
  top: 25%;
  right: -14px;
  opacity: 0.45;
  animation-delay: 1.6s;
}

.hero-avatar-dot:nth-child(4) {
  width: 7px;
  height: 7px;
  background: rgba(124,58,237,0.4);
  bottom: 20%;
  left: -10px;
  opacity: 0.4;
  animation-delay: 2.4s;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ringPulse {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.5; }
  50% { transform: rotate(180deg) scale(1.06); opacity: 1; }
}

@keyframes dotPulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-4px) scale(1.5); opacity: 0.9; }
}

@keyframes dotFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-10px) scale(1.3); opacity: 0.8; }
}

.hero-avatar-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: var(--gray-100);
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 
    0 0 0 3px rgba(46,95,248,0.15),
    0 8px 32px rgba(46,95,248,0.12);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-avatar-circle:hover .avatar-img {
  transform: scale(1.05);
}

/* Greeting */
.hero-greeting {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
  color: var(--gray-700);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-label {
  font-size: clamp(72px, 12vw, 160px); font-weight: 900;
  letter-spacing: 0.15em; color: var(--dark); line-height: 1; margin-bottom: 20px;
  margin-top: -10px;
}

.hero-name {
  font-size: clamp(32px, 5vw, 64px); font-weight: 300;
  letter-spacing: 0.3em; color: var(--gray-700); margin-bottom: 48px;
}

.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; max-width: 700px;
  margin-top: 8px;
}

.hero-tags span {
  padding: 6px 18px; background: var(--white);
  border: 1px solid var(--gray-300); border-radius: 100px;
  font-size: 13px; color: var(--gray-700);
  transition: all 0.2s;
}

.hero-tags span:hover {
  border-color: var(--brand); color: var(--brand);
  background: rgba(46,95,248,0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46,95,248,0.1);
}

.hero-scroll {
  position: absolute; bottom: 32px;
  display: flex; flex-direction: column; align-items: center;
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero-scroll .arrow {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 20px solid var(--brand-light);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Section shared ────────────────────────────────────────────── */

.section { min-height: 100vh; padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.section#about { padding-top: 80px; padding-bottom: 80px; position: relative; }
.section#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: linear-gradient(180deg, rgba(46,95,248,0.03) 0%, rgba(124,58,237,0.02) 50%, var(--white) 100%);
  z-index: -1;
  pointer-events: none;
}

.section#projects {
  position: relative;
  padding-top: 80px;
}
.section#projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: linear-gradient(180deg, rgba(249,250,255,1) 0%, var(--white) 100%);
  z-index: -1;
  pointer-events: none;
}
.section#about .section-header { margin-bottom: 48px; }
.section#projects .section-header { margin-bottom: 40px; }
.section-header { margin-bottom: 64px; position: relative; }

.section-header .label {
  position: absolute;
  font-size: 72px; font-weight: 800; color: rgba(46,95,248,0.06);
  letter-spacing: 0.04em; text-transform: uppercase;
  top: -44px;
  left: -4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.section-header h2 {
  position: relative;
  font-size: 36px; font-weight: 700; letter-spacing: 0.12em;
  z-index: 1;
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.section-header h2 em {
  font-style: normal;
}
.section-sub { max-width: 600px; margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--gray-500); }

/* ── Portfolio ─────────────────────────────────────────────────── */

.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ── Project Detail (英孚教育) ────────────────────────────── */

.project-detail {
  grid-column: 1 / -1;
  padding: 0;
  margin-top: -24px;
  margin-bottom: 32px;
}

.pd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.pd-title-group {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.pd-subtitle {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.pd-title {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pd-label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.6;
  white-space: nowrap;
}

/* Images layout - left-right */
.ef-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.ef-row {
  width: 100%;
}

.ef-row-bottom {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.ef-col {
  flex: 1;
  min-width: 0;
}

.ef-col-left {
  flex: 0 0 40%;
}

.ef-col-right {
  flex: 1;
}

.ef-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.ef-images {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.ef-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ── Project Detail (英孚教育分析) ──────────────────────────── */

.project-detail {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(46,95,248,0.12);
  padding: 40px 48px;
  margin-top: -24px;
  margin-bottom: 32px;
}

.pd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.pd-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-subtitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pd-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pd-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* Q&A */
.pd-qa {
  margin-bottom: 40px;
}

.pd-qa-item {
  margin-bottom: 24px;
}

.pd-q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.pd-q-circle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,50,155,1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.pd-a-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.pd-a-circle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(46,95,248,1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.pd-a-content {
  padding-left: 40px;
  font-size: 15px;
  line-height: 1.8;
}

.pd-a-content p {
  margin-bottom: 12px;
}

.pd-a-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: #1a1a1a;
}

/* Table */
.pd-table-wrapper {
  overflow-x: auto;
}

.pd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.pd-table thead th {
  background: rgba(255,50,155,1);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.pd-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.pd-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.pd-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.pd-table tbody tr:last-child td {
  border-bottom: none;
}

.pd-table tbody tr:hover {
  background: rgba(46,95,248,0.03);
}

.project-card {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(46,95,248,0.12); transition: all 0.3s ease; cursor: pointer;
}

.project-card:hover {
  box-shadow: 0 12px 40px rgba(46,95,248,0.1); transform: translateY(-4px);
  border-color: var(--brand);
}

.project-card:hover .project-card-body h3 {
  color: #333333;
  font-weight: 700;
}

.project-card-image {
  width: 100%; overflow: hidden; background: var(--gray-100);
}

.project-card-image img { width: 100%; display: block; transition: transform 0.5s ease; }
.project-card:hover .project-card-image img { transform: scale(1.06); }
.project-card-body { padding: 20px 24px; }

.project-card-body .tag {
  display: inline-block; padding: 6px 16px;
  background: rgba(46,95,248,0.08); color: var(--brand);
  font-size: 16px; font-weight: 600; border-radius: 8px; margin-bottom: 10px;
  transition: all 0.3s ease;
}
.project-card:hover .project-card-body .tag {
  background: var(--gradient-primary);
  color: var(--white);
}

.project-card-body h3 { font-size: 20px; font-weight: 400; margin-bottom: 0; color: #555555; transition: color 0.3s ease; }
.project-card-body p { font-size: 15px; line-height: 1.7; color: #999999; }

/* ── About / Resume ────────────────────────────────────────────── */

.about-wrapper {
  display: grid;
  grid-template-columns: 412px 1fr;
  gap: 48px;
  align-items: start;
}

/* Left: Hello + Avatar */
.about-hello {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(46,95,248,0.04) 0%, rgba(124,58,237,0.03) 50%, var(--white) 100%);
  border-radius: 12px;
  border: 1px solid rgba(46,95,248,0.12);
  gap: 24px;
  transition: all 0.3s ease;
}

.about-hello:hover {
  border-color: var(--brand);
  box-shadow: 
    0 0 0 1px var(--brand),
    0 12px 40px rgba(46,95,248,0.1);
}

/* Decorative background element */
.hello-deco {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: 
    radial-gradient(ellipse at 80% 20%, rgba(46,95,248,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(124,58,237,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hello-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hello-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hello-section-title .hello-section-text {
  background: var(--gradient-primary);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.hello-section-title svg {
  flex-shrink: 0;
}

.hello-section-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.hello-section-text {
  margin-top: -8px;
  font-size: 18px;
}

/* Basic info grid */
.hello-basic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.hello-basic-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hello-basic-label {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.hello-basic-value {
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}

/* Education list */
.hello-edu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hello-edu-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hello-edu-period {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hello-edu-detail {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}

/* Strengths */
.hello-strength-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.hello-strength-text:last-child {
  margin-bottom: 0;
}

.hello-skills-wrapper {
  position: relative;
  margin-top: 16px;
}

.hello-skills-image {
  width: 280px;
  height: auto;
  display: block;
}

.hello-skills-line {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand) 0%, transparent 100%);
  opacity: 0.3;
}

/* Right: Resume details */
.about-resume {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.resume-section {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(46,95,248,0.04) 0%, rgba(124,58,237,0.02) 50%, var(--white) 100%);
  border-radius: 12px;
  border: 1px solid rgba(46,95,248,0.12);
  transition: all 0.3s ease;
  position: relative;
}

.resume-section:hover {
  border-color: var(--brand);
  box-shadow: 
    0 0 0 1px var(--brand),
    0 12px 40px rgba(46,95,248,0.1);
  transform: translateY(-2px);
}

.resume-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 20px;
}

.resume-section-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.resume-section-text {
  background: var(--gradient-primary);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin-top: -8px;
  font-size: 18px;
}

.resume-icon {
  display: flex;
  align-items: center;
  width: 24px;
  height: 24px;
}

/* Timeline for work experience */
.resume-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 24px;
}

.resume-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, rgba(46,95,248,0.15) 0%, rgba(124,58,237,0.05) 100%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 28px;
  transition: transform 0.3s ease;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-dot {
  position: absolute;
  left: -18px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(46,95,248,0.3) 0%, rgba(124,58,237,0.15) 100%);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px rgba(46,95,248,0.15), 0 2px 8px rgba(46,95,248,0.1);
  z-index: 1;
  transition: all 0.4s ease;
}

.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 3px rgba(46,95,248,0.5), 0 0 20px rgba(46,95,248,0.15);
  transform: scale(1.15);
  background: linear-gradient(135deg, rgba(46,95,248,1) 0%, rgba(124,58,237,1) 100%);
}

.timeline-period {
  font-size: 12px;
  color: #999999;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-period {
  color: var(--brand);
}

.timeline-company {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-company {
  color: var(--brand);
}

.timeline-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-content p {
  color: var(--gray-700);
}

/* Skills tags */
.skills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-300);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  transition: all 0.2s;
}

.skill-tag:hover {
  border-color: var(--brand);
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(46,95,248,0.25);
}

/* Resume text */
.resume-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.resume-text:last-child {
  margin-bottom: 0;
}

/* Education */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edu-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}

.edu-period {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  white-space: nowrap;
  letter-spacing: 0.04em;
  line-height: 1;
}

.edu-detail {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Basic Info */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  color: var(--gray-700);
}



/* ── Modal ──────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(46,95,248,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  width: 1120px;
  max-width: 90vw;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.modal-close:hover {
  background: rgba(255,255,255,0.35);
  color: #fff;
  transform: scale(1.05);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  font-size: 22px;
  color: #555;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 16px rgba(46,95,248,0.12);
  transition: all 0.25s ease;
}

.modal-nav:hover {
  background: rgba(255,255,255,0.7);
  color: var(--brand);
  box-shadow: 0 4px 24px rgba(46,95,248,0.18);
  transform: translateY(-50%) scale(1.05);
}

.modal-nav.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.modal-arrow-left,
.modal-arrow-right {
  width: 0;
  height: 0;
  display: block;
}

.modal-arrow-left {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 14px solid rgba(46,95,248,0.5);
  margin-right: -2px;
  transform: translateX(-2px);
}

.modal-arrow-right {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid rgba(46,95,248,0.5);
  margin-left: -2px;
  transform: translateX(4px);
}

.modal-nav:hover .modal-arrow-left {
  border-right-color: var(--brand);
}

.modal-nav:hover .modal-arrow-right {
  border-left-color: var(--brand);
}

.modal-prev { left: 16px; }
.modal-next { right: 16px; }

.modal-slides {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.modal-slide-wrapper {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-slide {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  box-shadow: 0 8px 32px rgba(46,95,248,0.12);
}

.modal-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--brand);
  width: 24px;
  border-radius: 4px;
}

/* ── Footer ────────────────────────────────────────────────────── */

.footer { padding: 80px 24px 40px; background: linear-gradient(135deg, #e8edff 0%, #f0f4ff 100%); color: #333; }

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end;
}

.footer-left .title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.footer-left .title span { background: var(--gradient-primary); -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text; }
.footer-left .sub { font-size: 14px; color: #999; }
.footer-right {
  text-align: right;
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.footer-right .contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-right .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(0,0,0,0.6);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-right .contact-item:hover {
  color: var(--brand);
}

.footer-right .contact-item .contact-icon {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.footer-right .contact-item:hover .contact-icon {
  opacity: 1;
}

.footer-right .contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-right .contact-qr img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-right .contact-qr img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(46,95,248,0.15);
}

.footer-right .contact-qr span {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}

.footer-bottom {
  max-width: 1200px; margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 13px; color: #999;
  display: flex; justify-content: space-between;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-hello {
    position: static;
    padding: 24px;
  }
}

/* ── Image Stack ──────────────────────────────────────────────── */


.image-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.stack-item {
  position: absolute;
  width: 88%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Each image has a unique stacked position */
.stack-item[data-index="0"] {
  bottom: 0;
  left: 0;
  transform: translate(0, 12px) rotate(-1.5deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1;
}
.stack-item[data-index="1"] {
  bottom: 4%;
  left: 6%;
  transform: translate(6px, -4px) rotate(0.8deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  z-index: 2;
}
.stack-item[data-index="2"] {
  bottom: 8%;
  left: 10%;
  transform: translate(-4px, -12px) rotate(-0.6deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  z-index: 3;
}
.stack-item[data-index="3"] {
  bottom: 12%;
  left: 14%;
  transform: translate(8px, -20px) rotate(1.2deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  z-index: 4;
}
.stack-item[data-index="4"] {
  bottom: 16%;
  left: 16%;
  transform: translate(-6px, -28px) rotate(-0.4deg);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  z-index: 5;
}
.stack-item[data-index="5"] {
  bottom: 20%;
  left: 18%;
  transform: translate(4px, -36px) rotate(0.3deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  z-index: 6;
}

.stack-item.visible {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

