@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

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

:root {
  --navy:    #1a2744;
  --navy2:   #243058;
  --teal:    #2a7d6f;
  --teal-lt: #e6f4f1;
  --gold:    #c8a84b;
  --text:    #1c2333;
  --muted:   #6b7280;
  --light:   #f7f8fa;
  --border:  #e4e8ef;
  --white:   #ffffff;
  --radius:  10px;
}

html { font-size: 15px; }

body {
  font-family: 'Inter', sans-serif;
  background: #dde3ec;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

/* ── PAGE ── */
.page {
  background: var(--white);
  width: 100%;
  max-width: 960px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,39,68,0.18), 0 2px 8px rgba(26,39,68,0.08);
  animation: pageIn 0.5s ease;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HEADER ── */
.header {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 38px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.header-left { display: flex; align-items: center; gap: 22px; }

.avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #3da898);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 0 0 5px rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 0;
}
.avatar-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}

.name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.role {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.header-tags {
  display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap;
}
.htag {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 10px;
  border-radius: 20px;
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.contact-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-line:hover { color: #fff; }
.ci {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}

.divider-top {
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 60%, var(--teal) 100%);
}

/* ── BODY ── */
.body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}

/* ── LEFT COLUMN ── */
.left-col {
  background: var(--light);
  border-right: 1px solid var(--border);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── RIGHT COLUMN ── */
.right-col {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--white);
}

/* ── CARDS ── */
.card { display: flex; flex-direction: column; gap: 14px; }

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--navy);
}
.ct-bar {
  display: inline-block;
  width: 18px; height: 3px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Profile */
.profile-text {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Education */
.edu-item {
  display: flex;
  gap: 14px;
}
.edu-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 0 3px var(--teal-lt);
}
.edu-body { display: flex; flex-direction: column; gap: 5px; }
.edu-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.edu-degree { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.edu-badge {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--teal);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.edu-school { font-size: 0.78rem; color: var(--teal); font-weight: 500; }
.edu-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}
.sep { color: var(--border); }
.graduated { color: #16a34a; font-weight: 600; }
.edu-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 3px;
  margin-top: 4px;
}
.edu-list li {
  font-size: 0.76rem;
  color: var(--muted);
  padding-left: 12px;
  position: relative;
  line-height: 1.5;
}
.edu-list li::before {
  content: '–';
  position: absolute; left: 0;
  color: var(--teal);
  font-weight: 600;
}

/* Languages */
.lang-row {
  display: grid;
  grid-template-columns: 60px 1fr 50px;
  align-items: center;
  gap: 10px;
}
.lang-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.lang-dots { display: flex; gap: 4px; }
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}
.dot.filled { background: var(--teal); }
.lang-lvl { font-size: 0.7rem; color: var(--muted); text-align: right; }

/* Traits */
.traits { display: flex; flex-direction: column; gap: 8px; }
.trait-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.trait-icon { color: var(--teal); font-size: 0.65rem; flex-shrink: 0; }

/* ── EXPERIENCE ── */
.exp-item { display: flex; gap: 16px; }
.exp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 68px;
}
.exp-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal);
  text-align: center;
  white-space: nowrap;
}
.exp-line {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 6px;
  min-height: 30px;
}
.exp-body { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; }
.exp-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.exp-place {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 6px;
}
.exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.exp-list li {
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.55;
}
.exp-list li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 1rem;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.skill-block { display: flex; flex-direction: column; gap: 7px; }
.skill-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill {
  font-size: 0.72rem;
  color: var(--teal);
  background: var(--teal-lt);
  border: 1px solid rgba(42,125,111,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: default;
}
.pill:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* ── CERTS ── */
.certs { display: flex; flex-direction: column; gap: 12px; }
.cert-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cert-row:last-child { border-bottom: none; padding-bottom: 0; }
.cert-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  background: #fdf6e3;
  border: 1px solid #e8d48b;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.cert-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.cert-inst {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── FOOTER ── */
.footer {
  padding: 0 44px 24px;
}
.footer-line {
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}
.footer p {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.3px;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  body { padding: 0; }
  .page { border-radius: 0; box-shadow: none; }
  .header { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .header-right { align-items: flex-start; }
  .body { grid-template-columns: 1fr; }
  .left-col { border-right: none; border-bottom: 1px solid var(--border); }
  .right-col { padding: 24px; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer { padding: 0 24px 24px; }
}

/* ── PRINT ── */
@media print {
  body { background: #fff; padding: 0; }
  .page { box-shadow: none; border-radius: 0; }
  .pill:hover { background: var(--teal-lt); color: var(--teal); }
}
