/* ============ CSS Variables ============ */
:root {
  --bg-primary: #0a0e17;
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-glass-hover: rgba(15, 23, 42, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.3);
  --accent-dim: rgba(56, 189, 248, 0.1);
  --green: #34d399;
  --purple: #a78bfa;
  --orange: #fb923c;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.15);
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ============ Video Background ============ */
.video-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; overflow: hidden;
}
.video-bg video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.35) saturate(0.6);
}
.video-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(52, 211, 153, 0.05) 0%, transparent 50%);
}

/* ============ Main Container ============ */
.main-container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100; padding: 16px 0;
  background: transparent;
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.3s var(--transition-smooth);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-primary); }
.logo-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.logo-text { font-size: 18px; font-weight: 600; letter-spacing: -0.3px; }
.logo-text span { color: var(--accent); }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  padding: 8px 18px; border-radius: 100px;
  font-size: 19.6px; font-weight: 500;
  transition: all 0.25s var(--transition-smooth);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* ============ Hero ============ */
.hero-section {
  padding: 80px 0 60px; text-align: center;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(56,189,248,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(167,139,250,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(52,211,153,0.04) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: var(--bg-glass);
  border: 1px solid var(--border-glass); border-radius: 100px;
  font-size: 13px; color: var(--accent); margin-bottom: 28px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: relative; z-index: 1;
}
.hero-badge .dot {
  width: 7px; height: 7px; background: var(--green); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px); font-weight: 700;
  letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 20px;
  background: linear-gradient(135deg, #e2e8f0 0%, #38bdf8 50%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  position: relative; z-index: 1;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.7;
  position: relative; z-index: 1;
}
.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.stat-item { text-align: center; }
.stat-number { font-size: 32px; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ============ Hero Particle Canvas ============ */
.hero-particles {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

/* ============ Hero Random Animations ============ */
/* Animation: Float up & down */
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-12px); }
  60% { transform: translateY(-4px); }
}
/* Animation: Glow pulse */
@keyframes hero-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
  50% { filter: drop-shadow(0 0 24px rgba(56,189,248,0.5)); }
}
/* Animation: Slide in from left with bounce */
@keyframes hero-slide-left {
  0% { opacity: 0; transform: translateX(-60px); }
  60% { opacity: 1; transform: translateX(8px); }
  80% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
/* Animation: Slide in from right with bounce */
@keyframes hero-slide-right {
  0% { opacity: 0; transform: translateX(60px); }
  60% { opacity: 1; transform: translateX(-8px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}
/* Animation: Scale up with overshoot */
@keyframes hero-scale-up {
  0% { opacity: 0; transform: scale(0.6); }
  70% { opacity: 1; transform: scale(1.04); }
  85% { transform: scale(0.97); }
  100% { transform: scale(1); }
}
/* Animation: Fade in + slight rotate */
@keyframes hero-fade-rotate {
  0% { opacity: 0; transform: rotate(-3deg) translateY(20px); }
  100% { opacity: 1; transform: rotate(0) translateY(0); }
}
/* Animation: Typewriter shimmer */
@keyframes hero-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
/* Animation: Gentle sway */
@keyframes hero-sway {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
/* Animation: Pop in with stagger */
@keyframes hero-pop-in {
  0% { opacity: 0; transform: scale(0.3) translateY(30px); }
  50% { opacity: 0.7; transform: scale(1.08) translateY(-4px); }
  70% { transform: scale(0.95) translateY(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
/* Animation: Blur reveal */
@keyframes hero-blur-in {
  0% { opacity: 0; filter: blur(12px); transform: translateY(16px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* Animation classes — applied via JS */
.hero-anim-float { animation: hero-float 5s ease-in-out infinite; }
.hero-anim-glow { animation: hero-glow-pulse 3s ease-in-out infinite; }
.hero-anim-slide-left { animation: hero-slide-left 0.8s var(--transition-smooth) both; }
.hero-anim-slide-right { animation: hero-slide-right 0.8s var(--transition-smooth) both; }
.hero-anim-scale-up { animation: hero-scale-up 0.7s var(--transition-smooth) both; }
.hero-anim-fade-rotate { animation: hero-fade-rotate 0.8s var(--transition-smooth) both; }
.hero-anim-sway { animation: hero-sway 4s ease-in-out infinite; }
.hero-anim-pop-in { animation: hero-pop-in 0.6s var(--transition-smooth) both; }
.hero-anim-blur-in { animation: hero-blur-in 0.9s var(--transition-smooth) both; }

/* Shimmer effect for title */
.hero-anim-shimmer {
  background: linear-gradient(90deg, #e2e8f0 0%, #38bdf8 25%, #a78bfa 50%, #38bdf8 75%, #e2e8f0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: hero-shimmer 3s linear infinite;
}

/* Stat number counter animation */
.stat-number.hero-anim-count {
  animation: hero-pop-in 0.6s var(--transition-smooth) both, hero-glow-pulse 3s ease-in-out 0.6s infinite;
}

/* Stat item staggered reveal */
.stat-item.hero-anim-stagger {
  opacity: 0;
  animation: hero-pop-in 0.5s var(--transition-smooth) forwards;
}

/* ============ Section Common ============ */
.section { padding: 64px 0; }
.section-header { margin-bottom: 40px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.8px; margin-bottom: 12px; }
.section-desc { color: var(--text-secondary); font-size: 15px; max-width: 500px; }

/* ============ Glass Card ============ */
.glass-card {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 32px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s var(--transition-smooth);
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity 0.35s var(--transition-smooth);
}
.glass-card:hover {
  background: var(--bg-glass-hover); border-color: var(--border-glass-hover);
  transform: translateY(-4px); box-shadow: var(--shadow-glass), var(--shadow-glow);
}
.glass-card:hover::before { opacity: 1; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.about-avatar-card { text-align: center; }
.avatar-wrapper {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  padding: 3px; box-shadow: 0 8px 32px var(--accent-glow);
}
.avatar-inner {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: block;
}
.about-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.about-role { font-size: 13px; color: var(--accent); margin-bottom: 16px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag {
  padding: 4px 12px; background: var(--accent-dim);
  border: 1px solid rgba(56,189,248,0.2); border-radius: 100px;
  font-size: 12px; color: var(--accent);
}
.about-bio p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.about-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 24px; }

/* ============ Contact Section ============ */
.contact-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}
.contact-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--transition-smooth);
  cursor: default;
}
.contact-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass-hover);
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.contact-icon svg {
  display: block;
}
.contact-info {
  min-width: 0;
}
.contact-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
}

/* WeChat QR Code Popup */
.contact-wechat {
  position: relative;
  cursor: pointer;
}
.wechat-qrcode-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--transition-smooth), transform 0.25s var(--transition-smooth);
  transform: translateX(-50%) translateY(8px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 50;
}
.contact-wechat:hover .wechat-qrcode-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.qrcode-placeholder {
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.qrcode-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Mobile: tap to show QR instead of hover */
@media (hover: none) and (pointer: coarse) {
  .wechat-qrcode-popup {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
  }
  .wechat-qrcode-popup.show-mobile {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}
.highlight-item {
  padding: 20px; background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md); border: 1px solid var(--border-glass);
  text-align: center; transition: all 0.3s var(--transition-smooth);
}
.highlight-item:hover { background: rgba(255,255,255,0.06); border-color: var(--border-glass-hover); }
.highlight-icon { font-size: 28px; margin-bottom: 8px; }
.highlight-value { font-size: 24px; font-weight: 700; color: var(--accent); }
.highlight-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============ Articles ============ */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.article-card { cursor: pointer; }
.article-cover {
  width: 100%; height: 180px; border-radius: var(--radius-md);
  margin-bottom: 20px; overflow: hidden; position: relative;
}
.article-cover-bg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 40px; transition: transform 0.5s var(--transition-smooth);
}
.article-card:hover .article-cover-bg { transform: scale(1.05); }
.article-category {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 100px; font-size: 11px; font-weight: 600; color: #fff; letter-spacing: 0.5px;
}
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; font-size: 12px; color: var(--text-muted); }
.article-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; letter-spacing: -0.3px; }
.article-excerpt {
  font-size: 14px; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.article-tag { font-size: 11px; padding: 3px 10px; background: rgba(255,255,255,0.04); border-radius: 6px; color: var(--text-muted); }

/* ============ Gallery ============ */
.gallery-masonry { columns: 3; column-gap: 20px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 20px;
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; position: relative;
  transition: transform 0.35s var(--transition-smooth);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-img {
  width: 100%; display: block; border-radius: var(--radius-lg);
  transition: filter 0.35s var(--transition-smooth);
}
.gallery-item:hover .gallery-img { filter: brightness(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity 0.35s var(--transition-smooth);
  border-radius: var(--radius-lg);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: #fff; font-size: 14px; font-weight: 500; }

/* ============ Works ============ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.work-card-wrapper {
  perspective: 800px;
}

.work-card {
  position: relative;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: default;
  transition: all 0.45s var(--transition-smooth), transform 0.45s var(--transition-smooth);
  transform-style: preserve-3d;
  overflow: hidden;
}

.work-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(56, 189, 248, 0.08);
}

/* Ambient glow behind each card */
.work-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  opacity: 0;
  filter: blur(60px);
  transition: opacity 0.5s var(--transition-smooth);
  pointer-events: none;
  z-index: 0;
}
.work-card:hover .work-card-glow {
  opacity: 0.18;
}

/* Card Header: Logo + Name + Platforms */
.work-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.work-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.work-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  border-radius: 16px;
}
.work-card:hover .work-logo {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.work-logo-emoji {
  font-size: 28px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--transition-smooth);
  font-weight: 700;
  color: #fff;
}
.work-logo-img {
  width: 100%; height: 100%; object-fit: cover;
  position: relative; z-index: 1;
  transition: transform 0.4s var(--transition-smooth);
}
.work-card:hover .work-logo-emoji {
  transform: scale(1.15) rotate(-8deg);
}
.work-card:hover .work-logo-img {
  transform: scale(1.15);
}

.work-header-info {
  flex: 1;
  min-width: 0;
}

.work-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.work-card:hover .work-name {
  color: var(--accent);
}

/* Platform badges */
.work-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--platform-color);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s var(--transition-smooth);
}
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .platform-badge {
    background: color-mix(in srgb, var(--platform-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--platform-color) 20%, transparent);
  }
  .platform-badge:hover {
    background: color-mix(in srgb, var(--platform-color) 22%, transparent);
    border-color: color-mix(in srgb, var(--platform-color) 40%, transparent);
  }
}
.platform-badge:hover {
  transform: translateY(-1px);
}

/* Description */
.work-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Work Tags */
.work-tags {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 5;
  justify-content: flex-end;
}
.work-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 100px;
  color: var(--tag-color);
  background: var(--tag-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--tag-color) 30%, transparent);
  transition: all 0.25s var(--transition-smooth);
  white-space: nowrap;
}
.work-tag:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Link button */
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-top: auto;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  transition: all 0.35s var(--transition-smooth);
  position: relative;
  z-index: 1;
  align-self: flex-start;
  overflow: hidden;
}
.work-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity 0.35s var(--transition-smooth);
  border-radius: 100px;
  z-index: -1;
}
.work-link:hover {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.work-link:hover::before {
  opacity: 1;
}

.work-link-text {
  transition: transform 0.3s var(--transition-smooth);
}
.work-link:hover .work-link-text {
  transform: translateX(-2px);
}

.work-link-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.35s var(--transition-smooth);
  color: var(--text-muted);
}
.work-link:hover .work-link-arrow {
  transform: translateX(4px);
  color: #fff;
}

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border-glass); padding: 40px 0; text-align: center; position: relative; z-index: 1; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copyright { color: var(--text-muted); font-size: 13px; }

/* ============ Scroll Reveal ============ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--transition-smooth);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-avatar-card { display: flex; align-items: center; gap: 24px; text-align: left; }
  .avatar-wrapper { width: 100px; height: 100px; margin: 0; }
  .avatar-inner { }
  .about-tags { justify-content: flex-start; }
  .gallery-masonry { columns: 2; }
}

@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .nav-links a { padding: 6px 14px; font-size: 18px; }
  .hero-section { padding: 60px 0 40px; }
  .hero-stats { gap: 28px; }
  .stat-number { font-size: 26px; }
  .articles-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
  .works-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .about-avatar-card { flex-direction: column; text-align: center; }
  .about-tags { justify-content: center; }
  .about-highlights { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .main-container { padding: 0 16px; }
  .hero-title { font-size: 30px; }
  .gallery-masonry { columns: 1; }
  .glass-card { padding: 24px; }
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ QR Code Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--transition-smooth);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  width: 90%; max-width: 640px; max-height: 85vh;
  overflow-y: auto; padding: 32px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--transition-smooth);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.modal-title { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.modal-close {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-glass);
  color: var(--text-secondary); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--transition-smooth);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }

.qr-modal {
  max-width: 400px; text-align: center;
}
.qr-modal-body {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.qr-modal-name {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.qr-modal-img-wrap {
  padding: 16px; background: #fff; border-radius: var(--radius-md);
  line-height: 0; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.qr-modal-img {
  width: 220px; height: 220px; display: block;
}
.qr-modal-hint {
  font-size: 13px; color: var(--text-muted);
}

/* QR trigger button */
.work-qr-trigger {
  cursor: pointer; font-family: inherit;
}
