/* ==========================================================================
   fred.my — Landing Page Stylesheet
   --------------------------------------------------------------------------
   1. Token & reset          7. Sorotan (bento)
   2. Utiliti                8. Projek & NGO
   3. Butang                 9. Pendidikan (timeline)
   4. Kepala & navigasi     10. Sosial
   5. Hero                  11. Hubungi (CTA) & FAQ
   6. Bahagian              12. Kaki, bar mudah alih, naik ke atas
                            13. Animasi, responsif & cetak
   ========================================================================== */

/* ==========================================================================
   1. TOKEN & RESET
   ========================================================================== */

:root {
    color-scheme: light dark;

    /* Nilai sandaran untuk pelayar tanpa light-dark() */
    --bg: #eef2fa;
    --bg-2: #f6f8fd;
    --surface: #ffffff;
    --surface-solid: #ffffff;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0b1220;
    --text-muted: #4b5563;
    --text-faint: #5b6779;
    --brand: #2563eb;
    --brand-ink: #1d4ed8;
    --brand-soft: rgba(37, 99, 235, 0.1);
    --violet: #7c3aed;
    --amber-ink: #b45309;
    --wa: #25d366;
    --wa-ink: #06331a;
    --shadow-1: 0 1px 2px rgba(8, 12, 30, 0.08);
    --shadow-2: 0 10px 30px -14px rgba(8, 12, 30, 0.22);
    --shadow-3: 0 24px 60px -20px rgba(8, 12, 30, 0.3);

    /* Nilai sebenar: light / dark */
    --bg: light-dark(#eef2fa, #070b16);
    --bg-2: light-dark(#f6f8fd, #0a1020);
    --surface: light-dark(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.055));
    --surface-solid: light-dark(#ffffff, #101a2e);
    --surface-2: light-dark(rgba(15, 23, 42, 0.04), rgba(255, 255, 255, 0.06));
    --border: light-dark(rgba(15, 23, 42, 0.09), rgba(255, 255, 255, 0.11));
    --border-strong: light-dark(rgba(15, 23, 42, 0.18), rgba(255, 255, 255, 0.22));
    --text: light-dark(#0b1220, #e9eef9);
    --text-muted: light-dark(#4b5563, #a7b2c7);
    --text-faint: light-dark(#5b6779, #8b98b0);
    --brand: light-dark(#2563eb, #4f8bff);
    --brand-solid: light-dark(#2563eb, #1d4ed8);
    --brand-ink: light-dark(#1d4ed8, #9cb9ff);
    --brand-soft: light-dark(rgba(37, 99, 235, 0.1), rgba(124, 166, 255, 0.16));
    --violet: light-dark(#7c3aed, #a78bfa);
    --amber-ink: light-dark(#b45309, #fbbf24);
    --amber-soft: light-dark(rgba(245, 158, 11, 0.16), rgba(251, 191, 36, 0.16));
    --wa-ink: light-dark(#06331a, #04180d);
    --shadow-1: light-dark(0 1px 2px rgba(8, 12, 30, 0.07), 0 1px 2px rgba(0, 0, 0, 0.5));
    --shadow-2: light-dark(0 12px 30px -16px rgba(8, 12, 30, 0.25), 0 12px 30px -12px rgba(0, 0, 0, 0.6));
    --shadow-3: light-dark(0 28px 60px -24px rgba(8, 12, 30, 0.32), 0 28px 60px -20px rgba(0, 0, 0, 0.7));

    --wa-green: #25d366;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
    --header-h: 68px;
    --font-display: "Outfit", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
    --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
    --mesh:
        radial-gradient(45% 40% at 12% 8%, rgba(37, 99, 235, 0.28), transparent 70%),
        radial-gradient(42% 38% at 88% 4%, rgba(168, 85, 247, 0.24), transparent 70%),
        radial-gradient(48% 42% at 78% 96%, rgba(245, 158, 11, 0.2), transparent 70%),
        radial-gradient(40% 36% at 4% 88%, rgba(20, 184, 166, 0.2), transparent 70%);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    /* Cegah limpahan mendatar akibatglow hiasan
       (clip tidak memberi kesan kepada position: sticky) */
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

/* Latar mesh lembut di sebalik keseluruhan halaman */
body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -2;
    background-image: var(--mesh);
    background-size: 180% 180%;
    opacity: 0.75;
    animation: meshShift 26s ease-in-out infinite alternate;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a {
    color: var(--brand-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: var(--brand); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button { font: inherit; color: inherit; }

strong { font-weight: 700; color: var(--text); }

::selection {
    background: var(--brand);
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Pelayar tanpa sokongan backdrop-filter */
@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
    :root { --surface: #ffffff; --surface-2: #f1f5f9; }
    :root[data-theme="dark"] { --surface: #141d33; --surface-2: #1c2740; }
}

/* ==========================================================================
   2. UTILITI
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.container--narrow { max-width: 860px; }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: 0 0 auto;
}

.icon--sm { width: 1em; height: 1em; }

.icon--brand { fill: currentColor; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.sr-only--focusable:focus-visible {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.75rem 1.1rem;
    clip-path: none;
    background: var(--surface-solid);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2);
    font-weight: 600;
}

/* ==========================================================================
   3. BUTANG
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
        color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { min-height: 42px; padding: 0.6rem 1.05rem; font-size: 0.875rem; }
.btn--lg { min-height: 54px; padding: 1rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--icon-only { padding-inline: 0; width: 52px; flex: 0 0 auto; }

.btn--whatsapp {
    background: var(--wa-green);
    color: var(--wa-ink);
    box-shadow: 0 10px 24px -12px rgba(37, 211, 102, 0.9);
}
.btn--whatsapp:hover { background: #1fbe5b; color: var(--wa-ink); box-shadow: 0 16px 32px -14px rgba(37, 211, 102, 0.95); }

.btn--primary {
    background: var(--brand-solid);
    color: #fff;
    box-shadow: 0 10px 24px -14px rgba(37, 99, 235, 0.9);
}
.btn--primary:hover { background: #1e40af; color: #fff; }

.btn--ghost {
    background: var(--surface-solid);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-1);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }

.btn--solid { background: #fff; color: #1e1b4b; }
.btn--solid:hover { background: #eef2ff; color: #1e1b4b; }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { color: var(--brand-ink); transform: translateY(-1px); }

.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: inline-grid; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

/* ==========================================================================
   4. KEPALA & NAVIGASI
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-stuck { box-shadow: var(--shadow-2); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text);
    font-weight: 700;
}
.brand:hover { color: var(--text); }

.brand__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.9);
}

.brand__text { display: grid; line-height: 1.2; }
.brand__name { font-size: 0.95rem; }
.brand__sub { font-size: 0.75rem; color: var(--text-faint); font-weight: 500; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; margin-left: 0.75rem; }

.nav__link {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.925rem;
    font-weight: 600;
}
.nav__link:hover { background: var(--surface-2); color: var(--text); }
.nav__link[aria-current="true"] { background: var(--brand-soft); color: var(--brand-ink); }

.site-header__controls { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-grid; }

.mobile-nav {
    border-top: 1px solid var(--border);
    background: var(--surface-solid);
    animation: menuIn 0.22s ease-out;
}
.mobile-nav[hidden] { display: none; }

.mobile-nav__inner { padding-block: 1rem 1.35rem; }
.mobile-nav__list { display: grid; gap: 0.15rem; margin-bottom: 1rem; }
.mobile-nav__link {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
}
.mobile-nav__link:hover { background: var(--surface-2); }
.mobile-nav__cta { display: grid; gap: 0.6rem; }

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. HERO
   ========================================================================== */

.hero {
    position: relative;
    padding-block: clamp(2.25rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
}

.hero__glow {
    position: absolute;
    inset: -6% 0 0 0;
    height: 78%;
    z-index: -1;
    background-image: var(--mesh);
    background-size: 160% 160%;
    opacity: 0.85;
    animation: meshShift 22s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero__inner { display: grid; gap: clamp(2rem, 4vw, 3rem); }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 var(--brand-soft);
    animation: pulse 2.4s ease-out infinite;
}

.hero__title {
    font-size: clamp(2.35rem, 1.4rem + 4.4vw, 4.1rem);
    font-weight: 800;
    line-height: 1.03;
    margin-bottom: 0.6rem;
}

.hero__title-accent {
    background-image: linear-gradient(115deg, #4f8bff 0%, #a78bfa 55%, #fbbf24 100%);
    color: var(--brand);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero__title-accent {
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.hero__role {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.35rem; }

.tag {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--brand-ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__bio { max-width: 58ch; color: var(--text-muted); }
.hero__bio p { margin-bottom: 0.85rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.75rem; }

.hero__skills { margin-top: 2rem; }

.hero__skills-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.7rem;
}

.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.chip .icon { color: var(--brand-ink); }

/* Kad profil */
.profile-card {
    position: relative;
    isolation: isolate;
    aspect-ratio: 4 / 5;
    max-width: 420px;
    margin-inline: auto;
    border-radius: var(--radius-xl);
    background: var(--surface-solid);
    box-shadow: var(--shadow-3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.profile-card:hover { transform: translateY(-4px); }

.profile-card__ring {
    position: absolute;
    inset: -7%;
    z-index: -1;
    background: conic-gradient(from 0deg, #2563eb, #7c3aed, #f59e0b, #14b8a6, #2563eb);
    filter: blur(46px);
    opacity: 0.65;
    animation: spin 22s linear infinite;
}

.profile-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    border-radius: inherit;
}

.profile-card__verified {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-2);
}
.profile-card__verified .icon { width: 1.5em; height: 1.5em; }

.profile-card__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.35rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    background: linear-gradient(to top, rgba(6, 10, 25, 0.92), rgba(6, 10, 25, 0));
    color: #fff;
}
.profile-card__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: 0; }
.profile-card__role { font-size: 0.82rem; color: rgba(255, 255, 255, 0.82); margin: 0; }

.hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.stat {
    display: grid;
    gap: 0.15rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-1);
}
.stat__icon { color: var(--brand-ink); margin-bottom: 0.15rem; }
.stat__value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.stat__label { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

/* ==========================================================================
   6. BAHAGIAN
   ========================================================================== */

.section {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.section--tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }

.section__head { max-width: 62ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section__title { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); }
.section__desc { margin-top: 0.75rem; color: var(--text-muted); font-size: 1.02rem; }

/* Kad generik */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: var(--shadow-2);
}

.card--pad { padding: clamp(1.25rem, 3vw, 1.85rem); }

.card__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}
.card__title .icon { color: var(--brand-ink); }
.card__desc { color: var(--text-muted); font-size: 0.9rem; }

.card__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-ink);
}
.card__icon--violet { background: rgba(124, 58, 237, 0.12); color: var(--violet); }
.card__icon--pink { background: rgba(236, 72, 153, 0.12); color: #db2777; }

.card__note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 1.15rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    background: var(--amber-soft);
    color: var(--text-muted);
    font-size: 0.87rem;
}
.card__note .icon { color: var(--amber-ink); margin-top: 0.2rem; }

.split { display: grid; gap: 1.25rem; }

/* ==========================================================================
   7. SOROTAN (BENTO)
   ========================================================================== */

.bento { display: grid; gap: 1.25rem; }

.bento__card {
    position: relative;
    isolation: isolate;
    min-height: 330px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-solid);
    box-shadow: var(--shadow-2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.bento__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }

.bento__media { position: absolute; inset: 0; }
.bento__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.bento__card:hover .bento__img { transform: scale(1.08); }

.bento__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 8, 22, 0.94) 4%, rgba(4, 8, 22, 0.55) 45%, rgba(4, 8, 22, 0.12) 100%);
}

.bento__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.35rem;
    color: #fff;
}

.bento__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #ffe08a;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bento__title { font-size: 1.3rem; margin-bottom: 0.4rem; }
.bento__desc { font-size: 0.9rem; color: rgba(255, 255, 255, 0.86); margin: 0; }

/* ==========================================================================
   8. PROJEK & NGO
   ========================================================================== */

.link-list { display: grid; gap: 0.4rem; margin-top: 1.1rem; }

.link-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
a.link-item:hover {
    transform: translateX(4px);
    background: var(--surface-2);
    border-color: var(--brand);
    color: var(--text);
}

.link-item__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-ink);
}
.link-item__icon--sky { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.link-item__icon--violet { background: rgba(124, 58, 237, 0.12); color: var(--violet); }
.link-item__icon--green { background: rgba(37, 211, 102, 0.16); color: #12833c; }
.link-item__icon--red { background: rgba(239, 68, 68, 0.14); color: #dc2626; }
.link-item__icon--amber { background: var(--amber-soft); color: var(--amber-ink); }

:root[data-theme="dark"] .link-item__icon--green { color: #4ade80; }
:root[data-theme="dark"] .link-item__icon--red { color: #fca5a5; }
:root[data-theme="dark"] .link-item__icon--sky { color: #7dd3fc; }

.link-item__text { display: grid; gap: 0.1rem; min-width: 0; }
.link-item__name { font-weight: 700; font-size: 0.95rem; }
.link-item__desc { font-size: 0.8rem; color: var(--text-muted); }

.link-item__arrow { margin-left: auto; color: var(--text-faint); transition: transform 0.2s ease, color 0.2s ease; }
a.link-item:hover .link-item__arrow { color: var(--brand); transform: translate(2px, -2px); }

.ngo-list { display: grid; gap: 0.55rem; margin-top: 1.1rem; }

.ngo-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.ngo-item__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--surface-solid);
    color: var(--amber-ink);
}
.ngo-item__text { display: grid; gap: 0.1rem; }
.ngo-item__name { font-weight: 700; font-size: 0.9rem; }
.ngo-item__desc { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================================================
   9. PENDIDIKAN (TIMELINE)
   ========================================================================== */

.timeline {
    position: relative;
    margin-top: 1.35rem;
    padding-left: 1.9rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 10px;
    left: 6px;
    width: 2px;
    border-radius: 2px;
    background: var(--border-strong);
}

.timeline__item { position: relative; padding-bottom: 1.35rem; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
    position: absolute;
    top: 0.35rem;
    left: -1.9rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--surface-solid);
    border: 3px solid var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.timeline__org { margin: 0; font-weight: 700; font-size: 0.95rem; }
.timeline__desc { margin: 0.1rem 0 0.45rem; font-size: 0.85rem; color: var(--text-muted); }

.timeline__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}
.pill--accent { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }

/* ==========================================================================
   10. SOSIAL
   ========================================================================== */

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.7rem;
}

.social-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 108px;
    padding: 1rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-1);
    color: var(--text-muted);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.social-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: var(--tile, var(--brand-ink)); }
.social-tile__icon { width: 1.6em; height: 1.6em; transition: transform 0.2s ease; }
.social-tile:hover .social-tile__icon { transform: scale(1.12); }
.social-tile__name { font-size: 0.85rem; font-weight: 600; }

.social-tile--fb { --tile: #1877f2; }
.social-tile--x { --tile: #0f172a; }
.social-tile--ig { --tile: #e1306c; }
.social-tile--li { --tile: #0a66c2; }
.social-tile--tt { --tile: #0f172a; }
.social-tile--yt { --tile: #ff0000; }
.social-tile--th { --tile: #0f172a; }
.social-tile--dc { --tile: #5865f2; }
:root[data-theme="dark"] .social-tile--x,
:root[data-theme="dark"] .social-tile--tt,
:root[data-theme="dark"] .social-tile--th { --tile: #f8fafc; }

/* ==========================================================================
   11. HUBUNGI (CTA) & FAQ
   ========================================================================== */

.cta-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.75rem, 5vw, 3.25rem);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 45%, #7c3aed 100%);
    color: #fff;
    box-shadow: var(--shadow-3);
}

.cta-panel__glow {
    position: absolute;
    top: -35%;
    right: -10%;
    width: 55%;
    height: 130%;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%);
}

.cta-panel__title { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.35rem); max-width: 22ch; }
.cta-panel__desc { margin-top: 0.85rem; max-width: 60ch; color: rgba(255, 255, 255, 0.88); }

.cta-panel__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.75rem; }

.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.share-row__label { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.share-row__list { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.share-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.share-btn:hover { background: rgba(255, 255, 255, 0.24); color: #fff; transform: translateY(-1px); }

.faq { display: grid; gap: 0.7rem; }

.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.faq__item[open] { border-color: var(--brand); }

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--brand-ink); }

.faq__marker {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--brand-ink);
    transition: transform 0.25s ease;
}
.faq__item[open] .faq__marker { transform: rotate(90deg); }

.faq__answer { padding: 0 1.15rem 1.15rem; color: var(--text-muted); font-size: 0.93rem; }

/* ==========================================================================
   12. KAKI, BAR MUDAH ALIH, NAIK KE ATAS
   ========================================================================== */

.site-footer {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-block: clamp(2.25rem, 5vw, 3.25rem) 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.footer__grid { display: grid; gap: 2rem; }

.brand--footer { margin-bottom: 1rem; }

.footer__desc { color: var(--text-muted); font-size: 0.9rem; max-width: 42ch; }

.footer__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-faint);
    font-size: 0.85rem;
}
.footer__meta .icon { color: var(--brand-ink); }

.footer__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.9rem;
}

.footer__list { display: grid; gap: 0.35rem; }
.footer__list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer__list a:hover { color: var(--brand-ink); transform: translateX(2px); }
.footer__list .icon { color: var(--text-faint); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.83rem;
}
.footer__bottom p { margin: 0; }
.footer__made { display: inline-flex; align-items: center; gap: 0.35rem; }
.footer__made .icon { color: #e11d48; }

/* Bar aksi pantas (telefon) */
.mobile-bar {
    position: fixed;
    inset-inline: 0.75rem;
    bottom: 0.75rem;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: barIn 0.3s ease-out;
}
.mobile-bar[hidden] { display: none; }
@keyframes barIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-solid);
    color: var(--text);
    box-shadow: var(--shadow-2);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}
.to-top[hidden] { display: none !important; }
.to-top:hover { transform: translateY(-3px); color: var(--brand-ink); }

/* ==========================================================================
   13. ANIMASI, RESPONSIF & CETAK
   ========================================================================== */

@keyframes meshShift {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 var(--brand-soft); }
    70%  { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* Animasi Shakl (hanya bila JS aktif) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --- Tablet & ke atas --- */
@media (min-width: 700px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .to-top { display: grid; }
    .mobile-bar { display: none; }
    .section__head { margin-bottom: 2rem; }
}

@media (min-width: 900px) {
    :root { --header-h: 76px; }
    .nav { display: flex; align-items: center; }
    .site-header__controls { display: none; }
    .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; }
    .hero__figure { justify-self: end; width: 100%; }
    .split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
    .split--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
    .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bento__card { min-height: 420px; }
}

/* Ruang untuk bar aksi mudah alih */
@media (max-width: 699px) {
    body { padding-bottom: 84px; }
    .bento__card { min-height: 300px; }
    .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__bottom { justify-content: flex-start; }
}

/* Skrin sangat kecil (320px) */
@media (max-width: 360px) {
    :root { --radius-lg: 20px; --radius-xl: 24px; }
    .brand__sub { display: none; }
    .hero__cta .btn { width: 100%; }
    .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Gerakkan Fonds: hormati pilihan pengguna */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* Kontras tinggi */
@media (prefers-contrast: more) {
    :root {
        --border: rgba(15, 23, 42, 0.35);
        --text-muted: #1f2937;
    }
    :root[data-theme="dark"] {
        --border: rgba(255, 255, 255, 0.4);
        --text-muted: #d7dfec;
    }
    .card, .stat, .social-tile, .faq__item { border-width: 2px; }
}

/* Cetak */
@media print {
    body { background: #fff; color: #000; }
    body::before, .site-header, .mobile-bar, .to-top, .hero__glow,
    .cta-panel, .share-row, .footer__made { display: none !important; }
    .card, .bento__card, .profile-card { box-shadow: none; border: 1px solid #ccc; }
    .bento__overlay { display: none; }
    .bento__body { position: static; color: #000; padding: 1rem 0 0; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
