/* ==========================================================================
   Web CV — Robby Kurniawan
   Tema gelap mengikuti referensi BootstrapMade "Personal": latar hitam,
   aksen hijau, Raleway untuk judul, Poppins untuk navigasi, Roboto untuk teks.
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-alt: #0f0f0f;
  --surface: #171717;
  --border: #262626;
  --text: #d9d9d9;
  --muted: #9a9a9a;
  --heading: #ffffff;
  --accent: #18d26e;
  --accent-soft: rgba(24, 210, 110, 0.12);

  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: "Raleway", system-ui, sans-serif;
  --font-nav: "Poppins", system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
/* Animasi AOS fade-left/right menggeser elemen 100px ke luar layar sebelum
   tampil; tanpa clip halaman bisa digulir menyamping di ponsel. */
main, .footer { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--heading); }
a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: #4ee391; }
.accent { color: var(--accent); }

/* ------------------------------------------------------------------ Header */
.header { transition: background .35s, padding .35s; padding: 18px 0; }
.header.scrolled { background: rgba(5, 5, 5, .92); backdrop-filter: blur(8px); padding: 8px 0; box-shadow: 0 1px 0 var(--border); }

.navbar-brand.sitename { font-family: var(--font-heading); font-weight: 800; font-size: 28px; color: var(--heading); letter-spacing: .5px; }
.navbar-toggler { border: 0; color: var(--heading); font-size: 30px; padding: 0; box-shadow: none !important; }

.navbar-nav .nav-link {
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, .8);
  padding: 8px 16px !important;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent); }
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after { transform: scaleX(1); }

@media (max-width: 1199.98px) {
  .navbar-collapse { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-top: 12px; padding: 10px; }
  .navbar-nav .nav-link::after { display: none; }
}

/* -------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Foto potret berlatar hitam: di layar lebar diletakkan di kanan, sisi kiri
   yang gelap menjadi ruang teks tanpa menutupi wajah. */
.hero-bg img { object-fit: contain; object-position: right bottom; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,0) 62%);
}
/* Layar lebar: foto potret utuh setinggi layar di kanan; latar foto sudah hitam
   sehingga menyatu dengan latar hero. */
@media (min-width: 768px) {
  /* Kotak dibuat seukuran rasio foto (1792×2390) agar gradasi mask jatuh
     tepat di tepi kiri foto, bukan di ruang kosong object-fit: contain. */
  .hero-bg { left: auto; width: auto; aspect-ratio: 1792 / 2390; max-width: 70%; }
  .hero-bg img {
    object-fit: cover; object-position: center top;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  }
}
.hero .container-xl { z-index: 2; }

.hero-content { max-width: 620px; }
.eyebrow { font-family: var(--font-nav); text-transform: uppercase; letter-spacing: 3px; font-size: 13px; color: var(--accent); margin-bottom: 10px; font-weight: 500; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.lead-typed { font-size: clamp(20px, 2.4vw, 26px); color: #f2f2f2; font-family: var(--font-heading); font-weight: 600; min-height: 1.6em; }
.lead-typed .typed { color: var(--heading); border-bottom: 3px solid var(--accent); padding-bottom: 2px; }
.typed-cursor { color: var(--accent); font-weight: 400; }

.credentials { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.credentials span {
  font-family: var(--font-nav); font-size: 12.5px; font-weight: 500; letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.25); color: #eee; padding: 4px 12px; border-radius: 50px;
  background: rgba(0,0,0,.35);
}

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; font-size: 18px; transition: background .3s, transform .3s;
}
.social-links a:hover { background: var(--accent); color: #000; transform: translateY(-3px); }
/* WhatsApp hanya punya username (tanpa tautan resmi), jadi berupa tombol
   yang memunculkan tooltip @kurniawanz, bukan link. */
.social-links .wa-handle {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.08); color: #fff; font-size: 18px; transition: background .3s, transform .3s;
}
.social-links .wa-handle:hover, .social-links .wa-handle:focus-visible { background: #25d366; color: #000; transform: translateY(-3px); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.6); font-size: 24px; animation: bob 2s infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

@media (max-width: 767.98px) {
  .hero { align-items: flex-end; padding-bottom: 90px; }
  .hero-bg img { object-fit: cover; object-position: 50% 20%; }
  .hero::before { background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.75) 42%, rgba(0,0,0,.1) 75%); }
}

/* ---------------------------------------------------------------- Sections */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }

.section-title { text-align: center; padding-bottom: 56px; }
.section-title h2 {
  font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 14px; margin: 0 0 8px;
}
.section-title h2::before, .section-title h2::after { content: ""; width: 48px; height: 1px; background: var(--accent); }
.section-title p { font-family: var(--font-heading); font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; color: var(--heading); margin: 0; }

/* ------------------------------------------------------------------- About */
.profile-img { border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); max-width: 360px; width: 100%; }
.about-heading { font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.about-text { color: var(--text); }
.facts > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 6px; align-items: start; }
.facts i { color: var(--accent); font-size: 18px; grid-row: span 2; line-height: 1.5; }
.facts strong { font-family: var(--font-nav); font-weight: 500; color: var(--heading); font-size: 14px; }
.facts span { color: var(--muted); font-size: 15px; word-break: break-word; }

/* ------------------------------------------------------------------- Stats */
.stats { padding: 60px 0; background: var(--surface); border-block: 1px solid var(--border); }
.stat .counter, .stat .plus { font-family: var(--font-heading); font-size: 48px; font-weight: 800; color: var(--heading); line-height: 1; }
.stat .plus { color: var(--accent); }
.stat p { margin: 10px auto 0; max-width: 220px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* --------------------------------------------------------------- Expertise */
.service-card {
  height: 100%; padding: 34px 28px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); transition: transform .35s, border-color .35s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .4s;
}
.service-card:hover { transform: translateY(-6px); border-color: #333; }
.service-card:hover::before { width: 100%; }
.service-card i {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-size: 26px; margin-bottom: 20px;
}
.service-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ Resume */
.resume-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.resume-item { padding: 0 0 26px 24px; margin-top: -2px; border-left: 2px solid var(--accent); position: relative; }
.resume-item::before {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  left: -9px; top: 4px; background: var(--bg); border: 2px solid var(--accent);
}
.resume-item h4 { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; line-height: 1.4; margin-bottom: 8px; }
.resume-item h5 {
  font-family: var(--font-nav); font-size: 14px; font-weight: 500; display: inline-block;
  background: var(--surface); border: 1px solid var(--border); color: #eee; padding: 3px 12px; border-radius: 4px; margin-bottom: 8px;
}
.resume-item .org { color: var(--muted); margin-bottom: 8px; }
.resume-item ul { padding-left: 18px; margin: 0; }
.resume-item li { padding-bottom: 8px; }
.resume-item li::marker { color: var(--accent); }

.resume-title small { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.resume-item.compact { padding-bottom: 16px; }
.resume-item.compact h4 { font-size: 15.5px; margin-bottom: 6px; }
.resume-item.compact .org { margin-bottom: 0; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  font-family: var(--font-nav); font-size: 13px; padding: 5px 12px; border-radius: 50px;
  background: var(--surface); border: 1px solid var(--border); color: #e6e6e6;
}
.skill-tags span:first-child { border-color: var(--accent); color: var(--accent); }

.cert-card {
  height: 100%; padding: 26px 26px 22px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); transition: transform .35s, border-color .35s;
}
.cert-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.cert-card i { font-size: 28px; color: var(--accent); }
.cert-card h4 { font-size: 18px; font-weight: 700; margin: 12px 0 8px; line-height: 1.4; }
.cert-card .issuer { margin: 0; color: var(--text); font-size: 14.5px; }
.cert-card .cred { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-family: var(--font-nav); }

.cert-list { display: grid; gap: 12px; }
.cert { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.cert i { font-size: 24px; color: var(--accent); }
.cert strong { display: block; color: var(--heading); font-family: var(--font-nav); font-weight: 500; }
.cert span { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ Publications */
.pub-card {
  height: 100%; padding: 28px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s, border-color .35s;
}
.pub-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.pub-meta { font-family: var(--font-nav); font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.pub-card h4 { font-size: 19px; font-weight: 700; margin: 10px 0; line-height: 1.35; }
.pub-card p { margin: 0; color: var(--muted); font-size: 15px; }
.small-note { color: var(--muted); font-size: 14px; }

/* ----------------------------------------------------------------- Contact */
.contact-card {
  display: block; height: 100%; text-align: center; padding: 34px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .35s, border-color .35s;
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--accent); color: var(--text); }
.contact-card i {
  display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  border: 2px dashed var(--accent); color: var(--accent); font-size: 24px; margin-bottom: 14px;
}
.contact-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--muted); word-break: break-word; }

/* ------------------------------------------------------------------ Footer */
.footer { padding: 50px 0 30px; background: #000; border-top: 1px solid var(--border); }
.footer .sitename { font-size: 30px; font-weight: 800; }
.footer p { color: var(--muted); }
.footer .social-links { margin: 18px 0 24px; }
.footer .copyright { font-size: 13px; padding-top: 22px; border-top: 1px solid var(--border); margin: 0; }

/* -------------------------------------------------------------- Scroll top */
.scroll-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 99; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #000; font-size: 28px;
  opacity: 0; visibility: hidden; transition: all .35s;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { color: #000; background: #4ee391; }

@media (max-width: 575.98px) {
  .section { padding: 72px 0; }
  .section-title { padding-bottom: 40px; }
  .stat .counter, .stat .plus { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue { animation: none; }
}

/* Logo "Robby.Kurniawan" lebih panjang: kecilkan di layar sempit agar tidak
   bertabrakan dengan tombol menu. */
@media (max-width: 400px) {
  .navbar-brand.sitename { font-size: 23px; }
}

/* Tooltip username WhatsApp: default Bootstrap berlatar hitam dan hilang di
   atas latar hero yang juga hitam. */
.tooltip {
  --bs-tooltip-bg: #25d366;
  --bs-tooltip-color: #04160b;
  --bs-tooltip-opacity: 1;
  --bs-tooltip-font-size: 13.5px;
  --bs-tooltip-padding-x: 12px;
  --bs-tooltip-padding-y: 6px;
  font-family: var(--font-nav);
  font-weight: 500;
}

/* ---------------------------------------------------- Informal Activities */
.activities { position: relative; padding: 110px 0 100px; background: #000; overflow: hidden; }
.activities-bg, .activities-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.activities-bg img { object-fit: cover; object-position: 30% 20%; opacity: .55; }
.activities::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.85) 78%, #000 100%);
}
/* Layar lebar: potret bckg2 utuh di kiri, menyatu dengan latar hitam lewat mask
   (sama seperti hero, tapi dicerminkan), sehingga teks di kanan tetap terbaca. */
@media (min-width: 992px) {
  .activities-bg { right: auto; width: auto; height: 78%; aspect-ratio: 1792 / 2390; max-width: 48%; }
  .activities-bg img {
    opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 30%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, #000 60%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 30%);
            mask-composite: intersect;
  }
  .activities::before { background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.6) 80%, #000 100%); }
}
.activities .container-xl { z-index: 2; }
.activities .section-title { padding-bottom: 28px; }
@media (min-width: 992px) {
  .activities .section-title h2::before { display: none; }
}
.activities-intro { color: #cfcfcf; font-size: 17px; max-width: 560px; margin-bottom: 30px; }

/* Batang ala "Skills" di template rujukan: terisi saat terlihat di layar. */
.activity-bar { margin-bottom: 22px; }
.activity-bar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.activity-bar-head span {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--heading);
}
.activity-bar-head span i { color: var(--accent); margin-right: 8px; }
.activity-bar-head em { font-style: normal; font-family: var(--font-nav); font-size: 13px; color: var(--muted); }
.activity-bar-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.activity-bar-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #0f9d52, var(--accent));
  box-shadow: 0 0 14px rgba(24,210,110,.45);
  transition: width 1.4s cubic-bezier(.22,.8,.26,1);
}
.activity-bar:nth-child(2) .activity-bar-fill { transition-delay: .15s; }
.activity-bar:nth-child(3) .activity-bar-fill { transition-delay: .3s; }
.activity-bars.terisi .activity-bar-fill { width: 100%; }

.activity-card {
  position: relative; margin: 0; height: 100%; min-height: 380px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.activity-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.85) contrast(1.05); transform: scale(1.02); transition: transform .8s ease, filter .6s ease;
}
.activity-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.92) 100%);
}
.activity-card:hover img, .activity-card:focus-within img { filter: grayscale(0) contrast(1); transform: scale(1.08); }
.activity-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 22px 20px; }
.activity-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  background: var(--accent); color: #04160b; font-size: 20px; box-shadow: 0 8px 22px rgba(24,210,110,.35);
}
.activity-card h4 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.activity-card p { margin: 0; color: #d6d6d6; font-size: 14.5px; line-height: 1.55; }
/* Layar sentuh tidak punya hover: tampilkan foto berwarna sejak awal. */
@media (hover: none) {
  .activity-card img { filter: none; }
}
@media (max-width: 991.98px) {
  /* Layar sempit: potret bckg2 tampil utuh di atas, judul muncul di bagian bawahnya. */
  .activities { padding: 72vw 0 70px; }
  .activities-bg { bottom: auto; height: 118vw; }
  .activities-bg img {
    object-position: 50% 12%; opacity: 1;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .activities::before { background: linear-gradient(180deg, transparent 0%, transparent 38%, rgba(0,0,0,.75) 62%, #000 80%); }
}
@media (max-width: 767.98px) {
  .activity-card { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .activity-bar-fill, .activity-card img { transition: none; }
}

/* ------------------------------------------------------------------- Books */
.pub-subtitle {
  font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--heading);
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.pub-subtitle i { color: var(--accent); font-size: 18px; }
.books-stage { position: relative; }
.books-stage::before {
  /* cahaya panggung tipis di belakang deretan buku */
  content: ""; position: absolute; left: 50%; top: 140px; width: min(1100px, 100%); height: 70%;
  transform: translateX(-50%); z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(24,210,110,.12) 0%, transparent 65%);
}
.books-stage > * { position: relative; z-index: 1; }
.books-intro { color: var(--muted); max-width: 680px; margin-bottom: 30px; }

.book-card {
  height: 100%; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #161616 0%, #0d0d0d 100%); border: 1px solid var(--border);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .45s, box-shadow .45s;
}
.book-card:hover { transform: translateY(-8px); border-color: rgba(24,210,110,.55); box-shadow: 0 30px 60px -30px rgba(24,210,110,.35); }

.book-cover {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in;
  aspect-ratio: 6 / 7; overflow: hidden; perspective: 900px;
}
.book-cover img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transform-origin: 50% 60%; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .6s;
  filter: saturate(.92) brightness(.92);
}
.book-card:hover .book-cover img, .book-cover:focus-visible img {
  transform: scale(1.07) rotateY(-6deg) rotateX(2deg); filter: saturate(1.05) brightness(1);
}
.book-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(13,13,13,.95) 100%);
}
.book-zoom {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 15px;
  opacity: 0; transform: scale(.8); transition: opacity .35s, transform .35s;
}
.book-card:hover .book-zoom, .book-cover:focus-visible .book-zoom { opacity: 1; transform: scale(1); }
@media (hover: none) { .book-zoom { opacity: 1; transform: none; } }

.book-body { position: relative; padding: 4px 24px 24px; margin-top: -34px; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.book-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.book-no {
  font-family: var(--font-heading); font-weight: 800; font-size: 44px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px rgba(24,210,110,.85);
}
.book-tag {
  font-family: var(--font-nav); font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 50px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.book-card h4 { font-size: 21px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.book-sub { color: #cfcfcf; font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.book-meta {
  margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--border);
  font-family: var(--font-nav); font-size: 13px; color: var(--muted); line-height: 1.8;
}
.book-meta i { color: var(--accent); margin-right: 6px; }

/* ISBN & data katalog */
.book-isbn {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 8px 8px 12px; border-radius: 10px;
  background: rgba(24,210,110,.07); border: 1px dashed rgba(24,210,110,.45);
}
.book-isbn-label {
  font-family: var(--font-nav); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: #04160b;
  background: var(--accent); padding: 2px 7px; border-radius: 5px;
}
.book-isbn-no { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; color: var(--heading); letter-spacing: .5px; }
.book-copy {
  margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #e6e6e6; transition: background .25s, color .25s;
}
.book-copy:hover { background: var(--accent); color: #04160b; }
.book-copy.copied { background: var(--accent); color: #04160b; }

.book-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0 0 14px; }
.book-specs dt { font-family: var(--font-nav); font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.book-specs dd { margin: 2px 0 0; color: #e8e8e8; font-size: 14px; line-height: 1.35; }

.book-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.book-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px;
  font-family: var(--font-nav); font-size: 13px; font-weight: 500; line-height: 1;
  border: 1px solid var(--border); background: rgba(255,255,255,.04); color: #eaeaea; transition: all .25s;
}
.book-btn:hover { border-color: var(--accent); color: var(--accent); }
.book-btn.primary { background: var(--accent); border-color: var(--accent); color: #04160b; }
.book-btn.primary:hover { background: #4ee391; color: #04160b; }
.book-btn .small { font-size: 11px; }
.book-body .book-meta { margin-top: 0; }
.books-source { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.books-source i { color: var(--accent); margin-right: 4px; }

/* Modal detail buku */
.book-modal .modal-content { background: #0b0b0b; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.book-modal .modal-header { border-bottom: 1px solid var(--border); }
.book-modal .modal-title { font-family: var(--font-heading); font-weight: 700; color: var(--heading); font-size: 17px; }
.book-modal .modal-body { padding: 0; }
.book-modal-cover { background: #000; }
.book-modal-cover img { display: block; width: 100%; height: 100%; max-height: 78vh; object-fit: cover; }
.book-modal-info { padding: 26px 28px 28px; }
.book-modal-info h3 { font-size: 26px; font-weight: 800; margin: 12px 0 6px; }
.book-modal-info .book-sub { margin-bottom: 18px; }
.book-catalog { margin: 0 0 20px; border-top: 1px solid var(--border); }
.book-catalog > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.book-catalog dt { font-family: var(--font-nav); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.book-catalog dd { margin: 0; color: #e8e8e8; font-size: 14.5px; }
.book-modal-info h6 { font-family: var(--font-heading); font-weight: 700; color: var(--heading); font-size: 15px; margin-bottom: 8px; }
.book-modal-info h6 small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 12px; }
.book-synopsis { color: #d0d0d0; font-size: 14.5px; line-height: 1.7; margin-bottom: 20px; }
@media (max-width: 991.98px) {
  .book-modal-cover img { max-height: 46vh; object-position: center 35%; }
}
@media (max-width: 575.98px) {
  .book-catalog > div { grid-template-columns: 1fr; gap: 2px; }
  .book-modal-info { padding: 20px 18px 22px; }
}
.modal-backdrop.show { opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  .book-card, .book-cover img { transition: none; }
}
