:root {
  --bg: #0b0f14;
  --bg-elevated: #11161d;
  --bg-card: #141a22;
  --border: #232b36;
  --text: #e7edf5;
  --text-muted: #9aa7b8;
  --text-faint: #647186;
  --accent: #5eead4;
  --accent-strong: #2dd4bf;
  --accent-ink: #04211c;
  --max-width: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ---- Nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-monogram {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  padding: 8px 16px !important;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 600;
  font-size: 13px !important;
}

.nav-cta:hover { background: var(--accent-strong); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
}

/* ---- Sections ---- */

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; }

.section-title {
  font-size: clamp(24px, 3.5vw, 32px);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 620px;
  margin: 0 0 40px;
}

/* ---- Reveal on scroll ---- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero ---- */

.hero {
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(94, 234, 212, 0.18), transparent);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.hero-avatar {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  box-shadow: 0 20px 60px -20px rgba(94, 234, 212, 0.45);
  flex-shrink: 0;
}

.hero-name {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-role {
  color: var(--accent);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
  margin-top: 8px;
}

.hero-pitch {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 18px;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  font-size: 13px;
  color: var(--text-muted);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); }

/* ---- About ---- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}

.about-text p { color: var(--text-muted); margin: 0 0 16px; }
.about-text strong { color: var(--text); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-self: start;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Skills ---- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.skill-group h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row + .chip-row {
  margin-top: 8px;
}

.skill-subhead {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 10px 0 8px;
}

.chip {
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ---- Experience ---- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.timeline-item:first-child { border-top: none; }

.timeline-date {
  color: var(--text-faint);
  font-size: 13px;
  white-space: nowrap;
}

.timeline-role { font-weight: 700; font-size: 16px; }
.timeline-company { color: var(--accent); font-size: 13.5px; margin-top: 2px; }
.timeline-desc { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* ---- Portfolio ---- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.case-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-card h3 {
  font-size: 17px;
  margin-top: 8px;
}

.case-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 10px 0 14px;
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-stack span {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-faint);
  border: 1px solid var(--border);
}

/* ---- Languages / Education ---- */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.info-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.lang-row:first-child { border-top: none; }
.lang-row span:last-child { color: var(--text-faint); }

/* ---- Contact / Footer ---- */

.contact {
  text-align: center;
}

.contact .section-sub { margin-left: auto; margin-right: auto; }

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ---- Responsive ---- */

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-avatar { margin: 0 auto; }
  .hero-pitch, .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .about-grid, .split-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}
