@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #050505;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-solid: #0a0a0f;
  --border: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --text: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666;
  --accent: #818cf8;
  --accent-dim: #6366f1;
  --accent-glow: rgba(129, 140, 248, 0.08);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Outfit', system-ui, sans-serif;
  --max-w: 1200px;
  --nav-h: 64px;
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::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: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; overflow-x: hidden; }
::selection { background: var(--accent-dim); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { color: var(--text); font-weight: 600; }
.dim { color: var(--text-tertiary); }

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  left: -250px; top: -250px;
  will-change: transform;
  transition: opacity 0.3s;
}
@media (max-width: 768px) { .cursor-glow { display: none; } }

/* Background */
.mesh-gradient { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
/* Aurora bands - breathing glow */
.mesh-gradient::before { content: ''; position: absolute; top: -20%; left: -10%; right: -10%; height: 85%; background:
  radial-gradient(ellipse 90% 45% at 20% 0%, rgba(99,102,241,0.08) 0%, transparent 60%),
  radial-gradient(ellipse 60% 35% at 80% 5%, rgba(139,92,246,0.055) 0%, transparent 50%),
  radial-gradient(ellipse 45% 25% at 50% 20%, rgba(99,102,241,0.035) 0%, transparent 50%);
  pointer-events: none; animation: aurora-breathe 12s ease-in-out infinite; }
@keyframes aurora-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
/* Noise grain */
.mesh-gradient::after { content: ''; position: absolute; inset: 0; opacity: 0.45; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); background-repeat: repeat; background-size: 200px 200px; pointer-events: none; }
.grid-bg, .blob { display: none; }

/* Scanlines */
.bg-scanlines { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px); }

/* Vignette */
.bg-vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(0,0,0,0.5) 100%); }

/* Particles canvas */
.particles-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.22,1,0.36,1); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5,5,5,0.85); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); border-bottom-color: var(--border); }
.nav-inner { width: 100%; max-width: var(--max-w); padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.logo-mark { width: 32px; height: 20px; transition: transform 0.3s, filter 0.3s; }
.nav-logo:hover .logo-mark { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(129,140,248,0.5)); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 400; color: var(--text-tertiary); letter-spacing: 0.01em; transition: color 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links .chat-link, .nav-links .nav-icon-link { display: flex; align-items: center; gap: 6px; }
.nav-links .chat-link { color: var(--accent); }
.nav-links .chat-link:hover { color: #a5b4fc; }
.nav-links .chat-link svg, .nav-links .nav-icon-link svg { width: 13px; height: 13px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 32px; height: 32px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text-secondary); transition: all 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(2px,2px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(2px,-2px); }
.nav-mobile { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(5,5,5,0.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); padding: 20px 32px; flex-direction: column; gap: 14px; list-style: none; transform: translateY(-8px); opacity: 0; transition: transform 0.3s, opacity 0.3s; pointer-events: none; z-index: 99; }
.nav-mobile.open { display: flex; transform: translateY(0); opacity: 1; pointer-events: all; }
.nav-mobile a { font-size: 15px; font-weight: 400; color: var(--text-secondary); padding: 6px 0; }
@media (max-width: 768px) { .nav-links { display: none; } .nav-toggle { display: flex; } }

/* Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* Section label */
.section-label { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 48px; display: flex; align-items: center; gap: 14px; }
.section-label span { color: var(--accent); }
.section-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent 80%); }

/* Fade up */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Hero */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: var(--max-w); margin: 0 auto; padding: 0 32px; position: relative; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-secondary); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 32px; }
.tag-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(129,140,248,0.5); flex-shrink: 0; animation: pulse-dot 2.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 12px rgba(129,140,248,0.5); } 50% { box-shadow: 0 0 20px rgba(129,140,248,0.8), 0 0 40px rgba(129,140,248,0.2); } }
.hero-name { font-size: clamp(60px, 13vw, 140px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.88; background: linear-gradient(135deg, var(--text) 0%, var(--text) 35%, var(--accent) 50%, #a78bfa 60%, var(--text) 75%, var(--text) 100%); background-size: 300% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 100% 50%; } 50% { background-position: 0% 50%; } }
.hero-name-last { margin-bottom: 32px; }
.hero-desc { font-size: clamp(16px, 2vw, 19px); color: var(--text-secondary); max-width: 540px; line-height: 1.7; font-weight: 300; margin-bottom: 48px; }
.hero-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-socials { display: flex; gap: 10px; }
.hero-socials a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--text-tertiary); transition: all 0.3s cubic-bezier(0.16,1,0.3,1); }
.hero-socials a:hover { color: var(--accent); border-color: rgba(129,140,248,0.4); background: var(--accent-glow); transform: translateY(-3px); box-shadow: 0 6px 24px rgba(129,140,248,0.15); }
.hero-socials svg { width: 16px; height: 16px; }
.hero-ctas { display: flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; font-family: var(--sans); cursor: pointer; transition: all 0.3s cubic-bezier(0.16,1,0.3,1); border: none; letter-spacing: 0.01em; position: relative; }
.btn-outline { background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-secondary); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-outline:hover { border-color: rgba(129,140,248,0.25); color: var(--text); background: rgba(255,255,255,0.05); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.btn-primary { background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #6366f1 100%); background-size: 200% 100%; color: #fff; border: 1px solid rgba(129,140,248,0.3); box-shadow: 0 0 20px rgba(99,102,241,0.15), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.35), 0 0 20px rgba(129,140,248,0.2), inset 0 1px 0 rgba(255,255,255,0.1); border-color: rgba(129,140,248,0.5); }

/* AI hint */
.ai-hint { font-family: var(--mono); font-size: 10px; color: var(--text-tertiary); letter-spacing: 0.03em; opacity: 0.5; margin-top: 20px; display: block; }

/* Legix */
#work { padding-top: 140px; padding-bottom: 64px; }
.legix-card { background: var(--surface); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; position: relative; overflow: hidden; }
.legix-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(129,140,248,0.4) 0%, transparent 30%, transparent 70%, rgba(129,140,248,0.15) 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
[data-glow] { --glow-x: 50%; --glow-y: 50%; }
[data-glow]::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(600px circle at var(--glow-x) var(--glow-y), rgba(129,140,248,0.06), transparent 40%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
[data-glow]:hover::after { opacity: 1; }
.legix-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.legix-title { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.legix-sub { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; font-weight: 400; }
.legix-badge { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--accent); background: rgba(129,140,248,0.1); border: 1px solid rgba(129,140,248,0.2); padding: 6px 16px; border-radius: 20px; white-space: nowrap; }
.legix-desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 32px; max-width: 860px; font-weight: 300; }
.legix-desc strong { color: var(--text); font-weight: 500; }

/* Tech tags */
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag { font-family: var(--mono); font-size: 11px; font-weight: 400; color: #8a8a9a; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); padding: 5px 12px; border-radius: 6px; transition: all 0.25s; }
.tech-tag:hover { border-color: rgba(129,140,248,0.25); color: var(--accent); background: rgba(129,140,248,0.05); }

/* Experience cards */
.exp-section { padding-bottom: 120px; }
.exp-grid { display: flex; flex-direction: column; gap: 12px; }
.exp-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; cursor: pointer; transition: all 0.5s cubic-bezier(0.16,1,0.3,1); position: relative; overflow: hidden; }
.exp-item::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(129,140,248,0.3), transparent 40%, transparent 60%, rgba(129,140,248,0.1)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0; transition: opacity 0.5s; }
.exp-item:hover { background: var(--surface); }
.exp-item.expanded { background: var(--surface); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.exp-item.expanded::before { opacity: 1; }
.exp-item-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.exp-company { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.exp-role { font-family: var(--mono); font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.02em; flex-shrink: 0; }
.exp-summary { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; font-weight: 300; }
.exp-detail { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s, margin-top 0.4s; margin-top: 0; }
.exp-item.expanded .exp-detail { max-height: 400px; opacity: 1; margin-top: 20px; }
.exp-detail ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.exp-detail li { font-size: 13px; color: var(--text-secondary); line-height: 1.55; padding-left: 16px; position: relative; font-weight: 300; }
.exp-detail li::before { content: ''; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.exp-detail a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(129,140,248,0.3); text-underline-offset: 3px; }
.exp-detail a:hover { text-decoration-color: var(--accent); }
.exp-detail .tech-tags { margin-top: 4px; }
.exp-detail .tech-tag { font-size: 10px; padding: 3px 9px; }

/* Projects */
.projects-section { padding-bottom: 140px; }
.projects-track { display: flex; align-items: stretch; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding: 8px 4px 28px; cursor: grab; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent; user-select: none; }
.projects-track:active { cursor: grabbing; }
.projects-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.projects-track::-webkit-scrollbar { height: 3px; }
.projects-track::-webkit-scrollbar-track { background: transparent; }
.projects-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.projects-track::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
.project-card { min-width: 340px; max-width: 340px; scroll-snap-align: start; flex-shrink: 0; position: relative; border-radius: var(--radius); overflow: hidden; transition: all 0.5s cubic-bezier(0.16,1,0.3,1); background: var(--surface-solid); border: 1px solid var(--border); display: flex; flex-direction: column; }
.project-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(129,140,248,0.3) 0%, transparent 40%, transparent 60%, rgba(129,140,248,0.1) 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0; transition: opacity 0.5s; }
.project-card:hover::before { opacity: 1; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(129,140,248,0.06); border-color: rgba(129,140,248,0.15); }
.project-card-img { position: relative; height: 160px; overflow: hidden; flex-shrink: 0; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.6s; filter: brightness(0.7) saturate(0.8); }
.project-card:hover .project-card-img img { transform: scale(1.06); filter: brightness(0.8) saturate(1); }
.project-card-img::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to top, var(--surface-solid), transparent); pointer-events: none; }
.project-card-inner { padding: 24px 32px 32px; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.project-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.project-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.project-link { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: var(--text-tertiary); transition: all 0.3s; flex-shrink: 0; }
.project-link:hover { color: var(--accent); background: var(--accent-glow); }
.project-link svg { width: 14px; height: 14px; }
.project-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 24px; flex: 1; font-weight: 300; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project-tags .tech-tag { font-size: 10px; padding: 3px 9px; }

/* GitHub end card */
.project-card-github { border-style: dashed; border-color: rgba(255,255,255,0.08); background: transparent; text-decoration: none; min-width: 200px; max-width: 200px; }
.project-card-github:hover { border-color: rgba(129,140,248,0.3); background: var(--accent-glow); }
.project-card-github:hover::before { display: none; }
.project-github-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.github-big-icon { width: 32px; height: 32px; color: var(--text-tertiary); transition: color 0.3s; }
.project-card-github:hover .github-big-icon { color: var(--accent); }
.github-card-text { font-size: 13px; font-weight: 500; color: var(--text-tertiary); transition: color 0.3s; }
.project-card-github:hover .github-card-text { color: var(--text); }
.github-arrow { width: 16px; height: 16px; color: var(--text-tertiary); transition: all 0.3s; }
.project-card-github:hover .github-arrow { color: var(--accent); transform: translateX(4px); }

/* Scroll hint */
.scroll-hint { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.04em; margin-top: 8px; padding-left: 4px; }
.scroll-hint svg { width: 14px; height: 14px; animation: hint-nudge 2s ease-in-out infinite; }
@keyframes hint-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* About */
.about-section { padding-bottom: 120px; }
.about-layout { display: flex; gap: 48px; align-items: flex-start; }

/* Photo viewport */
.about-photo-wrap { flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.about-photo {
  width: 240px; height: 300px;
  position: relative; overflow: hidden;
  border-radius: 4px 4px 4px 28px;
  border: 1px solid var(--border);
  border-left: 2px solid rgba(129,140,248,0.35);
}
.about-photo::after {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit;
  background: linear-gradient(to bottom, transparent 55%, rgba(5,5,5,0.55) 100%);
  pointer-events: none;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  filter: saturate(0.85) brightness(0.88);
  transition: filter 0.6s, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.about-photo:hover img { filter: saturate(1) brightness(0.95); transform: scale(1.03); }
.photo-label {
  font-family: var(--mono); font-size: 10px; color: var(--text-tertiary);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  padding-left: 2px;
}

/* Content */
.about-content { flex: 1; min-width: 0; }
.about-bio { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.about-bio p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.85; font-weight: 300; }

/* Data readouts */
.about-data { display: flex; flex-direction: column; gap: 24px; }
.data-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.data-block {
  padding-left: 16px;
  border-left: 1px solid rgba(129,140,248,0.15);
  position: relative;
}
.data-block::before {
  content: '';
  position: absolute; left: -1px; top: 0;
  width: 1px; height: 12px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(129,140,248,0.4);
}
.data-block h4 {
  font-family: var(--mono); font-size: 10px; font-weight: 400;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 10px;
  opacity: 0.7;
}
.data-block p, .data-block li { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; font-weight: 300; }
.data-block ul { list-style: none; }
.data-block li { padding: 3px 0; }
.data-block a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(129,140,248,0.25); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.data-block a:hover { text-decoration-color: var(--accent); }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Contact */
.contact-section { padding-bottom: 100px; }
.contact-inner { text-align: center; max-width: 520px; margin: 0 auto; }
.contact-heading { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 10px; }
.contact-sub { font-size: 14.5px; color: var(--text-tertiary); margin-bottom: 36px; font-weight: 300; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.contact-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; font-family: var(--sans); transition: all 0.3s cubic-bezier(0.16,1,0.3,1); border: 1px solid var(--border); cursor: pointer; position: relative; }
.contact-btn svg { width: 18px; height: 18px; }
.contact-primary { background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #6366f1 100%); background-size: 200% 100%; color: #fff; border-color: rgba(129,140,248,0.3); box-shadow: 0 0 20px rgba(99,102,241,0.15), inset 0 1px 0 rgba(255,255,255,0.1); }
.contact-primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.35), 0 0 20px rgba(129,140,248,0.2), inset 0 1px 0 rgba(255,255,255,0.1); border-color: rgba(129,140,248,0.5); }
.contact-secondary { background: rgba(255,255,255,0.03); color: var(--text-secondary); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.contact-secondary:hover { border-color: rgba(129,140,248,0.25); color: var(--text); background: rgba(255,255,255,0.05); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.contact-socials { display: flex; justify-content: center; gap: 12px; }
.contact-socials a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text-tertiary); transition: all 0.3s; border: 1px solid transparent; }
.contact-socials a:hover { color: var(--text-secondary); background: var(--accent-glow); border-color: var(--border); }
.contact-socials svg { width: 16px; height: 16px; }

/* Footer */
.footer { text-align: center; padding: 36px 32px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-tertiary); font-family: var(--mono); letter-spacing: 0.04em; }

/* Project card click hint */
.project-card:not(.project-card-github) { cursor: pointer; }
.project-card-hint { position: absolute; bottom: 12px; right: 12px; font-family: var(--mono); font-size: 10px; color: var(--text-tertiary); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; gap: 4px; z-index: 2; pointer-events: none; }
.project-card:hover .project-card-hint { opacity: 1; }
.project-card-hint svg { width: 12px; height: 12px; }
/* Project expand overlay */
.project-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1); }
.project-overlay.active { opacity: 1; pointer-events: all; }

/* Project expand card */
.project-expand {
  position: fixed; z-index: 201; border-radius: var(--radius); overflow: hidden; overflow-y: auto;
  background: linear-gradient(165deg, #0d0d14 0%, #0a0a0f 40%, #0c0b15 100%);
  border: 1px solid rgba(129,140,248,0.12);
  visibility: hidden; opacity: 0;
  transform: scale(0.88) translateY(12px);
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
/* Gradient border shimmer */
.project-expand::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from 0deg, rgba(129,140,248,0.5), transparent 25%, transparent 50%, rgba(139,92,246,0.4) 75%, rgba(129,140,248,0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 10; opacity: 0; transition: opacity 0.5s 0.15s;
  animation: border-spin 8s linear infinite;
}
@keyframes border-spin { to { background: conic-gradient(from 360deg, rgba(129,140,248,0.5), transparent 25%, transparent 50%, rgba(139,92,246,0.4) 75%, rgba(129,140,248,0.5)); } }
.project-expand.active {
  visibility: visible; opacity: 1;
  transform: scale(1) translateY(0);
  box-shadow: 0 32px 100px rgba(0,0,0,0.7), 0 0 80px rgba(129,140,248,0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}
.project-expand.active::before { opacity: 1; }
/* Close state — fast dissolve */
.project-expand.closing {
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.4,0,1,1), opacity 0.2s cubic-bezier(0.4,0,1,1);
}
.project-expand::-webkit-scrollbar { width: 3px; }
.project-expand::-webkit-scrollbar-track { background: transparent; }
.project-expand::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.project-expand-close {
  position: sticky; top: 14px; float: right; margin: 14px 16px 0 0; z-index: 10;
  background: rgba(255,255,255,0.04); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 50%;
  width: 36px; height: 36px; color: var(--text-tertiary); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1); font-family: var(--sans);
}
.project-expand-close:hover { background: rgba(255,255,255,0.1); color: var(--text); border-color: rgba(129,140,248,0.3); transform: rotate(90deg); }
.project-expand-img { width: 100%; height: 220px; overflow: hidden; flex-shrink: 0; position: relative; }
.project-expand-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) saturate(0.8); }
.project-expand-img::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background: linear-gradient(to top, #0a0a0f, transparent); pointer-events: none; }
.project-expand-body { padding: 24px 32px 32px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s 0.2s, transform 0.4s 0.2s cubic-bezier(0.16,1,0.3,1); }
.project-expand.active:not(.closing) .project-expand-body { opacity: 1; transform: translateY(0); }
.project-expand-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.project-expand-header h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.project-expand-header .project-link { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); }
.project-expand-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.8; font-weight: 300; margin-bottom: 24px; }
.project-expand-highlights { margin-bottom: 24px; padding-left: 16px; border-left: 1px solid rgba(129,140,248,0.15); position: relative; }
.project-expand-highlights::before { content: ''; position: absolute; left: -1px; top: 0; width: 1px; height: 12px; background: var(--accent); box-shadow: 0 0 8px rgba(129,140,248,0.4); }
.project-expand-highlights h4 { font-family: var(--mono); font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; opacity: 0.7; }
.project-expand-highlights ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.project-expand-highlights li { font-size: 13px; color: var(--text-secondary); line-height: 1.6; padding-left: 16px; position: relative; font-weight: 300; }
.project-expand-highlights li::before { content: ''; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.6; }
.project-expand-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; }
.project-expand-tags .tech-tag { font-size: 10px; padding: 3px 9px; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .about-layout { flex-direction: column; gap: 32px; }
  .about-photo-wrap { align-items: center; }
  .about-photo { width: 180px; height: 220px; }
  .data-row { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .hero { padding: 0 20px; }
  .hero-name { font-size: clamp(48px, 16vw, 80px); }
  .hero-desc { font-size: 15px; margin-bottom: 36px; }
  .hero-row { gap: 16px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; padding: 13px 24px; font-size: 14px; }
  .hero-socials { gap: 8px; }
  .hero-socials a { width: 38px; height: 38px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .legix-card { padding: 24px; }
  .legix-title { font-size: 24px; }
  .legix-desc { font-size: 13.5px; }
  .legix-header { margin-bottom: 20px; }
  .exp-item-header { flex-direction: column; gap: 4px; }
  .exp-item { padding: 20px 24px; }
  .project-card { min-width: 290px; max-width: 290px; }
  .project-card-github { min-width: 160px; max-width: 160px; }
  .section-label { margin-bottom: 32px; }
  #work { padding-top: 100px; }
}
@media (max-width: 540px) {
  .contact-actions { flex-direction: column; align-items: center; }
  .contact-btn { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .hero-name { font-size: 44px; }
  .hero-tag { font-size: 10px; }
}
