/* hidup.css — lapisan animasi untuk semua halaman bitlab.co.id. Aman: semua efek dipasang oleh hidup.js. */

/* background orb parallax */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-orbs i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .3; will-change: transform; }
.bg-orbs .o1 { width: 520px; height: 520px; background: #ffd27a; left: -180px; top: 30vh; transform: translate3d(0, calc(var(--sy, 0) * -0.22px), 0); }
.bg-orbs .o2 { width: 460px; height: 460px; background: #ffe3a3; right: -160px; top: 70vh; transform: translate3d(0, calc(var(--sy, 0) * -0.35px), 0); }
.bg-orbs .o3 { width: 380px; height: 380px; background: #a6f0e6; left: 40vw; top: 120vh; transform: translate3d(calc(var(--sy, 0) * .05px), calc(var(--sy, 0) * -0.5px), 0); }

/* reveal saat scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }

/* gambar hidup: wadah diberi kelas .hd-img oleh JS */
.hd-img { position: relative; overflow: hidden; isolation: isolate; }
.hd-img > img { animation: hd-napas 14s ease-in-out infinite alternate; transform-origin: 50% 60%; will-change: transform; transition: transform .6s ease; }
@keyframes hd-napas { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.2%, -1%, 0); } }
.hd-img::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 47%, rgba(255,255,255,.08) 55%, transparent 70%); transform: translateX(-120%); animation: hd-kilau 7s ease-in-out infinite; animation-delay: var(--kd, 0s); }
@keyframes hd-kilau { 0%, 62% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.hd-img::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1.5px, transparent 2px), radial-gradient(circle, rgba(255,210,122,.9) 0 1.2px, transparent 2px); background-size: 120px 140px, 170px 120px; background-position: 0 0, 40px 60px; opacity: .55; animation: hd-partikel 16s linear infinite; mix-blend-mode: screen; }
@keyframes hd-partikel { to { background-position: 0 -280px, 40px -180px; } }
/* tilt 3D saat hover (nilai --rx/--ry dari JS) */
.hd-tilt:not(.rv), .hd-tilt.rv.in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .3s ease, opacity .7s ease; }
.hd-tilt:hover { box-shadow: 0 24px 50px rgba(20,50,100,.16); }

/* kartu umum: angkat sedikit saat hover */
.hd-card { transition: transform .3s ease, box-shadow .3s ease, opacity .7s ease; }
.hd-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(20,50,100,.14); }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hd-img > img, .hd-img::after, .hd-img::before { animation: none !important; }
  .hd-img::before, .hd-img::after { display: none; }
  .bg-orbs i { transform: none !important; }
  .hd-tilt { transform: none !important; }
}

/* badge ISO grup usaha */
.iso-wrap { margin-top: 40px; }
.iso-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.iso { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 16px; background: #fff; border: 1px solid #dfe7f1; box-shadow: 0 8px 22px rgba(20,50,100,.07); }
.iso-ico { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #fff6e0, #ffe7b0); border: 2px solid #1e3a7b; }
.iso b { display: block; font-size: 18px; color: #0b1b3f; letter-spacing: .01em; }
.iso span { font-size: 13.5px; color: #4a5568; }
.iso-note { margin: 0; font-size: 13px; color: #6b6b6b; }
.j-aman .iso { background: rgba(255,255,255,.06); border-color: rgba(255,210,122,.3); box-shadow: none; }
.j-aman .iso b { color: #fff; }
.j-aman .iso span, .j-aman .iso-note { color: #b9cbe3; }
.j-aman .iso-ico { background: #fff6e0; }
