/* =====================================================================
   tentang-tim.css — efek & tampilan section "Tentang Kami" (section#about)
   dan desain baru "Tim Kami" (#team). Dipakai index.html & en/index.html.
   Palet: navy korporat + satu aksen orange (#FF6B00).
   ===================================================================== */

/* ---------- Reveal saat scroll (aktif hanya bila JS menyala) ---------- */
html.tt-anim [data-rv] {
    opacity: 0;
    translate: 0 28px;
    transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--rv-d, 0ms),
                translate .8s cubic-bezier(.2,.7,.2,1) var(--rv-d, 0ms),
                transform .35s ease, box-shadow .35s ease, border-color .35s ease, background-color .35s ease;
}
html.tt-anim [data-rv="left"]  { translate: -36px 0; }
html.tt-anim [data-rv="right"] { translate: 36px 0; }
html.tt-anim [data-rv="zoom"]  { translate: 0 0; scale: .94; transition-property: opacity, scale, transform, box-shadow, border-color, background-color; }
html.tt-anim [data-rv].is-in   { opacity: 1; translate: 0 0; scale: 1; }

/* =====================================================================
   TENTANG KAMI
   ===================================================================== */

/* Cahaya lembut yang bergerak perlahan di latar */
section#about > .ab-band:first-child { position: relative; isolation: isolate; }
section#about > .ab-band:first-child::before,
section#about > .ab-band:first-child::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
    filter: blur(70px); opacity: .55;
}
section#about > .ab-band:first-child::before {
    width: 34rem; height: 34rem; right: -8rem; top: -6rem;
    background: radial-gradient(circle, rgb(59 111 216 / .55), transparent 65%);
    animation: ab-float 16s ease-in-out infinite alternate;
}
section#about > .ab-band:first-child::after {
    width: 26rem; height: 26rem; left: -10rem; bottom: 2rem;
    background: radial-gradient(circle, rgb(255 107 0 / .28), transparent 65%);
    animation: ab-float 20s ease-in-out infinite alternate-reverse;
}
@keyframes ab-float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-40px, 30px) scale(1.08); }
    100% { transform: translate(30px, -20px) scale(.96); }
}

/* Judul: frasa kunci bergaris orange yang "tergambar" saat muncul */
section#about .ab-mark { position: relative; white-space: nowrap; color: #fff; }
section#about .ab-mark::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; z-index: -1;
    background: linear-gradient(90deg, #FF6B00, #FF8C33);
    border-radius: 3px; opacity: .9;
    transform: scaleX(1); transform-origin: left;
    transition: transform 1s cubic-bezier(.7,0,.2,1) .45s;
}
section#about h2 { position: relative; z-index: 0; }
html.tt-anim section#about h2:not(.is-in) .ab-mark::after { transform: scaleX(0); }
@media (max-width: 639px) { section#about .ab-mark { white-space: normal; } }

/* Tombol utama: kilau yang menyapu saat disorot */
section#about .ab-btn { position: relative; overflow: hidden; transition: background-color .25s, border-color .25s, color .25s, transform .25s, box-shadow .25s; }
section#about .ab-btn--main { box-shadow: 0 12px 26px -12px rgb(255 107 0 / .75); }
section#about .ab-btn:hover { transform: translateY(-2px); }
section#about .ab-btn--main::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%);
    transform: translateX(-120%);
}
section#about .ab-btn--main:hover::after { transform: translateX(120%); transition: transform .8s ease; }

/* Foto kantor: bingkai orange tergeser + zoom halus saat disorot (selalu tampil, tanpa animasi masuk) */
section#about .ab-photo { position: relative; overflow: visible; border: 0; background: transparent; }
section#about .ab-photo::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: .9rem;
    border: 2px solid rgb(255 107 0 / .7); transform: translate(16px, 16px); transition: transform .5s ease;
}
section#about .ab-photo-in {
    position: relative; z-index: 1; overflow: hidden; border-radius: .9rem;
    border: 1px solid var(--ab-line); background: var(--ab-navy);
    box-shadow: 0 40px 70px -30px rgb(0 0 0 / .7);
}
section#about .ab-photo img { display: block; transition: transform 1.2s ease; }
section#about .ab-photo:hover img { transform: scale(1.04); }
section#about .ab-photo:hover::before { transform: translate(10px, 10px); }
section#about .ab-photo figcaption { position: relative; background: linear-gradient(180deg, #0F2148, #0C1A38); }
@media (max-width: 639px) { section#about .ab-photo { max-width: 22rem; margin-right: 16px; } }

/* Baris angka: garis orange tumbuh + sorot saat hover */
section#about .ab-stat { position: relative; transition: background-color .35s ease; }
section#about .ab-stat::before {
    content: ""; position: absolute; left: 1rem; right: 1rem; top: 0; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #FF6B00, #FF8C33);
    transform: scaleX(.18); transform-origin: left; transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
section#about .ab-creds.is-in .ab-stat::before { transform: scaleX(.35); }
section#about .ab-stat:hover { background: rgb(255 255 255 / .04); }
section#about .ab-stat:hover::before { transform: scaleX(1); }
section#about .ab-stat b { transition: color .3s, text-shadow .3s; }
section#about .ab-stat:hover b { color: #FFA552; text-shadow: 0 0 28px rgb(255 107 0 / .45); }
@media (min-width: 1024px) { section#about .ab-stat::before { left: 2rem; right: 2rem; } }

/* Dua perspektif: kartu kaca, bingkai gradasi saat hover, penghubung "+" */
section#about .ab-people { position: relative; }
section#about .ab-person {
    position: relative; isolation: isolate; overflow: hidden;
    background: linear-gradient(160deg, rgb(255 255 255 / .06), rgb(255 255 255 / .015));
    transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .45s;
}
section#about .ab-person::before {                                  /* cahaya orange di sudut foto */
    content: ""; position: absolute; z-index: -1; width: 16rem; height: 16rem; top: -8rem; left: -8rem;
    background: radial-gradient(circle, rgb(255 107 0 / .22), transparent 65%);
    opacity: .5; transition: opacity .45s;
}
section#about .ab-person--r::before { left: auto; right: -8rem; }
section#about .ab-person::after {                                   /* garis aksen bawah */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, #FF6B00, #FF8C33);
    transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
section#about .ab-person--r::after { transform-origin: right; }
section#about .ab-person:hover {
    transform: translateY(-6px);
    border-color: rgb(255 140 51 / .45);
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 107 0 / .15);
}
section#about .ab-person:hover::before { opacity: 1; }
section#about .ab-person:hover::after { transform: scaleX(1); }

section#about .ab-who img {
    box-shadow: 0 0 0 3px var(--ab-navy), 0 0 0 5px rgb(255 140 51 / .65), 0 14px 26px -10px rgb(0 0 0 / .7);
    transition: box-shadow .35s, transform .45s cubic-bezier(.2,.7,.2,1);
}
section#about .ab-person:hover .ab-who img { box-shadow: 0 0 0 3px var(--ab-navy), 0 0 0 5px #FF6B00, 0 18px 30px -10px rgb(255 107 0 / .45); transform: scale(1.05); }
/* Kartu Ardy rata kanan (foto di kanan atas), kartu Rifky rata kiri: serasi saling berhadapan */
section#about .ab-who--right { flex-direction: row-reverse; text-align: right; }
section#about .ab-person--r { text-align: right; }
section#about .ab-person--r h4 { flex-direction: row-reverse; }

section#about .ab-person h4 { display: flex; align-items: center; gap: .65rem; }
section#about .ab-person h4 i {
    flex: 0 0 2rem; height: 2rem; display: grid; place-items: center; border-radius: .5rem;
    background: rgb(255 107 0 / .14); color: var(--ab-soft); font-size: .85rem;
    transition: background-color .3s, color .3s;
}
section#about .ab-person:hover h4 i { background: #FF6B00; color: #fff; }

section#about .ab-link { display: none; }
@media (min-width: 768px) {
    section#about .ab-people { column-gap: 3rem; }
    section#about .ab-link {
        display: grid; place-items: center; position: absolute; z-index: 3;
        left: 50%; top: 5rem; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem;
        border-radius: 50%; background: linear-gradient(140deg, #FF6B00, #FF8C33); color: #fff; font-size: .9rem;
        box-shadow: 0 0 0 6px var(--ab-navy), 0 0 0 7px rgb(255 140 51 / .35);
        animation: ab-pulse 2.8s ease-out infinite;
    }
}
@keyframes ab-pulse {
    0%   { box-shadow: 0 0 0 6px var(--ab-navy), 0 0 0 7px rgb(255 140 51 / .45); }
    70%  { box-shadow: 0 0 0 6px var(--ab-navy), 0 0 0 18px rgb(255 140 51 / 0); }
    100% { box-shadow: 0 0 0 6px var(--ab-navy), 0 0 0 18px rgb(255 140 51 / 0); }
}
section#about .ab-together {
    background: linear-gradient(90deg, rgb(255 107 0 / .08), transparent 70%);
    padding: 1rem 1.25rem; border-radius: 0 .5rem .5rem 0;
}

/* Cara kerja: garis penghubung yang terisi, nomor berdenyut */
section#about .ab-value:not(:last-child)::before { background: rgb(143 176 234 / .22); }
section#about .ab-value:not(:last-child)::after {
    content: ""; position: absolute; left: 1.375rem; top: 3.25rem; bottom: .5rem; width: 2px; margin-left: -.5px;
    background: linear-gradient(180deg, #FF6B00, rgb(255 140 51 / .15));
    transform: scaleY(0); transform-origin: top; transition: transform 1s cubic-bezier(.2,.7,.2,1) calc(var(--rv-d, 0ms) + .35s);
}
section#about .ab-value.is-in::after, html:not(.tt-anim) section#about .ab-value::after { transform: scaleY(1); }
section#about .ab-num { box-shadow: 0 0 0 5px rgb(255 107 0 / .14); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
section#about .ab-value:hover .ab-num { transform: scale(1.1); box-shadow: 0 0 0 8px rgb(255 107 0 / .18), 0 10px 22px -8px rgb(255 107 0 / .8); }
section#about .ab-value h4 { transition: color .3s; }
section#about .ab-value:hover h4 { color: #FFB27A; }
section#about .ab-output {
    display: inline-block; padding: .35rem .7rem; border-radius: .4rem;
    background: rgb(143 176 234 / .08); border: 1px solid rgb(143 176 234 / .16);
}

/* Komitmen: ikon dalam ubin, baris bergeser saat hover */
section#about .ab-pledge { position: relative; transition: background-color .35s, padding-left .35s; }
section#about .ab-pledge > i {
    flex: 0 0 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border-radius: .65rem;
    background: rgb(255 107 0 / .12); border: 1px solid rgb(255 140 51 / .25); font-size: 1.05rem;
    transition: background-color .35s, color .35s, transform .45s cubic-bezier(.2,.7,.2,1);
}
section#about .ab-pledge::before {
    content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 3px; border-radius: 3px;
    background: #FF6B00; transform: scaleY(0); transition: transform .35s;
}
section#about .ab-pledge:hover { background: linear-gradient(90deg, rgb(255 255 255 / .04), transparent); padding-left: 1rem; }
section#about .ab-pledge:hover::before { transform: scaleY(1); }
section#about .ab-pledge:hover > i { background: #FF6B00; color: #fff; transform: rotate(-6deg) scale(1.06); }

/* Penutup: pita navy dengan kilau berjalan */
section#about > .ab-dark:last-child { position: relative; overflow: hidden; isolation: isolate;
    background: linear-gradient(110deg, #0C1A38 0%, #0F2554 50%, #0C1A38 100%);
    border-top: 1px solid rgb(143 176 234 / .14); }
section#about > .ab-dark:last-child::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(100deg, transparent 40%, rgb(255 107 0 / .14) 50%, transparent 60%);
    background-size: 250% 100%; animation: ab-sheen 9s linear infinite;
}
@keyframes ab-sheen { from { background-position: 150% 0; } to { background-position: -150% 0; } }

/* =====================================================================
   TIM KAMI — tata letak lama dipertahankan, hanya aksen diperhalus
   ===================================================================== */
section#team { position: relative; isolation: isolate; }
section#team::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 30rem; z-index: -1; pointer-events: none;
    background:
        radial-gradient(38rem 20rem at 85% 0%, rgb(59 111 216 / .09), transparent 70%),
        radial-gradient(28rem 16rem at 10% 8%, rgb(255 107 0 / .06), transparent 70%),
        radial-gradient(rgb(10 46 109 / .09) 1px, transparent 1px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent);
}

/* Kartu pimpinan: garis orange di atas yang memanjang saat disorot */
section#team .grid.gap-12 > div {
    border-radius: 1.25rem !important;
    box-shadow: 0 16px 40px -24px rgb(7 27 68 / .35) !important;
    transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .3s !important;
}
section#team .grid.gap-12 > div::before {
    content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, #FF6B00, #FF8C33);
    transform: scaleX(.25); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
section#team .grid.gap-12 > div:hover::before { transform: scaleX(1); }
section#team .grid.gap-12 > div:hover {
    transform: translateY(-5px); border-color: rgb(255 107 0 / .35) !important;
    box-shadow: 0 28px 54px -28px rgb(7 27 68 / .5) !important;
}
section#team .grid.gap-12 > div::after {                         /* cahaya lembut di sudut kanan atas */
    content: ""; position: absolute; z-index: 0; right: -5rem; top: -5rem; width: 14rem; height: 14rem; border-radius: 50%;
    background: radial-gradient(circle, rgb(255 107 0 / .09), transparent 65%); pointer-events: none;
}

/* Bingkai foto: bayangan orange tergeser (senada foto kantor) */
section#team .grid.gap-12 > div .rounded-xl.overflow-hidden {
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px #D6E0F0, 12px 12px 0 0 rgb(255 107 0 / .85), 0 22px 34px -16px rgb(7 27 68 / .5) !important;
    transition: box-shadow .4s ease !important;
}
section#team .grid.gap-12 > div:hover .rounded-xl.overflow-hidden {
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px #FF6B00, 7px 7px 0 0 rgb(255 107 0 / .85), 0 22px 34px -16px rgb(7 27 68 / .5) !important;
}

/* Pil jabatan dengan titik orange */
section#team .grid.gap-12 > div .space-y-2 > div.bg-brand-navy {
    display: inline-flex !important; align-items: center; gap: .45rem;
    background: linear-gradient(135deg, #0A2E6D, #0C1A38) !important; padding: .35rem .8rem !important;
}
section#team .grid.gap-12 > div .space-y-2 > div.bg-brand-navy::before {
    content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: #FF6B00; box-shadow: 0 0 0 3px rgb(255 107 0 / .3);
}

/* Email dengan ikon amplop */
section#team .grid.gap-12 > div .space-y-2 > p.text-xs,
section#team .advisor-card p.text-xs:not(.font-bold) { display: inline-flex; align-items: center; gap: .45rem; }
section#team .grid.gap-12 > div .space-y-2 > p.text-xs::before,
section#team .advisor-card p.text-xs:not(.font-bold)::before {
    content: "\f0e0"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; color: #0A2E6D;
}
section#team .advisor-card p.text-xs:not(.font-bold) { justify-content: center; margin-top: auto !important; padding-top: .75rem; }

/* Tombol "Lihat Profil Lengkap" berbentuk pil */
section#team button[id^="btn-profile-"] {
    display: inline-flex !important; padding: .6rem 1.1rem; border-radius: 999px;
    border: 1px solid #C9D5EA; color: #0A2E6D !important; background: #fff;
    transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s !important;
}
section#team button[id^="btn-profile-"]:hover {
    background: #FF6B00; border-color: #FF6B00; color: #fff !important; box-shadow: 0 10px 22px -10px rgb(255 107 0 / .8);
}
@media (max-width: 767px) { section#team button[id^="btn-profile-"] { margin-inline: auto; } }

/* Kartu advisor: sampul navy bertekstur, peran dalam pil, garis bawah saat disorot */
section#team .advisor-card { border-radius: 1rem !important; }
section#team .advisor-card::before {
    background:
        radial-gradient(circle at 90% 0%, rgb(255 107 0 / .45), transparent 50%),
        radial-gradient(rgb(143 176 234 / .2) 1px, transparent 1px) 0 0 / 14px 14px,
        linear-gradient(150deg, #0A2E6D, #0C1A38 70%) !important;
}
section#team .advisor-card::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, #FF6B00, #FF8C33); transform: scaleX(0); transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
section#team .advisor-card:hover::after { transform: scaleX(1); }
section#team .advisor-card p.font-bold {
    align-self: center; padding: .25rem .7rem; border-radius: 999px; background: #FFF1E6; color: #C24700 !important; font-size: .68rem;
}
section#team #advisor-track { padding-top: .75rem; padding-bottom: 1rem; }

/* ---------- Gerak dikurangi ---------- */
@media (prefers-reduced-motion: reduce) {
    section#about *, section#about *::before, section#about *::after,
    #team *, #team *::before, #team *::after { animation: none !important; transition-duration: .01ms !important; }
}
