/**
 * CV Layout Stylesheet - Exact Match to Modern CV Screenshot
 * Printable to A4 & Pixel-perfect view
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --cv-blue-dark: #004b93;
  --cv-blue-mid: #0077c8;
  --cv-blue-light: #29b6f6;
  --cv-cyan: #38c8dc;
  --cv-cyan-light: #67e8f9;
  --cv-orange: #ea580c;
  --cv-coral: #ff5733;
  --cv-text: #212529;
  --cv-text-muted: #555555;
  --cv-bg-left: #f8fafc;
}

.cv-page-wrapper {
  background: #525659;
  padding: 30px 15px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cv-paper {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-family: 'Montserrat', sans-serif;
  color: var(--cv-text);
  position: relative;
  overflow: hidden;
}

/* Header with Curved Wave Graphics */
.cv-header-graphic {
  position: relative;
  height: 180px;
  background: #ffffff;
  overflow: hidden;
}

.cv-wave-1 {
  position: absolute;
  top: -60px;
  left: -40px;
  width: 110%;
  height: 200px;
  background: linear-gradient(105deg, #004b93 0%, #0077c8 55%, #29b6f6 100%);
  border-radius: 0 0 50% 30% / 0 0 100% 80%;
  transform: rotate(-3deg);
  z-index: 1;
}

.cv-wave-2 {
  position: absolute;
  top: -80px;
  right: -20px;
  width: 50%;
  height: 170px;
  background: #67e8f9;
  border-radius: 0 0 60% 40% / 0 0 120% 70%;
  opacity: 0.7;
  z-index: 2;
}

.cv-header-content {
  position: relative;
  z-index: 5;
  display: flex;
  padding: 0 40px 15px 40px;
  margin-top: -110px;
  align-items: flex-end;
  gap: 30px;
}

.cv-avatar-container {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(0, 75, 147, 0.2);
  border: 4px solid #38c8dc;
  overflow: hidden;
}

.cv-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.cv-header-details {
  flex: 1;
  padding-bottom: 5px;
}

.cv-name {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #111827;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.cv-title {
  font-size: 20px;
  font-weight: 700;
  color: #ff5733;
  margin: 6px 0 14px 0;
}

.cv-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 6px;
  column-gap: 15px;
  font-size: 11.5px;
  color: #374151;
  font-weight: 500;
}

.cv-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-contact-item i {
  font-size: 13px;
  color: #111827;
  width: 14px;
  text-align: center;
}

.cv-contact-item a {
  color: #374151;
  text-decoration: none;
}

/* Two Column Layout */
.cv-body {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 800px;
}

/* Left Column */
.cv-left-col {
  background: #f1f5f9;
  padding: 30px 25px;
  border-right: 1px solid #e2e8f0;
}

/* Right Column */
.cv-right-col {
  background: #ffffff;
  padding: 30px 35px;
}

/* Section Title with Cyan Half-Circle Accent */
.cv-section-title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.cv-section-badge-circle {
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #38c8dc;
  border-radius: 50%;
  opacity: 0.85;
  z-index: 1;
}

.cv-section-title {
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0f172a;
  text-transform: uppercase;
  margin: 0;
  padding-left: 6px;
}

/* Education in CV */
.cv-edu-item {
  margin-bottom: 18px;
}

.cv-edu-year {
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
  color: #475569;
  margin-bottom: 2px;
}

.cv-edu-inst {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  line-height: 1.25;
}

.cv-edu-major {
  font-size: 10.5px;
  color: #475569;
  font-weight: 500;
}

/* Skills List with Progress Bars */
.cv-skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
}

.cv-skill-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cv-skill-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0f172a;
}

.cv-bar-track {
  width: 105px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 3px;
  overflow: hidden;
}

.cv-bar-fill {
  height: 100%;
  background: #0077c8;
  border-radius: 3px;
}

.cv-divider {
  height: 1px;
  background: #cbd5e1;
  margin: 22px 0;
}

/* Right Column Content */
.cv-about-text {
  font-size: 11px;
  color: #334155;
  line-height: 1.65;
  text-align: justify;
  margin-bottom: 25px;
  font-weight: 500;
}

/* Work Experience Timeline */
.cv-exp-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid #0077c8;
  margin-left: 6px;
}

.cv-exp-node {
  position: relative;
  margin-bottom: 22px;
}

.cv-exp-node:last-child {
  margin-bottom: 0;
}

.cv-exp-bullet {
  position: absolute;
  left: -26px;
  top: 3px;
  width: 10px;
  height: 10px;
  background: #0077c8;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.cv-exp-date {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cv-exp-company {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  margin: 2px 0 4px 0;
}

.cv-exp-role-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-exp-role-item {
  font-size: 10.5px;
  font-weight: 600;
  color: #0077c8;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 2px;
}

.cv-exp-role-item .sub-bullet {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0077c8;
  margin-top: 5px;
  flex-shrink: 0;
}

.cv-exp-subdesc {
  font-size: 10px;
  font-weight: 500;
  color: #475569;
  line-height: 1.5;
  margin-top: 2px;
  padding-left: 10px;
}

/* CV Action Toolbar */
.cv-toolbar {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
}

.cv-toolbar .lang-switch-wrap {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cv-toolbar .lang-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  border-radius: 999px;
}

.cv-toolbar .lang-btn.active {
  background: #0077c8;
  color: #ffffff;
}

.cv-toolbar .lang-sep {
  color: #cbd5e1;
}

.cv-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.cv-tool-btn.primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
}

.cv-tool-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

/* Print Rules */
@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .cv-page-wrapper {
    background: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
  }
  .cv-paper {
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .cv-toolbar, .navbar-custom {
    display: none !important;
  }
  @page {
    size: A4 portrait;
    margin: 0;
  }
}
