:root {
  --bg: #fafbfd;
  --surface: #ffffff;
  --surface-alt: #f3f6fb;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-tint: #eff6ff;
  --emerald: #047857;
  --emerald-tint: #ecfdf5;
  --text: #1e293b;
  --muted: #526074;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

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

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--navy);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 253, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--navy);
  flex-shrink: 0;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--navy);
}

.btn-white:hover {
  background: #e2e8f0;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Hero */
.hero {
  padding: 60px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.identity-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #1d4ed8, 0 12px 24px -8px rgba(15, 23, 42, 0.25);
  flex-shrink: 0;
}

.identity-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-name {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0;
}

.hero-role {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-tint);
  color: var(--navy-soft);
  border: 1px solid #bfdbfe;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  width: fit-content;
  margin-top: 3px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.hero-tagline {
  font-size: clamp(1.65rem, 2.7vw, 2.3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 16px;
}

.accent-text {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.04rem;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 58ch;
}

.hero-subtitle strong {
  color: var(--navy);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.social-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.social-link:hover {
  color: var(--accent);
}

/* Impact Panel */
.impact-panel {
  background: var(--navy);
  color: #f8fafc;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 50px -18px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
  display: block;
}

.panel-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #94a3b8;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 14px;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #60a5fa;
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-label {
  font-size: 0.78rem;
  line-height: 1.38;
  color: #cbd5e1;
}

.panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mono-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  color: #e2e8f0;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.28);
  padding: 4px 9px;
  border-radius: 6px;
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 34px;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.eyebrow-light {
  color: #93c5fd;
}

.section h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 8px;
}

.section-lead {
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.project-card.hidden {
  display: none;
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-blue {
  background: var(--accent-tint);
  color: var(--accent);
}

.badge-emerald {
  background: var(--emerald-tint);
  color: var(--emerald);
}

.badge-slate {
  background: var(--surface-alt);
  color: var(--navy-soft);
}

.metric-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--navy);
  background: #f1f5f9;
  padding: 4px 9px;
  border-radius: 6px;
}

.project-card h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 2px 0 0;
}

.card-summary {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.impact-box {
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 10px 13px;
  font-size: 0.87rem;
  color: var(--navy-soft);
}

.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

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

.tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
}

.card-link, .inline-link {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover, .inline-link:hover {
  text-decoration: underline;
}

.private-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.more-work {
  margin-top: 26px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.timeline-org {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
}

.timeline-content h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: var(--navy);
}

.timeline-content ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-content li {
  margin-bottom: 6px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.skill-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--navy);
}

.skill-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Credentials */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.cred-card h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.cred-item {
  margin-bottom: 14px;
}

.cred-item:last-child {
  margin-bottom: 0;
}

.cred-title {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy);
  line-height: 1.35;
}

.cred-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

.cert-list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.87rem;
  color: var(--muted);
}

.cert-list li {
  margin-bottom: 8px;
}

.cert-list strong {
  color: var(--navy);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: 20px;
  padding: 40px 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-copy {
  max-width: 560px;
}

.cta-banner h2 {
  color: #fff;
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.cta-banner p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--navy);
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid,
  .projects-grid,
  .skills-grid,
  .creds-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .cta-banner {
    padding: 28px 24px;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 155px;
  }

  .btn-sm {
    white-space: nowrap;
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .nav-inner {
    gap: 10px;
  }

  .identity-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-avatar {
    width: 84px;
    height: 84px;
  }
}
