/* ================= CV - Nguyễn Văn Đình ================= */

:root {
  --sidebar-bg: #1e2f4d;
  --sidebar-bg-2: #16233a;
  --accent: #3b82f6;
  --accent-light: #93c5fd;
  --text: #2d3748;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f1f5f9;
}

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

body {
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14.5px;
}

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

a:hover {
  text-decoration: underline;
}

/* ---------- Khung CV ---------- */

.cv {
  display: flex;
  max-width: 960px;
  margin: 32px auto;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

/* ---------- Sidebar ---------- */

.sidebar {
  flex: 0 0 300px;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: #e2e8f0;
  padding: 36px 28px;
}

.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 2px;
  border: 4px solid rgba(255, 255, 255, 0.25);
}

.sidebar-section {
  margin-bottom: 28px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  word-break: break-word;
  font-size: 13.5px;
}

.contact-icon {
  flex: 0 0 18px;
  text-align: center;
  color: var(--accent-light);
  font-size: 14px;
  line-height: 1.6;
}

.contact-list a {
  color: #e2e8f0;
}

/* ---------- Thanh kỹ năng ---------- */

.skill {
  margin-bottom: 14px;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
  color: #cbd5e1;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 4px;
}

.hobby-list {
  list-style: none;
  font-size: 13.5px;
  color: #cbd5e1;
}

.hobby-list li {
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.hobby-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

/* ---------- Nội dung chính ---------- */

.content {
  flex: 1;
  padding: 36px 40px;
  min-width: 0;
}

.cv-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--accent);
}

.cv-header h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--sidebar-bg);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.job-title {
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sidebar-bg);
  background: #eff6ff;
  border-left: 5px solid var(--accent);
  padding: 6px 12px;
  margin-bottom: 16px;
}

.section p {
  color: var(--text);
}

/* ---------- Kinh nghiệm / Dự án ---------- */

.entry {
  margin-bottom: 18px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.entry-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}

.entry-date {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.entry-org {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.entry-desc {
  padding-left: 18px;
  color: var(--text);
}

.entry-desc li {
  margin-bottom: 4px;
}

.cert-list {
  list-style: disc;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .cv {
    flex-direction: column;
    margin: 12px;
    border-radius: 0;
  }

  .sidebar {
    flex: none;
    padding: 28px 22px;
  }

  .content {
    padding: 26px 22px;
  }

  .cv-header h1 {
    font-size: 26px;
  }
}

/* ---------- In / Xuất PDF ---------- */

@media print {
  body {
    background: #fff;
    font-size: 12.5px;
  }

  .cv {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    max-width: none;
  }

  .sidebar,
  .content {
    padding: 24px;
  }

  .sidebar {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .entry-date,
  .section-title,
  .avatar,
  .skill-fill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
