:root {
  --bg: #eef2ff;
  --bg-subtle: #e8edfa;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --accent: #1d4ed8;
  --accent-light: #3b82f6;
  --accent-hover: #1e40af;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --accent-glow: rgba(59, 130, 246, 0.22);
  --violet: #7c3aed;
  --violet-soft: rgba(124, 58, 237, 0.1);
  --teal: #0d9488;
  --teal-soft: rgba(13, 148, 136, 0.1);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.1);
  --rose: #e11d48;
  --rose-soft: rgba(225, 29, 72, 0.08);
  --success: #059669;
  --success-bg: #ecfdf5;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 72px;
  --max: 1140px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.05), 0 16px 32px rgba(29, 78, 216, 0.08);
  --shadow-lg: 0 8px 16px rgba(15, 23, 42, 0.06), 0 32px 64px rgba(99, 102, 241, 0.12);
  --gradient-brand: linear-gradient(135deg, #1d4ed8 0%, #6366f1 45%, #7c3aed 100%);
  --gradient-warm: linear-gradient(135deg, #0d9488 0%, #1d4ed8 50%, #7c3aed 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  position: relative;
  overflow-x: hidden;
}

/* Ambient background layers */
.bg-mesh {
  position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none;
}
.bg-mesh-inner {
  position: absolute; inset: -25%;
  background:
    radial-gradient(ellipse 50% 40% at 10% 8%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 38% at 92% 12%, rgba(124, 58, 237, 0.18), transparent 52%),
    radial-gradient(ellipse 55% 45% at 78% 88%, rgba(13, 148, 136, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 5% 75%, rgba(217, 119, 6, 0.1), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(29, 78, 216, 0.12), transparent 55%),
    linear-gradient(165deg, #eef2ff 0%, #e0e7ff 30%, #f0fdfa 55%, #faf5ff 80%, #eef2ff 100%);
}
.bg-dots {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(29, 78, 216, 0.12) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 25%, black 15%, transparent 78%);
  opacity: 0.65;
}
.bg-grid-lines {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.45;
  background:
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 90%);
}
.bg-pattern-diagonal {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.035;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(29, 78, 216, 0.5) 12px,
    rgba(29, 78, 216, 0.5) 13px
  );
}
.bg-orbs {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: 0.45; will-change: transform;
}
.orb-1 { width: 420px; height: 420px; top: -8%; left: -6%; background: rgba(59, 130, 246, 0.35); }
.orb-2 { width: 360px; height: 360px; top: 15%; right: -8%; background: rgba(124, 58, 237, 0.28); }
.orb-3 { width: 300px; height: 300px; bottom: 10%; left: 20%; background: rgba(13, 148, 136, 0.25); }
.orb-4 { width: 280px; height: 280px; bottom: -5%; right: 15%; background: rgba(217, 119, 6, 0.2); }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem));
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text); }
.nav-brand:hover { color: var(--text); }
.nav-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm);
  object-fit: cover;
}
.nav-name { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.02em; }
.nav-name span { display: block; font-size: 0.6875rem; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 0.125rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); padding: 0.5rem 0.875rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #2563eb 100%) !important;
  color: #fff !important; margin-left: 0.5rem !important;
  border-radius: 8px !important; box-shadow: 0 2px 8px var(--accent-glow);
}
.nav-cta:hover { color: #fff !important; filter: brightness(1.06); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 1px; }

main { padding-top: var(--nav-h); }

/* Typography */
.section-label {
  display: inline-block; font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  position: relative;
}
.section-label::after {
  content: ""; display: block; width: 32px; height: 2px; margin-top: 0.4rem;
  background: var(--gradient-brand); border-radius: 2px;
}
.section-head.center .section-label::after { margin: 0.4rem auto 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--success);
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  background: var(--success-bg); border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 999px; margin-bottom: 1.25rem;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
}
.page-title {
  font-size: clamp(1.875rem, 4vw, 2.625rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.75rem;
}
.page-subtitle { color: var(--text-muted); font-size: 1.0625rem; max-width: 560px; line-height: 1.7; }
.section { padding: 5.5rem 0; position: relative; }
.section-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}
.section-subtle {
  background:
    linear-gradient(180deg, rgba(224, 231, 255, 0.55) 0%, rgba(240, 253, 250, 0.45) 50%, rgba(250, 245, 255, 0.5) 100%);
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  position: relative;
}
.section-subtle::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 20px 20px; opacity: 0.6;
}
.section-colored {
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.7) 0%, rgba(237, 233, 254, 0.5) 100%);
  position: relative; overflow: hidden;
}
.section-colored::after {
  content: ""; position: absolute; top: -40%; right: -15%; width: 400px; height: 400px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  pointer-events: none;
}
.section > .container { position: relative; z-index: 1; }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head.center p { margin: 0 auto; }
.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 0.5rem;
}
.section-head p { color: var(--text-muted); font-size: 1.025rem; }

/* Hero */
.hero {
  padding: 3rem 0 5rem;
  position: relative;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}
.hero-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: start;
}
.hero-photo-wrap { position: relative; }
.hero-photo {
  width: 120px; height: 120px; border-radius: var(--radius-xl);
  border: 3px solid var(--surface); object-fit: cover;
  box-shadow: var(--shadow-md); position: relative; z-index: 1;
}
.hero-photo-ring {
  position: absolute; inset: -8px; border-radius: calc(var(--radius-xl) + 6px);
  background: conic-gradient(from 0deg, #3b82f6, #6366f1, #7c3aed, #0d9488, #3b82f6);
  opacity: 0.55; z-index: 0;
}
.hero-content h1,
.hero-word {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #6366f1 75%, #7c3aed 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title-line {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600; font-size: 1.0625rem;
  margin-bottom: 1rem; letter-spacing: -0.01em;
}
.hero-lead {
  font-size: 1.0625rem; color: var(--text-secondary);
  margin-bottom: 1.75rem; max-width: 520px; line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0; }

/* Bento sidebar */
.hero-aside { display: flex; flex-direction: column; gap: 1rem; }
.hero-content h1 {
  font-size: clamp(1.875rem, 4vw, 2.625rem); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 0.5rem;
}
.bento-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.375rem 1.5rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.bento-card-accent {
  background: linear-gradient(145deg, rgba(255,255,255,0.92) 0%, rgba(224,231,255,0.6) 100%);
  border-color: rgba(29, 78, 216, 0.18);
}
.bento-stat:nth-child(1) strong { color: var(--accent); }
.bento-stat:nth-child(2) strong { color: var(--violet); }
.bento-stat:nth-child(3) strong { color: var(--teal); }
.bento-stat:nth-child(4) strong { color: var(--amber); }
.bento-card h3 {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem;
}
.bento-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.bento-stat {
  padding: 0.875rem; background: var(--bg-subtle);
  border-radius: var(--radius); border: 1px solid var(--border);
  text-align: center;
}
.bento-stat strong {
  display: block; font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.bento-stat span { font-size: 0.6875rem; color: var(--text-muted); line-height: 1.3; display: block; margin-top: 0.15rem; }

.marquee-wrap {
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 0.5rem; width: max-content;
}
.marquee-track span {
  padding: 0.35rem 0.75rem; font-size: 0.75rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 999px; white-space: nowrap; font-family: var(--mono);
}

.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2.5rem; padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}
.hero-meta div:nth-child(1) strong { color: var(--accent); }
.hero-meta div:nth-child(2) strong { color: var(--violet); }
.hero-meta div:nth-child(3) strong { color: var(--teal); }
.hero-meta div:nth-child(4) strong { color: var(--amber); }
.hero-meta span { font-size: 0.75rem; color: var(--text-muted); }

.hero-meta div { text-align: center; padding: 0.5rem; border-right: 1px solid rgba(99, 102, 241, 0.1); }
.hero-meta div:last-child { border-right: none; }
.hero-meta strong {
  display: block; font-size: 1.375rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hero-panel {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(224,231,255,0.7) 0%, rgba(255,255,255,0.9) 60%, rgba(240,253,250,0.6) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.hero-panel p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.6875rem 1.25rem; border-radius: 8px; font-weight: 600;
  font-size: 0.875rem; border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  color: #fff; box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover { color: #fff; }
.btn-secondary {
  background: var(--surface); color: var(--text);
  border-color: var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.8125rem 1.5rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
.project-card {
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(4px);
}
.project-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-lg);
}
.project-shot {
  aspect-ratio: 16/10; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--bg-subtle), #e2e8f0);
  border-bottom: 1px solid var(--border);
}
.project-shot img,
.project-shot video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.project-shot .project-video {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease;
}
.project-card[data-has-video="true"]:hover .project-video { opacity: 1; }
.project-card[data-has-video="true"]:hover .project-shot img { opacity: 0; }
.project-body { padding: 1.25rem; }
.project-body h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.35rem; }
.project-body p {
  font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.75rem;
  line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
.tag {
  font-size: 0.6875rem; font-weight: 500; padding: 0.2rem 0.5rem;
  background: var(--bg-subtle); color: var(--text-muted);
  border-radius: 4px; border: 1px solid var(--border); font-family: var(--mono);
}
.project-links { font-size: 0.8125rem; font-weight: 600; }

.featured-home {
  position: relative;
  padding: 4rem 0 4.5rem;
}
.featured-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.08), transparent 70%);
  pointer-events: none;
}
.featured-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.625rem;
}
.featured-grid .project-shot { aspect-ratio: 16/9; }
.featured-grid .project-body h3 { font-size: 1rem; }
.featured-grid .project-body p { -webkit-line-clamp: 2; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
  padding: 0.375rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); width: fit-content;
}
.filter-btn {
  padding: 0.45rem 0.9rem; border-radius: 6px; border: none;
  background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: 0.8125rem; font-weight: 500; cursor: pointer;
}
.filter-btn:hover { color: var(--text); background: var(--bg-subtle); }
.filter-btn.active {
  background: var(--text); color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.125rem; }
.service-card {
  padding: 1.5rem; background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(99, 102, 241, 0.1); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  backdrop-filter: blur(6px);
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-accent, var(--gradient-brand));
  opacity: 0.85;
}
.service-card:nth-child(1) { --card-accent: linear-gradient(90deg, #2563eb, #3b82f6); }
.service-card:nth-child(2) { --card-accent: linear-gradient(90deg, #7c3aed, #a78bfa); }
.service-card:nth-child(3) { --card-accent: linear-gradient(90deg, #0d9488, #14b8a6); }
.service-card:nth-child(4) { --card-accent: linear-gradient(90deg, #d97706, #f59e0b); }
.service-card::after {
  content: ""; position: absolute; bottom: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--card-glow, var(--accent-soft)); opacity: 0.5;
  pointer-events: none; transition: transform 0.4s ease;
}
.service-card:nth-child(1) { --card-glow: rgba(37, 99, 235, 0.15); }
.service-card:nth-child(2) { --card-glow: rgba(124, 58, 237, 0.15); }
.service-card:nth-child(3) { --card-glow: rgba(13, 148, 136, 0.15); }
.service-card:nth-child(4) { --card-glow: rgba(217, 119, 6, 0.15); }
.service-card:hover::after { transform: scale(1.5); }
.service-card:hover::before { opacity: 1; height: 5px; }
.service-card:nth-child(1) .service-num { background: var(--accent-soft); color: var(--accent); }
.service-card:nth-child(2) .service-num { background: var(--violet-soft); color: var(--violet); }
.service-card:nth-child(3) .service-num { background: var(--teal-soft); color: var(--teal); }
.service-card:nth-child(4) .service-num { background: var(--amber-soft); color: var(--amber); }
.service-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.service-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }
.service-num {
  font-size: 0.6875rem; font-weight: 700; color: var(--accent);
  font-family: var(--mono); letter-spacing: 0.06em; margin-bottom: 0.875rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--accent-soft);
  border-radius: 6px;
}

/* About */
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.about-photo {
  border-radius: var(--radius-xl); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.about-text h2 { font-size: 1.375rem; margin-bottom: 1rem; font-weight: 700; }
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.9375rem; line-height: 1.75; }
.timeline-wrap { max-width: 720px; }
.timeline-head {
  margin-bottom: 2rem;
  padding-left: calc(var(--timeline-marker) + var(--timeline-gap));
}
.timeline-head h2 { margin-bottom: 0; }
.timeline {
  --timeline-marker: 12px;
  --timeline-gap: 1.5rem;
  --timeline-line: 2px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-marker) / 2 - var(--timeline-line) / 2);
  top: 1.75rem;
  bottom: 1rem;
  width: var(--timeline-line);
  background: linear-gradient(180deg, var(--accent) 0%, rgba(99, 102, 241, 0.35) 8%, var(--border) 18%, var(--border) 100%);
  border-radius: 2px;
}
.timeline-item {
  display: grid;
  grid-template-columns: var(--timeline-marker) 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--timeline-gap);
  row-gap: 0.4rem;
  align-items: start;
  padding-bottom: 2.25rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.timeline-marker {
  grid-column: 1;
  grid-row: 2;
  width: var(--timeline-marker);
  height: var(--timeline-marker);
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
  margin-top: 0.15rem;
  position: relative;
  z-index: 1;
}
.timeline-body {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}
.timeline-body h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.5rem; line-height: 1.35; }
.timeline-body p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.skill-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.skill-group h3 { font-size: 0.8125rem; font-weight: 700; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.skill-item { margin-bottom: 1.125rem; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.8125rem; margin-bottom: 0.45rem; font-weight: 500; }
.skill-bar { height: 6px; background: var(--bg-subtle); border-radius: 999px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #6366f1); border-radius: 999px; }
.tech-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-list span {
  padding: 0.4rem 0.75rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: start; }
.contact-info-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.contact-card { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-card:last-of-type { border-bottom: none; }
.contact-card h3 { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; font-weight: 700; }
.contact-card a, .contact-card p { font-size: 0.9375rem; color: var(--text); font-weight: 500; }
.status-banner {
  padding: 1rem 1.125rem; background: var(--success-bg);
  border: 1px solid rgba(5, 150, 105, 0.25); border-radius: var(--radius); margin-top: 1rem;
}
.status-banner strong { color: var(--success); font-size: 0.875rem; display: block; }
.status-banner p { font-size: 0.8125rem; color: #065f46; margin-top: 0.25rem; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md);
}
.contact-form h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }
.contact-form label {
  display: block; font-size: 0.8125rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 0.875rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 0.35rem;
  padding: 0.6875rem 0.875rem; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.9375rem;
  background: var(--bg); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* CTA */
.cta-band {
  text-align: center; padding: 3.5rem 2rem;
  border: 1px solid rgba(99, 102, 241, 0.15); border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(224,231,255,0.6) 40%, rgba(237,233,254,0.5) 100%);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  pointer-events: none; animation: orbPulse 6s ease-in-out infinite;
}
.cta-band::after {
  content: ""; position: absolute; bottom: -40%; left: -10%;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
  pointer-events: none; animation: orbPulse 8s ease-in-out infinite reverse;
}
.cta-band h2 { font-size: 1.625rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; position: relative; }
.cta-band p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9375rem; position: relative; }
.cta-band .btn { position: relative; }

/* Footer */
.footer {
  border-top: 1px solid rgba(99, 102, 241, 0.12); padding: 2.5rem 0;
  text-align: center; color: var(--text-muted); font-size: 0.8125rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(238,242,255,0.8));
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--accent); }

/* Education */
.education-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(224,231,255,0.5));
  border: 1px solid rgba(99, 102, 241, 0.15); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.education-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), #eef2ff);
  border: 1px solid rgba(29, 78, 216, 0.15);
  border-radius: 12px; font-size: 0.75rem; font-weight: 800;
  color: var(--accent); letter-spacing: -0.02em;
}
.education-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.education-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; }
.education-school { color: var(--accent); font-weight: 600; font-size: 0.9375rem; }

/* Tech icon grid */
.tech-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.875rem;
}
.tech-icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.1); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); cursor: default;
  backdrop-filter: blur(4px);
}
.tech-icon-item:nth-child(4n+1) .tech-icon-wrap { background: var(--accent-soft); }
.tech-icon-item:nth-child(4n+2) .tech-icon-wrap { background: var(--violet-soft); }
.tech-icon-item:nth-child(4n+3) .tech-icon-wrap { background: var(--teal-soft); }
.tech-icon-item:nth-child(4n) .tech-icon-wrap { background: var(--amber-soft); }
.tech-icon-wrap {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); border-radius: 10px;
  border: 1px solid var(--border); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.tech-icon-wrap img { width: 28px; height: 28px; object-fit: contain; }
.tech-icon-label {
  font-size: 0.6875rem; font-weight: 600; color: var(--text-muted);
  text-align: center; line-height: 1.2;
}
.tech-icon-item:hover .tech-icon-wrap {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.2);
}
.tech-icon-item:hover .tech-icon-label { color: var(--text); }

.nav-cv {
  border: 1px solid var(--border-strong) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  font-weight: 600 !important;
}
.nav-cv:hover { border-color: var(--accent) !important; color: var(--accent) !important; }

.btn-cv {
  background: var(--surface) !important; color: var(--accent) !important;
  border: 1px solid rgba(29, 78, 216, 0.25) !important;
  box-shadow: var(--shadow-sm);
}
.btn-cv:hover { border-color: var(--accent) !important; background: var(--accent-soft) !important; color: var(--accent-hover) !important; }

.form-success {
  padding: 0.875rem 1rem; margin-bottom: 1.25rem;
  background: var(--success-bg); border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: var(--radius); color: #065f46;
  font-size: 0.9375rem; font-weight: 500; line-height: 1.5;
}

.hidden { display: none !important; }
.page-header { padding: 2.5rem 0 1rem; }
.section-cta { text-align: center; margin-top: 2.75rem; }

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { width: fit-content; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta div:nth-child(2) { border-right: none; }
  .hero-meta div { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-meta div:nth-last-child(-n+2) { border-bottom: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .section-panel { padding: 2rem 1.5rem; }
}
.nav-links .theme-toggle { margin: 0; }
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-name { display: none; }
  .theme-toggle { width: 36px; height: 36px; }
  .nav-links .theme-toggle { width: 100%; height: 42px; margin-top: 0.25rem; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: var(--surface);
    padding: 0.75rem; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0; transition: 0.3s;
    pointer-events: none; box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; text-align: center; }
  .hero-aside { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}
