/* ==========================================================================
   MOTIONIRE CV RESUME - PURE CV THEME
   Strictly presents the exact CV elements from the PDF in Motionire site styling.
   ========================================================================== */

/* Page Background */
body.cv-body {
  background-color: #f1f5f9;
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  padding: 30px 16px 50px;
}

/* Minimalist Top Utility Bar */
.cv-top-bar {
  max-width: 960px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cv-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.cv-back-link:hover {
  color: var(--primary);
}

.cv-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cv-print-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}

/* Main CV Sheet Container */
.cv-sheet {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Header Banner - Dark Sleek Navy */
.cv-header {
  background: #090d16;
  color: #ffffff;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  border-bottom: 3px solid var(--primary);
}

.cv-avatar-container {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  background: #1e293b;
}

.cv-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cv-header-content {
  flex-grow: 1;
}

.cv-name {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.1;
}

.cv-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #74b0ff; /* Sky Cyan from theme */
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.cv-contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 28px;
  max-width: 600px;
}

.cv-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-fast);
}

a.cv-contact-item:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.cv-contact-item i {
  color: #74b0ff;
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
}

/* CV Two-Column Body */
.cv-body-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  padding: 44px 48px;
  gap: 48px;
}

/* Section Headings */
.cv-section-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.cv-section-title::after {
  content: \'\';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--primary);
}

/* Left Column Styling */
.cv-left-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Professional Summary */
.cv-summary-text {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Employment Section */
.cv-job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.cv-company-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.cv-job-dates {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.cv-job-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.cv-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cv-bullets li::before {
  content: \'\2022\';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Education Section */
.cv-edu-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.cv-edu-degree {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
}

.cv-edu-dates {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cv-edu-school {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Notable Clients */
.cv-clients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-clients-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cv-clients-list li::before {
  content: \'\2022\';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.3;
}

.cv-clients-list li strong {
  color: var(--text-main);
}

/* Right Column (Sidebar) */
.cv-right-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
  border-left: 1px solid var(--border);
  padding-left: 48px;
}

.cv-skill-category {
  margin-bottom: 20px;
}

.cv-skill-category-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Print Stylesheet */
@media print {
  body.cv-body {
    background: #ffffff !important;
    padding: 0 !important;
  }

  .cv-top-bar {
    display: none !important;
  }

  .cv-sheet {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
  }

  .cv-header {
    background: #090d16 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    padding: 24pt 30pt !important;
  }

  .cv-name {
    color: #ffffff !important;
    font-size: 24pt !important;
  }

  .cv-headline {
    color: #74b0ff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    font-size: 11pt !important;
  }

  .cv-contact-item {
    color: #cbd5e1 !important;
    font-size: 8.5pt !important;
  }

  .cv-body-grid {
    padding: 24pt 30pt !important;
    gap: 30pt !important;
  }

  .cv-section-title {
    font-size: 11pt !important;
    margin-bottom: 10pt !important;
  }

  .cv-summary-text,
  .cv-bullets li,
  .cv-clients-list li,
  .cv-edu-school {
    font-size: 8.5pt !important;
    line-height: 1.4 !important;
  }

  .cv-job-header,
  .cv-edu-header {
    margin-bottom: 2pt !important;
  }

  .cv-right-col {
    padding-left: 30pt !important;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cv-header {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
    gap: 20px;
  }

  .cv-contacts-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .cv-body-grid {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 36px;
  }

  .cv-right-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 36px;
  }
}
