/* ============================================================
   Keyframe Animations
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10%       { transform: translate(-2%, -3%); }
  30%       { transform: translate(3%, 2%); }
  50%       { transform: translate(-1%, 4%); }
  70%       { transform: translate(2%, -2%); }
  90%       { transform: translate(-3%, 1%); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   CSS Variables — Design Tokens
   ============================================================ */
:root {
  /* Brand Colors */
  --primary-color: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --secondary-color: #06b6d4;
  --accent-color: #8b5cf6;
  --accent-dark: #7c3aed;
  --success-color: #10b981;
  --success-dark: #059669;
  --warning-color: #f59e0b;
  --orange-color: #f97316;
  --orange-dark: #ea580c;

  /* Backgrounds */
  --bg-color: #f1f5f9;
  --bg-subtle: #f8fafc;
  --card-bg: #ffffff;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Borders */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-md: 0 6px 16px -4px rgb(0 0 0 / 0.1), 0 2px 6px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 12px 24px -6px rgb(0 0 0 / 0.1), 0 4px 8px -4px rgb(0 0 0 / 0.06);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset & Base
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-color);
  background-image: radial-gradient(circle, rgba(148,163,184,0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Layout
   ============================================================ */
.resume-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px;
}

.resume {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.6);
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.6);
}

/* ============================================================
   Header
   ============================================================ */
.resume-header {
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(6,182,212,0.3) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 15% 80%, rgba(139,92,246,0.2) 0%, transparent 50%),
    linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #3b82f6 100%);
  color: white;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
}

/* Noise texture overlay */
.resume-header::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.3;
  animation: grain 8s steps(10) infinite;
  z-index: 0;
}

/* Decorative orbs */
.resume-header::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.profile-info .name {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.profile-info .title {
  font-size: 1.05rem;
  font-weight: 400;
  opacity: 0.88;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.profile-info .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-size: 0.83rem;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateX(3px);
}

/* ============================================================
   Main Content
   ============================================================ */
.resume-main {
  padding: 36px 48px;
}

.section {
  margin-bottom: 36px;
}

.section:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Section Title
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-color);
  letter-spacing: 0.2px;
}

.title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ============================================================
   Skills Grid
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
}

.skill-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Top gradient accent line */
.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Shimmer sweep on hover */
.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255,255,255,0.55) 50%,
    transparent 75%
  );
  background-size: 200% 100%;
  background-position: -200% center;
  opacity: 0;
  pointer-events: none;
}

.skill-card:hover {
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.95);
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.2);
  background: white;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover::after {
  opacity: 1;
  animation: shimmer 0.65s ease forwards;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.skill-header i {
  font-size: 1rem;
  color: var(--primary-color);
  width: 18px;
  text-align: center;
}

.skill-header h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary-dark);
  font-size: 0.72rem;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  font-weight: 500;
}

/* ============================================================
   Timeline (Work Experience)
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

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

.timeline-marker {
  position: absolute;
  left: -22px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--card-bg);
  border: 2.5px solid var(--primary-color);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.timeline-content {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid rgba(226,232,240,0.8);
  border-left: 3px solid var(--primary-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: var(--transition);
}

.timeline-content:hover {
  background: white;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.95);
  border-color: rgba(59,130,246,0.2);
  transform: translateX(2px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-header h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 3px 9px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.timeline-role {
  font-size: 0.87rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-duties {
  list-style: none;
}

.timeline-duties li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 5px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.timeline-duties li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--secondary-color);
  border-radius: 50%;
}

/* ============================================================
   Project Cards
   ============================================================ */
.project-card {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226,232,240,0.85);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Top gradient accent — hidden by default */
.project-card > .project-header::before {
  display: none; /* use pseudo on card itself */
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  z-index: 1;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-card:hover {
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.95);
  border-color: rgba(59, 130, 246, 0.18);
  transform: translateY(-2px);
  background: white;
}

.project-card:hover::before {
  opacity: 1;
}

/* AI Project Card */
.project-card--ai {
  border-color: rgba(124, 58, 237, 0.2);
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.025) 0%,
    rgba(167, 139, 250, 0.015) 100%
  );
}

/* Override the default blue top bar with purple for AI card */
.project-card--ai::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa, #06b6d4);
  opacity: 1; /* always visible for special cards */
}

.project-card--ai:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.12), inset 0 1px 0 rgba(255,255,255,0.95);
}

/* Migration Project Card */
.project-card--migration {
  border-color: rgba(249, 115, 22, 0.2);
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.025) 0%,
    rgba(251, 191, 36, 0.015) 100%
  );
}

/* Override the default blue top bar with orange for migration card */
.project-card--migration::before {
  background: linear-gradient(90deg, #f97316, #fbbf24, #10b981);
  opacity: 1; /* always visible for special cards */
}

.project-card--migration:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.12), inset 0 1px 0 rgba(255,255,255,0.95);
}

/* Project Header */
.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.project-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.project-role {
  font-size: 0.76rem;
  color: var(--primary-color);
  padding: 3px 10px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  font-weight: 500;
  white-space: nowrap;
}

.project-period {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Badges */
.project-new-badge,
.project-badge {
  display: inline-block;
  padding: 2px 8px;
  color: white;
  font-size: 0.66rem;
  font-weight: 600;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

.project-new-badge {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.project-badge--orange {
  background: linear-gradient(135deg, #f97316, #fbbf24);
}

/* Tech Tags */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tech-tag {
  padding: 3px 9px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-color);
  font-weight: 500;
}

.tech-tag--accent {
  background: rgba(124, 58, 237, 0.07);
  color: var(--accent-dark);
  border-color: rgba(124, 58, 237, 0.2);
}

/* Project Description */
.project-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Project Achievements */
.project-achievements {
  list-style: none;
}

.project-achievements li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-achievements li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 0.75rem;
  top: 1px;
}

.project-achievements li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================================
   Sub-Project (nested inside project card)
   ============================================================ */
.sub-project {
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(248,250,252,0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  border: 1px solid rgba(226,232,240,0.8);
  border-left: 3px solid var(--orange-color);
  position: relative;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.sub-project:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(249,115,22,0.25);
  transform: translateX(2px);
  background: white;
}

.sub-project + .sub-project {
  margin-top: 12px;
}

.sub-project-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.sub-project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--orange-color), var(--warning-color));
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.sub-project-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.sub-project-period {
  font-size: 0.73rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 2px 8px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.sub-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.sub-project-achievements {
  margin-top: 0;
}

.sub-project-achievements li {
  font-size: 0.81rem;
}

.sub-project-achievements li::before {
  color: var(--orange-color);
}

/* project-links inside sub-project: tighter spacing */
.sub-project .project-links {
  margin-top: 12px;
  padding-top: 10px;
}

/* ============================================================
   Project Links / Buttons
   ============================================================ */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.project-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep */
.project-detail-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.3) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  background-position: -200% center;
  opacity: 0;
  pointer-events: none;
}

.project-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.project-detail-btn:hover::after {
  opacity: 1;
  animation: shimmer 0.6s ease forwards;
}

.project-detail-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-arrow {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.project-detail-btn--green {
  background: linear-gradient(135deg, var(--success-dark), var(--success-color));
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.project-detail-btn--green:hover {
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.project-detail-btn--purple {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.project-detail-btn--purple:hover {
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.project-detail-btn--orange {
  background: linear-gradient(135deg, var(--orange-color), var(--warning-color));
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.project-detail-btn--orange:hover {
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.project-detail-btn--teal {
  background: linear-gradient(135deg, #0d9488, #06b6d4);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
}

.project-detail-btn--teal:hover {
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

/* ============================================================
   Education
   ============================================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.education-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid rgba(226,232,240,0.8);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.education-card:hover {
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.95);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
  background: white;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-school {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.education-school i {
  font-size: 1.05rem;
  color: var(--primary-color);
}

.education-school h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
}

.education-major {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.education-degree {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--primary-color);
  padding: 2px 9px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 20px;
  margin-bottom: 6px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  font-weight: 500;
}

.education-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

/* ============================================================
   Certificates
   ============================================================ */
.certificates-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.certificate-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  border: 1px solid rgba(226,232,240,0.8);
  font-size: 0.87rem;
  color: var(--text-secondary);
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
}

.certificate-item:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 3px 10px rgba(139,92,246,0.1), inset 0 1px 0 rgba(255,255,255,0.95);
  background: white;
  transform: translateY(-1px);
}

.certificate-item i {
  color: var(--accent-color);
}

/* ============================================================
   Footer
   ============================================================ */
.resume-footer {
  background: var(--bg-subtle);
  padding: 24px 48px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.resume-footer p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.87rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.print-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* Visitor Stats */
.visitor-stats {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.visitor-stats i {
  color: var(--primary-color);
  font-size: 0.85rem;
}

#busuanzi_value_site_pv {
  color: var(--primary-color);
  font-weight: 600;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .resume-container {
    padding: 12px 8px;
  }

  .resume-header {
    padding: 28px 24px;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .profile-info .name {
    font-size: 1.9rem;
  }

  .contact-info {
    width: 100%;
  }

  .contact-item {
    justify-content: center;
  }

  .resume-main {
    padding: 24px 20px;
  }

  .resume-footer {
    padding: 20px 24px;
  }

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

  .timeline {
    padding-left: 18px;
  }

  .timeline-marker {
    left: -18px;
    width: 10px;
    height: 10px;
  }

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

  .project-header h3 {
    font-size: 0.95rem;
  }

  .sub-project {
    padding: 14px 14px;
  }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  body {
    background: white;
  }

  .resume-container {
    padding: 0;
    max-width: 100%;
  }

  .resume {
    box-shadow: none;
    border-radius: 0;
  }

  .print-btn,
  .visitor-stats {
    display: none;
  }

  .project-card,
  .skill-card,
  .sub-project {
    break-inside: avoid;
  }
}

/* ============================================================
   Animations
   ============================================================ */
.section {
  animation: fadeInUp 0.45s ease-out both;
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }
.section:nth-child(5) { animation-delay: 0.25s; }
