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

:root {
  --page-bg: #070c18;
  --sidebar: #e8eef5;
  --surface: #f0f4f9;
  --surface-card: #ffffff;
  --surface2: #e8eef5;
  --border: #d4dce8;
  --accent: #0d9488;
  --accent-soft: rgba(13, 148, 136, 0.08);
  --text: #080808;
  --muted: #0d0d0d;
  --muted2: #222222;
  --sidebar-width: 380px;
  --radius: 10px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  margin: 0;
  padding: 28px 24px 48px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ── LAYOUT ── */
.layout {
  display: flex;
  width: 100%;
  max-width: 1400px;
  min-height: calc(100vh - 76px);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.14);
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 40px 28px;
  position: sticky;
  top: 28px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-photo { display: flex; justify-content: center; margin-bottom: 4px; }
.sidebar-photo img {
  width: 160px;
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.sidebar-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-top: 4px;
}
.sidebar-name span { color: var(--accent); }

.sidebar-role {
  font-size: 16px;
  color: #000;
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.5;
}

.s-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.sidebar-contact { display: flex; flex-direction: column; gap: 7px; }
.sidebar-contact a {
  font-size: 16px;
  color: #000;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-contact a:hover { color: var(--accent); }

.competencias-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.competencias-list li {
  font-size: 16px;
  color: #000;
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.competencias-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  top: -1px;
}

.tags-wrap { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  transition: all 0.2s;
  cursor: default;
}
.tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.formacao-text { font-size: 16px; color: #000; line-height: 1.6; }
.formacao-text strong { display: block; color: #000; font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.formacao-text em { color: #333; font-style: normal; font-size: 14px; }

/* ── MAIN ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  min-width: 0;
}

/* ── PAGE HEADER (nav tabs) ── */
.page-header {
  border-bottom: 2px solid var(--border);
  padding: 0 56px;
  background: var(--surface);
}
.page-nav {
  display: flex;
  gap: 0;
}
.page-nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted2);
  text-decoration: none;
  padding: 20px 28px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.18s, border-color 0.18s;
  letter-spacing: 0.2px;
}
.page-nav-link:hover { color: var(--accent); }
.page-nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

/* ── MAIN CONTENT ── */
.main-content {
  padding: 48px 56px 64px;
}

.section { margin-bottom: 48px; }

.section-label {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.2px;
}
.section-label::after { content: ''; flex: 1; height: 2px; background: var(--border); }

/* ── RESUMO ── */
.resumo {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.resumo .resumo-lead { color: var(--accent); font-weight: 700; }

/* ── JOB ── */
.job {
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s, border-left-color 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.job:hover { border-left-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}
.job-title { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1.3; }
.job-company { font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 3px; }
.job-period {
  font-size: 12px;
  color: var(--muted2);
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
  flex-shrink: 0;
}

.job-items { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.job-items li { font-size: 15px; color: var(--muted); padding-left: 20px; position: relative; line-height: 1.65; }
.job-items li::before { content: '›'; position: absolute; left: 0; color: var(--accent); font-size: 16px; font-weight: 600; top: -1px; }

/* ── PROJETOS CTA ── */
.projetos-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 22px;
  background: var(--accent-soft);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.projetos-cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── PROJECT CARDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.projects-grid.single { grid-template-columns: 1fr; }

.project-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  transition: border-top-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.project-card:hover {
  border-top-color: var(--accent);
  box-shadow: 0 6px 20px rgba(13,148,136,0.08);
}

.project-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.pc-row { margin-bottom: 12px; }
.pc-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.pc-row p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pc-tags span {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--muted2);
  background: var(--surface2);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted2);
  font-weight: 500;
}
footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { padding: 0; }
  .layout { flex-direction: column; min-height: 0; box-shadow: none; }
  .sidebar {
    width: 100%;
    min-width: 0;
    position: static;
    height: auto;
    overflow-y: visible;
    padding: 32px 24px;
  }
  .page-header { padding: 0 24px; }
  .page-nav-link { padding: 16px 18px; font-size: 15px; }
  .main-content { padding: 32px 24px 48px; }
  .section-label { font-size: 20px; }
}

@media (max-width: 480px) {
  .main-content { padding: 24px 18px 40px; }
}

@media print {
  body { background: #fff; padding: 0; }
  .layout { box-shadow: none; max-width: none; }
  .sidebar { position: static; height: auto; overflow: visible; background: #f8fafc; }
  .page-header { display: none; }
  .job, .project-card, .resumo { box-shadow: none; }
}
