html {
    scroll-behavior: smooth;
}

:root {
    --bps-blue: #0059a4;
    --bps-dark: #081f3f;
    --bps-orange: #f68a1e;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --primary-accent: #2563eb;
    --primary-blue: #2563eb;
    --soft-blue: #eff6ff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

#intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #002b55, #0059a4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: introFade 1.2s ease 3.2s forwards;
}

#intro .logo {
    animation: logoPop 1.8s ease forwards;
}

@keyframes logoPop {
    0% {
        transform: scale(.5);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes introFade {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #f97316);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.nav-link.active {
    color: #2563eb;
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%;
}

.hero-bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(246, 138, 30, 0.25), transparent 40%),
        linear-gradient(120deg, #002b55, #003f7d, #0059a4);
    background-size: 300% 300%;
    animation: gradientMove 20s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .35;
    animation: float 18s infinite alternate ease-in-out;
}

.hero-bg::before {
    background: var(--bps-orange);
    top: -120px;
    left: -120px;
}

.hero-bg::after {
    background: #4da3ff;
    bottom: -140px;
    right: -140px;
    animation-delay: 4s;
}

.hero-bg .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 50%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    from {
        transform: translateY(0) translateX(0);
    }
    to {
        transform: translateY(-60px) translateX(40px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

.card {
    transition: transform .45s cubic-bezier(.4, 0, .2, 1), box-shadow .45s, filter .3s;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .18);
    filter: brightness(1.1);
}

.divider {
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, .05));
}

.section-title {
    letter-spacing: .18em;
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(246, 138, 30, 0.5);
}

.tilt-hover:hover {
    transform: rotate(2deg) translateY(-10px);
}

.pulse-hover:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

@media (max-width: 768px) {
    .hero-bg .particle {
        display: none;
    } 
}

.instansi-section {
    position: relative;
    background-color: #fcfdfe;
    overflow: hidden;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
    background-image: radial-gradient(var(--primary-blue) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.instansi-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.instansi-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
    transform: translateY(-4px);
}

.icon-wrapper {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--soft-blue);
    color: var(--primary-blue);
    font-size: 1.25rem;
    transition: all 0.3s;
}

.instansi-card:hover .icon-wrapper {
    background: var(--primary-blue);
    color: #ffffff;
}

.instansi-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.instansi-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.instansi-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s;
    border-radius: 3px;
    transform: translateX(-50%);
}

.instansi-card:hover::after {
    width: 40%;
}

.bumn-section {
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}

.bumn-shape {
    position: absolute;
    right: -5%;
    top: 20%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(29, 78, 216, 0.02) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    animation: morph 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 50% 50% 20% 80% / 20% 80% 20% 80%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.bumn-wrapper {
    position: relative;
    background-color: #fcfdfe;
    overflow: hidden;
}

.bumn-aura {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: 0;
}

.bumn-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent, black, transparent);
    z-index: 0;
}

.pro-card {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.pro-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.1), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
}

.pro-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.5s;
}

.pro-card:hover .pro-icon {
    background: #2563eb;
    color: #ffffff;
    transform: rotateY(180deg);
}

.pro-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 8px;
}

.pro-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
}

.line-decor {
    position: absolute;
    right: 20px;
    top: 20px;
    opacity: 0.1;
    transition: all 0.5s;
}

.pro-card:hover .line-decor {
    opacity: 0.4;
    transform: rotate(90deg);
}

.bumn-section-final {
    padding: 60px 0;
    background-color: #ffffff;
}

.bumn-grid-2col {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 1 kolom di HP */
    gap: 16px;
}

@media (min-width: 768px) {
    .bumn-grid-2col {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di Tablet/Desktop */
    }
}

.card-minimal {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.card-minimal:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.icon-circle {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #ffffff;
    color: #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    margin-right: 16px;
}

.content-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.instansi-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.instansi-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.opd-premium-section {
    position: relative;
    padding: 100px 0;
    background: #f0f4f8;
    overflow: hidden;
}

.opd-mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(30, 64, 175, 0.05) 0px, transparent 50%);
}

.shape-decor {
    position: absolute;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.05));
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: float-slow 10s infinite ease-in-out;
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
}

.opd-tile {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.opd-tile:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-color: var(--primary-accent);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.opd-tile-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.opd-tile:hover .opd-tile-icon {
    background: var(--primary-accent);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

.opd-tile-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.opd-tile-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.kec-bento-section {
    padding: 100px 0;
    background: #0f172a; 
    position: relative;
}

.glow-spot {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bento-item {
    position: relative;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #f97316;
    transform: scale(1.03);
}

.bento-initial {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    transition: all 0.5s;
    pointer-events: none;
}

.bento-item:hover .bento-initial {
    color: rgba(249, 115, 22, 0.08);
    transform: translateX(-10px);
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-meta {
    font-size: 0.7rem;
    font-weight: 600;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
    display: block;
}

.bento-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.bento-dot {
    width: 8px;
    height: 8px;
    background: #f97316;
    border-radius: 50%;
    margin-left: auto;
    opacity: 0;
    transition: 0.3s;
    box-shadow: 0 0 10px #f97316;
}

.bento-item:hover .bento-dot {
    opacity: 1;
}

.bidang-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.bidang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .bidang-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bidang-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.bidang-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bidang-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.bidang-card:hover::before {
    transform: scaleX(1);
}

.bidang-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.bidang-card:hover .bidang-icon-wrap {
    background: var(--accent-color);
    color: #ffffff;
    transform: scale(1.1);
}

.bidang-label {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bidang-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.bidang-card:hover .bidang-desc {
    opacity: 1;
    transform: translateY(0);
}

.output-section {
    padding: 100px 0;
    background-color: #0f172a; /* Deep Dark */
    position: relative;
    overflow: hidden;
}

.output-light-spot {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.year-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 10;
}

.year-btn {
    position: relative;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    overflow: hidden;
}

.year-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.year-btn.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
}

.year-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s;
}

.year-btn:hover::before {
    left: 100%;
}

.output-pre-title {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    display: block;
}

.footer-clean {
    background-color: #ffffff;
    padding: 15px 0;
    border-top: 1px solid #f1f5f9;
}

.footer-clean-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.footer-clean-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.footer-clean-title span {
    color: #94a3b8;
    margin: 0 4px;
}

.footer-clean-copy {
    font-size: 0.75rem;
    color: #64748b;
}

.footer-clean-links {
    margin-top: 2px;
}

.footer-clean-links a {
    font-size: 0.75rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-clean-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}
