* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: #0f172a;
  background-image: radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
                    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.15) 0px, transparent 50%);
  color: #333;
  padding: 30px 15px 50px;
  min-height: 100vh;
}

/* Action Bar (Top navigation & print button) */
.cv-action-bar {
  max-width: 950px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cv-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cv-action-btn--back {
  background: rgba(30, 41, 59, 0.85);
  color: #cbd5e1;
  backdrop-filter: blur(10px);
}

.cv-action-btn--back:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.cv-action-btn--print {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.cv-action-btn--print:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.cv-container {
  display: flex;
  max-width: 950px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Sidebar Styling (Left Column) */
.sidebar {
  width: 35%;
  background-color: #1e293b;
  color: #ffffff;
  padding: 35px 25px;
}

.profile-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  width: 130px;
  height: 130px;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid #3b82f6;
  background-color: #0f172a;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sidebar-section {
  margin-bottom: 25px;
}

.sidebar-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 6px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  color: #f8fafc;
}

.sidebar-section p,
.sidebar-section li {
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.sidebar-section a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-section a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.skill-category {
  margin-bottom: 12px;
}

.skill-category strong {
  color: #60a5fa;
  font-size: 12.5px;
  display: block;
  margin-bottom: 3px;
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  background-color: #334155;
  color: #e2e8f0;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Main Content Styling (Right Column) */
.main-content {
  width: 65%;
  padding: 40px 35px;
  background-color: #ffffff;
}

.main-header {
  margin-bottom: 25px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 15px;
}

.main-header h1 {
  font-size: 28px;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.main-header h2 {
  font-size: 16px;
  color: #2563eb;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.section {
  margin-bottom: 24px;
}

.section h3 {
  font-size: 14.5px;
  color: #0f172a;
  text-transform: uppercase;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 5px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-weight: 700;
}

.section p {
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
}

.job-item {
  margin-bottom: 16px;
}

.job-item h4 {
  font-size: 14px;
  color: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.job-item h4 span {
  font-size: 11.5px;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.job-item p {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 4px;
}

.project-link {
  font-size: 12px;
  margin-top: 3px;
  margin-bottom: 6px;
}

.project-link strong {
  color: #475569;
}

.project-link a {
  color: #2563eb;
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
}

.project-link a:hover {
  text-decoration: underline;
}

.project-bullets {
  list-style-type: disc;
  padding-left: 18px;
  margin-top: 5px;
}

.project-bullets li {
  font-size: 12px;
  color: #475569;
  margin-bottom: 4px;
  line-height: 1.55;
}

/* Responsive for Tablet / Mobile */
@media (max-width: 768px) {
  body {
    padding: 15px 10px;
  }

  .cv-action-bar {
    justify-content: center;
  }

  .cv-container {
    flex-direction: column;
    border-radius: 8px;
  }

  .sidebar {
    width: 100%;
    padding: 30px 20px;
  }

  .main-content {
    width: 100%;
    padding: 30px 20px;
  }

  .job-item h4 {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Print Styling */
@media print {
  body {
    background: transparent !important;
    padding: 0 !important;
    color: #000 !important;
  }

  .cv-action-bar {
    display: none !important;
  }

  .cv-container {
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .sidebar {
    background-color: #1e293b !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .sidebar a {
    color: #93c5fd !important;
  }

  .tags span {
    background-color: #334155 !important;
    color: #ffffff !important;
  }

  .job-item {
    page-break-inside: avoid;
  }
}
