/**
 * FORMA — Template: Infographic
 */

:root {
  --t-blue:    #2563eb;
  --t-blue2:   #3b82f6;
  --t-blue-lt: #dbeafe;
  --t-blue-bg: #eff6ff;
  --t-dark:    #0f1629;
  --t-muted:   #64748b;
  --t-border:  #e2e8f0;
  --t-warm:    #f8faff;
}

.page-bg { background: linear-gradient(135deg, #0f1629 0%, #1e3a8a 100%); }

.resume {
  display: flex;
  flex-direction: column;
  min-height: 1200px;
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
}

/* Header band */
.cv-head {
  display: flex;
  position: relative;
  overflow: hidden;
}
.cv-head::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.22) 0%, transparent 60%);
  pointer-events: none;
}
.cv-head__accent {
  background: var(--t-blue);
  flex-shrink: 0;
  width: 260px;
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cv-head__accent::after {
  content: '';
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.cv-head__bg {
  background: var(--t-dark);
  flex: 1;
  padding: var(--space-10) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative; z-index: 1;
}

.cv-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 1.6rem; font-weight: 800; color: white;
  margin-bottom: var(--space-4);
}
.cv-head__name { font-family: var(--font-body); font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 800; color: white; line-height: 1.1; }
.cv-head__role { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: var(--space-2); }

.cv-head__summary { font-size: var(--text-sm); color: rgba(255,255,255,.6); line-height: 1.75; font-weight: 300; max-width: 480px; }
.cv-head__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.contact-chip {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: var(--text-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Body grid */
.cv-body { flex: 1; display: flex; }
.cv-body__left {
  width: 260px; flex-shrink: 0;
  background: var(--t-blue-bg);
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--t-border);
}
.cv-body__right { flex: 1; padding: var(--space-8) var(--space-8); }

/* Left section */
.l-section { margin-bottom: var(--space-6); }
.l-section:last-child { margin-bottom: 0; }
.l-title {
  font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--t-blue); margin-bottom: var(--space-4);
  display: flex; align-items: center; gap: var(--space-2);
}
.l-title::after { content: ''; flex: 1; height: 1px; background: var(--t-blue-lt); }

/* Skill bars override */
.skill-bar__track { background: white; box-shadow: inset 0 1px 2px rgba(0,0,0,.05); height: 6px; border-radius: 3px; }
.skill-bar__fill { background: linear-gradient(90deg, var(--t-blue), var(--t-blue2)); height: 6px; border-radius: 3px; }
.skill-bar__name { font-weight: 600; color: var(--t-dark); }
.skill-bar__pct { color: var(--t-blue); }

/* Language circles */
.lang-circles-item { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.lang-circles-item__name { font-size: var(--text-sm); font-weight: 600; color: var(--t-dark); }
.lang-circles-item__sub { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--t-muted); margin-top: 1px; }
.circles { display: flex; gap: 4px; }
.circle { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--t-blue-lt); background: white; }
.circle--on { background: var(--t-blue); border-color: var(--t-blue); }

.edu-card {
  background: white; border: 1px solid var(--t-border);
  border-top: 3px solid var(--t-blue);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
}
.edu-card__school { font-size: var(--text-sm); font-weight: 700; color: var(--t-dark); }
.edu-card__degree { font-size: var(--text-xs); color: var(--t-muted); margin-top: 2px; line-height: 1.4; }
.edu-card__yr { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--t-blue); margin-top: var(--space-1); }

.award-row { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-3); }
.award-row__icon { font-size: .9rem; flex-shrink: 0; margin-top: 1px; }
.award-row__name { font-size: var(--text-sm); font-weight: 600; color: var(--t-dark); }
.award-row__org  { font-size: var(--text-xs); color: var(--t-muted); margin-top: 1px; }
.award-row__yr   { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--t-blue); margin-top: 2px; }

/* Right section */
.r-section { margin-bottom: var(--space-6); }
.r-section:last-child { margin-bottom: 0; }
.r-title {
  font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--t-blue); margin-bottom: var(--space-4);
  display: flex; align-items: center; gap: var(--space-2);
}
.r-title::after { content: ''; flex: 1; height: 1px; background: var(--t-border); }

/* Timeline */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--t-border);
}
.timeline-item { position: relative; margin-bottom: var(--space-5); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -17px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--t-blue); border: 2px solid white;
  box-shadow: 0 0 0 2px var(--t-blue);
}
.t-role { font-size: var(--text-base); font-weight: 700; color: var(--t-dark); }
.t-date {
  font-family: var(--font-mono); font-size: var(--text-xs);
  background: var(--t-blue-bg); color: var(--t-blue);
  border: 1px solid var(--t-blue-lt); padding: 2px 7px; border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.t-co { font-size: var(--text-sm); color: var(--t-blue); font-weight: 600; margin-bottom: var(--space-2); }
.t-desc { font-size: var(--text-sm); color: var(--t-muted); line-height: 1.7; font-weight: 300; }
.t-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--space-2); }
.t-tag {
  font-family: var(--font-mono); font-size: .6rem;
  background: var(--t-blue-bg); color: var(--t-blue);
  border: 1px solid var(--t-blue-lt); padding: 2px 7px; border-radius: var(--radius-sm);
}

.pub-item {
  background: var(--t-warm); border: 1px solid var(--t-border);
  border-left: 3px solid var(--t-blue);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
}
.pub-item:last-child { margin-bottom: 0; }
.pub-item__title { font-size: var(--text-sm); font-weight: 700; color: var(--t-dark); line-height: 1.4; }
.pub-item__venue { font-size: var(--text-xs); color: var(--t-blue); margin-top: 2px; font-weight: 600; }
.pub-item__meta  { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--t-muted); margin-top: 2px; }

/* ── Responsive (mobile reflow) ── */
@media (max-width: 600px) {
  /* Header: stack accent panel above summary */
  .cv-head { flex-direction: column; }
  .cv-head__accent {
    width: 100%;
    padding: var(--space-8) var(--space-5);
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }
  .cv-avatar { width: 56px; height: 56px; font-size: 1.3rem; flex-shrink: 0; margin-bottom: 0; }
  .cv-head__bg { padding: var(--space-5) var(--space-5); }

  /* Body: stack left panel above right */
  .cv-body { flex-direction: column; }
  .cv-body__left { width: 100%; padding: var(--space-6) var(--space-5); border-right: none; border-bottom: 1px solid var(--t-border); }
  .cv-body__right { padding: var(--space-6) var(--space-5); }
}