:root {
  --navy: #2b3440;
  --navy-dark: #1f252e;
  --orange: #e65c40;
  --white: #ffffff;
  --text-dark: #334155;
  --text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #cbd5e1;
  font-family: "Plus Jakarta Sans", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* ================== TOMBOL CETAK ================== */
.actions {
  margin-bottom: 20px;
  z-index: 100;
}
.actions button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.actions button:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

/* ================== KERTAS A4 MUTLAK (210 x 297mm) ================== */
.cv-wrapper {
  width: 210mm;
  height: 297mm;
  background: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);

  /* Mengatasi error color-adjust di VS Code */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ================== KURVA LATAR BELAKANG S-CURVE (Sistem Blok MM) ================== */
.bg-shape {
  position: absolute;
  z-index: 1;
}

.bg-top {
  top: 0;
  left: 0;
  width: 100%;
  height: 75mm;
  background: var(--navy);
}
.bg-curve-left {
  top: 75mm;
  left: 0;
  width: 55%;
  height: 25mm;
  background: var(--navy);
  border-bottom-right-radius: 25mm;
}
.bg-curve-right-mask {
  top: 75mm;
  right: 0;
  width: 45%;
  height: 25mm;
  background: var(--white);
  border-top-left-radius: 25mm;
  z-index: 2;
}

/* ================== FOTO PROFIL BESAR (PILL) ================== */
.photo-container {
  position: absolute;
  top: 15mm;
  right: 15mm;
  width: 55mm;
  height: 82mm; /* Proporsional raksasa */
  border-radius: 30mm;
  background: #e2e8f0;
  border: 2.5mm solid var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
  overflow: hidden;
  transition: transform 0.1s ease-out;
}
.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ================== HEADER KIRI ================== */
.header-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 66%; /* Dilebarkan sedikit agar teks panjang muat */
  height: 75mm;
  padding: 10mm 15mm;
  color: var(--white);
  z-index: 5;
}

.name {
  font-size: 38pt; /* Diperbesar drastis */
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3.5mm;
  letter-spacing: -0.5px;
}
.text-orange {
  color: var(--orange);
}

.job-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 2.5mm 5mm;
  border-radius: 3mm; /* Dibuat sedikit mengotak agar bagus untuk 2 baris */
  font-size: 8.5pt; /* Ukuran font diperbesar */
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.4;
  margin-bottom: 5mm;
  box-shadow: 0 2mm 5mm rgba(230, 92, 64, 0.3);
}

.contact-info {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Membagi dua kolom sama rata dan luas */
  column-gap: 8mm; /* Jarak horizontal diperlebar */
  row-gap: 4mm; /* Jarak vertikal */
  width: 100%;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 3mm;
  font-size: 7.5pt; /* Dikecilkan sedikit agar presisi */
  font-weight: 500;
}
.icon-box {
  width: 7.5mm;
  height: 7.5mm; /* Ikon diperbesar */
  background: rgba(255, 255, 255, 0.15);
  color: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5pt;
}

/* ================== KONTEN UTAMA (Ruang Mutlak 297mm - 100mm = 197mm) ================== */
.main-grid {
  position: absolute;
  top: 105mm;
  left: 0;
  width: 100%;
  height: 192mm;
  padding: 0 15mm 15mm 15mm;
  display: flex;
  gap: 8mm;
  z-index: 5;
}

.col-left {
  width: 55%;
  display: flex;
  flex-direction: column;
}
.col-right {
  width: 44%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ini yang akan mendistribusikan jarak dari atas ke bawah */
}
.skill-box {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 5mm;
  padding: 7.5mm; /* Padding diperbesar agar kotak lebih berisi */
  box-shadow: 0 3mm 6mm rgba(0, 0, 0, 0.15);
}

/* Judul Bagian */
.section {
  margin-bottom: 6mm;
}
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 2.5mm;
  background: var(--orange);
  color: var(--white);
  padding: 1.5mm 4mm;
  border-radius: 5mm;
  font-size: 8pt;
  font-weight: 800;
  margin-bottom: 4mm;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-text {
  font-size: 7.5pt;
  line-height: 1.5;
  color: var(--text-dark);
  text-align: justify;
}

/* ================== TIMELINE BERGARIS ================== */
.timeline {
  border-left: 0.6mm solid var(--orange);
  padding-left: 5mm;
  margin-left: 2.5mm;
}
.tl-item {
  position: relative;
  margin-bottom: 5mm;
}
.tl-item:last-child {
  margin-bottom: 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -7.2mm;
  top: 0.5mm;
  width: 3.5mm;
  height: 3.5mm;
  background: var(--orange);
  border-radius: 50%;
  border: 0.8mm solid var(--white);
}

.tl-title {
  font-size: 8.5pt;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1mm;
}
.tl-subtitle {
  font-size: 7.5pt;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 1.5mm;
}
.tl-desc {
  padding-left: 3mm;
  font-size: 7.5pt;
  color: var(--text-dark);
  line-height: 1.4;
  text-align: justify;
}
.tl-desc li {
  margin-bottom: 1mm;
}

/* ================== KOTAK SKILL GELAP ================== */
.skill-box {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 5mm;
  padding: 6mm;
  box-shadow: 0 3mm 6mm rgba(0, 0, 0, 0.15);
}
.skill-header {
  display: inline-flex;
  align-items: center;
  gap: 2mm;
  background: var(--orange);
  color: var(--white);
  padding: 1.5mm 4mm;
  border-radius: 4mm;
  font-size: 7.5pt;
  font-weight: 800;
  margin-bottom: 4mm;
}

.skill-item {
  margin-bottom: 3.5mm;
}
.skill-item:last-child {
  margin-bottom: 0;
}
.skill-name {
  font-size: 7pt;
  font-weight: 700;
  margin-bottom: 1.5mm;
}
.progress-bar {
  width: 100%;
  height: 1.5mm;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2mm;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 2mm;
  width: 0;
  transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ================== ANIMASI WEB ================== */
.anim-slide-right {
  opacity: 0;
  transform: translateX(-10mm);
  transition: 0.8s ease-out;
}
.anim-fade-up {
  opacity: 0;
  transform: translateY(5mm);
  transition: 0.8s ease-out;
}
.anim-slide-up {
  opacity: 0;
  transform: translateY(10mm);
  transition: 0.8s ease-out;
}
.anim-pop {
  opacity: 0;
  transform: scale(0.8);
  transition: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}
.delay-6 {
  transition-delay: 0.6s;
}

.is-visible {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

/* ================== PENGATURAN CETAK (PRINT) ================== */
@media print {
  body {
    background: none;
    padding: 0;
  }
  .cv-wrapper {
    box-shadow: none;
    width: 210mm;
    height: 297mm;
    margin: 0;
    transform: none !important;
  }
  .actions {
    display: none;
  }
  * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .progress-fill {
    width: var(--print-width) !important;
  }
  @page {
    size: A4;
    margin: 0;
  }
  html,
  body {
    width: 210mm;
    height: 297mm;
  }
}
