*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      oklch(11% 0.018 240);
  --bg2:     oklch(15% 0.02 240);
  --bg3:     oklch(19% 0.022 240);
  --border:  oklch(28% 0.025 240);
  --text:    oklch(91% 0.008 240);
  --muted:   oklch(58% 0.012 240);
  --accent:  oklch(72% 0.19 192);
  --accent2: oklch(72% 0.19 58);
  --font:    'Space Grotesk', sans-serif;
  --mono:    'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: oklch(11% 0.018 240 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── LAYOUT ───────────────────────────────────────────────── */
section { padding: 100px 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

/* ── GLOW DECORATIONS ─────────────────────────────────────── */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.08;
}
.glow-1 { width: 500px; height: 500px; background: var(--accent);  top: -100px; right: -100px; }
.glow-2 { width: 400px; height: 400px; background: var(--accent2); bottom: -100px; left: -100px; }

/* ── SECTION LABELS ───────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--bg);
  padding: 14px 28px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  border: none; cursor: pointer; font-family: var(--font);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 13px 27px; border-radius: 8px;
  font-weight: 500; font-size: 15px; text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer; font-family: var(--font);
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-1px); }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px 0 0;
  position: relative; overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: oklch(72% 0.19 192 / 0.1);
  border: 1px solid oklch(72% 0.19 192 / 0.25);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 24px; letter-spacing: 0.08em;
}

.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-name {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.hero-name span { color: var(--accent); }

.hero-title {
  font-size: 1.2rem; color: var(--muted);
  font-weight: 400; margin-bottom: 32px; line-height: 1.5;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Code card */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.hero-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 100%; max-width: 420px;
  font-family: var(--mono); font-size: 13px;
  line-height: 1.8; color: var(--muted);
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card-line { display: flex; gap: 4px; flex-wrap: wrap; }
.card-indent-1 { padding-left: 16px; }
.card-indent-2 { padding-left: 32px; }

.card-comment { color: oklch(58% 0.012 240 / 0.6); font-style: italic; }
.card-key     { color: oklch(72% 0.19 192 / 0.7); }
.card-str     { color: var(--accent2); }
.card-num     { color: var(--accent); }
.card-plain   { color: var(--text); }
.card-space   { white-space: pre; }

/* Stats */
.stats-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  margin-top: 60px;
}

.stat-item { background: var(--bg2); padding: 28px 32px; text-align: center; }
.stat-num  { font-size: 2.2rem; font-weight: 700; color: var(--accent); font-family: var(--mono); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--muted); }

/* ── EXPERTISE ────────────────────────────────────────────── */
#expertise { background: var(--bg2); }

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

.expertise-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.expertise-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.expertise-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.expertise-card:hover::after { transform: scaleX(1); }

.expertise-icon { font-size: 28px; margin-bottom: 16px; display: block; }
.expertise-name { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.expertise-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── EXPERIENCE ───────────────────────────────────────────── */
.exp-timeline { position: relative; }
.exp-timeline::before {
  content: '';
  position: absolute; left: 0; top: 8px; bottom: 0;
  width: 1px; background: var(--border);
}

.exp-item { padding-left: 40px; padding-bottom: 56px; position: relative; }
.exp-item:last-child { padding-bottom: 0; }

.exp-dot {
  position: absolute; left: -6px; top: 6px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px oklch(72% 0.19 192 / 0.2);
}
.exp-dot.amber {
  background: var(--accent2);
  box-shadow: 0 0 0 3px oklch(72% 0.19 58 / 0.2);
}

.exp-period { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.04em; }
.exp-role   { font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.exp-company { font-size: 14px; color: var(--accent); margin-bottom: 20px; font-weight: 500; }

.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.exp-bullets li { font-size: 14px; color: var(--muted); padding-left: 16px; position: relative; line-height: 1.6; }
.exp-bullets li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 10px; top: 3px; }

.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.exp-tag {
  background: oklch(72% 0.19 192 / 0.1);
  color: var(--accent); font-size: 12px;
  font-family: var(--mono); padding: 3px 10px;
  border-radius: 4px; border: 1px solid oklch(72% 0.19 192 / 0.2);
}
.exp-tag.amber {
  background: oklch(72% 0.19 58 / 0.1);
  color: var(--accent2);
  border-color: oklch(72% 0.19 58 / 0.25);
}

/* ── SKILLS ───────────────────────────────────────────────── */
#skills { background: var(--bg2); }

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

.skill-group {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 32px;
}

.skill-group-label {
  font-family: var(--mono); font-size: 11px; color: var(--accent2);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.skill-group-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  background: var(--bg3); color: var(--text);
  font-size: 13px; font-family: var(--mono);
  padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s; cursor: default;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── ACHIEVEMENTS ─────────────────────────────────────────── */
.achievements-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.achievement-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px 28px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color 0.2s;
}
.achievement-item:hover { border-color: var(--accent); }

.ach-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: oklch(72% 0.19 192 / 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

.ach-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.ach-text strong { color: var(--text); font-weight: 600; }

/* ── EDUCATION ────────────────────────────────────────────── */
#education { background: var(--bg2); }

.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.edu-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s;
}
.edu-card:hover { border-color: var(--accent); }
.edu-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}

.edu-period { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.edu-degree { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.edu-school { font-size: 14px; color: var(--accent); font-weight: 500; }

/* ── CONTACT ──────────────────────────────────────────────── */
#contact { text-align: center; position: relative; overflow: hidden; }
#contact::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, oklch(72% 0.19 192 / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 16px; line-height: 1.1;
}
.contact-sub { color: var(--muted); margin-bottom: 40px; font-size: 1.1rem; }
.contact-section-label { justify-content: center; display: flex; }

.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 24px;
  color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-link:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 13px;
  font-family: var(--mono);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .container { padding: 0 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .expertise-grid,
  .skills-grid,
  .achievements-grid,
  .edu-grid,
  .stats-strip { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 8px; padding: 24px; text-align: center; }
}
