:root {
  --bg: #f4f2ee;
  --card: #ffffff;
  --text: #1d2226;
  --muted: #5e6b75;
  --line: #e3e0da;
  --accent: #0a66c2;
  --accent-dark: #004182;
  --navy: #0b2545;
  --radius: 10px;
  --shadow: 0 0 0 1px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 .6em; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1128px; margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.brand {
  width: 36px; height: 36px; border-radius: 6px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center; letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }
.topnav { display: flex; gap: 4px; align-items: center; }
.topnav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
}
.topnav a:hover { color: var(--text); background: #f0eee9; text-decoration: none; }
.topnav .topnav-cta { color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 14px; margin-left: 6px; }
.topnav .topnav-cta:hover { background: #eaf3fc; color: var(--accent-dark); }

/* Layout */
.layout {
  max-width: 1128px; margin: 24px auto; padding: 0 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px;
  align-items: start;
}
.main-col, .side-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.side-col { position: sticky; top: 80px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card > h2 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }

/* Profile */
.profile { padding: 0; overflow: hidden; }
.banner { height: 200px; background: var(--navy); }
.banner svg { width: 100%; height: 100%; display: block; }
.profile-body { padding: 0 24px 24px; position: relative; }
.avatar {
  width: 152px; height: 152px; border-radius: 50%;
  margin-top: -100px; border: 4px solid #fff;
  background: linear-gradient(140deg, #13315c, #134074 60%, #1f5f99);
  color: #fff; font-size: 54px; font-weight: 600; letter-spacing: .02em;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.profile-main { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 32px; }
.profile-main > * { grid-column: 1; }
.profile-main > .current { grid-column: 2; grid-row: 1 / span 3; }
.profile h1 { font-size: 26px; font-weight: 700; }
.headline { font-size: 16px; margin: 4px 0 6px; color: var(--text); max-width: 560px; }
.meta { color: var(--muted); font-size: 14px; }
.current {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; font-weight: 600; max-width: 230px;
}
.current li { display: flex; align-items: center; gap: 8px; }
.mini-logo {
  width: 32px; height: 32px; border-radius: 4px; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
}
.actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; border-radius: 999px;
  padding: 7px 18px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: #eaf3fc; box-shadow: inset 0 0 0 1px var(--accent); }
.btn-block { width: 100%; margin-top: 14px; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 18px 8px;
}
.stat { padding: 4px 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 24px; font-weight: 700; color: var(--navy); }
.stat span { font-size: 13px; color: var(--muted); }

/* Experience */
.exp { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.card > h2 + .exp { border-top: 0; padding-top: 0; }
.logo {
  width: 48px; height: 48px; border-radius: 6px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
}
.exp-body { min-width: 0; flex: 1; }
.exp h3 { font-size: 16px; font-weight: 600; }
.exp .sub { font-size: 14px; margin: 2px 0 0; }
.exp .dates { font-size: 14px; color: var(--muted); margin: 2px 0 8px; }
.exp ul { margin: 6px 0 8px; padding-left: 18px; }
.exp li { margin-bottom: 5px; }
.exp li::marker { color: #9aa5ad; }

.roles { margin-top: 12px; }
.role { position: relative; padding-left: 22px; padding-bottom: 8px; }
.role::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%; background: #b9c0c6;
}
.role:not(:last-child)::after {
  content: ""; position: absolute; left: 8px; top: 22px; bottom: -4px;
  width: 1px; background: #d3d7db;
}
.role + .role { margin-top: 8px; }
.role h4 { font-size: 15px; font-weight: 600; }
.role .dates { margin-bottom: 6px; }

.tags, .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.tags span {
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: #f3f2ef; border-radius: 999px; padding: 2px 10px;
}
.chips span {
  font-size: 13px; font-weight: 500; color: var(--text);
  border: 1px solid #cfd4d8; border-radius: 999px; padding: 4px 12px;
}

/* Logo colors */
.logo-tw { background: #0b2545; }
.logo-voya { background: #f05822; }
.logo-virtusa { background: #2b3a8c; }
.logo-citizen { background: #1a1a1a; }
.logo-eh { background: #0b8a8a; }
.logo-booker { background: #5a2d82; }
.logo-ship { background: #b0122e; }
.logo-pmi { background: #1f6fb2; font-size: 12px; }
.logo-ir { background: #e0362c; }

/* Skills */
.skill-group { padding: 12px 0; border-top: 1px solid var(--line); }
.card > h2 + .skill-group { border-top: 0; padding-top: 0; }
.skill-group h3 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }

/* Sidebar */
.side > h2 { font-size: 16px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.contact-list li { display: flex; align-items: center; gap: 10px; word-break: break-all; }
.ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.ic svg { width: 100%; height: 100%; }
.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.plain li strong { display: block; font-weight: 600; }
.plain li span { color: var(--muted); font-size: 13px; }
.top-skills li { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 500; }
.top-skills li:last-child { border-bottom: 0; padding-bottom: 0; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 12px 20px 36px; }

/* Responsive */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .side-col { position: static; }
  .profile-main { display: block; }
  .current { margin-top: 12px; flex-direction: row; flex-wrap: wrap; max-width: none; gap: 10px 20px; }
}
@media (max-width: 640px) {
  .topnav a:not(.topnav-cta) { display: none; }
  .layout { padding: 0 10px; margin-top: 12px; }
  .card { padding: 18px; }
  .card.profile { padding: 0; }
  .banner { height: 120px; }
  .profile-body { padding: 0 18px 20px; }
  .avatar { width: 112px; height: 112px; margin-top: -64px; font-size: 40px; }
  .profile h1 { font-size: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .stat:nth-child(3) { border-left: 0; }
  .logo { width: 40px; height: 40px; font-size: 13px; }
}

/* Print */
@media print {
  body { background: #fff; font-size: 12px; }
  .topbar, .actions, .btn, .footer { display: none !important; }
  .layout { display: block; margin: 0; max-width: none; }
  .side-col { position: static; margin-top: 12px; }
  .card { box-shadow: none; padding: 10px 0; }
  .banner { display: none; }
  .avatar { margin-top: 0; width: 64px; height: 64px; font-size: 22px; border: 0; }
  .current { display: none; }
  .exp { break-inside: avoid; }
}
