/* ===============================================================
   PRINT — HYBRID BALANCED PROFESSIONAL MODE (A4, 2–3 pages)
   PURPOSE:
   - Highly readable (body 9.5pt, headings 12.5pt)
   - Light blue accents, thin borders
   - Compressed spacing (no white gaps)
   - Ultra-minimal Projects & Links
   - Images small but recognisable
   - Music section compressed into Experience only
================================================================ */

@page {
  size: A4;
  margin: 6mm;
}

@media print {

  /* ---------------------------------------------------------------
     GLOBAL RESET
  ---------------------------------------------------------------- */
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 9.5pt !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  * {
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }

  #scrollbar,
  .top-controls {
    display: none !important;
  }

  /* ---------------------------------------------------------------
     PDF BANNER — ONLINE CV LINK
  ---------------------------------------------------------------- */
  .pdf-banner {
    display: block !important;
    text-align: center !important;
    font-size: 11pt !important;
    font-weight: 800 !important;
    background: #0a66ff !important;
    color: #fff !important;
    padding: 6pt !important;
    margin-bottom: 6pt !important;
    border-radius: 3pt !important;
  }

  .pdf-banner a {
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
  }

  /* ---------------------------------------------------------------
     LAYOUT AND CARD STYLING
  ---------------------------------------------------------------- */
  body, main, .grid, .col-left, .col-right, section, aside {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  section,
  .card,
  footer {
    border: 0.35pt solid #d0d0d0 !important;
    padding: 6pt !important;
    margin-bottom: 6pt !important;
    border-radius: 3pt !important;
    background: #fff !important;
  }

  footer {
    text-align: center !important;
    font-size: 8pt !important;
  }

  /* Allow page breaks inside most sections except intro + projects */
  section,
  .card {
    page-break-inside: auto !important;
  }

  .intro,
  .project {
    page-break-inside: avoid !important;
  }

  /* ---------------------------------------------------------------
     HEADINGS (BLUE ACCENT)
  ---------------------------------------------------------------- */
  h2 {
    font-size: 12.5pt !important;
    font-weight: 800 !important;
    color: #0a66ff !important;
    margin-bottom: 3pt !important;
    border-left: 3pt solid #0a66ff !important;
    padding-left: 4pt !important;
  }

  h2 i {
    font-size: 10pt !important;
    color: #0a66ff !important;
    margin-right: 2pt !important;
  }

  h3 {
    font-size: 10.5pt !important;
    font-weight: 700 !important;
    margin-bottom: 2pt !important;
  }

  /* ---------------------------------------------------------------
     TEXT ELEMENTS
  ---------------------------------------------------------------- */
  p,
  li,
  a,
  span {
    font-size: 9.5pt !important;
    line-height: 1.25 !important;
  }

  p { margin-bottom: 4pt !important; }

  /* ---------------------------------------------------------------
     INTRO BLOCK
  ---------------------------------------------------------------- */
  .intro {
    display: grid !important;
    grid-template-columns: 44px 1fr !important;
    gap: 6pt !important;
    align-items: start !important;
  }

  .intro-img {
    width: 44px !important;
    height: 44px !important;
    border: 0.35pt solid #ccc !important;
    border-radius: 3pt !important;
    object-fit: cover !important;
  }

  .intro h1 {
    font-size: 15pt !important;
    font-weight: 900 !important;
    margin-bottom: 2pt !important;
  }

  .role {
    font-size: 10pt !important;
    margin-bottom: 3pt !important;
  }

  .role i {
    font-size: 9pt !important;
    margin-right: 2pt !important;
  }

  .contact-list li {
    font-size: 9pt !important;
    gap: 3pt !important;
    margin-bottom: 2pt !important;
  }

  .summary {
    font-size: 8.75pt !important;
    line-height: 1.30 !important;
    margin-top: 3pt !important;
  }

  /* ---------------------------------------------------------------
     METRICS
  ---------------------------------------------------------------- */
  .intro-metrics {
    display: flex !important;
    gap: 4pt !important;
    flex-wrap: wrap !important;
    margin-top: 4pt !important;
  }

  .intro-metrics li {
    border: 0.35pt solid #ccc !important;
    padding: 4pt 6pt !important;
    border-radius: 2pt !important;
    min-width: 48px !important;
    text-align: center !important;
  }

  .intro-metrics strong {
    font-size: 10pt !important;
  }

  .intro-metrics span {
    font-size: 8pt !important;
  }

  /* ---------------------------------------------------------------
     OVERVIEW BOXES
  ---------------------------------------------------------------- */
  .overview-grid {
    display: block !important;
  }

  .overview-box {
    border: 0.35pt solid #ccc !important;
    padding: 4pt !important;
    margin-bottom: 4pt !important;
    border-radius: 2pt !important;
  }

  .overview-box p {
    font-size: 8.75pt !important;
  }

  /* REMOVE the Music overview box entirely */
  .overview-box:nth-of-type(4) {
    display: none !important;
  }

  /* ---------------------------------------------------------------
     BULLETS
  ---------------------------------------------------------------- */
  .bullets li {
    margin-bottom: 3pt !important;
  }

  .bullets li::before {
    color: #0a66ff !important;
    margin-right: 4pt !important;
  }

  /* ---------------------------------------------------------------
     PROJECTS — SHRUNK + CLEAN
  ---------------------------------------------------------------- */
  .project {
    display: grid !important;
    grid-template-columns: 32px 1fr !important;
    gap: 4pt !important;
    padding-bottom: 4pt !important;
    border-bottom: 0.35pt solid #ccc !important;
    margin-bottom: 5pt !important;
  }

  .project img {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover !important;
    border: 0.35pt solid #ccc !important;
    border-radius: 2pt !important;
  }

  /* ---------------------------------------------------------------
     PROJECTS & LINKS — ULTRA MINIMAL MODE
  ---------------------------------------------------------------- */
  .link-grid {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .link-grid a {
    display: grid !important;
    grid-template-columns: 10pt 1fr !important;
    align-items: center !important;
    padding: 3pt 4pt !important;
    border: 0.3pt solid #ccc !important;
    margin-bottom: 2pt !important;
    gap: 4pt !important;
    background: #fafafa !important;
  }

  .link-grid a i {
    font-size: 7pt !important;
    text-align: center !important;
  }

  .link-grid strong {
    font-size: 7.5pt !important;
    font-weight: 700 !important;
  }

  .link-grid span {
    display: none !important;
  }

  /* REMOVE SPOTIFY COMPLETELY */
  .link-grid a[href*="spotify"] {
    display: none !important;
  }

  /* ---------------------------------------------------------------
     TIMELINE
  ---------------------------------------------------------------- */
  .timeline {
    display: grid !important;
    grid-template-columns: 42px 1fr !important;
    gap: 4pt !important;
    padding: 3pt 0 !important;
    border-bottom: 0.35pt dashed #ccc !important;
  }

  .timeline:last-child {
    border-bottom: none !important;
  }

  .timeline .time span {
    font-size: 8.5pt !important;
    color: #0a66ff !important;
    font-weight: 700 !important;
  }

  /* ADD COMPACT MUSIC EXPERIENCE ENTRY */
  .timeline.music-line:before {
    content: "2019–Present" !important;
    font-size: 8.5pt !important;
    font-weight: 700 !important;
    color: #0a66ff !important;
  }

  /* ---------------------------------------------------------------
     EDUCATION
  ---------------------------------------------------------------- */
  .edu h3 {
    font-size: 10pt !important;
  }

  .edu p {
    font-size: 8.75pt !important;
  }

  /* ---------------------------------------------------------------
     CHIPS (TECH STACK)
  ---------------------------------------------------------------- */
  .chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3pt !important;
  }

  .chips span {
    border: 0.35pt solid #ccc !important;
    padding: 3pt 5pt !important;
    font-size: 8pt !important;
    border-radius: 3pt !important;
    background: #f7f7f7 !important;
  }

}
