/* ===== DESIGN SYSTEM ===== */
:root {
  /* Colors */
  --bg-primary: #050816;
  --bg-secondary: #0a0f24;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-violet: #7c3aed;
  --accent-violet-light: #a78bfa;
  --accent-teal: #06b6d4;
  --accent-teal-light: #22d3ee;
  --accent-gradient: linear-gradient(135deg, #7c3aed, #06b6d4);
  --accent-gradient-hover: linear-gradient(135deg, #8b5cf6, #22d3ee);
  --glow-violet: rgba(124, 58, 237, 0.3);
  --glow-teal: rgba(6, 182, 212, 0.3);

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --h1: clamp(2.5rem, 6vw, 4.5rem);
  --h2: clamp(1.75rem, 4vw, 2.75rem);
  --h3: clamp(1.25rem, 2.5vw, 1.5rem);
  --body: 1rem;
  --small: 0.875rem;
  --caption: 0.75rem;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out-expo);
  --transition-medium: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-violet) var(--bg-primary);
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-violet); border-radius: 3px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.6s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.7s; }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-medium);
}
.navbar.scrolled {
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: var(--small);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  font-weight: 500;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-medium);
  border-radius: 1px;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta {
  padding: 8px 20px !important;
  background: var(--accent-gradient) !important;
  border-radius: var(--radius-full) !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: var(--small) !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}
.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 20px var(--glow-violet) !important;
}
.nav-cta::after { display: none !important; }

/* Language toggle */
.lang-toggle-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--caption);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}
.lang-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-violet);
  box-shadow: 0 0 12px var(--glow-violet);
}
.lang-toggle-btn.zh {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15), transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1), transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(124, 58, 237, 0.08), transparent 50%);
  animation: aurora 20s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -50px) rotate(1deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
  100% { transform: translate(10px, -30px) rotate(0.5deg); }
}
/* Grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--caption);
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s var(--ease-out-expo) forwards;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
.hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              var(--accent-gradient) border-box;
  box-shadow: 0 0 30px var(--glow-violet);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.05s forwards;
  opacity: 0;
  flex-shrink: 0;
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.hero h1 {
  font-size: var(--h1);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s forwards;
  opacity: 0;
}
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
  opacity: 0;
}
.hero-typing {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--accent-violet-light);
  font-weight: 600;
  min-height: 1.5em;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.15s forwards;
  opacity: 0;
}
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent-violet-light);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
  opacity: 0;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--body);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient-hover);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow-violet);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary i { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--body);
  transition: all var(--transition-fast);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s forwards;
  opacity: 0;
}
.scroll-indicator span {
  font-size: var(--caption);
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}
.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ===== SECTION COMMON ===== */
.section { padding: var(--section-padding); position: relative; }
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--caption);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-violet-light);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-label i {
  width: 16px;
  height: 16px;
}
.section-title {
  font-size: var(--h2);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-desc {
  font-size: var(--body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 0 auto;
  max-width: 800px;
}

/* ===== ABOUT SECTION ===== */
.about { background: var(--bg-secondary); }
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1.05rem;
}
.about-text p:first-of-type::first-letter {
  font-size: 2.5rem;
  font-weight: 800;
  float: left;
  margin-right: 8px;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  font-size: var(--small);
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Skills badges */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--small);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.skill-badge:hover {
  border-color: var(--accent-violet);
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.1);
}
.skill-badge i {
  width: 16px;
  height: 16px;
  color: var(--accent-violet-light);
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-violet), var(--accent-teal), transparent);
}
.timeline-item {
  display: flex;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 40px);
}
.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent-violet);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--glow-violet);
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-medium);
  width: 100%;
  backdrop-filter: blur(10px);
}
.timeline-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.timeline-date {
  font-size: var(--caption);
  color: var(--accent-violet-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.timeline-role {
  font-size: var(--h3);
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-company {
  font-size: var(--body);
  color: var(--accent-teal-light);
  font-weight: 500;
  margin-bottom: 4px;
}
.timeline-location {
  font-size: var(--small);
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.timeline-location i {
  width: 14px;
  height: 14px;
}
.timeline-desc {
  font-size: var(--small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== PROJECTS SECTION ===== */
.projects { background: var(--bg-secondary); }

/* Filter tabs */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: var(--small);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-violet);
}
.filter-btn.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}

/* Project grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.project-card.hidden {
  display: none;
}
.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-image img {
  transform: scale(1.05);
}
.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 22, 0.8), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.project-card:hover .project-image-overlay {
  opacity: 1;
}
.project-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.project-date {
  font-size: var(--caption);
  color: var(--accent-violet-light);
  margin-bottom: 12px;
  font-weight: 500;
}
.project-desc {
  font-size: var(--small);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.project-tag {
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--accent-violet-light);
  font-weight: 500;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--small);
  color: var(--accent-teal-light);
  font-weight: 600;
  transition: all var(--transition-fast);
}
.project-link:hover {
  color: var(--accent-teal);
  gap: 10px;
}
.project-link i {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}
.project-link:hover i {
  transform: translateX(4px);
}

/* ===== PROJECT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(40px) scale(0.95);
  transition: transform var(--transition-medium);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-violet) var(--bg-secondary);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  z-index: 10;
  transition: all var(--transition-fast);
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.modal-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-body {
  padding: 32px;
}
.modal-body .project-date {
  font-size: var(--small);
  margin-bottom: 16px;
}
.modal-body .project-title {
  font-size: var(--h3);
  margin-bottom: 16px;
}
.modal-body .project-desc {
  -webkit-line-clamp: unset;
  font-size: var(--body);
  line-height: 1.8;
  margin-bottom: 24px;
}
.modal-body .project-tags {
  margin-bottom: 24px;
}
.modal-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.modal-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: var(--small);
  color: var(--text-secondary);
}
.modal-stat i {
  color: var(--accent-teal-light);
  width: 18px;
  height: 18px;
}
.modal-stat strong {
  color: var(--text-primary);
}

/* ===== EDUCATION SECTION ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.education-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}
.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}
.education-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.education-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent-violet-light);
}
.education-icon i {
  width: 24px;
  height: 24px;
}
.education-degree {
  font-size: var(--h3);
  font-weight: 700;
  margin-bottom: 4px;
}
.education-school {
  font-size: var(--body);
  color: var(--accent-teal-light);
  font-weight: 500;
  margin-bottom: 4px;
}
.education-year {
  font-size: var(--small);
  color: var(--text-muted);
  margin-bottom: 12px;
}
.education-field {
  font-size: var(--small);
  color: var(--text-secondary);
}
.education-gpa {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--caption);
  color: var(--accent-teal-light);
  margin-top: 12px;
  font-weight: 600;
}

/* ===== VOLUNTEER SECTION ===== */
.volunteer { background: var(--bg-secondary); }
.volunteer-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}
.volunteer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(124, 58, 237, 0.05), transparent 50%);
  pointer-events: none;
}
.volunteer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.volunteer-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  color: var(--accent-violet-light);
}
.volunteer-icon i {
  width: 28px;
  height: 28px;
}
.volunteer-info { position: relative; z-index: 1; }
.volunteer-role {
  font-size: var(--h3);
  font-weight: 700;
  margin-bottom: 4px;
}
.volunteer-org {
  font-size: var(--body);
  color: var(--accent-teal-light);
  font-weight: 500;
  margin-bottom: 4px;
}
.volunteer-date-label {
  font-size: var(--small);
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.volunteer-cause {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--caption);
  color: var(--accent-teal-light);
  font-weight: 500;
}
.volunteer-desc {
  font-size: var(--small);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CONTACT / FOOTER ===== */
.contact {
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--glow-violet), transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}
.contact-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.contact-title {
  font-size: var(--h2);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.contact-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}
.contact-link:hover {
  border-color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.contact-link i {
  width: 20px;
  height: 20px;
  color: var(--accent-violet-light);
}

.footer {
  padding: 24px 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.footer p {
  font-size: var(--small);
  color: var(--text-muted);
}
.footer .gradient-text {
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  /* Navbar mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(5, 8, 22, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition-medium);
    border-left: 1px solid var(--glass-border);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: var(--body); }
  .mobile-menu-btn { display: flex; }

  /* Timeline mobile */
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 56px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot {
    left: 20px;
  }

  /* Project grid */
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  /* Volunteer */
  .volunteer-card {
    flex-direction: column;
    padding: 28px;
  }

  /* About stats */
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  /* Modal */
  .modal {
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }
  .modal-image { height: 200px; }

  /* Scroll indicator */
  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero h1 {
    letter-spacing: -1px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .btn-primary, .btn-outline {
    justify-content: center;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .project-filters {
    gap: 6px;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: var(--caption);
  }
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== PLACEHOLDER IMAGES ===== */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(124, 58, 237, 0.1));
}
.placeholder-img i {
  width: 48px;
  height: 48px;
  color: var(--accent-violet-light);
  opacity: 0.5;
}
.placeholder-img span {
  font-size: var(--small);
  color: var(--text-muted);
}
