/* GENFES — GLOBAL CSS: variables, reset, shared navbar, footer, and global responsive rules. */

/* ========================================
   GENFES
   GLOBAL STYLE
======================================== */




/* ========================================
   COLOR VARIABLES
======================================== */

:root {

    --dark-navy: #12152a;
    --deep-blue: #211b4b;

    --purple: #7656d6;
    --violet: #9277e8;
    --light-violet: #eeeafd;
    --light-blue: #7aa8e8;

    --white: #ffffff;
    --light-bg: #f8f9fc;

    --text-dark: #171827;
    --text-light: #737b91;

    --border-light: rgba(255, 255, 255, 0.12);

    --container-width: 1200px;

    --transition: 0.3s ease;
}




/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: clip;
}


body.no-scroll {
    overflow: hidden;
}


a {
    text-decoration: none;
    color: inherit;
}


button {
    font-family: inherit;
}


img,
video {
    max-width: 100%;
    display: block;
}




/* ========================================
   CONTAINER
======================================== */

.container {
    width: min(var(--container-width),
            calc(100% - 80px));

    margin: 0 auto;
}



/* ========================================
   NAVBAR
======================================== */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 22px 0;

    background: transparent;

    transition:
        background var(--transition),
        padding var(--transition),
        box-shadow var(--transition);
}


.navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);

    backdrop-filter: blur(15px);

    padding: 15px 0;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);
}


.navbar-container {
    display: flex;

    align-items: center;
    justify-content: space-between;
}

.logo img {
    display: block;
    width: 100px;
    margin-left: 25px;
    height: auto;
}




/* ========================================
   LOGO
======================================== */

.logo {
    font-family: "Inter", sans-serif;

    font-size: 25px;

    font-weight: 800;

    letter-spacing: 2px;

    color: var(--white);
}


.logo span {
    color: var(--violet);
}




/* ========================================
   NAVIGATION
======================================== */

.nav-menu {
    display: flex;

    align-items: center;

    gap: 34px;
}


.nav-link {
    position: relative;

    color: rgba(255, 255, 255, 0.85);

    font-size: 14px;

    font-weight: 500;

    transition: color var(--transition);
}


.nav-link:hover,
.nav-link.active {
    color: var(--white);
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--violet);

    border-radius: 10px;

    transition: width var(--transition);
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}




/* ========================================
   LOGIN BUTTON
======================================== */

.nav-login {
    padding: 11px 22px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 50px;

    color: var(--white);

    font-size: 14px;
    font-weight: 600;

    transition: all var(--transition);
}


.nav-login:hover {
    background: var(--white);

    color: var(--deep-blue);

    transform: translateY(-2px);
}




/* ========================================
   MOBILE MENU BUTTON
======================================== */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 50%;

    background: transparent;

    color: var(--white);

    font-size: 23px;

    cursor: pointer;

    transition: all var(--transition);
}


.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}




/* ========================================
   SCROLL INDICATOR
======================================== */

.scroll-indicator {
    position: absolute;

    left: 50%;

    bottom: 25px;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 2px;

    z-index: 3;
}


.scroll-indicator i {
    font-size: 17px;

    animation: scrollDown 1.8s infinite;
}


@keyframes scrollDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }

}




/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {

    .container {
        width: min(var(--container-width),
                calc(100% - 50px));
    }


    .nav-menu {
        gap: 22px;
    }


    .hero-content {
        width: 70%;
    }


    .hero-decoration {
        right: -100px;

        opacity: 0.6;
    }

}




/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .container {
        width: calc(100% - 40px);
    }


    /* NAVBAR */

    .navbar {
        padding: 17px 0;
    }


    .navbar.scrolled {
        padding: 13px 0;
    }


    .nav-menu {
        position: fixed;

        top: 0;
        right: -100%;

        width: min(320px,
                85%);

        height: 100vh;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        justify-content: center;

        gap: 25px;

        padding: 40px;

        background:
            linear-gradient(160deg,
                var(--deep-blue),
                var(--dark-navy));

        box-shadow:
            -20px 0 50px rgba(0, 0, 0, 0.25);

        transition: right 0.4s ease;

        z-index: 1001;
    }


    .nav-menu.active {
        right: 0;
    }


    .nav-link {
        font-size: 17px;
    }


    .nav-login {
        margin-top: 10px;

        padding: 12px 24px;
    }


    .menu-toggle {
        display: flex;

        align-items: center;
        justify-content: center;

        position: relative;

        z-index: 1002;
    }


    /* HERO */

    .hero-container {
        padding-top: 100px;

        align-items: center;
    }


    .hero-content {
        width: 100%;
    }


    .hero h1 {
        font-size: clamp(36px, 9vw, 52px);
        line-height: 1.1;
        letter-spacing: -1px;
        overflow-wrap: break-word;
    }


    .hero-description {
        width: 100%;
        max-width: 100%;
        font-size: 13px;
        line-height: 1.7;
        overflow-wrap: break-word;
    }


    .hero-decoration {
        display: none;
    }


    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }


    .btn {
        min-height: 50px;

        padding: 0 21px;
    }


    .scroll-indicator {
        display: none;
    }


    /* MODAL */

    .video-modal {
        padding: 20px;
    }


    .video-close {
        top: -50px;
    }

}




/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 30px);
    }


    .logo {
        font-size: 22px;
    }


    .hero-label {
        font-size: 10px;

        letter-spacing: 2px;
    }


    .hero h1 {
        font-size: 43px;
    }


    .hero-description {
        font-size: 13px;
    }


    .hero-buttons {
        width: 100%;

        flex-direction: column;

        align-items: stretch;
    }


    .btn {
        width: 100%;
    }


    .placeholder-section {
        min-height: 60vh;

        padding: 80px 0;
    }

}



/* ========================================
   FOOTER
======================================== */

.footer {
    background:
        linear-gradient(135deg,
            #111827 0%,
            #1e1b4b 55%,
            #312e81 100%);

    color: var(--white);

    padding-top: 80px;
}




/* ========================================
   FOOTER MAIN
======================================== */

.footer-main {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1.3fr;

    gap: 60px;

    padding-bottom: 60px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.1);
}




/* ========================================
   FOOTER BRAND
======================================== */

.footer-brand {
    max-width: 200px;
}


.footer-logo {
    display: inline-block;

    margin-bottom: 20px;

    font-size: 26px;

    font-weight: 800;

    letter-spacing: 2px;
}


.footer-logo span {
    color: var(--violet);
}


.footer-brand p {
    max-width: 320px;

    color:
        rgba(255, 255, 255, 0.6);

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 25px;
}




/* ========================================
   SOCIAL MEDIA
======================================== */

.footer-social {
    display: flex;

    align-items: center;

    gap: 10px;
}


.footer-social a {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.15);

    border-radius: 50%;

    color:
        rgba(255, 255, 255, 0.7);

    font-size: 16px;

    transition: all var(--transition);
}


.footer-social a:hover {
    background: var(--purple);

    border-color: var(--purple);

    color: var(--white);

    transform: translateY(-4px);
}




/* ========================================
   FOOTER COLUMN
======================================== */

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.footer-column h3 {
    margin-bottom: 22px;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.5px;
}


.footer-column a {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 13px;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 13px;

    transition:
        color var(--transition),
        transform var(--transition);
}


.footer-column a:hover {
    color: var(--white);

    transform: translateX(4px);
}




/* ========================================
   CONTACT
======================================== */

.footer-contact a {
    line-height: 1.5;
}


.footer-contact i {
    width: 18px;

    color: var(--violet);

    font-size: 15px;
}




/* ========================================
   FOOTER BOTTOM
======================================== */

.footer-bottom {
    min-height: 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.footer-bottom p {
    color:
        rgba(255, 255, 255, 0.4);

    font-size: 12px;
}


.footer-bottom-links {
    display: flex;

    gap: 25px;
}


.footer-bottom-links a {
    color:
        rgba(255, 255, 255, 0.4);

    font-size: 12px;

    transition: color var(--transition);
}


.footer-bottom-links a:hover {
    color: var(--white);
}




/* ========================================
   FOOTER TABLET
======================================== */

@media (max-width: 900px) {

    .footer-main {
        grid-template-columns:
            1.5fr 1fr 1fr;

        gap: 45px;
    }


    .footer-brand {
        grid-column: span 3;

        max-width: 500px;
    }

}




/* ========================================
   FOOTER MOBILE
======================================== */

@media (max-width: 600px) {

    .footer {
        padding-top: 60px;
    }


    .footer-main {
        grid-template-columns: 1fr;

        gap: 35px;

        padding-bottom: 40px;
    }


    .footer-brand {
        grid-column: auto;

        max-width: 100%;
    }


    .footer-brand p {
        max-width: 100%;
    }


    .footer-column {
        width: 100%;
    }


    .footer-column h3 {
        margin-bottom: 15px;
    }


    .footer-bottom {
        min-height: auto;

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;

        padding: 25px 0;
    }


    .footer-bottom-links {
        flex-wrap: wrap;

        gap: 15px;
    }

}




/* ========================================
   GAMBAR UTAMA
======================================== */

.about-image-main {
    grid-column: 1 / 3;
    grid-row: 1;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 16px;
}




/* ========================================
   GAMBAR BAWAH
======================================== */

.about-image-small {
    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 16px;
}




/* ========================================
   SEMUA GAMBAR
======================================== */

.about-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}




/* ========================================
   HOVER
======================================== */

.about-image:hover img {
    transform: scale(1.04);
}


/* Story */

.about-story {
    background: rgba(42, 45, 111, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    padding: 24px;
}

.story-label {
    display: block;
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.about-story h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 18px;
}

.about-story p {
    color: #d9daf2;
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 13px;
}


/* Highlight */

.about-highlight {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 18px;
    padding: 14px;

    background: rgba(17, 20, 92, 0.65);
    border-radius: 5px;
}

.about-highlight strong {
    color: #c4b5fd;
    font-size: 20px;
    white-space: nowrap;
}

.about-highlight span {
    color: #e5e7eb;
    font-size: 11px;
    line-height: 1.5;
}



/* Statistics number animation */

.stat-card strong {
    display: block;
    font-variant-numeric: tabular-nums;
}

/* Statistics */

.about-statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;

    margin-top: 30px;
}

.stat-card {
    padding: 18px 12px;
    text-align: center;

    background: rgba(38, 41, 105, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.2);

    border-radius: 6px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.7);
}

.stat-icon {
    font-size: 16px;
    margin-bottom: 5px;
}

.stat-card strong {
    display: block;
    color: #c4b5fd;
    font-size: 19px;
    margin-bottom: 4px;
}

.stat-card span {
    display: block;
    color: #d9daf2;
    font-size: 10px;
}


/* Advantages */

.about-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;

    margin-top: 34px;
}

.advantage-card {
    padding: 20px;

    background: rgba(28, 31, 101, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.2);

    border-radius: 6px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.7);
}

.advantage-icon {
    font-size: 17px;
    margin-bottom: 12px;
}

.advantage-card h3 {
    font-size: 12px;
    margin-bottom: 8px;
    color: #ffffff;
}

.advantage-card p {
    font-size: 10px;
    line-height: 1.6;
    color: #cfd1eb;
    margin: 0;
}




/* =========================
   SERVICE CARD
========================== */

.service-card {
    min-height: 220px;

    padding: 25px 18px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background:
        linear-gradient(145deg,
            rgba(49, 46, 129, 0.85),
            rgba(37, 30, 90, 0.9));

    border: 1px solid rgba(167, 139, 250, 0.18);

    border-radius: 8px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Hover */

.service-card:hover {
    transform: translateY(-6px);

    background:
        linear-gradient(145deg,
            rgba(67, 56, 202, 0.9),
            rgba(49, 46, 129, 0.95));

    border-color: rgba(167, 139, 250, 0.5);

    box-shadow:
        0 15px 35px rgba(76, 29, 149, 0.25);
}




/* =========================
   ICON
========================== */

.service-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 50%;

    background:
        linear-gradient(135deg,
            #7c3aed,
            #8b5cf6);

    color: #ffffff;

    font-size: 19px;

    box-shadow:
        0 6px 18px rgba(124, 58, 237, 0.35);
}




/* =========================
   TITLE
========================== */

.service-card h3 {
    margin: 0 0 10px;

    font-size: 13px;
    font-weight: 700;

    color: #ffffff;
}




/* =========================
   DESCRIPTION
========================== */

.service-card p {
    margin: 0;

    color: #dbe4ff;

    font-size: 10px;
    line-height: 1.65;
}

/* ===========================================================
   GENFES — MOBILE NAV: SLIDE + GLASS + BLUE/PURPLE GLOW
   Tambahan untuk style.css global.
   Tidak mengubah navbar desktop, HTML, atau JavaScript.
   Menggunakan kelas .active yang sudah dipakai menu lama.
=========================================================== */
@media (max-width: 768px) {

    /* Dim + blur latar halaman saat sidebar dibuka. */
    .navbar::before {
        content: "";
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        z-index: 1000;
        background: rgba(5, 8, 30, .54);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .5s ease, visibility 0s linear .5s;
    }

    .navbar:has(.nav-menu.active)::before {
        opacity: 1;
        visibility: visible;
        transition: opacity .5s ease, visibility 0s;
    }

    /* Saat menu dibuka, cegah posisi fixed terikat ke backdrop navbar. */
    .navbar:has(.nav-menu.active),
    .navbar.scrolled:has(.nav-menu.active) {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    /* Sidebar masuk dari KANAN, bukan menukar nilai right. */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 86vw);
        height: 100vh;
        height: 100dvh;
        padding: max(84px, env(safe-area-inset-top)) 35px max(36px, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 9px;
        overflow-x: hidden;
        overflow-y: auto;
        isolation: isolate;
        z-index: 1001;
        border-left: 1px solid rgba(186, 173, 255, .27);
        border-radius: 24px 0 0 24px;
        background:
            radial-gradient(ellipse at 95% 7%, rgba(111, 92, 231, .25), transparent 45%),
            radial-gradient(ellipse at 7% 88%, rgba(42, 127, 242, .16), transparent 50%),
            linear-gradient(155deg, rgba(30, 27, 82, .96), rgba(14, 17, 49, .97) 64%, rgba(12, 16, 43, .98));
        -webkit-backdrop-filter: blur(26px) saturate(140%);
        backdrop-filter: blur(26px) saturate(140%);
        box-shadow: -24px 0 70px rgba(0, 0, 0, .36), inset 1px 0 rgba(255, 255, 255, .10);
        transform: translate3d(104%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform .68s cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear .68s;
        will-change: transform;
    }

    .nav-menu.active {
        right: 0;
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        transition:
            transform .68s cubic-bezier(.22, 1, .36, 1),
            visibility 0s;
    }

    /* Ornamen glow bergerak, tidak menutupi teks dan tidak bisa diklik. */
    .nav-menu::before,
    .nav-menu::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        z-index: -1;
        filter: blur(20px);
    }

    .nav-menu::before {
        width: 215px;
        height: 215px;
        top: -74px;
        right: -82px;
        background: radial-gradient(circle, rgba(129, 101, 255, .32), transparent 73%);
        animation: genfesMenuGlowOne 7s ease-in-out infinite alternate;
    }

    .nav-menu::after {
        width: 230px;
        height: 230px;
        bottom: -85px;
        left: -130px;
        background: radial-gradient(circle, rgba(56, 149, 250, .20), transparent 73%);
        animation: genfesMenuGlowTwo 8s ease-in-out infinite alternate;
    }

    @keyframes genfesMenuGlowOne {
        from {
            transform: translate3d(0, 0, 0) scale(1);
        }

        to {
            transform: translate3d(-24px, 42px, 0) scale(1.2);
        }
    }

    @keyframes genfesMenuGlowTwo {
        from {
            transform: translate3d(0, 0, 0) scale(1);
        }

        to {
            transform: translate3d(26px, -36px, 0) scale(1.13);
        }
    }

    /* Link muncul berurutan setelah panel mulai meluncur. */
    .nav-menu>.nav-link,
    .nav-menu>.nav-login {
        position: relative;
        z-index: 1;
        flex-shrink: 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        font-family: 'Montserrat', 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0;
        opacity: 0;
        transform: translate3d(24px, 10px, 0);
        transition:
            opacity .36s ease,
            transform .5s cubic-bezier(.22, 1, .36, 1),
            color .25s ease;
        transition-delay: 0s;
    }

    .nav-menu.active>.nav-link,
    .nav-menu.active>.nav-login {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .nav-menu.active> :nth-child(1) {
        transition-delay: .14s;
    }

    .nav-menu.active> :nth-child(2) {
        transition-delay: .20s;
    }

    .nav-menu.active> :nth-child(3) {
        transition-delay: .26s;
    }

    .nav-menu.active> :nth-child(4) {
        transition-delay: .32s;
    }

    .nav-menu.active> :nth-child(5) {
        transition-delay: .38s;
    }

    .nav-menu.active> :nth-child(6) {
        transition-delay: .44s;
    }

    /* Warna link tetap terang, dengan garis aktif glowing. */
    .nav-menu>.nav-link {
        color: rgba(239, 237, 255, .83);
    }

    .nav-menu>.nav-link.active,
    .nav-menu>.nav-link:hover,
    .nav-menu>.nav-link:focus-visible {
        color: #fff;
        text-shadow: 0 0 17px rgba(167, 139, 250, .38);
    }

    .nav-menu>.nav-link::after {
        bottom: 2px;
        height: 2px;
        background: linear-gradient(90deg, #bd97ff, #7ebfff);
        box-shadow: 0 0 12px rgba(157, 139, 255, .6);
    }

    /* Tombol masuk tampak seperti glass capsule. */
    .nav-menu>.nav-login {
        margin-top: 18px;
        min-height: 46px;
        padding: 11px 26px;
        font-size: 14px;
        font-weight: 500;
        border: 1px solid rgba(181, 164, 250, .40);
        border-radius: 999px;
        color: #fff;
        background: rgba(255, 255, 255, .065);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    }

    .nav-menu>.nav-login:hover,
    .nav-menu>.nav-login:focus-visible {
        background: rgba(132, 101, 237, .28);
        border-color: rgba(188, 166, 255, .83);
        box-shadow: 0 0 20px rgba(142, 103, 255, .18);
    }

    /* Ikon hamburger dan X bertransisi lebih smooth. */
    .menu-toggle {
        z-index: 1002;
        width: 45px;
        height: 45px;
        flex-shrink: 0;
        border: 1px solid rgba(192, 182, 255, .42);
        background: rgba(29, 27, 81, .36);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s ease;
    }

    .menu-toggle i {
        display: inline-block;
        transition: transform .4s cubic-bezier(.22, 1, .36, 1), color .3s ease;
    }

    .navbar:has(.nav-menu.active) .menu-toggle {
        border-color: rgba(170, 145, 255, .7);
        background: rgba(104, 76, 204, .18);
        box-shadow: 0 0 25px rgba(142, 103, 255, .22);
    }

    .navbar:has(.nav-menu.active) .menu-toggle i {
        transform: rotate(90deg) scale(1.05);
    }

    .menu-toggle:focus-visible,
    .nav-menu a:focus-visible {
        outline: 2px solid #bba6ff;
        outline-offset: 4px;
    }
}

/* Layar pendek dalam mode landscape: menu tetap dapat digulir. */
@media (max-width: 768px) and (max-height: 520px) {
    .nav-menu {
        justify-content: flex-start;
        padding-top: 74px;
    }
}

/* Aksesibilitas: kurangi animasi jika dipilih pengguna. */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {

    .nav-menu,
    .navbar::before,
    .nav-menu>.nav-link,
    .nav-menu>.nav-login,
    .menu-toggle,
    .menu-toggle i {
        animation: none !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }

    .nav-menu::before,
    .nav-menu::after {
        animation: none !important;
    }
}

/* ============================================================
   GENFES — ANIMASI TEKS MENU HAMBURGER (HP)
   Hanya perilaku animasi. Tidak mengganti warna, font,
   ukuran, border, posisi, background, glow ataupun tombol.
   Background sidebar langsung tampil TANPA slide dari kanan.
   Teks muncul satu per satu dari ATAS ke BAWAH (urutan menu),
   dengan gerak naik kecil + blur yang memudar.
============================================================ */
@media (max-width: 768px) {

    /* Tampilkan sidebar langsung. Semua tampilan visual aslinya tetap. */
    .nav-menu,
    .nav-menu.active {
        right: 0;
        transform: none;
        transition: visibility 0s;
    }

    .nav-menu {
        visibility: hidden;
        pointer-events: none;
    }

    .nav-menu.active {
        visibility: visible;
        pointer-events: auto;
    }

    /* Item harus tetap terbaca ketika tidak ada animasi. */
    .nav-menu>.nav-link,
    .nav-menu>.nav-login {
        opacity: 1;
        transform: none;
        filter: none;
        /* Hilangkan transisi opacity/transform lama agar tidak bentrok. */
        transition: color .25s ease;
        animation: none;
    }

    /* Saat class active ditambahkan JS, keyframes dimulai ulang. */
    .nav-menu.active>.nav-link,
    .nav-menu.active>.nav-login {
        animation-name: genfesMenuItemReveal;
        animation-duration: .72s;
        animation-timing-function: cubic-bezier(.22, 1, .36, 1);
        animation-fill-mode: both;
        animation-delay: var(--item-delay, .12s);
    }

    /* Muncul berurutan dari Home (atas) hingga Masuk (bawah). */
    .nav-menu.active> :nth-child(1) {
        --item-delay: .12s;
    }

    .nav-menu.active> :nth-child(2) {
        --item-delay: .27s;
    }

    .nav-menu.active> :nth-child(3) {
        --item-delay: .42s;
    }

    .nav-menu.active> :nth-child(4) {
        --item-delay: .57s;
    }

    .nav-menu.active> :nth-child(5) {
        --item-delay: .72s;
    }

    .nav-menu.active> :nth-child(6) {
        --item-delay: .87s;
    }

    @keyframes genfesMenuItemReveal {
        from {
            opacity: 0;
            transform: translate3d(0, 27px, 0);
            filter: blur(5px);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
            filter: blur(0);
        }
    }
}

/* Browser/pengguna yang meminta gerakan minimal tetap bisa membaca menu. */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {

    .nav-menu.active>.nav-link,
    .nav-menu.active>.nav-login {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}