/* RESET & GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* HEADER MAIN */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 75px;
    background: linear-gradient(90deg, #1f1f1f, #2c2c2c);
    display: flex;
    align-items: center;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.header-container {
    width: 100%;
    padding: 0 60px;
    display: flex;
    align-items: center;
    position: relative;
}

/* LOGO */
.logo img {
    height: 55px; /* Sesuaikan ukuran logo */
    object-fit: contain;
    transition: 0.3s;
}

/* NAV CENTER */
.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

/* MENU LINKS */
.nav a {
    margin: 0 20px;
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

/* HOVER & ACTIVE STATE (WARNA MERAH) */
.nav a:hover,
.nav a.active {
    color: #ff2b2b !important;
}

/* GARIS BAWAH (UNDERLINE) */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%; /* Default tidak ada lebar */
    height: 3px;
    background: #ff2b2b;
    transition: 0.3s ease-in-out;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 43, 43, 0.4); /* Efek glow tipis */
}

/* Tampilkan garis penuh jika class active ada */
.nav a.active::after {
    width: 100%;
}

/* Tampilkan garis saat hover */
.nav a:hover::after {
    width: 100%;
}

/* RIGHT MENU */
.right-menu {
    margin-left: auto;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
}

.right-menu:hover {
    color: #ff2b2b;
    border-color: #ff2b2b;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .header-container { padding: 0 20px; }
    .nav a { margin: 0 10px; font-size: 13px; }
}

/* ==========================================================================
   HAMBURGER & MOBILE NAVIGATION STYLES
   ========================================================================== */

/* Sembunyikan hamburger secara default di layar desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* KONDISI RESPONSIF LAYAR GADGET (MAX 768px) */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        justify-content: space-between;
    }

    /* Munculkan tombol hamburger */
    .hamburger {
        display: flex;
        margin-left: auto;
        margin-right: 20px;
    }

    /* Animasi Perubahan Tombol Menjadi Simbol Silang (X) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #ff2b2b;
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #ff2b2b;
    }

    /* Ubah navigasi tengah menjadi Menu Dropdown Vertikal */
    .nav {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: 0; /* Tertutup secara default */
        background: #1f1f1f;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        transform: none;
        overflow: hidden;
        transition: height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.4);
    }

    /* Kondisi ketika hamburger di-klik (Buka Menu) */
    .nav.open {
        height: 310px; /* Menyesuaikan total tinggi tumpukan menu */
        padding: 20px 0;
    }

    .nav a {
        margin: 15px 40px;
        font-size: 16px;
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 12px;
    }

    .nav a::after {
        display: none; /* Sembunyikan efek garis bawah bawaan desktop agar rapi */
    }

    /* Penyesuaian Menu Bahasa */
    .right-menu {
        margin-left: 0;
    }
}