/* ===================================================================
   EXACT PDF REPRODUCTION — AMBOMO JOSEPH ELYSÉ CV
   Matches 100% the layout, typography, borders, and colors of the PDF
   =================================================================== */

:root {
  --pdf-gold: #b8860b;          /* Exact golden-brown header color */
  --pdf-link: #0066cc;          /* Standard PDF hyperlink blue */
  --pdf-text: #111111;          /* Dark body text */
  --pdf-subtext: #444444;       /* Subline italic gray */
  --viewer-bg: #4a4d52;         /* PDF Viewer background canvas */
}

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

html, body {
  background-color: var(--viewer-bg);
  color: var(--pdf-text);
  font-family: Arial, Helvetica, "Nimbus Sans L", "Liberation Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Floating Toolbar for Portfolio Integration */
.viewer-toolbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #2b2d30;
  border-bottom: 1px solid #1e2022;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.toolbar-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #3e4247;
  color: #e5e7eb;
  border: 1px solid #52565c;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.toolbar-btn:hover {
  background-color: #50555c;
  color: #ffffff;
}

.toolbar-btn.back-btn {
  background-color: #b8860b;
  border-color: #996e08;
  color: #ffffff;
  font-weight: 600;
}

.toolbar-btn.back-btn:hover {
  background-color: #cda01d;
}

/* Document Viewport */
.document-viewport {
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}

/* The exact PDF Paper Sheet */
.pdf-page {
  background-color: #ffffff;
  width: 100%;
  max-width: 816px;            /* Standard letter/A4 proportional layout */
  min-height: 1056px;
  border: 2px solid #000000;    /* The exact solid black frame as in the screenshot */
  padding: 34px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

/* Header Section */
.cv-header {
  text-align: center;
  margin-bottom: 12px;
}

.candidate-name {
  font-size: 26px;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  line-height: 1.15;
}

.candidate-title {
  font-size: 14.5px;
  font-weight: bold;
  color: var(--pdf-gold);
  margin-bottom: 3px;
}

.candidate-skills {
  font-size: 11.5px;
  color: #222222;
  margin-bottom: 2px;
}

.candidate-contact {
  font-size: 11.5px;
  color: #222222;
  margin-bottom: 2px;
}

.candidate-contact a,
.candidate-links a {
  color: var(--pdf-link);
  text-decoration: underline;
}

.candidate-links {
  font-size: 11.5px;
  color: #222222;
  word-break: break-all;
}

/* Section Common Styles */
.cv-section {
  margin-bottom: 10px;
}

.section-heading {
  font-size: 13.5px;
  font-weight: bold;
  color: var(--pdf-gold);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 1px;
  line-height: 1.2;
}

.section-divider {
  width: 100%;
  height: 1.5px;
  background-color: var(--pdf-gold);
  margin-top: 1px;
  margin-bottom: 6px;
}

/* Professional Summary */
.summary-paragraph {
  font-size: 12px;
  line-height: 1.38;
  color: var(--pdf-text);
  text-align: justify;
}

/* Technical Skills */
.skills-block p {
  font-size: 12px;
  line-height: 1.38;
  color: var(--pdf-text);
  margin-bottom: 1.5px;
}

.skills-block strong {
  color: #000000;
}

/* Professional Experience & Projects */
.entry {
  margin-bottom: 7px;
}

.entry-header {
  font-size: 12px;
  color: #000000;
  line-height: 1.3;
  margin-bottom: 1px;
}

.entry-header a {
  color: var(--pdf-link);
  text-decoration: underline;
}

.entry-subline {
  font-size: 11.5px;
  color: var(--pdf-subtext);
  line-height: 1.3;
  margin-bottom: 2px;
}

.entry-bullets {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.entry-bullets li {
  font-size: 12px;
  line-height: 1.35;
  color: var(--pdf-text);
  margin-bottom: 2px;
}

/* Education */
.edu-block p {
  font-size: 12px;
  line-height: 1.38;
  color: var(--pdf-text);
  margin-bottom: 2px;
}

/* Languages */
.languages-line {
  font-size: 12px;
  line-height: 1.38;
  color: var(--pdf-text);
}

/* ===================================================================
   PRINT STYLES
   =================================================================== */
@media print {
  @page {
    margin: 0.6cm 0.8cm;
    size: A4 portrait;
  }

  html, body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  .viewer-toolbar {
    display: none !important;
  }

  .document-viewport {
    padding: 0 !important;
    margin: 0 !important;
  }

  .pdf-page {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 28px 34px !important;
  }

  .candidate-contact a,
  .candidate-links a,
  .entry-header a {
    color: #0066cc !important;
    text-decoration: underline !important;
  }
}

/* Responsive for smaller screens */
@media (max-width: 820px) {
  .document-viewport {
    padding: 12px 6px;
  }

  .pdf-page {
    padding: 20px 16px;
    border-width: 1.5px;
  }

  .candidate-name {
    font-size: 20px;
  }

  .candidate-title {
    font-size: 13px;
  }

  .candidate-skills,
  .candidate-contact,
  .candidate-links {
    font-size: 11px;
  }
}
