@media print {
  * {
    margin: 0;
    padding: 0;
  }
  body {
    background: white;
    font-family: Arial, sans-serif;
  }
  navbar,
  footer,
  .btn-download {
    display: none !important;
  }
  section {
    padding: 20px;
  }
  .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  .cv-header {
    margin-bottom: 15px;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 15px;
  }
  .cv-profile-photo,
  .cv-profile-placeholder {
    width: 80px;
    height: 80px;
    border: 2px solid #0066cc;
  }
  .cv-title {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: #333;
  }
  .cv-subtitle {
    font-size: 14px;
    color: #0066cc;
    margin: 0;
  }
  h2 {
    font-size: 24px;
    margin: 0 0 15px 0;
    text-align: center;
    color: #333;
  }
  .content-grid {
    display: block;
    gap: 0;
  }
  .section-card {
    page-break-inside: avoid;
    padding: 10px 0;
    border: none;
    box-shadow: none;
    background: white;
    margin-bottom: 10px;
  }
  .section-card h3 {
    font-size: 14px;
    margin: 8px 0 8px 0;
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 5px;
  }
  .section-card p {
    font-size: 12px;
    margin: 3px 0;
    line-height: 1.4;
    color: #333;
  }
  .section-card ul {
    margin: 3px 0;
    padding-left: 15px;
  }
  .section-card li {
    font-size: 12px;
    margin: 2px 0;
    line-height: 1.3;
    color: #333;
  }
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(0, 102, 204, 0.1);
  gap: 20px;
  flex-wrap: wrap;
}

.cv-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.cv-profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0066cc;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
  flex-shrink: 0;
}

.cv-profile-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #0066cc;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
  flex-shrink: 0;
}

.cv-title {
  margin-bottom: 5px;
  color: #333;
}

.cv-subtitle {
  margin: 5px 0 0 0;
  color: #0066cc;
  font-size: 16px;
  font-weight: 500;
}

.btn-download {
  background: linear-gradient(135deg, #0066cc, #0091ff);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 102, 204, 0.25);
}

/* Section Cards Styling (Non-Print) */
.section-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(0, 102, 204, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.section-card:hover {
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.15);
  transform: translateY(-2px);
}

.section-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0066cc;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 102, 204, 0.2);
  position: relative;
}

.section-card h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #0066cc;
}

.section-card p {
  margin: 8px 0;
  line-height: 1.6;
  color: #333;
}

.section-card ul {
  margin: 10px 0;
  padding-left: 20px;
}

.section-card li {
  margin: 6px 0;
  line-height: 1.6;
  color: #333;
}

.section-card strong {
  color: #0066cc;
  font-weight: 600;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cv-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-header-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   DARK MODE STYLES FOR CV PAGE
   ======================================== */

html.dark-mode section {
  background: #0f0f0f;
}

html.dark-mode .cv-header {
  border-bottom-color: #2a2a2a;
  padding-bottom: 20px;
}

html.dark-mode .cv-title {
  color: #e5e5e5;
}

html.dark-mode .cv-subtitle {
  color: #3d9eff;
}

html.dark-mode .cv-profile-photo,
html.dark-mode .cv-profile-placeholder {
  border-color: #3d9eff;
  box-shadow: 0 4px 12px rgba(61, 158, 255, 0.3);
}

html.dark-mode .section-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
  border-color: rgba(61, 158, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

html.dark-mode .section-card:hover {
  background: linear-gradient(135deg, #242424 0%, #2a2a2a 100%);
  box-shadow: 0 8px 20px rgba(61, 158, 255, 0.3);
  border-color: rgba(61, 158, 255, 0.4);
}

html.dark-mode .section-card h3 {
  color: #3d9eff;
  border-bottom-color: rgba(61, 158, 255, 0.2);
}

html.dark-mode .section-card h3::after {
  background: #3d9eff;
}

html.dark-mode .section-card p,
html.dark-mode .section-card li {
  color: #e5e5e5;
}

html.dark-mode .section-card strong {
  color: #b0b0b0;
}

html.dark-mode .btn-download {
  background: linear-gradient(135deg, #3d9eff, #5db0ff);
}

html.dark-mode .btn-download:hover {
  box-shadow: 0 6px 14px rgba(61, 158, 255, 0.4);
}
