/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --bg-navy: #012e52;
  --bg-canvas: #02111d;
  --bg-canvas-radial: #06233d;
  --sidebar-grad-top: #034a85;
  --sidebar-grad-bottom: #0076a4;
  --color-white: #ffffff;
  --color-cyan: #28b0f4;
  --color-cyan-light: #4fbaed;
  --color-btn: #016598;
  --color-btn-hover: #007bbd;
  --font-family:
    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background: radial-gradient(
    circle at 50% 40%,
    var(--bg-canvas-radial) 0%,
    var(--bg-canvas) 100%
  );
  color: var(--color-white);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  overflow-x: hidden;
}

/* ==========================================================================
   Kontainer
   ========================================================================== */
.card-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 670 / 1024;
  max-height: min(720px, calc(100vh - 3rem));
  background-color: var(--bg-navy);
  border-radius: clamp(20px, 4.5vw, 28px);
  display: flex;
  overflow: hidden;
  box-shadow:
    0 30px 60px -12px rgba(0, 0, 0, 0.75),
    0 18px 36px -18px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  container-type: inline-size;
}

/* Hover interaktif di PC / Laptop */
@media (hover: hover) and (min-width: 768px) {
  .card-container:hover {
    transform: translateY(-4px);
    box-shadow:
      0 38px 75px -12px rgba(0, 0, 0, 0.8),
      0 22px 42px -18px rgba(0, 0, 0, 0.65),
      0 0 0 1px rgba(255, 255, 255, 0.15),
      inset 0 1px 1px rgba(255, 255, 255, 0.2);
  }
}

/* Watermark */
.bg-watermark {
  position: absolute;
  top: 0;
  right: 0;
  height: 70%;
  width: auto;
  max-width: 55%;
  object-fit: cover;
  object-position: right top;
  pointer-events: none;
  z-index: 1;
}

.profile-photo {
  position: absolute;
  bottom: 0;
  right: -5%;
  width: 80%;
  height: auto;
  max-height: 59%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar-name {
  width: 34.3%;
  flex-shrink: 0;
  margin: 6.6% 0;
  border-radius: 0 clamp(24px, 6.5cqi, 38px) clamp(24px, 6.5cqi, 38px) 0;
  background: linear-gradient(
    180deg,
    var(--sidebar-grad-top) 0%,
    var(--sidebar-grad-bottom) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.25);
  justify-content: flex-end;
  padding-right: 0.5rem;
}

.sidebar-name .name-col {
  font-size: 40px;
}

.name-container {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.35rem, 1.4cqi, 0.65rem);
  user-select: none;
}

.name-col {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  line-height: 1;
}

.name-first {
  font-size: clamp(1.65rem, 6.8cqi, 2.35rem);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.name-last {
  font-size: clamp(1.02rem, 4.3cqi, 1.45rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Navigasi
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding: 6.6% 6.5% 4% 2.5%;
  position: relative;
  z-index: 3;
  top: 10px;
}

/* Header Profil Perusahaan */
.company-header {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.45rem, 1.8cqi, 0.75rem);
  text-decoration: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.company-header:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.company-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.company-title {
  color: var(--color-cyan);
  font-size: clamp(1.05rem, 4.1cqi, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.company-subtitle {
  color: var(--color-white);
  font-size: clamp(1.05rem, 4.1cqi, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.company-logo {
  width: clamp(48px, 15cqi, 68px);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Garis Pemisah Unik:
   Sisi kiri putih solid di bawah teks perusahaan,
   sisi kanan biru muda sejajar di bawah logo oval */
.divider-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.6cqi, 0.65rem);
  margin: clamp(0.5rem, 1.8cqi, 0.85rem) 0 clamp(0.75rem, 2.8cqi, 1.25rem) 0;
}

.divider-white {
  flex: 1;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
}

.divider-cyan {
  width: clamp(48px, 15cqi, 68px);
  height: 3px;
  background-color: var(--color-cyan);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Bagian Jabatan & Wilayah */
.role-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: clamp(0.9rem, 3.2cqi, 1.5rem);
}

.role-title {
  color: var(--color-white);
  font-size: clamp(1.15rem, 4.6cqi, 1.55rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-align: right;
}

.role-coverage {
  color: var(--color-cyan-light);
  font-size: clamp(0.95rem, 3.8cqi, 1.25rem);
  font-weight: 700;
  margin-top: clamp(0.2rem, 0.8cqi, 0.35rem);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Informasi Kontak
   ========================================================================== */
.contact-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(0.55rem, 2.2cqi, 0.95rem);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.45rem, 1.8cqi, 0.65rem);
  text-decoration: none;
  color: var(--color-white);
  font-size: clamp(0.82rem, 3.1cqi, 1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-icon {
  width: clamp(20px, 6.2cqi, 26px);
  height: clamp(20px, 6.2cqi, 26px);
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.12);
}

/* underline transition */
.contact-text {
  position: relative;
  padding-bottom: 2px;
}

.contact-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-cyan);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover .contact-text::after {
  width: 100%;
}

/* ==========================================================================
   CTA Download Card
   ========================================================================== */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--color-btn);
  color: var(--color-white);
  font-size: clamp(0.7rem, 2.6cqi, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: clamp(0.38rem, 1.4cqi, 0.48rem) clamp(0.8rem, 3cqi, 1rem);
  border-radius: 999px;
  text-decoration: none;
  margin-top: clamp(0.2rem, 0.8cqi, 0.35rem);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-download:hover {
  background-color: var(--color-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(1, 101, 152, 0.4);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-icon {
  width: clamp(12px, 3.8cqi, 14px);
  height: clamp(12px, 3.8cqi, 14px);
  object-fit: contain;
  flex-shrink: 0;
}

/* ==========================================================================
   Penyesuaian Layar Kecil Ponsel (Mobile Viewport)
   ========================================================================== */
@media (max-width: 480px) {
  body {
    padding: 0;
    background: var(--bg-navy);
  }

  .card-container {
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
}
