/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --text-light: #666666;
  --border-color: #cccccc;
  --background-color: #ffffff;
  --section-bg: #f5f5f5;
  --left-column-bg: #fafafa;
  --accent-border: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 10pt;
  color: var(--primary-color);
  background-color: var(--background-color);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

@media (min-width: 1200px) {
  body {
    /* max-width: 1200px;  */
    margin: 0 auto;
    padding: 30px;
  }
}

.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* CV Header */
.cv-header {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 18px;
  margin-bottom: 28px;
  background-color: var(--background-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.header-left {
  flex: 1;
}

.name {
  font-family: "Montserrat", sans-serif;
  font-size: 22pt;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.tagline {
  font-size: 10pt;
  color: var(--secondary-color);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

.header-right {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-link-cv {
  font-size: 10pt;
  color: var(--primary-color);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 500;
  border: 1px solid transparent;
}

.nav-link-cv:hover {
  background-color: var(--section-bg);
  border-color: var(--accent-border);
}

.download-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 9pt;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 9pt;
  color: var(--text-light);
  align-items: center;
  line-height: 1.6;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-info a.contact-item:hover {
  color: var(--primary-color);
}

.contact-icon {
  flex-shrink: 0;
  color: var(--text-light);
  opacity: 0.6;
  transition: opacity 0.2s ease;
  width: 13px;
  height: 13px;
}

.contact-item:hover .contact-icon {
  opacity: 1;
  color: var(--primary-color);
}

.separator {
  color: var(--border-color);
  margin: 0 2px;
  opacity: 0.5;
}

@media (max-width: 767px) {
  .separator {
    display: none;
  }

  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Two Column Layout */
.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  margin-top: 5px;
}

@media (min-width: 768px) {
  .main-content {
    grid-template-columns: 35% 65%;
  }
}

/* Force single-column layout for PDF generation */
body.pdf-generation-active .main-content,
.main-content.pdf-layout {
  display: block !important;
  grid-template-columns: none !important;
}

body.pdf-generation-active .column-left,
body.pdf-generation-active .column-right {
  display: block !important;
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  border-right: none !important;
  border-bottom: none !important;
}

.column-left {
  display: flex;
  flex-direction: column;
  background-color: var(--left-column-bg);
  padding: 24px 20px;
  border-right: none;
  border-bottom: 1px solid var(--accent-border);
  min-height: 100%;
}

.column-right {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background-color: var(--background-color);
}

@media (min-width: 768px) {
  .column-left {
    border-right: 1px solid var(--accent-border);
    border-bottom: none;
  }
}

/* Sections */
.section {
  margin-bottom: 24px;
  page-break-inside: avoid;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section:nth-child(1) {
  animation-delay: 0.1s;
}
.section:nth-child(2) {
  animation-delay: 0.2s;
}
.section:nth-child(3) {
  animation-delay: 0.3s;
}
.section:nth-child(4) {
  animation-delay: 0.4s;
}
.section:nth-child(5) {
  animation-delay: 0.5s;
}
.section:nth-child(6) {
  animation-delay: 0.6s;
}

/* Print styles consolidated in main print section below */

.column-left .section {
  margin-bottom: 22px;
}

.column-right .section {
  margin-bottom: 22px;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 12pt;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.section-icon {
  flex-shrink: 0;
  color: var(--primary-color);
  opacity: 0.7;
  width: 16px;
  height: 16px;
}

.column-left .section-title {
  border-bottom: 1.5px solid var(--secondary-color);
  font-size: 10.5pt;
  margin-bottom: 12px;
  padding-bottom: 6px;
  letter-spacing: 0.8px;
}

.column-left .section-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.section-content {
  padding-left: 0;
}

/* About Section */
.about-section .section-content p {
  text-align: justify;
  font-size: 10pt;
  line-height: 1.6;
  color: var(--primary-color);
}

/* Skills Section */
.skills-category {
  margin-bottom: 18px;
}

.skill-category-title {
  font-family: "Montserrat", sans-serif;
  font-size: 9pt;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 12px;
  margin-left: -3px;
  margin-right: -3px;
}

.skills-list span {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--background-color);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  font-size: 9pt;
  color: var(--primary-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: default;
  margin: 3px;
}

.skills-list span:hover {
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #fafafa;
}

/* Awards Section */
.award-item {
  font-size: 10pt;
  color: var(--primary-color);
  padding: 6px 0;
}

/* Experience Section */
.experience-item {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--accent-border);
  page-break-inside: avoid;
  transition: padding-left 0.2s ease;
}

.experience-item:hover {
  padding-left: 4px;
}

.experience-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.exp-title {
  font-size: 11pt;
  color: var(--primary-color);
  flex: 1;
  min-width: 200px;
}

.exp-title strong {
  font-weight: 700;
  color: var(--primary-color);
}

.position {
  font-weight: 600;
  color: var(--secondary-color);
}

.exp-duration {
  font-size: 9pt;
  color: var(--text-light);
  font-style: italic;
  white-space: nowrap;
}

.exp-bullets {
  list-style: none;
  padding-left: 18px;
  margin-top: 4px;
}

.exp-bullets li {
  font-size: 9.5pt;
  color: var(--primary-color);
  margin-bottom: 3px;
  position: relative;
  padding-left: 12px;
  line-height: 1.5;
}

.exp-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Projects Section */
.projects-section {
  background-color: transparent;
}

.project-item {
  background-color: var(--section-bg);
  padding: 18px;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  margin-bottom: 20px;
  page-break-inside: avoid;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.project-item:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  border-color: var(--secondary-color);
}

.project-item:last-child {
  margin-bottom: 0;
}

.project-header {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}

.project-name {
  font-family: "Montserrat", sans-serif;
  font-size: 11pt;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.project-link {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-color);
  transition: all 0.2s ease;
  padding-bottom: 1px;
}

.project-link:hover {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
  padding-bottom: 2px;
}

.project-type {
  font-size: 9pt;
  color: var(--text-light);
  font-style: italic;
}

.project-description {
  font-size: 9.5pt;
  color: var(--primary-color);
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: justify;
}

.project-responsibilities {
  margin-bottom: 10px;
}

.project-responsibilities strong {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 9.5pt;
}

.project-bullets {
  list-style: none;
  padding-left: 18px;
  margin-top: 6px;
}

.project-bullets li {
  font-size: 9pt;
  color: var(--primary-color);
  margin-bottom: 4px;
  position: relative;
  padding-left: 12px;
  line-height: 1.5;
}

.project-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.project-tech {
  font-size: 9pt;
  color: var(--text-light);
  font-style: italic;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.project-tech strong {
  font-weight: 600;
  color: var(--primary-color);
}

/* Domains Section */
.domains-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-left: -3px;
  margin-right: -3px;
}

.domains-list span {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--background-color);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  font-size: 9pt;
  color: var(--primary-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: default;
  margin: 3px;
}

.domains-list span:hover {
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #fafafa;
}

/* Clients Section */
.clients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-left: -3px;
  margin-right: -3px;
}

.clients-list span {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--background-color);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  font-size: 9pt;
  color: var(--primary-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: default;
  margin: 3px;
}

.clients-list span:hover {
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #fafafa;
}

/* Education Section */
.education-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.education-item,
.certification-item {
  background-color: var(--background-color);
  padding: 14px;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
}

.education-item h3,
.certification-item h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 9pt;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-color);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.edu-details,
.cert-details {
  margin-bottom: 10px;
}

.edu-details p,
.cert-details p {
  font-size: 9pt;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.edu-details strong,
.cert-details strong {
  font-weight: 600;
  color: var(--primary-color);
}

/* Personal Info Section */
.personal-info {
  background-color: var(--background-color);
  padding: 14px;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-row {
  display: flex;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 9pt;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  min-width: 120px;
  color: var(--primary-color);
}

.info-value {
  color: var(--text-light);
}

.declaration {
  background-color: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
}

.declaration-section .declaration {
  background-color: var(--section-bg);
  padding: 18px;
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.declaration h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 9pt;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-color);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.declaration p {
  font-size: 9pt;
  color: var(--primary-color);
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 12px;
}

.signature {
  margin-top: 15px;
  text-align: right;
}

.signature p {
  font-size: 9pt;
  color: var(--primary-color);
  margin: 0;
}

.signature strong {
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 767px) {
  body {
    padding: 15px;
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .column-left {
    border-right: none;
    border-bottom: 1px solid var(--accent-border);
    padding-bottom: 25px;
  }

  .column-right {
    padding-top: 25px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px;
    font-size: 9pt;
  }

  .name {
    font-size: 20pt;
    line-height: 1.1;
  }

  .tagline {
    font-size: 9pt;
    line-height: 1.4;
  }

  .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .header-right {
    width: 100%;
  }

  .download-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 10pt;
    min-height: 44px;
  }

  .contact-info {
    font-size: 9pt;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-item {
    min-height: 44px;
    padding: 4px 0;
    display: flex;
    align-items: center;
  }

  .contact-icon {
    width: 16px;
    height: 16px;
  }

  .section-title {
    font-size: 11pt;
    margin-bottom: 10px;
  }

  .section-icon {
    width: 16px;
    height: 16px;
  }

  .exp-header {
    flex-direction: column;
    gap: 6px;
  }

  .exp-duration {
    margin-top: 4px;
  }

  .info-row {
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    min-height: 44px;
  }

  .info-label {
    min-width: auto;
    font-weight: 600;
  }

  .project-item {
    padding: 12px;
  }

  .skills-list span,
  .domains-list span,
  .clients-list span {
    padding: 6px 12px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
    font-size: 8pt;
    overflow-x: hidden;
  }

  .name {
    font-size: 16pt;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .section-title {
    font-size: 10pt;
  }

  .skills-list,
  .domains-list,
  .clients-list {
    gap: 4px;
  }

  .skills-list span,
  .domains-list span,
  .clients-list span {
    font-size: 8pt;
    padding: 2px 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .project-item {
    padding: 12px 0;
  }

  .project-name {
    font-size: 10pt;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .main-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  .column-left,
  .column-right {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Print Styles for PDF - Professional Biodata/CV Format - Optimized */
@media print {
  @page {
    size: A4;
    margin: 0;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
    animation: none !important;
    transition: none !important;
    transform: none !important;
    text-indent: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  body {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 9.5pt;
    line-height: 1.4;
    background-color: white;
    color: #000000;
  }

  /* Hide interactive elements */
  .download-btn,
  .skip-link {
    display: none !important;
  }

  /* Hide all icons */
  .section-icon,
  .contact-icon,
  svg {
    display: none !important;
  }

  .section-title {
    display: block !important;
    gap: 0;
  }

  /* ========== HEADER SECTION ========== */
  .cv-header {
    page-break-after: avoid;
    margin-bottom: 12px;
    padding: 10mm 5mm 8px 5mm;
    border-bottom: 2px solid #000000;
  }

  .name {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16pt;
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    line-height: 1.2;
  }

  .tagline {
    font-size: 9pt;
    color: #333333;
    font-weight: 400;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .contact-info {
    font-size: 8.5pt;
    color: #333333;
    line-height: 1.5;
    margin-top: 4px;
  }

  .contact-item {
    display: inline;
    color: #333333;
  }

  .separator {
    display: inline;
    margin: 0 8px;
    color: #999999;
  }

  /* ========== TWO COLUMN LAYOUT FOR PDF ========== */
  .main-content {
    display: grid !important;
    grid-template-columns: 35% 65% !important;
    gap: 0 !important;
    width: 100%;
    margin-top: 0;
    padding: 0 5mm;
  }

  .column-left {
    background-color: #f8f8f8 !important;
    padding: 12px 10px !important;
    border-right: 1px solid #d0d0d0 !important;
    border-bottom: none !important;
    margin-bottom: 0;
  }

  .column-right {
    padding: 12px 12px !important;
    background-color: white !important;
    margin-bottom: 0;
  }

  .column-left .section,
  .column-right .section {
    margin-bottom: 10px !important;
  }

  /* ========== SECTIONS ========== */
  .section {
    margin-bottom: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
    orphans: 2;
    widows: 2;
  }

  .section-title {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10pt !important;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
    border-bottom: 1.5px solid #000000 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    page-break-after: avoid;
    line-height: 1.2;
  }

  .column-left .section-title {
    font-size: 10pt !important;
    border-bottom: 1.5px solid #000000 !important;
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
  }

  .section-content {
    padding-left: 0;
  }

  /* ========== PROFESSIONAL SUMMARY ========== */
  .about-section .section-content p {
    font-size: 9.5pt;
    line-height: 1.4;
    color: #000000;
    text-align: justify;
    margin: 0 0 4px 0;
  }

  /* ========== SKILLS SECTION ========== */
  .skills-category {
    margin-bottom: 8px;
  }

  .skill-category-title {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 9pt;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .skills-list {
    display: block !important;
    margin: 0;
    padding: 0;
    line-height: 1.5;
  }

  .skills-list span {
    display: inline-block;
    background-color: transparent !important;
    border: none !important;
    color: #000000 !important;
    font-size: 9pt;
    padding: 0;
    margin: 0 4px 0 0;
    box-shadow: none !important;
  }

  .skills-list span::after {
    content: ",";
  }

  .skills-list span:last-child::after {
    content: "";
  }

  /* ========== EXPERIENCE SECTION ========== */
  .experience-item {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #d0d0d0 !important;
  }

  .experience-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    flex-wrap: wrap;
  }

  .exp-title {
    font-size: 10pt;
    color: #000000;
    font-weight: 600;
    flex: 1;
    min-width: 60%;
  }

  .exp-title strong {
    color: #000000;
    font-weight: 700;
    font-size: 10pt;
  }

  .position {
    color: #000000;
    font-weight: 500;
    font-style: italic;
  }

  .exp-duration {
    font-size: 8.5pt;
    color: #666666;
    font-style: italic;
    white-space: nowrap;
  }

  .exp-bullets {
    padding-left: 16px;
    margin-top: 3px;
    margin-bottom: 0;
  }

  .exp-bullets li {
    font-size: 9pt;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 2px;
    text-align: justify;
    padding-left: 0;
  }

  /* ========== PROJECTS SECTION ========== */
  .project-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 0 0 8px 0 !important;
    margin-bottom: 10px !important;
    box-shadow: none !important;
  }

  .project-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
  }

  .project-header {
    margin-bottom: 3px;
    padding-bottom: 2px;
    border-bottom: none !important;
  }

  .project-name {
    font-size: 10pt;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2px;
  }

  .project-link {
    color: #000000 !important;
    text-decoration: none;
    border-bottom: none !important;
    font-weight: 700;
  }

  .project-type {
    font-size: 8.5pt;
    color: #666666;
    font-style: italic;
  }

  .project-description {
    font-size: 9pt;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 3px;
    text-align: justify;
  }

  .project-responsibilities {
    margin-bottom: 3px;
  }

  .project-responsibilities strong {
    font-size: 9pt;
    font-weight: 600;
    color: #000000;
  }

  .project-bullets {
    padding-left: 16px;
    margin-top: 2px;
    margin-bottom: 0;
  }

  .project-bullets li {
    font-size: 9pt;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 2px;
    text-align: justify;
    padding-left: 0;
  }

  .project-tech {
    font-size: 8pt;
    color: #666666;
    border-top: none !important;
    padding-top: 0;
    margin-top: 3px;
    font-style: italic;
  }

  .project-tech strong {
    font-weight: 600;
    color: #333333;
  }

  /* ========== DOMAINS & CLIENTS ========== */
  .domains-list,
  .clients-list {
    display: block !important;
    margin: 0;
    padding: 0;
    line-height: 1.5;
  }

  .domains-list span,
  .clients-list span {
    display: inline-block;
    background-color: transparent !important;
    border: none !important;
    color: #000000 !important;
    font-size: 9pt;
    padding: 0;
    margin: 0 4px 0 0;
    box-shadow: none !important;
  }

  .domains-list span::after,
  .clients-list span::after {
    content: ",";
  }

  .domains-list span:last-child::after,
  .clients-list span:last-child::after {
    content: "";
  }

  /* ========== EDUCATION & CERTIFICATIONS ========== */
  .education-content {
    display: block !important;
  }

  .education-item,
  .certification-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #d0d0d0 !important;
    padding: 0 0 8px 0 !important;
    box-shadow: none !important;
    margin-bottom: 8px;
  }

  .education-item:last-child,
  .certification-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .education-item h3,
  .certification-item h3 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 9pt;
    font-weight: 700;
    color: #000000;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 2px;
  }

  .edu-details,
  .cert-details {
    margin-bottom: 4px;
  }

  .edu-details p,
  .cert-details p {
    font-size: 9pt;
    color: #000000;
    margin-bottom: 1px;
    line-height: 1.4;
  }

  .edu-details strong,
  .cert-details strong {
    font-weight: 600;
    color: #000000;
  }

  /* ========== AWARDS ========== */
  .award-item {
    font-size: 9pt;
    color: #000000;
    padding: 2px 0;
    line-height: 1.4;
  }

  /* ========== PERSONAL INFO ========== */
  .personal-info {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #d0d0d0 !important;
    padding: 0 0 8px 0 !important;
    box-shadow: none !important;
    margin-bottom: 8px;
  }

  .info-row {
    font-size: 9pt;
    padding: 2px 0;
    border-bottom: none !important;
    display: flex;
    line-height: 1.4;
  }

  .info-row:last-child {
    border-bottom: none;
  }

  .info-label {
    color: #000000;
    font-weight: 600;
    min-width: 130px;
  }

  .info-value {
    color: #000000;
  }

  /* ========== DECLARATION ========== */
  .declaration-section {
    padding-bottom: 10mm;
  }

  .declaration-section .declaration {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .declaration h3 {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 9.5pt;
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 2px;
  }

  .declaration p {
    font-size: 9pt;
    color: #000000;
    line-height: 1.4;
    text-align: justify;
    margin-bottom: 6px;
  }

  .signature {
    margin-top: 8px;
    text-align: right;
  }

  .signature p {
    font-size: 9pt;
    color: #000000;
    margin: 0;
  }

  .signature strong {
    font-weight: 600;
  }

  /* ========== LINKS ========== */
  a {
    color: #000000 !important;
    text-decoration: none;
  }

  .contact-info a::after {
    content: " (" attr(href) ")";
    font-size: 7.5pt;
    color: #666666;
    font-weight: normal;
  }

  .project-link::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #666666;
    font-weight: normal;
    font-style: normal;
  }

  /* ========== PAGE BREAKS ========== */
  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  /* Allow lists to break naturally */
  ul,
  ol {
    page-break-inside: auto;
  }

  /* Allow experience and project items to break if needed */
  .experience-item,
  .project-item {
    page-break-inside: auto;
  }

  /* Prevent section titles from being orphaned */
  .section-title {
    page-break-after: avoid;
  }

  /* Keep section title with first line of content */
  .section-title + * {
    page-break-before: avoid;
  }

  /* ========== CLEANUP ========== */
  *:hover,
  *:active,
  *:focus {
    transform: none !important;
    box-shadow: inherit !important;
    border-color: inherit !important;
  }

  body * {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* ========== PRINT MODE CLASS FOR html2pdf.js WORKAROUND ========== */
/* Duplicates @media print styles for html2pdf.js which doesn't respect print media queries */
.print-mode {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 9.5pt;
  line-height: 1.4;
  background-color: white;
  color: #000000;
}

.print-mode * {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color-adjust: exact;
  animation: none !important;
  transition: none !important;
  transform: none !important;
  text-indent: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
}

.print-mode .download-btn,
.print-mode .skip-link {
  display: none !important;
}

.print-mode .section-icon,
.print-mode .contact-icon,
.print-mode svg {
  display: none !important;
}

.print-mode .section-title {
  display: block !important;
  gap: 0;
}

.print-mode .cv-header {
  margin-bottom: 12px;
  padding: 10mm 5mm 8px 5mm;
  border-bottom: 2px solid #000000;
}

.print-mode .name {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16pt;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.print-mode .tagline {
  font-size: 9pt;
  color: #333333;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.3;
}

.print-mode .contact-info {
  font-size: 8.5pt;
  color: #333333;
  line-height: 1.5;
  margin-top: 4px;
}

.print-mode .contact-item {
  display: inline;
  color: #333333;
}

.print-mode .separator {
  display: inline;
  margin: 0 8px;
  color: #999999;
}

.print-mode .main-content {
  display: grid !important;
  grid-template-columns: 35% 65% !important;
  gap: 0 !important;
  width: 100%;
  margin-top: 0;
  padding: 0 5mm;
}

.print-mode .column-left {
  background-color: #f8f8f8 !important;
  padding: 12px 10px !important;
  border-right: 1px solid #d0d0d0 !important;
  border-bottom: none !important;
  margin-bottom: 0;
  display: block !important;
  width: auto !important;
  float: none !important;
}

.print-mode .column-right {
  padding: 12px 12px !important;
  background-color: white !important;
  margin-bottom: 0;
  display: block !important;
  width: auto !important;
  float: none !important;
}

.print-mode .column-left .section,
.print-mode .column-right .section {
  margin-bottom: 10px !important;
}

.print-mode .column-left .section,
.print-mode .column-right .section {
  margin-bottom: 10px !important;
}

.print-mode .section {
  margin-bottom: 10px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.print-mode .section-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10pt !important;
  font-weight: 700;
  color: #000000 !important;
  margin-bottom: 8px !important;
  padding-bottom: 4px !important;
  border-bottom: 1.5px solid #000000 !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.2;
}

.print-mode .column-left .section-title {
  font-size: 10pt !important;
  border-bottom: 1.5px solid #000000 !important;
  margin-bottom: 8px !important;
  padding-bottom: 4px !important;
}

.print-mode .section-content {
  padding-left: 0;
}

.print-mode .about-section .section-content p {
  font-size: 9.5pt;
  line-height: 1.4;
  color: #000000;
  text-align: justify;
  margin: 0 0 4px 0;
}

.print-mode .skills-category {
  margin-bottom: 8px;
}

.print-mode .skill-category-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9pt;
  font-weight: 600;
  color: #000000;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.print-mode .skills-list {
  display: block !important;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.print-mode .skills-list span {
  display: inline-block;
  background-color: transparent !important;
  border: none !important;
  color: #000000 !important;
  font-size: 9pt;
  padding: 0;
  margin: 0 4px 0 0;
  box-shadow: none !important;
}

.print-mode .skills-list span::after {
  content: ",";
}

.print-mode .skills-list span:last-child::after {
  content: "";
}

.print-mode .experience-item {
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #d0d0d0 !important;
}

.print-mode .experience-item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.print-mode .exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.print-mode .exp-title {
  font-size: 10pt;
  color: #000000;
  font-weight: 600;
  flex: 1;
  min-width: 60%;
}

.print-mode .exp-title strong {
  color: #000000;
  font-weight: 700;
  font-size: 10pt;
}

.print-mode .position {
  color: #000000;
  font-weight: 500;
  font-style: italic;
}

.print-mode .exp-duration {
  font-size: 8.5pt;
  color: #666666;
  font-style: italic;
  white-space: nowrap;
}

.print-mode .exp-bullets {
  padding-left: 16px;
  margin-top: 3px;
  margin-bottom: 0;
}

.print-mode .exp-bullets li {
  font-size: 9pt;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 2px;
  text-align: justify;
  padding-left: 0;
}

.print-mode .project-item {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e0e0e0 !important;
  padding: 0 0 8px 0 !important;
  margin-bottom: 10px !important;
  box-shadow: none !important;
}

.print-mode .project-item:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

.print-mode .project-header {
  margin-bottom: 3px;
  padding-bottom: 2px;
  border-bottom: none !important;
}

.print-mode .project-name {
  font-size: 10pt;
  font-weight: 700;
  color: #000000;
  margin-bottom: 2px;
}

.print-mode .project-link {
  color: #000000 !important;
  text-decoration: none;
  border-bottom: none !important;
  font-weight: 700;
}

.print-mode .project-type {
  font-size: 8.5pt;
  color: #666666;
  font-style: italic;
}

.print-mode .project-description {
  font-size: 9pt;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 3px;
  text-align: justify;
}

.print-mode .project-responsibilities {
  margin-bottom: 3px;
}

.print-mode .project-responsibilities strong {
  font-size: 9pt;
  font-weight: 600;
  color: #000000;
}

.print-mode .project-bullets {
  padding-left: 16px;
  margin-top: 2px;
  margin-bottom: 0;
}

.print-mode .project-bullets li {
  font-size: 9pt;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 2px;
  text-align: justify;
  padding-left: 0;
}

.print-mode .project-tech {
  font-size: 8pt;
  color: #666666;
  border-top: none !important;
  padding-top: 0;
  margin-top: 3px;
  font-style: italic;
}

.print-mode .project-tech strong {
  font-weight: 600;
  color: #333333;
}

.print-mode .domains-list,
.print-mode .clients-list {
  display: block !important;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.print-mode .domains-list span,
.print-mode .clients-list span {
  display: inline-block;
  background-color: transparent !important;
  border: none !important;
  color: #000000 !important;
  font-size: 9pt;
  padding: 0;
  margin: 0 4px 0 0;
  box-shadow: none !important;
}

.print-mode .domains-list span::after,
.print-mode .clients-list span::after {
  content: ",";
}

.print-mode .domains-list span:last-child::after,
.print-mode .clients-list span:last-child::after {
  content: "";
}

.print-mode .education-content {
  display: block !important;
}

.print-mode .education-item,
.print-mode .certification-item {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid #d0d0d0 !important;
  padding: 0 0 8px 0 !important;
  box-shadow: none !important;
  margin-bottom: 8px;
}

.print-mode .education-item:last-child,
.print-mode .certification-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.print-mode .education-item h3,
.print-mode .certification-item h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9pt;
  font-weight: 700;
  color: #000000;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 2px;
}

.print-mode .edu-details,
.print-mode .cert-details {
  margin-bottom: 4px;
}

.print-mode .edu-details p,
.print-mode .cert-details p {
  font-size: 9pt;
  color: #000000;
  margin-bottom: 1px;
  line-height: 1.4;
}

.print-mode .edu-details strong,
.print-mode .cert-details strong {
  font-weight: 600;
  color: #000000;
}

.print-mode .award-item {
  font-size: 9pt;
  color: #000000;
  padding: 2px 0;
  line-height: 1.4;
}

.print-mode .personal-info {
  background-color: transparent !important;
  border: none !important;
  border-bottom: 1px solid #d0d0d0 !important;
  padding: 0 0 8px 0 !important;
  box-shadow: none !important;
  margin-bottom: 8px;
}

.print-mode .info-row {
  font-size: 9pt;
  padding: 2px 0;
  border-bottom: none !important;
  display: flex;
  line-height: 1.4;
}

.print-mode .info-row:last-child {
  border-bottom: none;
}

.print-mode .info-label {
  color: #000000;
  font-weight: 600;
  min-width: 130px;
}

.print-mode .info-value {
  color: #000000;
}

.print-mode .declaration-section {
  padding-bottom: 10mm;
}

.print-mode .declaration-section .declaration {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.print-mode .declaration h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9.5pt;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 2px;
}

.print-mode .declaration p {
  font-size: 9pt;
  color: #000000;
  line-height: 1.4;
  text-align: justify;
  margin-bottom: 6px;
}

.print-mode .signature {
  margin-top: 8px;
  text-align: right;
}

.print-mode .signature p {
  font-size: 9pt;
  color: #000000;
  margin: 0;
}

.print-mode .signature strong {
  font-weight: 600;
}

.print-mode a {
  color: #000000 !important;
  text-decoration: none;
}

.print-mode .contact-info a::after {
  content: " (" attr(href) ")";
  font-size: 7.5pt;
  color: #666666;
  font-weight: normal;
}

.print-mode .project-link::after {
  content: " (" attr(href) ")";
  font-size: 8pt;
  color: #666666;
  font-weight: normal;
  font-style: normal;
}
