:root {
  --navy: #16365c;
  --navy-dark: #0f2a49;
  --ink: #1f2933;
  --muted: #5b6673;
  --line: #d5dce4;
  --white: #ffffff;
}

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: #e9edf2;
  font-size: 0.9rem;
  line-height: 1.65;
}

.resume {
  max-width: 1000px;
  background: var(--white);
  box-shadow: 0 10px 40px rgba(15, 42, 73, 0.18);
  padding: 0;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Sidebar */
.sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 2rem;
}

.avatar-wrap {
  width: 190px;
  height: 190px;
  margin: 0 auto 2.5rem;
  border-radius: 50%;
  border: 6px solid var(--white);
  overflow: hidden;
  background: var(--white);
}

.avatar { width: 100%; height: 100%; object-fit: cover; }

.side-block { margin-bottom: 2rem; }

.side-title,
.main-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: 0;
}

.icon-circle.dark { background: var(--navy); color: var(--white); }

.contact-list li { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.45rem; word-break: break-word; }
.contact-list i { font-size: 1.05rem; }

.edu { margin-bottom: 0.9rem; padding-left: 0.4rem; }
.edu strong { display: block; font-weight: 600; }
.edu span { display: block; font-size: 0.85rem; opacity: 0.9; }

.skill-list { list-style: none; padding: 0; margin: 0; }
.skill-list li { display: flex; align-items: center; gap: 0.7rem; padding: 0.2rem 0; }
.skill-list i { color: #8fb8e8; font-size: 1rem; width: 1.2rem; text-align: center; }

/* Main content */
.content { padding: 2.5rem 2.5rem 2rem; }

.name-block { margin-bottom: 2.5rem; }
.name-block h1 {
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1rem;
}
.role { font-size: 1.3rem; letter-spacing: 0.08em; margin: 0; color: var(--ink); }

.main-block { margin-bottom: 2rem; }
.main-title { color: var(--ink); }

/* Timeline */
.timeline { position: relative; padding-left: 1.6rem; border-left: 2px solid var(--navy); margin-left: 0.5rem; }
.job { position: relative; margin-bottom: 1.3rem; }
.job::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem - 7px);
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
}
.job h3 { font-size: 1.05rem; font-weight: 500; margin: 0; }
.job-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.job p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.85rem; }

/* Projects */
.projects h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.projects li { display: flex; align-items: center; gap: 0.4rem; }
.projects i { color: var(--navy); }

/* Responsive */
@media (max-width: 991.98px) {
  .content { padding: 2rem 1.5rem; }
}

/* Print: A4 */
@page { size: A4; margin: 0; }
@media print {
  body { background: var(--white); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .resume { box-shadow: none; max-width: 100%; }
  .col-lg-4 { width: 36%; flex: 0 0 auto; }
  .col-lg-8 { width: 64%; flex: 0 0 auto; }
  a { text-decoration: none; }
}
