@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
    --primary: #10b981;
    --primary-dark: #047857;
    --gold: #f59e0b;
    --navy: #0f172a;
    --white: #ffffff;
    --gray: #64748b;
    --bg: #f8fafc;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: var(--bg);
    overflow-x: hidden;
    color: var(--navy);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url("../images/latarbelakang.png");
    background-size: cover;
    background-position: center;

    opacity: 0.34;

    pointer-events: none;
    z-index: 0;
}

/* LOADER */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

.loader-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 6px solid #e5e7eb;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* GLOW */
.glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

.glow-1 {
    background: rgba(16, 185, 129, 0.18);
    top: -100px;
    left: -100px;
}

.glow-2 {
    background: rgba(245, 158, 11, 0.12);
    right: -100px;
    bottom: -100px;
}

/* NAVBAR */
.custom-navbar {
    padding: 14px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}

.navbar-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.nav-link {
    color: var(--navy) !important;
    font-weight: 600;
    padding: 12px 20px !important;
    border-radius: 14px;
    transition: 0.3s ease;
}

.nav-link:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary) !important;
}

.active-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.penmad-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: 0.3s ease;
}

.penmad-logo:hover {
    transform: scale(1.05);
}

/* FOOTER */
.footer-section {
    background: linear-gradient(135deg, #0f172a, #0b1220);
    color: #e2e8f0;
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* glow dekorasi */
.footer-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.15);
    filter: blur(120px);
    top: -100px;
    left: -100px;
}

.footer-title {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-desc {
    color: #94a3b8;
    margin-top: 15px;
    line-height: 1.7;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 15px;
    color: #f8fafc;
    display: flex;
    align-items: center;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #cbd5f5;
    transition: 0.3s;
    cursor: pointer;
}

.footer-list li i {
    color: #10b981;
}

.footer-list li:hover {
    transform: translateX(6px);
    color: #ffffff;
}

.footer-address {
    color: #cbd5f5;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    transition: 0.3s;
}

.footer-social a:hover {
    background: #10b981;
    transform: translateY(-3px);
    color: white;
}

.footer-social-text {
    margin-top: 10px;
    color: #94a3b8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* PENMAD LOGO */
.footer-penmad-logo-wrapper {
    margin-top: 25px;
}

.footer-penmad-logo {
    width: 240px;
    max-width: 100%;
    object-fit: contain;
    background: #d7d7d7bf;
    padding: 10px;
    border-radius: 16px;
}

/* KEMENAG AREA */
.footer-kemenag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-kemenag-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    padding: 10px;
    border-radius: 16px;
}

.footer-office-title {
    margin: 0;
    font-weight: 700;
    color: #f8fafc;
}

.footer-kemenag small {
    color: #94a3b8;
}

/* =========================
   MOBILE NAVBAR FIX
========================= */
@media (max-width: 991.98px) {
    .custom-navbar {
        padding: 10px 0;
    }

    .custom-navbar .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* BRAND */
    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 10px !important;
        max-width: 80%;
    }

    .navbar-logo {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .navbar-brand h5 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .navbar-brand small {
        font-size: 0.72rem;
        display: block;
        line-height: 1.2;
    }

    /* TOGGLER */
    .navbar-toggler {
        padding: 0;
        margin-left: auto;
    }

    .navbar-toggler i {
        font-size: 2rem !important;
        color: var(--navy);
    }

    /* COLLAPSE MENU */
    .navbar-collapse {
        margin-top: 18px;
        background: rgba(255, 255, 255, 0.96);
        padding: 18px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .navbar-nav {
        gap: 10px !important;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px !important;
        border-radius: 12px;
    }

    /* LOGO PENMAD */
    .penmad-logo {
        height: 38px;
        margin-top: 10px;
    }
}
