/* Navbar CSS - Scoped under .header-v5 */
:root {
    --black: #111111;
    --yellow: #FFCC00;
    --white: #FFFFFF;
}

.header-v5 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header-v5.scrolled {
    background: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo, .navbar-brand {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    cursor: default;
}

.logo-malaysia {
    color: #FFFFFF; /* default top = white */
    font-weight: 900;
    letter-spacing: -1px;
}

.logo-airport {
    color: var(--yellow);
    font-weight: 900;
    margin-left: 0px;
    letter-spacing: -1px;
}

.header-v5.scrolled .logo-malaysia {
    color: var(--black); /* after scroll */
}

/* New brand styling */
.navbar-brand span:first-child {
    color: #FFFFFF; /* MALAYSIA = white on top */
}

.header-v5.scrolled .navbar-brand span:first-child {
    color: #111111; /* MALAYSIA = black after scroll */
}

.navbar-brand span:last-child {
    color: var(--yellow); /* AIRPORTRANSFER.COM = yellow always */
}

.main-nav .nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: default;
}

.main-nav a:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.main-nav a:hover {
    color: var(--yellow);
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background: currentColor;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        width: 84vw;
        max-width: 360px;
        background: var(--white);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        padding: 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.open {
        transform: translateX(0);
    }
    
    .main-nav .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 1.1rem;
        padding: 8px 0;
        display: block;
    }
    
    .mobile-toggle {
        display: flex;
        color: #111111;
    }
    
    html.nav-open {
        overflow: hidden;
    }
    
    /* Mobile toggle animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}
