/* cv.css - Premium Dark Mode Web, Clean Light Mode Print */

html, body.page-cv {
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.page-cv {
  background: #0d0d0d;
  background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #0d0d0d 70%);
  color: #d4d4d8;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: auto;
}

body.page-cv a,
body.page-cv button {
  cursor: pointer;
}

/* Actions Bar */
.cv-actions {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.cv-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-ui, 'Space Grotesk'), sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
}

.cv-btn.primary {
  background: #22c55e;
  color: #000;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}
.cv-btn.primary:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.cv-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cv-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Document Container */
.cv-container {
  background: #141417;
  width: 100%;
  max-width: 850px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
  padding: 60px 70px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Subtle top accent bar */
.cv-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #10b981);
}

/* Header */
.cv-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  position: relative;
}
.cv-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.cv-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  letter-spacing: 0.05em;
  margin: 0 0 5px 0;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.cv-subtitle {
  font-family: var(--font-ui, 'Space Grotesk'), sans-serif;
  font-size: 1.1rem;
  color: #a1a1aa;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

.cv-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
  color: #a1a1aa;
  font-weight: 300;
}

.cv-contact-sep {
  color: #3f3f46;
}

.cv-contact-link {
  color: #22c55e;
  text-decoration: none;
  transition: color 0.2s;
}
.cv-contact-link:hover {
  color: #4ade80;
}

/* Sections */
.cv-section {
  margin-bottom: 36px;
}

.cv-section-title {
  font-family: var(--font-ui, 'Space Grotesk'), sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.cv-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #d4d4d8;
  margin: 0;
  font-weight: 300;
}

/* Items */
.cv-item {
  margin-bottom: 24px;
}
.cv-item:last-child {
  margin-bottom: 0;
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.cv-item-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.cv-tech-stack {
  font-family: var(--font-ui, 'Space Grotesk'), sans-serif;
  font-size: 0.85rem;
  color: #22c55e;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.cv-item-date {
  font-family: var(--font-ui, 'Space Grotesk'), sans-serif;
  font-size: 0.85rem;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cv-item-sub {
  font-size: 1rem;
  color: #a1a1aa;
  margin-bottom: 12px;
  font-weight: 400;
}

/* Lists */
.cv-list {
  margin: 0;
  padding-left: 18px;
}
.cv-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d4d4d8;
  margin-bottom: 8px;
  font-weight: 300;
}
.cv-list li:last-child {
  margin-bottom: 0;
}

.cv-list.blank-list {
  list-style: none;
  padding: 0;
}
.cv-list.blank-list li {
  margin-bottom: 10px;
}

/* Skills Grid */
.cv-skills-grid {
  display: grid;
  gap: 14px;
}
.cv-skill-group {
  display: flex;
  align-items: baseline;
  font-size: 0.95rem;
  line-height: 1.6;
}
.cv-skill-label {
  font-weight: 600;
  color: #fff;
  width: 130px;
  flex-shrink: 0;
}
.cv-skill-val {
  color: #d4d4d8;
  font-weight: 300;
}

/* Grid layout for bottom sections */
.cv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  body.page-cv {
    padding: 40px 16px;
  }

  .cv-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .cv-btn {
    justify-content: center;
  }

  .cv-container {
    padding: 40px 28px;
    border-radius: 6px;
  }

  .cv-name {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .cv-subtitle {
    font-size: 0.95rem;
  }

  .cv-contact {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
  }

  .cv-contact-sep {
    display: none;
  }

  .cv-section-title {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }

  .cv-grid-2 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cv-item-header {
    flex-direction: column;
    gap: 4px;
  }

  .cv-skills-grid {
    gap: 10px;
  }

  .cv-skill-group {
    flex-direction: column;
    gap: 2px;
  }

  .cv-skill-label {
    width: auto;
  }

  .cv-list li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  body.page-cv {
    padding: 24px 12px;
  }

  .cv-container {
    padding: 28px 18px;
  }

  .cv-name {
    font-size: clamp(2rem, 12vw, 3rem);
    letter-spacing: 0.03em;
  }

  .cv-subtitle {
    font-size: 0.82rem;
    letter-spacing: 0.03em;
  }

  .cv-contact {
    font-size: 0.78rem;
  }

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

  .cv-section-title {
    font-size: 0.95rem;
    padding-bottom: 8px;
    margin-bottom: 14px;
  }

  .cv-item {
    margin-bottom: 18px;
  }

  .cv-item-title {
    font-size: 1rem;
  }

  .cv-item-sub {
    font-size: 0.88rem;
  }

  .cv-item-date {
    font-size: 0.75rem;
  }

  .cv-text {
    font-size: 0.88rem;
  }

  .cv-list li {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* ============================================================
   PRINT STYLES - Crisp Black & White for PDF Download
   ============================================================ */
@media print {
  @page {
    size: A4;
    margin: 1.5cm 1.5cm 2cm 1.5cm; /* Top, Right, Bottom, Left margins */
  }

  body.page-cv {
    background: #fff;
    padding: 0;
    margin: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .no-print {
    display: none !important;
  }

  .cv-container {
    background: #fff;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    border-radius: 0;
    color: #000;
  }

  .cv-container::before {
    display: none;
  }

  .cv-header::after {
    background: #000;
    left: 0; right: 0;
  }

  .cv-name {
    color: #000;
    text-shadow: none;
  }

  .cv-subtitle {
    color: #333;
  }

  .cv-contact {
    color: #444;
  }
  .cv-contact-sep {
    color: #ccc;
  }
  .cv-contact-link {
    color: #000;
    text-decoration: underline;
  }

  .cv-section-title {
    color: #000;
    border-bottom: 2px solid #000;
  }

  .cv-text, .cv-item-sub, .cv-list li, .cv-skill-val {
    color: #222;
    font-weight: 400; /* slightly heavier for print readability */
  }

  .cv-item-title, .cv-skill-label {
    color: #000;
    font-weight: 700;
  }

  .cv-tech-stack {
    color: #444;
    font-weight: 600;
  }

  .cv-item-date {
    color: #555;
    font-weight: 600;
  }
}
