:root {
  --bg: #05050d;
  --surface: #0b0b18;
  --surface2: #111128;
  --card: #0e0e22;
  --text: #e4e4f0;
  --text-dim: #777797;
  --text-muted: #565678;
  --accent: #6366f1;
  --accent2: #06b6d4;
  --accent3: #a855f7;
  --green: #10b981;
  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --maxw: 1060px;
}

*, *::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(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.025;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

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

.section-head { margin-bottom: 48px; }

.section-kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.section-kicker::after { content: ''; flex: 1; height: 1px; background: var(--border2); }

.section-title { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 5, 13, 0.70);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }

.nav-logo {
  font-size: 1.25rem; font-weight: 900; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s ease; position: relative;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 9px 20px; border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 12px; min-height: 44px; min-width: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav-toggle span + span { margin-top: 5px; }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  z-index: 1001; transition: width 0.1s linear;
}

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 0 80px;
}
.hero-orb {
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
  pointer-events: none; animation: orbFloat 8s ease-in-out infinite alternate;
}
@keyframes orbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-40px, 40px) scale(1.1); } }

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-eyebrow { font-size: 1rem; color: var(--text-dim); margin-bottom: 12px; font-weight: 500; }

.hero-name {
  font-size: clamp(3.2rem, 7.5vw, 5.5rem); font-weight: 900;
  letter-spacing: -0.05em; line-height: 1; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 40%, var(--accent3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-title { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--text-dim); margin-bottom: 20px; min-height: 1.8em; }

.typing-cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 500px; margin-bottom: 40px; line-height: 1.75; }

.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-size: 0.93rem; font-weight: 600; text-decoration: none;
  font-family: var(--font); cursor: pointer; border: none;
  transition: all 0.25s var(--ease);
}

.btn-filled {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border2);
  transform: translateY(-2px);
}

.hero-links { display: flex; gap: 10px; }

.hero-link {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  color: var(--text-dim); text-decoration: none; transition: all 0.2s ease;
}
.hero-link svg { width: 20px; height: 20px; }
.hero-link:hover { color: var(--text); border-color: var(--accent); background: rgba(99, 102, 241, 0.08); transform: translateY(-2px); }

/* Projects */
.projects { padding: 100px 0; }

.project-filters {
  display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-dim); padding: 10px 20px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s ease; font-family: var(--font);
  min-height: 44px; touch-action: manipulation;
}
.filter-btn:hover {
  border-color: var(--border2); color: var(--text);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-color: transparent; color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.projects-list { display: flex; flex-direction: column; gap: 32px; }

.project-card {
  display: grid; grid-template-columns: 280px 1fr;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.4s var(--ease); position: relative;
  transform-style: preserve-3d;
}
.project-card:hover {
  border-color: var(--border2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.project-card.hidden {
  display: none;
}
.project-card.animate-in {
  animation: cardIn 0.5s var(--ease) forwards;
}
@keyframes cardIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.project-card:nth-child(1) { animation-delay: 0ms; }
.project-card:nth-child(2) { animation-delay: 80ms; }
.project-card:nth-child(3) { animation-delay: 160ms; }
.project-card:nth-child(4) { animation-delay: 240ms; }
.project-card:nth-child(5) { animation-delay: 320ms; }

.project-card {
  display: grid; grid-template-columns: 280px 1fr;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.4s var(--ease); position: relative;
}
.project-card:hover {
  border-color: var(--border2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
  transform: translateY(-3px);
}

.project-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-height: 100%;
  text-decoration: none;
}

.project-overlay {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(5, 5, 13, 0.85);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text); font-size: 0.9rem; font-weight: 600;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.project-visual:hover .project-overlay {
  opacity: 1;
}
.project-overlay svg { flex-shrink: 0; }

.project-visual-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.project-visual-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative; z-index: 1; padding: 20px; text-align: center;
}
.project-visual-tags { display: flex; gap: 6px; align-items: center; }
.project-visual-tags span {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: 100px;
  background: #4ade80; color: #052e16;
}
.project-visual-tags span:last-child { background: rgba(74, 222, 128, 0.2); color: #4ade80; }

.project-visual-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.project-visual-sub {
  font-size: 0.75rem; color: var(--text-dim);
  letter-spacing: 0.02em;
}

.project-info { padding: 28px; display: flex; flex-direction: column; }

.project-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

.project-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(99, 102, 241, 0.1); padding: 4px 10px; border-radius: 100px;
}

.project-type-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 100px;
}
.project-type-badge.commercial {
  background: rgba(16, 185, 129, 0.1); color: #4ade80; border: 1px solid rgba(16, 185, 129, 0.3);
}
.project-type-badge.pet {
  background: rgba(168, 85, 247, 0.1); color: #a78bfa; border: 1px solid rgba(168, 85, 247, 0.3);
}

.project-year { font-size: 0.78rem; color: var(--text-muted); font-family: var(--mono); }

.project-name { margin-bottom: 8px; }
.project-name a {
  font-size: 1.2rem; font-weight: 700; color: var(--text); text-decoration: none;
  letter-spacing: -0.01em; transition: color 0.2s ease;
}
.project-name a:hover { color: var(--accent); }

.project-info > p {
  font-size: 0.88rem; color: var(--text-dim); line-height: 1.7;
  margin-bottom: 16px; flex: 1;
}

.project-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px;
}
.project-stack span {
  font-size: 0.72rem; color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 100px; font-family: var(--mono);
}

.project-links { display: flex; gap: 16px; }
.project-link {
  font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 0;
  min-height: 44px;
}
.project-link::after {
  content: '↗'; font-size: 0.9em; opacity: 0.6;
}
.project-link:hover { color: var(--text); }

/* Skills */
.skills { padding: 100px 0; border-top: 1px solid var(--border); }

.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}

.skill-group-title {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.skill-group-title svg { flex-shrink: 0; }

/* Category colors */
.skill-group[data-category="frontend"] .skill-group-title { color: #6366f1; }
.skill-group[data-category="frontend"] .skill-group-title svg { color: #6366f1; }
.skill-group[data-category="tools"] .skill-group-title { color: #a855f7; }
.skill-group[data-category="tools"] .skill-group-title svg { color: #a855f7; }
.skill-group[data-category="other"] .skill-group-title { color: #10b981; }
.skill-group[data-category="other"] .skill-group-title svg { color: #10b981; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.skill-tag {
  font-size: 0.82rem; font-weight: 500; color: var(--text-dim);
  padding: 6px 14px; border-radius: 100px;
  transition: all 0.2s ease;
  cursor: default; position: relative;
}

/* Category colors for tags */
.skill-group[data-category="frontend"] .skill-tag {
  background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.15);
}
.skill-group[data-category="frontend"] .skill-tag:hover {
  background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.3); color: var(--text);
}
.skill-group[data-category="tools"] .skill-tag {
  background: rgba(168, 85, 247, 0.08); border: 1px solid rgba(168, 85, 247, 0.15);
}
.skill-group[data-category="tools"] .skill-tag:hover {
  background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.3); color: var(--text);
}
.skill-group[data-category="other"] .skill-tag {
  background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.15);
}
.skill-group[data-category="other"] .skill-tag:hover {
  background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: var(--text);
}

/* Stagger animation */
.skill-tag {
  opacity: 0; transform: translateY(10px);
  animation: tagIn 0.4s ease forwards;
}
@keyframes tagIn {
  to { opacity: 1; transform: translateY(0); }
}

.skill-group:nth-child(1) .skill-tag:nth-child(1) { animation-delay: 0ms; }
.skill-group:nth-child(1) .skill-tag:nth-child(2) { animation-delay: 60ms; }
.skill-group:nth-child(1) .skill-tag:nth-child(3) { animation-delay: 120ms; }
.skill-group:nth-child(1) .skill-tag:nth-child(4) { animation-delay: 180ms; }
.skill-group:nth-child(1) .skill-tag:nth-child(5) { animation-delay: 240ms; }
.skill-group:nth-child(1) .skill-tag:nth-child(6) { animation-delay: 300ms; }
.skill-group:nth-child(2) .skill-tag:nth-child(1) { animation-delay: 80ms; }
.skill-group:nth-child(2) .skill-tag:nth-child(2) { animation-delay: 140ms; }
.skill-group:nth-child(2) .skill-tag:nth-child(3) { animation-delay: 200ms; }
.skill-group:nth-child(2) .skill-tag:nth-child(4) { animation-delay: 260ms; }
.skill-group:nth-child(2) .skill-tag:nth-child(5) { animation-delay: 320ms; }
.skill-group:nth-child(3) .skill-tag:nth-child(1) { animation-delay: 160ms; }
.skill-group:nth-child(3) .skill-tag:nth-child(2) { animation-delay: 220ms; }
.skill-group:nth-child(3) .skill-tag:nth-child(3) { animation-delay: 280ms; }
.skill-group:nth-child(3) .skill-tag:nth-child(4) { animation-delay: 340ms; }

/* Skill count */
.skill-count {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 4px;
}

/* About */
.about { padding: 100px 0; border-top: 1px solid var(--border); }

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

.about-photo {
  width: 200px; height: 200px; border-radius: 50%;
  overflow: hidden; background: var(--surface);
  position: relative; flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(99, 102, 241, 0.3), 0 0 60px rgba(99, 102, 241, 0.2);
  transition: box-shadow 0.3s ease;
}
.about-photo:hover {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px rgba(99, 102, 241, 0.5), 0 0 80px rgba(99, 102, 241, 0.35);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-fallback {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--text-muted);
}
.about-photo-fallback svg { width: 48px; height: 48px; }

.about-text-col .section-head { margin-bottom: 20px; }
.about-text-col .section-title { font-size: 1.8rem; }

.about-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 8px;
  flex-wrap: wrap;
}
.about-location {
  font-size: 0.85rem; color: var(--text-dim);
}
.about-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-dim);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.about-bio { font-size: 0.95rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 24px; }

.about-services {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.about-service {
  font-size: 0.8rem; font-weight: 500; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  transition: all 0.2s ease;
}
.about-service:hover {
  background: rgba(99, 102, 241, 0.08); border-color: rgba(99, 102, 241, 0.2);
  color: var(--text);
}

.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.about-stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: all 0.3s var(--ease);
}
.about-stat-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.about-stat-num {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.03em;
  font-family: var(--mono);
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 4px;
}
.about-stat-label { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }

/* Contact */
.contact { padding: 100px 0; border-top: 1px solid var(--border); }

.section-desc { font-size: 1.05rem; color: var(--text-dim); margin-top: 12px; max-width: 560px; line-height: 1.7; }

.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 52px;
}

.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 24px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none;
  transition: all 0.3s var(--ease);
}
.contact-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.contact-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.contact-card-icon svg { width: 24px; height: 24px; color: white; }

.contact-card-info { display: flex; flex-direction: column; }
.contact-card-info strong { font-size: 1rem; font-weight: 700; color: var(--text); }
.contact-card-info span { font-size: 0.85rem; color: var(--text-dim); }
.contact-card-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.contact-form-wrapper { max-width: 680px; margin: 0 auto; }

.contact-form-lead {
  text-align: center; font-size: 1rem; color: var(--text-dim);
  margin-bottom: 24px;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-form input,
.contact-form textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px 18px;
  color: var(--text); font-family: var(--font); font-size: 0.93rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.char-counter { font-size: 0.8rem; color: var(--text-muted); }

.form-toast {
  padding: 0; max-height: 0; overflow: hidden;
  border-radius: var(--radius); font-size: 0.88rem;
  transition: all 0.4s var(--ease); text-align: center;
}
.form-toast.success {
  padding: 14px 20px; max-height: 80px; margin-top: 8px;
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3);
  color: #4ade80;
}
.form-toast.error {
  padding: 14px 20px; max-height: 80px; margin-top: 8px;
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Process */
.process { padding: 100px 0; border-top: 1px solid var(--border); }

.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}

.process-step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  position: relative; overflow: hidden;
  transition: all 0.4s var(--ease);
}
.process-step:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.process-num {
  font-size: 2.4rem; font-weight: 800; font-family: var(--mono);
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px; line-height: 1;
}

.process-step h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.85rem; color: var(--text-dim); line-height: 1.7;
}

/* Back to top */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border2);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.back-to-top.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.back-to-top:hover {
  background: var(--surface2); border-color: var(--accent);
  color: var(--accent);
}

/* Active nav link */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 860px) {
  .project-card { grid-template-columns: 1fr; }
  .project-visual { height: 200px; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .about-photo { width: 180px; height: 180px; margin: 0 auto; }
  .about-meta { justify-content: center; }
  .about-services { justify-content: center; }
  .about-stats { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav {
    background: rgba(5, 5, 13, 0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 20px;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg); padding: 28px 24px;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 100px 0 60px; }
  .hero-name { font-size: 2.6rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section-title { font-size: 1.8rem; }
  .projects, .skills, .about, .process, .contact { padding: 72px 0; }
  .process-num { font-size: 2rem; }
  .project-info { padding: 20px; }
  .project-visual { min-height: 160px; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 20px; }
  .about-stat-num { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { padding: 18px; }
  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.2rem; }
  .hero-title { font-size: 1rem; }
  .hero-desc { font-size: 0.9rem; }
  .section-title { font-size: 1.6rem; }
  .section-kicker { font-size: 0.7rem; }
  .project-info { padding: 16px; }
  .project-badge { font-size: 0.6rem; padding: 3px 8px; }
  .project-type-badge { font-size: 0.55rem; padding: 2px 6px; }
  .project-name a { font-size: 1.05rem; }
  .project-stack span { font-size: 0.68rem; }
  .process-num { font-size: 1.8rem; }
  .process-step { padding: 24px; }
  .about-photo { width: 140px; height: 140px; }
  .about-text-col .section-title { font-size: 1.6rem; }
  .about-stat-num { font-size: 1.4rem; }
  .about-stat-label { font-size: 0.72rem; }
  .about-stat-card { padding: 14px; }
  .about-stats { gap: 10px; }
  .contact-card { padding: 14px; gap: 12px; }
  .contact-card-icon { width: 40px; height: 40px; }
  .contact-card-info strong { font-size: 0.9rem; }
  .contact-card-info span { font-size: 0.8rem; }
  .nav.open .nav-links { padding: 20px; gap: 16px; }
  .nav-links a { font-size: 1.1rem; min-height: 44px; display: flex; align-items: center; }
  .filter-btn { padding: 8px 14px; font-size: 0.8rem; }
  .project-filters { gap: 8px; }
  .hero-actions { gap: 10px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .container { padding: 0 16px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .footer-copy { font-size: 0.75rem; }
  .skill-tag { font-size: 0.75rem; padding: 5px 12px; }
  .skill-count { font-size: 0.7rem; }
  .skill-group-title { font-size: 0.75rem; }
}