*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-light: #f5f5f5;
    --primary-dark: #163254;
    --accent-green: #c1ff72;
    --secondary-slate: #5c7087;
    --accent-cyan: #93f2ff;
    --white: #ffffff;
    --gray-100: #f2f4f7;
    --gray-200: #eaecf0;
    --font: "Plus Jakarta Sans";
}

body {
    font-family: var(--font);
    color: var(--primary-dark);
    background: var(--bg-light);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* CONTAINER UTAMA */
.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.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 112, 135, 0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    pointer-events: none;
}

.decor-dots {
    position: absolute;
    background-image: radial-gradient(
        rgba(22, 50, 84, 0.2) 2px,
        transparent 2px
    );
    background-size: 16px 16px;
    z-index: 0;
    pointer-events: none;
}

.hero {
    position: relative;
}
.hero-grid {
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    /* Efek fade-out agar garis menyatu halus dengan background */
    -webkit-mask-image: linear-gradient(to right, black 20%, transparent 100%);
    mask-image: linear-gradient(to right, black 20%, transparent 100%);
}
.hero-dots {
    bottom: 15%;
    left: 45%;
    width: 150px;
    height: 150px;
    /* Efek fade agar dot terlihat membaur / halftone effect */
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
}
.hero-left {
    position: relative;
    z-index: 2;
}

.section-padding {
    position: relative;
}
.tentang-grid {
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    -webkit-mask-image: linear-gradient(to left, black 0%, transparent 100%);
    mask-image: linear-gradient(to left, black 0%, transparent 100%);
}

.decor-parent {
    position: relative;
}
.filosofi-dots {
    bottom: -20px;
    left: -20px;
    width: 180px;
    height: 180px;
    -webkit-mask-image: linear-gradient(
        to top right,
        black 20%,
        transparent 90%
    );
    mask-image: linear-gradient(to top right, black 20%, transparent 90%);
}

/* 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;
}

/* Hover */
.nav-links a:hover {
    color: var(--primary-dark);
    background: rgba(193, 255, 114, 0.18);
}

/* Active underline */
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 10px;
    background: var(--accent-lime);
    transition: 0.3s;
}

.nav-links a:hover::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;
}

.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;
    }
}

.btn-ghost {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--secondary-slate);
    background: transparent;
    color: var(--primary-dark);
    font-family: var(--font);
    transition:
        background 0.2s,
        border-color 0.2s;
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(92, 112, 135, 0.1);
}

.btn-primary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--accent-green);
    color: var(--primary-dark);
    font-family: var(--font);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 255, 114, 0.4);
}

/* HERO AREA */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 40px;
    background: var(--white);
}

.hero-left {
    padding-left: max(24px, calc(50vw - 600px + 24px));
    padding-right: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.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 */
    }
}

.badge-pill .arrow-icon {
    margin-left: 4px;
    color: var(--primary-dark);
}

.hero-title {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 18px;
    color: var(--secondary-slate);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.65;
}

.hero-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-privacy {
    font-size: 13px;
    color: var(--secondary-slate);
}

.hero-privacy a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
}

.hero-right {
    position: relative;
    background: var(--secondary-slate);
    border-bottom-left-radius: 80px;
    overflow: hidden;
    background-image: url("https://ft.unj.ac.id/elektronika/wp-content/uploads/2022/07/a1c8eff5-d5db-4475-ab36-0f6bfa394a56.jpg");
    background-size: cover;
    background-position: center;
    box-shadow: -10px 10px 40px rgba(22, 50, 84, 0.1);
}

/* STATS SECTION  */
.stats-section {
    padding: 40px 0;
    background: var(--bg-light);
    text-align: center;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-slate);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* GENERAL SECTION STYLES */
.section-padding {
    padding: 100px 0;
}

.bg-white {
    background: var(--white);
}

.bg-light {
    background: var(--bg-light);
}

.section-label {
    font-size: 15px;
    font-weight: 800;
    color: var(--secondary-slate);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-desc {
    font-size: 16px;
    color: var(--secondary-slate);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 64px;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header-flex .section-desc {
    margin-bottom: 0;
}

.link-all {
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.link-all:hover {
    color: var(--secondary-slate);
}

/* FILOSOFI LOGO (Pengganti Features) */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-light);
    border: 1px solid rgba(92, 112, 135, 0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.feature-item:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(22, 50, 84, 0.05);
    border-color: var(--accent-cyan);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrap svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-green);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 15px;
    color: var(--secondary-slate);
    line-height: 1.6;
}

.features-right {
    background: var(--bg-light);
    border-radius: 24px;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(92, 112, 135, 0.1);
}

/* TENTANG KAMI & VISI MISI */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(92, 112, 135, 0.1);
    box-shadow: 0 10px 40px rgba(22, 50, 84, 0.03);
}

.about-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-card p {
    color: var(--secondary-slate);
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-card ul {
    list-style: none;
    padding-left: 0;
}

.about-card ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--secondary-slate);
    line-height: 1.6;
}

.about-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-dark);
    font-weight: 800;
    background: var(--accent-green);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-top: 4px;
}

/* CARDS GRID (PROGRAM KERJA & BLOG) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(92, 112, 135, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(22, 50, 84, 0.08);
}

.card-image {
    width: 100%;
    height: 200px;
    background: var(--secondary-slate);
    object-fit: cover;
}

.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 12px;
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-desc {
    font-size: 15px;
    color: var(--secondary-slate);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.card-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.card-link:hover {
    color: var(--secondary-slate);
}

/* =========================================
   FOOTER (DENGAN ELEMEN DEKORATIF MODERN)
   ========================================= */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 32px;
    position: relative; /* Penting untuk menahan elemen dekoratif */
    overflow: hidden; /* Agar dekorasi tidak tumpah ke luar footer */
    z-index: 1;
}

/* Dekorasi 1: Grid Halus di Kiri Atas */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Pattern garis kotak-kotak putih transparan */
    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;
    /* Masking agar perlahan memudar membentuk lingkaran di kiri atas */
    -webkit-mask-image: radial-gradient(
        circle at top left,
        black 10%,
        transparent 60%
    );
    mask-image: radial-gradient(circle at top left, black 10%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

footer::after {
    content: "";
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 350px;
    height: 350px;
    background-image: radial-gradient(
        var(--accent-cyan) 1.5px,
        transparent 1.5px
    );
    background-size: 16px 16px;
    opacity: 0.15;
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 2;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 64px;
}

.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: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--bg-light);
    opacity: 0.8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-block;
    transition:
        opacity 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 245, 245, 0.1);
    padding-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: rgba(245, 245, 245, 0.6);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 60px 24px;
        text-align: center;
        align-items: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-form {
        justify-content: center;
    }

    .hero-right {
        min-height: 400px;
        border-bottom-left-radius: 0;
    }

    .features-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}
