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

body {
  background-color: #0b1120;
  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: #334155;
  padding: 30px 15px 50px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 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: 12px;
}

.cv-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s 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 Main Sheet */
.cv-container {
  display: flex;
  max-width: 950px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

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

.profile-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  width: 125px;
  height: 125px;
  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.4);
}

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

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

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

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

.sidebar-section p strong {
  color: #e2e8f0;
}

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

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

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

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

.skill-category p {
  font-size: 12px;
  line-height: 1.5;
  color: #cbd5e1;
}

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

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

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

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

.main-header h1 {
  font-size: 27px;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  line-height: 1.2;
}

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

.section {
  margin-bottom: 22px;
}

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

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

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

.job-item h4 {
  font-size: 13.8px;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  gap: 10px;
}

.job-item h4 span {
  font-size: 11px;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-item p {
  font-size: 12.3px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.55;
}

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

.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: 17px;
  margin-top: 5px;
}

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

/* Tablet / Intermediate Screens */
@media (max-width: 860px) {
  .cv-container {
    max-width: 100%;
  }

  .sidebar {
    width: 38%;
    padding: 28px 18px;
  }

  .main-content {
    width: 62%;
    padding: 28px 22px;
  }
}

/* Mobile Screens (Phones) */
@media (max-width: 768px) {
  body {
    padding: 12px 10px 30px;
  }

  .cv-action-bar {
    margin-bottom: 14px;
  }

  .cv-container {
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  }

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

  .profile-img-container {
    width: 110px;
    height: 110px;
    margin-bottom: 18px;
  }

  .main-content {
    width: 100%;
    padding: 24px 18px;
  }

  .main-header h1 {
    font-size: 23px;
  }

  .main-header h2 {
    font-size: 14.5px;
  }

  .job-item h4 {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Very Small Mobile Phones (below 480px) */
@media (max-width: 480px) {
  body {
    padding: 8px 6px 25px;
  }

  .cv-action-bar {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .cv-action-btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
  }

  .sidebar {
    padding: 20px 14px;
  }

  .main-content {
    padding: 20px 14px;
  }

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

  .job-item h4 span {
    align-self: flex-start;
  }

  .project-bullets {
    padding-left: 15px;
  }

  .project-bullets li {
    font-size: 11.5px;
  }
}

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

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

  .cv-container {
    display: flex !important;
    flex-direction: row !important;
    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 {
    width: 35% !important;
    background-color: #1e293b !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    padding: 25px 18px !important;
  }

  .main-content {
    width: 65% !important;
    padding: 25px 22px !important;
  }

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

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

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