/* --- CSS BAWAAN & VARIABEL --- */
html {
    scroll-behavior: smooth;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-light: #f8f9fa;
    --primary-dark: #163254;
    --accent-green: #c1ff72;
    --secondary-slate: #5c7087;
    --accent-cyan: #93f2ff;
    --white: #ffffff;
    --gray-100: #f2f4f7;
    --gray-200: #eaecf0;
    --accent-orange: #ff9d00;
    --font: "Plus Jakarta Sans", sans-serif;
}

body {
    font-family: var(--font);
    color: var(--primary-dark);
    background: var(--bg-light);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.decor-grid {
    position: absolute;
    background-image:
        linear-gradient(rgba(92, 112, 135, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 112, 135, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    height: 82px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}

/* Navbar ketika scroll */
nav.scrolled {
    height: 74px;
    background: rgba(245, 245, 245, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(22, 50, 84, 0.08);
    box-shadow: 0 10px 30px rgba(22, 50, 84, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 18px;
    border-right: 1px solid rgba(92, 112, 135, 0.18);
    text-decoration: none;
}

.nav-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.brand-text h1 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.2px;
}

.brand-text span {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary-slate);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--secondary-slate);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
    background: rgba(193, 255, 114, 0.18);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 10px;
    background: var(--accent-green);
    /* Changed to var */
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 55%;
}

.nav-links i {
    font-size: 18px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;

    min-width: 220px;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);

    border-radius: 16px;

    padding: 10px;

    box-shadow: 0 10px 30px rgba(22, 50, 84, 0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: 0.25s ease;

    list-style: none;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    width: 100%;
    display: flex;
    padding: 12px 14px;
    border-radius: 10px;
}

@media (min-width: 993px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
.mobile-toggle {
    display: none;
    cursor: pointer;
    color: var(--primary-dark);
}

.mobile-toggle i {
    font-size: 32px;
}

@media (max-width: 992px) {
    nav {
        height: 74px;
    }

    .brand-wrapper {
        gap: 12px;
    }

    .nav-logo {
        padding-right: 12px;
    }

    .nav-logo img {
        height: 36px;
    }

    .brand-text h1 {
        font-size: 13px;
    }

    .brand-text span {
        font-size: 11px;
    }

    .nav-links {
        display: none;
    }
}
@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
    }

    .nav-links {
        position: absolute;

        top: 100%;
        left: 20px;
        right: 20px;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: white;

        border-radius: 20px;

        padding: 15px;

        box-shadow: 0 20px 40px rgba(22, 50, 84, 0.08);

        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;

        opacity: 1;
        visibility: visible;

        transform: none;

        box-shadow: none;

        background: #f8f9fb;

        border-radius: 12px;

        margin-top: 8px;

        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .brand-text h1 {
        font-size: 13px;
    }

    .brand-text span {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .brand-text h1 {
        font-size: 12px;
    }

    .brand-text span {
        font-size: 10px;
    }

    .nav-logo img {
        height: 32px;
    }
}

/* --- PAGE HEADER --- */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(147, 242, 255, 0.2);
    border: 1px solid var(--accent-cyan);
    border-radius: 100px;
    padding: 6px 14px 6px 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
    width: fit-content;
}

.badge-pill .badge-dot {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 4px;
    animation: pulse-grow 2s infinite ease-in-out;
}

@keyframes pulse-grow {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
        background: #b3f6ff;
    }

    100% {
        transform: scale(1);
        /* Return to baseline */
    }
}
.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 18px;
    color: var(--secondary-slate);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- PROKER SECTION --- */
.proker-section {
    padding: 40px 0 100px;
    background: var(--bg-light);
}

/* Tabs (Sama dengan Struktur Organisasi agar konsisten) */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 14px 28px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--secondary-slate);
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.tab-btn:hover {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 50, 84, 0.05);
}

.tab-btn.active {
    background: var(--primary-dark);
    color: var(--accent-green);
    border-color: var(--primary-dark);
    box-shadow: 0 12px 24px rgba(22, 50, 84, 0.15);
}

.tab-content {
    display: none;
    animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Proker Grid & Cards */
.proker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.proker-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(22, 50, 84, 0.05);
    box-shadow: 0 10px 30px rgba(22, 50, 84, 0.02);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.proker-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: var(--gray-200);
    transition: background 0.4s ease;
}

.proker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(22, 50, 84, 0.08);
    border-color: transparent;
}

.proker-card:hover::before {
    background: linear-gradient(
        180deg,
        var(--accent-green),
        var(--accent-cyan)
    );
}

/* Ikon Proker */
.proker-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(193, 255, 114, 0.2);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.proker-card:hover .proker-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary-dark);
    color: var(--accent-green);
}

.proker-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.proker-card p {
    font-size: 15px;
    color: var(--secondary-slate);
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Badge/Tag */
.proker-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px dashed var(--gray-200);
}

.tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.rutin {
    background: rgba(193, 255, 114, 0.3);
    color: var(--primary-dark);
}

.tag.unggulan {
    background: rgba(255, 157, 0, 0.15);
    color: #c47900;
}

.tag.insidental {
    background: var(--gray-100);
    color: var(--secondary-slate);
}

.tag.kolaborasi {
    background: rgba(147, 242, 255, 0.3);
    color: #007687;
}

/* --- FOOTER --- */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at top left, black 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(
        circle at top left,
        black 10%,
        transparent 60%
    );
    z-index: 1;
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 64px;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 15px;
    line-height: 1.7;
    color: var(--bg-light);
    opacity: 0.8;
    max-width: 280px;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: var(--bg-light);
    opacity: 0.8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition:
        opacity 0.3s,
        color 0.3s,
        transform 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-green);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    font-size: 14px;
    color: rgba(245, 245, 245, 0.6);
    position: relative;
    z-index: 2;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header {
        padding: 140px 20px 60px;
    }

    .proker-grid {
        grid-template-columns: 1fr;
    }
}
