:root {
  --navy: #0A1628;
  --navy-light: #112240;
  --navy-mid: #1A3050;
  --gold: #C8A84B;
  --gold-light: #E8D08A;
  --white: #FFFFFF;
  --off-white: #F1F5F9;
  --muted: #94A3B8;
  --text: #1E293B;
  --text-light: #475569;
  --font-heading: 'Noto Naskh Arabic', serif;
  --font-body: 'Noto Sans Arabic', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: #E2E8F0;
  color: var(--text);
  line-height: 1.7;
  display: flex;
  justify-content: center;
  padding: 24px;
}
.cv-page {
  max-width: 1000px;
  width: 100%;
  background: var(--white);
  box-shadow: 0 4px 40px rgba(10,22,40,.18);
  border-radius: 4px;
  overflow: hidden;
}
/* ── Header ── */
.cv-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 40px 48px 32px;
  position: relative;
  overflow: hidden;
}
.cv-header::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border: 2px solid rgba(200,168,75,.18);
  border-radius: 50%;
}
.header-content { position: relative; z-index: 1; }
.name {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.title {
  font-size: .95rem;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 16px;
}
.header-line {
  width: 80px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
/* ── Body Grid ── */
.cv-body {
  display: grid;
  grid-template-columns: 320px 1fr;
}
/* ── Sidebar ── */
.cv-sidebar {
  background: var(--off-white);
  padding: 32px 28px;
  border-left: 1px solid #E2E8F0;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-title {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .85rem;
  color: var(--text-light);
}
.contact-icon {
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
/* ── Skill Tags ── */
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
  background: var(--white);
  border: 1px solid #CBD5E1;
  color: var(--navy-mid);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
  transition: .2s;
}
.skill-tag:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: #FEFCE8;
}
/* ── Languages ── */
.lang-item { margin-bottom: 12px; }
.lang-info {
  display: flex; justify-content: space-between;
  font-size: .82rem; margin-bottom: 4px;
}
.lang-level { color: var(--muted); font-size: .75rem; }
.lang-bar {
  height: 5px; background: #CBD5E1; border-radius: 10px; overflow: hidden;
}
.lang-fill {
  height: 100%; background: var(--gold); border-radius: 10px;
}
/* ── Soft Skills ── */
.soft-skills {
  list-style: none;
  font-size: .82rem;
  color: var(--text-light);
}
.soft-skills li {
  padding: 5px 0;
  padding-right: 16px;
  position: relative;
}
.soft-skills li::before {
  content: '';
  position: absolute;
  right: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
/* ── Main Content ── */
.cv-main { padding: 32px 36px; }
.cv-section { margin-bottom: 28px; }
.section-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading::before {
  content: '';
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 3px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.summary-text {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.9;
  text-align: justify;
}
/* ── Timeline ── */
.timeline {
  position: relative;
  padding-right: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  right: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--navy-light));
  border-radius: 1px;
}
.timeline-item {
  position: relative;
  margin-bottom: 22px;
  padding-right: 24px;
}
.timeline-dot {
  position: absolute;
  right: -29px; top: 6px;
  width: 12px; height: 12px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50%;
  z-index: 1;
}
.timeline-item:first-child .timeline-dot {
  background: var(--gold);
}
.timeline-date {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2px 0;
}
.timeline-org {
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 6px;
}
.timeline-content ul {
  list-style: none;
  font-size: .82rem;
  color: var(--text-light);
}
.timeline-content li {
  padding: 3px 0;
  padding-right: 14px;
  position: relative;
}
.timeline-content li::before {
  content: '';
  position: absolute;
  right: 0; top: 10px;
  width: 5px; height: 5px;
  background: #CBD5E1;
  border-radius: 50%;
}
/* ── Education ── */
.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--off-white);
  padding: 16px 20px;
  border-radius: 8px;
  border-right: 3px solid var(--gold);
}
.edu-date {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.edu-card h3 {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
}
.edu-org {
  font-size: .8rem;
  color: var(--text-light);
}
/* ── Certs ── */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cert-tag {
  background: var(--white);
  border: 1px solid #E2E8F0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .8rem;
  color: var(--text);
  font-weight: 500;
  transition: .2s;
}
.cert-tag:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(200,168,75,.12);
}
/* ── Print ── */
@media print {
  body { background: #fff; padding: 0; }
  .cv-page {
    box-shadow: none;
    max-width: 100%;
    border-radius: 0;
  }
  .cv-body { grid-template-columns: 280px 1fr; }
  @page { margin: 0; size: A4; }
}
/* ── Responsive ── */
@media (max-width: 768px) {
  .cv-body { grid-template-columns: 1fr; }
  .cv-sidebar { border-left: none; border-top: 1px solid #E2E8F0; }
  .cv-header { padding: 28px 24px 24px; }
  .cv-main { padding: 24px 20px; }
  .name { font-size: 1.6rem; }
  .cv-photo { width: 80px; height: 80px; }
  .certs-grid { grid-template-columns: 1fr; }
}
/* ── Photo ── */
.cv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cv-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  flex-shrink: 0;
  margin-left: 0;
}
