/* ==========================================================================
   RESUME PROFESIONAL & ELEGAN (STANDAR KORPORAT / HR-READY)
   Muhammad Hanif Yudistira | Airframe & Powerplant
   ========================================================================== */

:root {
  /* Subtle Blue Palette (Biru Tipis & Korporat) */
  --bg-page: #edf4fa;             /* Latar layar biru tipis */
  --bg-paper: #ffffff;            /* Lembar dokumen putih bersih */
  --blue-primary: #0369a1;        /* Biru aviasi korporat */
  --blue-dark: #0c4a6e;           /* Navy pekat untuk heading */
  --blue-light-border: #cbdde9;   /* Garis pemisah biru muda tipis */
  --blue-subtle-bg: #f3f8fc;      /* Latar baris/tabel biru sangat tipis */
  
  /* Tipografi & Warna Teks */
  --text-main: #1e293b;           /* Slate gelap untuk teks utama (kontras tinggi) */
  --text-secondary: #475569;      /* Slate sedang untuk detail & periode */
  --text-muted: #64748b;          /* Slate redup untuk label */
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top Navigation Bar (Hanya tampil di Browser)
   ========================================================================== */

.resume-navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blue-light-border);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(12, 74, 110, 0.05);
}

.navbar-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  background: var(--blue-subtle-bg);
  border: 1px solid var(--blue-light-border);
  transition: all 0.2s ease;
}

.nav-back:hover {
  background: #e2eef7;
  color: var(--blue-primary);
}

.nav-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-print, .btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-print {
  background: var(--blue-primary);
  color: #ffffff;
}

.btn-print:hover {
  background: var(--blue-dark);
}

.btn-contact {
  background: #ffffff;
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.btn-contact:hover {
  background: var(--blue-subtle-bg);
}

/* ==========================================================================
   Full-Screen Wrapper & Dokumen Resume
   ========================================================================== */

.resume-page-wrapper {
  flex: 1;
  width: 100%;
  padding: 2rem 1rem 3.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.resume-document {
  width: 100%;
  max-width: 860px;
  background-color: var(--bg-paper);
  border: 1px solid var(--blue-light-border);
  border-top: 4px solid var(--blue-primary);
  box-shadow: 0 8px 30px rgba(12, 74, 110, 0.08);
  padding: 3rem 3.5rem;
  border-radius: 2px;
}

/* ==========================================================================
   Header Dokumen
   ========================================================================== */

.doc-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1.5px solid var(--blue-light-border);
  margin-bottom: 2rem;
}

.header-photo {
  flex-shrink: 0;
}

.formal-portrait {
  width: 110px;
  height: 140px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1px solid #94a3b8;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.header-text {
  flex: 1;
  min-width: 0;
}

.candidate-name {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.15;
  margin-bottom: 0.35rem;
  white-space: nowrap; /* SATU BARIS */
}

.candidate-subtitle {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Section Struktur & Judul
   ========================================================================== */

.doc-section {
  margin-bottom: 1.85rem;
}

.section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-dark);
  border-bottom: 1.5px solid var(--blue-primary);
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.section-content {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.65;
}

.paragraph-text {
  text-align: justify;
}

.mt-sm {
  margin-top: 0.65rem;
}

/* ==========================================================================
   Pendidikan & Pengalaman Kerja
   ========================================================================== */

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.institution-name,
.company-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.field-of-study,
.job-title {
  font-size: 0.9rem;
  color: var(--blue-primary);
  font-weight: 500;
}

.period-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.academic-record {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  background: var(--blue-subtle-bg);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--blue-light-border);
  width: fit-content;
}

.academic-record .divider {
  color: var(--blue-light-border);
}

.academic-record .highlight-text {
  color: var(--blue-dark);
  font-weight: 600;
}

.entry-description {
  text-align: justify;
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.job-entry {
  margin-bottom: 1.35rem;
}

.mt-entry {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--blue-light-border);
}

.bullet-list {
  list-style-type: square;
  padding-left: 1.25rem;
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bullet-list li {
  line-height: 1.55;
  text-align: justify;
  color: var(--text-main);
  font-size: 0.88rem;
}

/* ==========================================================================
   Tabel Kemampuan & Kualifikasi (Clean Tabular Layout)
   ========================================================================== */

.skills-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--blue-subtle-bg);
  border: 1px solid var(--blue-light-border);
  border-radius: 4px;
  padding: 1.15rem 1.25rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.88rem;
}

.skill-col-label {
  font-weight: 700;
  color: var(--blue-dark);
}

.skill-col-val {
  color: var(--text-main);
  line-height: 1.55;
}

/* ==========================================================================
   Footer Dokumen (Pernyataan Keaslian)
   ========================================================================== */

.doc-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--blue-light-border);
}

.footer-note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Responsive (Tampilan Mobile & Tablet)
   ========================================================================== */

@media (max-width: 768px) {
  .resume-document {
    padding: 2rem 1.5rem;
  }

  .doc-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .formal-portrait {
    width: 100px;
    height: 128px;
  }

  .contact-details {
    align-items: center;
  }

  .contact-row {
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }

  .c-label {
    width: auto;
    font-size: 0.8rem;
  }

  .c-sep {
    display: none;
  }

  .entry-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 580px) {
  .navbar-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-back {
    justify-content: center;
  }

  /* CETAK/UNDUH SEJAJAR DENGAN HUBUNGI VIA WHATSAPP */
  .nav-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .btn-print, .btn-contact {
    flex: 1 !important;
    font-size: 0.75rem !important;
    padding: 0.45rem 0.4rem !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .candidate-name {
    font-size: clamp(1.15rem, 4.8vw, 1.55rem) !important;
    white-space: nowrap !important; /* SATU BARIS */
  }

  .resume-page-wrapper {
    padding: 0.75rem 0.5rem 2rem 0.5rem;
  }
}

/* ==========================================================================
   Standar Cetak & PDF Export (A4 Clean Print, Tanpa Elemen Web)
   ========================================================================== */

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm 12mm 15mm;
  }

  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

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

  .resume-page-wrapper {
    padding: 0 !important;
  }

  .resume-document {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .doc-header {
    border-bottom: 1.5px solid #0369a1 !important;
  }

  .section-heading {
    border-bottom: 1.5px solid #0369a1 !important;
    color: #0c4a6e !important;
  }

  .job-entry, .doc-section {
    page-break-inside: avoid;
  }

  .skills-table, .academic-record {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}
