*,
body {
    font-family: "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

:root {
    --bima-primary: hsl(168 78% 21%);
    --bima-primary-dark: hsl(168 74% 11%);
    --bima-primary-light: hsl(168 42% 92%);
    --bima-accent: hsl(42 100% 49%);
    --bima-accent-dark: hsl(42 100% 40%);
    --bima-page: hsl(180 12% 96%);
    --bima-neutral: hsl(180 5% 52%);
    --bima-dark: hsl(180 8% 13%);
    --shadow-sm:
        0 1px 3px hsl(168 78% 21% / 0.08), 0 1px 2px hsl(168 78% 21% / 0.06);
    --shadow-md:
        0 4px 16px hsl(168 78% 21% / 0.1), 0 2px 6px hsl(168 78% 21% / 0.07);
    --shadow-lg:
        0 8px 32px hsl(168 78% 21% / 0.14), 0 4px 12px hsl(168 78% 21% / 0.08);
    --shadow-glass:
        0 8px 32px hsl(168 78% 21% / 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bima-page);
    color: var(--bima-dark);
}

.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.glass-dark {
    background: rgba(18, 91, 80, 0.85);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.shadow-bima-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-bima-md {
    box-shadow: var(--shadow-md);
}

.shadow-bima-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-bima-glass {
    box-shadow: var(--shadow-glass);
}

.gradient-hero {
    background: linear-gradient(
        135deg,
        hsl(168 78% 21%) 0%,
        hsl(168 74% 16%) 50%,
        hsl(168 70% 11%) 100%
    );
}

.text-gradient-accent {
    background: linear-gradient(90deg, hsl(42 100% 49%), hsl(42 100% 65%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseDot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: var(--pw);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 0.22s ease-out both;
}

.animate-fade-in-up {
    animation: fadeInUp 0.45s ease-out both;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-dot {
    animation: pulseDot 2s ease-in-out infinite;
}

.progress-bar-animated {
    animation: progressFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

/* ── Navbar ── */
#navbar {
    background: var(--bima-primary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s;
}

#navbar.scrolled {
    background: rgba(18, 91, 80, 0.92) !important;
    backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: var(--shadow-lg);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    transition: all 0.15s;
    cursor: pointer;
    background: transparent;
    border: none;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    border-radius: 16px;
    padding: 8px;
    display: none;
    z-index: 100;
}

.dropdown-menu.open {
    display: block;
    animation: fadeInDown 0.18s ease-out both;
}

.dd-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    color: inherit;
}

.dd-item:hover {
    background: rgba(18, 91, 80, 0.08);
}

.dd-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bima-primary-light);
    color: var(--bima-primary);
    font-size: 15px;
    transition: all 0.15s;
}

.dd-item:hover .dd-icon {
    background: var(--bima-primary);
    color: #fff;
}

/* Taitan dropdown wider */
#dd-taitan {
    width: 300px;
}

.profile-dd {
    right: 0;
    left: auto;
}

.hero-grid {
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.12) 1px,
        transparent 1px
    );
    background-size: 32px 32px;
}

/* ── Stat card ── */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    border: 1px solid hsl(180 5% 88%);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ── Badge ── */
.badge {
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 99px;
}

.badge-green {
    background: var(--bima-primary-light);
    color: var(--bima-primary);
}

.badge-gold {
    background: hsl(42 100% 92%);
    color: hsl(42 100% 32%);
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.badge-purple {
    background: #f3e8ff;
    color: #7e22ce;
}

/* ── Progress card ── */
.prog-track {
    height: 7px;
    border-radius: 99px;
    background: var(--bima-primary-light);
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    border-radius: 99px;
}

.prog-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid hsl(180 5% 88%);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.prog-card:hover {
    box-shadow: var(--shadow-md);
}

/* ── Activity ── */
.act-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.act-row:hover {
    background: var(--bima-primary-light);
}

.act-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Pengumuman card ── */
.peng-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid hsl(180 5% 88%);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    cursor: pointer;
}

.peng-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.peng-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Berita card ── */
.berita-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid hsl(180 5% 88%);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    cursor: pointer;
}

.berita-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.berita-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(
        135deg,
        var(--bima-primary-light) 0%,
        hsl(168 42% 82%) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Section label ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(18, 91, 80, 0.1);
    color: var(--bima-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(18, 91, 80, 0.2);
}

/* ── Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Mobile menu ── */
#mobile-menu {
    display: none;
}

#mobile-menu.open {
    display: block;
    animation: fadeInDown 0.25s ease-out both;
}

/* ── Toast ── */
#toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    background: var(--bima-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s;
    pointer-events: none;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Feat card ── */
.feat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid hsl(180 5% 88%);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    cursor: pointer;
}

.feat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ── QA card ── */
.qa-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    border: 1.5px solid hsl(180 5% 88%);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
    flex: 1;
}

.qa-card:hover {
    border-color: var(--bima-primary);
    box-shadow: 0 4px 16px hsl(168 78% 21% / 0.12);
    transform: translateY(-2px);
}

.qa-card.qa-active-primary {
    background: var(--bima-primary);
    border-color: var(--bima-primary);
}

.qa-card.qa-active-accent {
    background: var(--bima-accent);
    border-color: var(--bima-accent);
}

.qa-card.qa-active-primary p,
.qa-card.qa-active-accent p {
    color: #fff !important;
}

/* ── Tw card ── */
.tw-card {
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Taitan link card ── */
.taitan-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid hsl(180 5% 88%);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.taitan-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--bima-primary);
}

.taitan-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

/* Ticker */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    background: var(--bima-accent);
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.ticker-inner {
    display: inline-block;
    animation: ticker 28s linear infinite;
    font-size: 13px;
    font-weight: 600;
    color: var(--bima-primary-dark);
    padding: 9px 0;
}

.font-display {
    font-family: "Poppins", sans-serif;
}

/* active nav section highlight */
section[id] {
    scroll-margin-top: 72px;
}
