:root {
    color-scheme: light;
    --page-background: #f5f0e6;
    --text-color: #111111;
    --surface-color: #fffdf8;
    --border-color: rgba(17, 17, 17, 0.18);
    --field-background: #fffdf8;
    --button-text: #f5f0e6;
    --button-hover-text: #f5f0e6;
    --important-color: #111111;
    --interactive-hover: #2b2b2b;
    --interactive-accent: #111111;
    --interactive-glow: rgba(17, 17, 17, 0.22);
}

[data-theme="dark"] {
    color-scheme: dark;
    --page-background: #050505;
    --text-color: #f5f0e6;
    --surface-color: #111111;
    --border-color: rgba(245, 240, 230, 0.18);
    --field-background: #0b0b0b;
    --button-text: #111111;
    --button-hover-text: #f5f0e6;
    --important-color: #f5f0e6;
    --interactive-hover: #262626;
    --interactive-accent: #f5f0e6;
    --interactive-glow: rgba(245, 240, 230, 0.18);
}

.penting {
    color: var(--important-color);
}

.theme-toggle {
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid rgba(245, 240, 230, 0.55);
    border-radius: 20px;
    background-color: transparent;
    color: #f5f0e6;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background-color: #f5f0e6;
    color: #111111;
}

.theme-toggle:active {
    transform: scale(0.97);
}

.marquee {
    position: relative;
    width: calc(100% + var(--page-gutter) + var(--page-gutter));
    overflow: hidden;
    margin-top: 50px;
    margin-inline: calc(0px - var(--page-gutter));
    border: 1px solid #000000;
    border-left: 6px solid #000000;
    border-radius: 0px;
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-gerak 24s linear infinite;
}

.marquee h1 {
    flex: none;
    width: max-content;
    margin: 0;
    padding: 18px 56px 18px 24px;
    color: inherit;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    line-height: 1.35;
    white-space: nowrap;
}

@keyframes marquee-gerak {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.site-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    margin-inline: calc(0px - var(--page-gutter));
    margin-top: calc(0px - var(--page-gutter));
    padding: 14px 20px;
    background-color: #111111;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.hero-page .site-nav {
    width: calc(100% + var(--page-gutter) + var(--page-gutter));
    margin: 0 calc(0px - var(--page-gutter));
}

.hero-page .marquee {
    width: calc(100% + var(--page-gutter) + var(--page-gutter));
    margin: 0 calc(0px - var(--page-gutter));
    border-radius: 0;
}

.site-logo {
    order: 1;
    flex: 0 0 auto;
    color: #f5f0e6;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: bold;
    text-decoration: none;
    line-height: 1.35;
}

.nav-login {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(245, 240, 230, 0.55);
    border-radius: 8px;
    color: #f5f0e6;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-login:hover,
.nav-login:focus-visible,
.nav-login[aria-current="page"] {
    background-color: #f5f0e6;
    color: #111111;
}

.nav-links {
    order: 2;
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 4px;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    list-style: none;
    opacity: 1;
    transform: none;
    visibility: visible;
    margin-left: auto;
}

.nav-links.is-open {
    max-height: none;
    padding: 0;
    opacity: 1;
    transform: none;
    visibility: visible;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #f5f0e6;
    text-decoration: none;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background-color: #2b2b2b;
    color: #ffffff;
}

.nav-links a[aria-current="page"] {
    color: #ffffff;
    background-color: transparent;
    box-shadow: inset 0 -2px 0 #f5f0e6;
}

.nav-toggle {
    display: none;
    order: 0;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 84px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid rgba(245, 240, 230, 0.55);
    border-radius: 8px;
    background: transparent;
    color: #f5f0e6;
    font: inherit;
    cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
.nav-toggle[aria-expanded="true"] {
    background-color: #f5f0e6;
    color: #111111;
}

.menu-icon {
    display: grid;
    gap: 4px;
    width: 18px;
}

.menu-icon span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
}

@media (max-width: 1100px) {
    .site-nav {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-logo {
        order: 1;
        flex: 1 1 0;
        min-width: 0;
    }

    .nav-links {
        order: 4;
        flex: 1 0 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        max-height: 0;
        padding: 0 8px;
        overflow: hidden;
        border: 1px solid rgba(245, 240, 230, 0.14);
        border-radius: 12px;
        background-color: #1b1b1b;
        opacity: 0;
        transform: translateY(-8px);
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease,
            padding 0.35s ease, visibility 0s linear 0.35s;
    }

    .nav-links.is-open {
        max-height: 500px;
        padding: 8px;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease,
            padding 0.35s ease, visibility 0s;
    }

    .nav-links li {
        display: block;
    }

    .nav-links a,
    .nav-links .theme-toggle {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 8px;
        text-align: left;
    }

    .nav-links .theme-toggle {
        border-radius: 8px;
    }

    .nav-login {
        order: 2;
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .marquee h1 {
        padding: 14px 36px 14px 16px;
    }
}

@media (max-width: 400px) {
    .site-nav {
        gap: 8px;
    }

    .nav-toggle {
        min-width: 44px;
        width: 44px;
        padding: 8px;
    }

    .menu-label {
        display: none;
    }

    .site-logo {
        font-size: 0.9rem;
    }

    .nav-login {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 300px) {
    .site-logo {
        flex: 1 0 calc(100% - 52px);
    }

    .nav-login {
        margin-left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle,
    .nav-toggle,
    .nav-links a,
    .nav-login {
        transition: none;
    }
}

.site-nav {
    background-color: #050505;
}

.nav-toggle {
    display: inline-flex;
}

.nav-links {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    width: auto;
    height: 100vh;
    max-height: none;
    flex: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, transparent 0 58%, #050505 58% 100%);
    opacity: 0;
    pointer-events: none;
    transform: none;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.nav-links::before {
    position: absolute;
    inset: -8px 42% -8px -8px;
    background:
        linear-gradient(rgba(5, 5, 5, 0.86), rgba(5, 5, 5, 0.92)),
        url("b_generate_satu_banner.webp") center / cover;
    content: "";
    filter: blur(4px);
    pointer-events: none;
}

.nav-links::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 58%;
    transform: translateY(-50%);
    color: #f5f0e6;
    content: "KELAB TEKNOLOGI DIGITAL\A BELAJAR | BERKONGSI | BERINOVASI";
    font-size: clamp(1.1rem, 2.4vw, 2rem);
    font-weight: bold;
    line-height: 1.5;
    pointer-events: none;
    text-align: center;
    white-space: pre-line;
}

.nav-links.is-open {
    max-height: none;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    transition: opacity 0.35s ease;
}

.nav-links li,
.nav-links li:first-child,
.nav-links li:nth-child(2),
.nav-links li:nth-child(3),
.nav-links li:nth-child(4),
.nav-links li:nth-child(5),
.nav-links li:nth-child(6) {
    position: absolute;
    left: 61%;
    right: 7%;
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-links li:first-child {
    top: 14%;
}

.nav-links li:nth-child(2) {
    top: 23%;
}

.nav-links li:nth-child(3) {
    top: 32%;
}

.nav-links li:nth-child(4) {
    top: 41%;
}

.nav-links li:nth-child(5) {
    top: 50%;
}

.nav-links li:nth-child(6) {
    top: auto;
    bottom: 8%;
    left: calc(61% + 132px);
    right: auto;
}

.nav-links li:first-child::before {
    position: absolute;
    top: -30px;
    color: rgba(245, 240, 230, 0.65);
    content: "MENU";
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.nav-links a {
    width: auto;
    min-height: 48px;
    padding: 4px 0;
    border-radius: 0;
    background: transparent;
    color: #f5f0e6;
    font-size: clamp(1.4rem, 3vw, 2.35rem);
    font-weight: normal;
    line-height: 1.2;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: transparent;
    color: #ffffff;
    opacity: 0.72;
}

.nav-links a[aria-current="page"] {
    position: relative;
    padding-left: 20px;
    color: #f5f0e6;
    box-shadow: none;
    text-decoration: none;
}

.nav-links a[aria-current="page"]::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
    content: "";
    transform: translateY(-50%);
}

.nav-links li:nth-child(6) .theme-toggle {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
}

.nav-toggle[aria-expanded="true"] {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 1101;
    width: 44px;
    min-width: 44px;
    padding: 8px;
    border-color: transparent;
    background: transparent;
    color: #f5f0e6;
}

.nav-toggle[aria-expanded="true"]:hover,
.nav-toggle[aria-expanded="true"]:focus-visible {
    background-color: rgba(245, 240, 230, 0.12);
    color: #ffffff;
}

.nav-toggle[aria-expanded="true"] .menu-icon,
.nav-toggle[aria-expanded="true"] .menu-label {
    display: none;
}

.nav-toggle[aria-expanded="true"]::after {
    content: "\00d7";
    font-size: 2rem;
    font-weight: normal;
    line-height: 1;
}

.nav-toggle[aria-expanded="true"] ~ .nav-login {
    position: fixed;
    bottom: 8%;
    left: 61%;
    z-index: 1001;
    margin: 0;
}

.nav-contact {
    display: none;
}

body.menu-open .nav-contact {
    position: fixed;
    right: 7%;
    bottom: 17%;
    left: 61%;
    z-index: 1001;
    display: block;
    padding-top: 12px;
    border-top: 1px solid rgba(245, 240, 230, 0.2);
    color: #f5f0e6;
}

.nav-contact h2 {
    margin: 0 0 4px;
    color: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-contact-phone,
.nav-contact-email {
    color: rgba(245, 240, 230, 0.72);
    font-size: 0.8rem;
    font-weight: normal;
    line-height: 1.35;
}

.nav-contact-phone {
    margin: 0 0 4px;
}

.nav-contact-email {
    margin: 0 0 10px;
}

.nav-contact-phone a,
.nav-contact-email a {
    color: inherit;
    text-decoration: none;
}

.nav-contact-phone a:hover,
.nav-contact-phone a:focus-visible,
.nav-contact-email a:hover,
.nav-contact-email a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nav-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.nav-social-link,
.nav-social-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 8px;
    border: 1px solid rgba(245, 240, 230, 0.24);
    border-radius: 6px;
    color: #f5f0e6;
    font-size: 0.75rem;
    line-height: 1.2;
    text-decoration: none;
}

.nav-social-link:hover,
.nav-social-link:focus-visible {
    border-color: rgba(245, 240, 230, 0.7);
    background-color: rgba(245, 240, 230, 0.1);
}

.nav-social-unavailable {
    color: rgba(245, 240, 230, 0.48);
}

.nav-social-link svg,
.nav-social-unavailable svg {
    width: 16px;
    height: 16px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.nav-project-link {
    display: inline-block;
    margin-top: 8px;
    color: rgba(245, 240, 230, 0.75);
    font-size: 0.75rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nav-project-link:hover,
.nav-project-link:focus-visible {
    color: #ffffff;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .nav-links {
        background: #050505;
    }

    .nav-links::before {
        inset: -8px;
    }

    .nav-links::after {
        top: auto;
        bottom: 2%;
        left: 10%;
        width: 80%;
        transform: none;
        font-size: 0.9rem;
    }

    .nav-links li,
    .nav-links li:first-child,
    .nav-links li:nth-child(2),
    .nav-links li:nth-child(3),
    .nav-links li:nth-child(4),
    .nav-links li:nth-child(5),
    .nav-links li:nth-child(6) {
        left: 10%;
        right: 10%;
    }

    .nav-links li:first-child {
        top: 19%;
    }

    .nav-links li:nth-child(2) {
        top: 27%;
    }

    .nav-links li:nth-child(3) {
        top: 35%;
    }

    .nav-links li:nth-child(4) {
        top: 43%;
    }

    .nav-links li:nth-child(5) {
        top: 51%;
    }

    .nav-links li:nth-child(6) {
        top: auto;
        bottom: 12%;
        left: calc(10% + 108px);
        right: auto;
    }

    .nav-links a {
        font-size: 1.6rem;
    }

    .nav-login {
        display: none;
    }

    .nav-toggle[aria-expanded="true"] ~ .nav-login {
        bottom: 12%;
        left: 10%;
        min-height: 48px;
        display: inline-flex;
    }

    body.menu-open .nav-contact {
        right: 10%;
        bottom: 20%;
        left: 10%;
    }
}

@media (max-width: 760px) and (max-height: 700px) {
    .nav-links::after {
        bottom: 1%;
    }

    .nav-links a {
        min-height: 44px;
    }

    .nav-links li:first-child {
        top: 12%;
    }

    .nav-links li:nth-child(2) {
        top: 21%;
    }

    .nav-links li:nth-child(3) {
        top: 30%;
    }

    .nav-links li:nth-child(4) {
        top: 39%;
    }

    .nav-links li:nth-child(5) {
        top: 48%;
    }

    .nav-links li:nth-child(6),
    .nav-toggle[aria-expanded="true"] ~ .nav-login {
        bottom: 15%;
    }

    body.menu-open .nav-contact {
        bottom: 25%;
        padding-top: 8px;
    }

    .nav-contact-email {
        margin-bottom: 6px;
    }

    .nav-contact-phone {
        margin-bottom: 4px;
    }

    .nav-social-links {
        gap: 5px;
    }

    .nav-social-link,
    .nav-social-unavailable {
        min-height: 30px;
        padding: 5px;
    }

    .nav-social-link > span,
    .nav-social-unavailable > span,
    .nav-project-link {
        display: none;
    }
}

@media (max-width: 760px) and (max-height: 540px) {
    .nav-links li:first-child {
        top: 8%;
    }

    .nav-links li:nth-child(2) {
        top: 17%;
    }

    .nav-links li:nth-child(3) {
        top: 26%;
    }

    .nav-links li:nth-child(4) {
        top: 35%;
    }

    .nav-links li:nth-child(5) {
        top: 44%;
    }
}