.site-header {
    background: linear-gradient(90deg, #e5e6ea, hsl(180, 0%, 39%));
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(4, 30, 79, 0.25);
    background: rgba(255,255,255,0.18);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #041E4F;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav a {
    position: relative;
    margin: 0 12px;
    padding: 6px 12px;
    color: #041E4F;
    background: #c0c0c0;
    border: 2px outset #eff3f2;
    text-decoration: none;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background-color: #14B8A6;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #14B8A6;
    background: #186B61;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:active {
    border-style: inset;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 55px;
    width: auto;
    margin-right: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
    transform: perspective(500px) rotateY(10deg);
    transition: transform 0.5s ease;
}

.brand-logo:hover {
    transform: perspective(500px) rotateY(0deg) scale(1.1);
}

.brand-name {
    color: #041E4F;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    border: 0;
}

/* Cursor berkedip */
@keyframes blinkCursor {
    0% { border-color: transparent; }
    50% { border-color: #000; }
    100% { border-color: transparent; }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;

    z-index: 9999;

    padding: 10px 14px;

    background: #000;
    color: #fff;

    text-decoration: none;
    font-weight: 600;

    transform: translateY(-150%);

    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Mobile: logo di atas, nav di bawah */
@media (max-width: 600px) {
    .site-header {
        padding: 14px 0 18px;
    }

    .nav-wrapper {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
    }

    .brand {
        width: auto;
        justify-content: flex-start;
        margin-bottom: 0;
        text-align: left;
        min-height: 48px;
    }

    .brand-logo {
        height: 38px;
        margin-right: 6px;
    }

    .brand-name {
        display: inline-block;
        min-width: 0;
        max-width: calc(100% - 50px);
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        text-align: left;
        direction: ltr;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 0;
        top: 8px;
        width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 9px 10px;
        border: 1px solid rgba(4, 30, 79, 0.2);
        border-radius: 10px;
        background: rgba(255,255,255,0.3);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .main-nav {
        display: none;
        width: 100%;
        margin-top: 18px;
        padding-top: 12px;
        border-top: 1px solid rgba(4,30,79,0.2);
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .main-nav.is-open {
        display: grid;
    }

    .main-nav a {
        margin: 0;
        padding: 12px 14px;
        text-align: left;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 10px 0;
    }

    .nav-wrapper {
        align-items: flex-start;
        gap: 12px;
    }

    .brand {
        align-self: flex-start;
        max-width: 100%;
        margin-bottom: 0;
    }

    .brand-logo {
        height: 36px;
        max-width: 42vw;
    }

    .brand-name {
        display: inline-block;
        min-width: 0;
        max-width: calc(100% - 50px);
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        direction: ltr;
    }

    .main-nav a {
        min-width: 0;
        padding: 8px 10px;
        font-size: 0.7rem;
        text-align: left;
        white-space: nowrap;
    }
}
