/* Reset dasar */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: #111;
    color: #fff;
}
html {
    scroll-behavior: smooth;
}

/* Navbar utama dengan animasi */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    border-bottom: 3px solid orange;
    height: 110px;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* Animasi masuk */
 animation: slideDown 1s cubic-bezier(0.25, 0.1, 0.25, 1);

    transform-origin: top;
}

/* Animasi navbar turun dari atas */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Efek saat scroll */
.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 3px solid #ff8c00;
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.3);
    transition: all 0.4s ease;
}
/* Logo Container */
.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: orange;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navbar Transisi */
.navbar {
    transition: all 0.4s ease;
}

/* Posisi Logo di Navbar */
.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px; /* jarak antar logo */
    position: relative;
}

/* Setiap logo-item */
.logo-item {
    display: flex;
    align-items: center;
}

/* Style & Animasi logo */
.navbar .logo img {
    position: relative;
    margin-top: 0px;
    height: 105px;
    width: auto;
    transition: transform 0.6s ease, filter 0.3s ease;
}

/* Perbesar logo PRN */
.logo-prn {
    height: 250px !important; /* dari 105px naik → sesuaikan */
    margin-left: -12px;  /* geser kiri tanpa position */
}


/* Hover Effect */
.navbar .logo img:hover {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255,165,0,0.7));
}


/* Daftar navigasi */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* Tautan menu dengan animasi */
.nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid orange;
    background-color: orange;
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
    display: inline-block;
}


/* Efek hover - MEMBESAR dan berubah */
.nav-links a:hover {
    background-color: #000;
    color: orange;
    transform: scale(1.1) translateY(-2px); /* MEMBESAR 10% */
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.5);
    border-color: #ff8c00;
    z-index: 10;
}

/* Efek transisi yang smooth untuk transform */
.nav-links a {
    transform: scale(1);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Khusus tombol terakhir (Status Transaksi) */
.nav-links li:last-child a {
    border-color: #4b2e05;
    background-color: #4b2e05;
    color: #fff;
}

/* Hover untuk tombol terakhir - juga MEMBESAR */
.nav-links li:last-child a:hover {
    border-color: #7b4b1f;
    background-color: #7b4b1f;
    color: #fff;
    transform: scale(1.1) translateY(-2px); /* MEMBESAR 10% */
    box-shadow: 0 8px 20px rgba(123, 75, 31, 0.5);
}

/* Animasi masuk untuk setiap item menu */
.nav-links li {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Delay bertahap untuk setiap item menu */
.nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}
.nav-links li:nth-child(2) {
    animation-delay: 0.2s;
}
.nav-links li:nth-child(3) {
    animation-delay: 0.3s;
}
.nav-links li:nth-child(4) {
    animation-delay: 0.4s;
}
.nav-links li:nth-child(5) {
    animation-delay: 0.5s;
}
.nav-links li:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi border bawah bergerak */
.navbar::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, orange, #ff8c00, orange);
    animation: borderFlow 3s ease-in-out infinite;
}

@keyframes borderFlow {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsif untuk mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        height: 70px;
    }

    .navbar .logo img {
        height: 180px;
        top: 15px;
    }

    .logo-group {
    display: flex;
    align-items: center;
    gap: 10px; /* jarak antara logo */
}

.logo-img {
    height: 50px; /* atur ukuran sesuai kebutuhan */
    width: auto;
    transition: transform 0.6s ease, filter 0.3s ease;
}

.logo-img:hover {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.7));
}

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        padding: 4px 8px;
        font-size: 0.9rem;
    }



    /* Efek hover lebih kecil di mobile */
    .nav-links a:hover {
        transform: scale(1.05) translateY(-1px);
    }

    .nav-links li:last-child a:hover {
        transform: scale(1.05) translateY(-1px);
    }
}

/* ============================
   BURGER MENU
============================ */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 2000;
}

.burger span {
    width: 28px;
    height: 3px;
    background: orange;
    border-radius: 3px;
    transition: 0.4s ease;
}

/* Burger aktif (jadi X) */
.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================
   MOBILE MENU DROPDOWN
============================ */
@media (max-width: 992px) {
    .burger {
        display: flex;
    }

.navbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
       height: 85px;
}

.navbar .logo {
    margin-left: -5px !important; /* geser lebih ke kiri */
}


.navbar .logo img {
    position: static !important;
    margin-top: 8px !important; /* dari 28px → 8px supaya naik */
    height: 85px;
    width: auto;
    display: block;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px; /* jarak antara logo */
}

.logo-img {
    height: 50px; /* atur ukuran sesuai kebutuhan */
    width: auto;
    transition: transform 0.6s ease, filter 0.3s ease;
}

.logo-img:hover {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.7));
}

/* Perbesar logo PRN */
.logo-prn {

    margin-left: -20px;  /* geser kiri tanpa position */
}



    /* NAV LINKS DI MOBILE — LIST SIMPLE */
    .nav-links {
        position: absolute;
        top: 80px;
        right: 20px;
        width: 200px; /* Lebar tetap untuk konsistensi */
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: stretch; /* Ubah dari flex-start ke stretch */
        gap: 0.5rem;

        padding: 1rem 1.2rem;
        border: 2px solid orange;
        border-radius: 10px;

        /* HIDE DEFAULT */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    /* MUNCUL */
    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.95rem;
        text-align: center;
        display: block;
        border: 1px solid rgba(255, 165, 0, 0.3);
        border-radius: 6px;
        background: rgba(255, 165, 0, 0.1);
        transition: all 0.3s ease;
        box-sizing: border-box;
        color: white;
        text-decoration: none;
        min-height: 54px;
        display: flex;
        align-items: center;x
        justify-content: center;
    }
    /* Hover effect untuk konsistensi */
    .nav-links a:hover {
        background: rgba(255, 165, 0, 0.2);
        border-color: orange;
        transform: translateY(-2px);
        color: white; /* Pastikan tetap putih saat hover */
    }

    /* Untuk memastikan semua link memiliki tinggi yang sama */
    .nav-links a {
        min-height: 44px; /* Minimum height untuk accessibility */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
