/* Tema dark-glass — sepadan dengan spb.muaredu.com (Sektor Pembelajaran PPD Muar) */
:root {
    --bg:        #030712;
    --bg-2:      #0F172A;
    --card:      rgba(255,255,255,0.06);
    --border:    rgba(255,255,255,0.10);
    --border-hover: rgba(255,255,255,0.20);
    --text:      #FFFFFF;
    --muted:     #94A3B8;

    --blue:   #3B82F6;
    --cyan:   #22D3EE;
    --purple: #7C3AED;
    --green:  #22C55E;
    --amber:  #F59E0B;
    --rose:   #F43F5E;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .brand-text { font-family: 'Space Grotesk', sans-serif; }
a { color: inherit; }
img { max-width: 100%; }
main { flex: 1; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── PARTICLE CANVAS ── */
.particle-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.navbar, .hero, .section, .footer, main { position: relative; z-index: 1; }

/* ── NAVBAR ── */
.navbar {
    position: sticky; top: 0; z-index: 200;
    background: rgba(3,7,18,0.65);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 14px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; font-weight: 700; font-size: 1rem; color: var(--text); flex-shrink: 0;
}
.nav-brand .brand-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 0 12px rgba(34,211,238,.6);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    color: #fff; padding: 9px 18px; border-radius: 999px;
    font-weight: 600; font-size: 0.82rem; text-decoration: none;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
    flex-shrink: 0;
}
.nav-cta:hover { background: rgba(255,255,255,.1); border-color: var(--border-hover); transform: translateY(-2px); }
.nav-cta svg { width: 15px; height: 15px; }

/* ── HERO ── */
.hero { position: relative; overflow: hidden; padding: 100px 40px 90px; isolation: isolate; }
.hero.compact { padding: 70px 40px 50px; }

.hero-glow {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: .5; z-index: -1; pointer-events: none;
}
.hero-glow-blue   { width: 560px; height: 560px; background: var(--blue);   top: -160px; left: 50%; margin-left: -520px; }
.hero-glow-purple { width: 520px; height: 520px; background: var(--purple); bottom: -200px; right: 50%; margin-right: -520px; }
.hero-glow-amber  { width: 520px; height: 520px; background: var(--amber);  bottom: -200px; right: 50%; margin-right: -520px; opacity: .3; }

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 30%, black, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 72%);
    z-index: -1;
}

.hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(59,130,246,.12); color: #BFDBFE;
    border: 1px solid rgba(59,130,246,.35);
    padding: 6px 16px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
    margin-bottom: 26px;
    animation: fadeUp .6s ease both;
}
.hero-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.hero h1 {
    font-family: 'Archivo', 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.06; letter-spacing: -0.025em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #FFFFFF 55%, #B7C3D9 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: fadeUp .6s ease .05s both;
}
.hero.compact h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }

.hero-sub {
    font-size: 1.05rem; color: var(--muted);
    max-width: 58ch; margin: 0 auto 34px;
    animation: fadeUp .6s ease .1s both;
}
.hero.compact .hero-sub { margin-bottom: 0; }

.hero-actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
    animation: fadeUp .6s ease .15s both;
}

/* ── BUTANG ── */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 600; font-size: 0.92rem; text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.btn-primary svg, .btn-secondary svg { width: 17px; height: 17px; }

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    box-shadow: 0 10px 30px rgba(59,130,246,.35);
    position: relative; overflow: hidden;
}
.btn-primary::after {
    content: ""; position: absolute; top: 0; left: -80%;
    width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,.45) 50%, transparent 85%);
    transform: skewX(-20deg); pointer-events: none; transition: left .5s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(59,130,246,.5); }
.btn-primary svg { transition: transform .25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-primary.btn-lg {
    padding: 18px 36px; font-size: 1.02rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
}

.btn-secondary {
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    color: #fff; backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); border-color: var(--border-hover); transform: translateY(-3px); }

/* ── BREADCRUMB ── */
.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
    font-size: 0.8rem; color: var(--muted); margin-bottom: 22px;
    animation: fadeUp .6s ease both;
}
.crumbs a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.crumbs a:hover { color: var(--text); }
.crumbs span.sep { opacity: .5; }
.crumbs span.here { color: var(--cyan); font-weight: 600; }

/* ── SECTION ── */
.section { padding: 70px 40px 90px; }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--cyan); margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.section-head h2 { font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.01em; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 0.98rem; }

/* ── KAD MODUL ── */
.modules-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
    perspective: 1100px;
}
.modules-grid.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
.modules-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.modules-grid.cols-1 { grid-template-columns: 1fr; max-width: 820px; }
.modules-grid.cols-auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.mod-card {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.17);
    border-radius: var(--radius-lg);
    padding: 30px 24px 26px;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 16px 44px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(255,255,255,.05);
    display: flex; flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
    text-decoration: none; color: inherit;
}
.mod-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 60% at 20% -10%, rgba(255,255,255,.16), transparent 55%);
    pointer-events: none;
}
.mod-card > * { position: relative; }

.mod-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.28);
    background: linear-gradient(160deg, rgba(255,255,255,0.17) 0%, rgba(255,255,255,0.07) 45%, rgba(255,255,255,0.03) 100%);
    box-shadow: 0 26px 64px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.40), inset 0 -1px 0 rgba(255,255,255,.07);
}

/* kad tanpa bahan lagi — tak boleh klik, dikelabukan */
.mod-card.is-disabled { cursor: not-allowed; opacity: .62; }
.mod-card.is-disabled:hover { transform: none; border-color: rgba(255,255,255,0.17); box-shadow: 0 16px 44px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(255,255,255,.05); }
.mod-card.is-disabled .mod-btn { opacity: .55; pointer-events: none; }
.mod-card.is-disabled .mod-icon { filter: grayscale(.6); }

.mod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

.mod-icon {
    width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.mod-icon svg { width: 25px; height: 25px; color: #fff; }

.status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    white-space: nowrap;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.pdf   { background: rgba(244,63,94,.14);   color: #FDA4AF; border: 1px solid rgba(244,63,94,.4); }
.status-pill.canva { background: rgba(34,211,238,.12);  color: #A5F3FC; border: 1px solid rgba(34,211,238,.4); }
.status-pill.soon  { background: rgba(148,163,184,.12); color: var(--muted); border: 1px solid rgba(148,163,184,.3); }
.status-pill.live  { background: rgba(34,197,94,.14);   color: var(--green); border: 1px solid rgba(34,197,94,.35); }

.mod-name { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.mod-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.mod-meta { font-size: 0.75rem; color: var(--muted); opacity: .8; margin-top: -12px; margin-bottom: 20px; }

.mod-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: auto; align-self: flex-start;
    padding: 10px 18px; border-radius: 999px;
    font-size: 0.82rem; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
    color: #fff;
    transition: all .25s ease;
    position: relative; overflow: hidden; cursor: pointer;
}
.mod-btn::after {
    content: ""; position: absolute; top: 0; left: -80%;
    width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,.4) 50%, transparent 85%);
    transform: skewX(-20deg); pointer-events: none; transition: left .5s ease;
}
.mod-btn:hover::after { left: 130%; }
.mod-btn:hover, .mod-card:hover .mod-btn {
    background: rgba(34,211,238,.14);
    border-color: rgba(34,211,238,.6);
    box-shadow: 0 0 20px rgba(34,211,238,.3), inset 0 1px 0 rgba(255,255,255,.3);
    gap: 9px;
}
.mod-btn svg { width: 14px; height: 14px; transition: transform .25s ease; }
.mod-card:hover .mod-btn svg { transform: translateX(3px); }

.icon-blue   { background: linear-gradient(135deg, var(--blue), #1D4ED8); }
.icon-cyan   { background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.icon-purple { background: linear-gradient(135deg, var(--purple), #5B21B6); }
.icon-mix    { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.icon-green  { background: linear-gradient(135deg, var(--green), #15803D); }
.icon-amber  { background: linear-gradient(135deg, var(--amber), #B45309); }
.icon-teal   { background: linear-gradient(135deg, var(--green), var(--cyan)); }
.icon-rose   { background: linear-gradient(135deg, var(--rose), #BE123C); }
.icon-slate  { background: linear-gradient(135deg, #64748B, #334155); }

/* ── KAD MESYUARAT (senarai melebar) ── */
.meeting-card { flex-direction: row; align-items: center; gap: 24px; padding: 28px 30px; }
.meeting-card .mod-icon { width: 60px; height: 60px; border-radius: 18px; }
.meeting-card .mod-icon svg { width: 28px; height: 28px; }
.meeting-body { flex: 1; min-width: 0; }
.meeting-body .mod-name { font-size: 1.1rem; line-height: 1.35; }
.meeting-body .mod-desc { margin-bottom: 0; }
.meeting-card .mod-btn { margin-top: 0; align-self: center; flex-shrink: 0; }
.meeting-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ── SCROLL REVEAL 3D ── */
body.js-reveal .mod-card {
    opacity: 0;
    transform: translateY(60px) rotateX(16deg) scale(.97);
    transform-origin: 50% 100%;
}
body.js-reveal .mod-card.in {
    opacity: 1; transform: none;
    transition: opacity .7s ease, transform .9s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
body.js-reveal .mod-card.in.settled {
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
body.js-reveal .mod-card.is-disabled.in { opacity: .62; }

/* ── NOTA KECIL ── */
.note {
    max-width: 820px; margin: 34px auto 0;
    font-size: 0.82rem; color: var(--muted); text-align: center;
}

/* ── FOOTER ── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 44px 40px; text-align: center; }
.footer p { font-size: 0.85rem; color: var(--muted); line-height: 1.9; }
.footer strong {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ── RESPONSIF ── */
@media (max-width: 980px) {
    .modules-grid, .modules-grid.cols-3, .modules-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
}
@media (max-width: 640px) {
    .navbar { padding: 12px 16px; gap: 10px; }
    .nav-brand { font-size: 0.9rem; }
    .nav-cta { padding: 8px 12px; font-size: 0.74rem; gap: 5px; }
    .nav-cta svg { width: 13px; height: 13px; }
    .hero { padding: 64px 20px 60px; }
    .hero.compact { padding: 50px 20px 40px; }
    .section { padding: 50px 20px 70px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-primary.btn-lg { justify-content: center; }
    .modules-grid, .modules-grid.cols-3, .modules-grid.cols-2 { grid-template-columns: 1fr; }
    .meeting-card { flex-direction: column; align-items: stretch; text-align: left; }
    .meeting-card .mod-btn { align-self: flex-start; }
}
