/* =========================================
   NAVBAR BASE STYLES
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    padding: 0.7rem 0;
    overflow: visible;
}

.navbar.scrolled { 
    background: rgba(2, 6, 23, 0.98); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    overflow: visible;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 160px;
    height: 53px;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-logo-img {
    width: 160px;
    height: 85px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.brand-logo:hover .nav-logo-img {
    transform: scale(1.05);
}

/* Desktop Links */
.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 2.5rem; 
    align-items: center; 
}

.nav-links a { 
    font-weight: 600; 
    color: #f8fafc; 
    font-size: 0.95rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { 
    color: #E65100; 
}

.scroll-progress-bar { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    height: 3px; 
    background: linear-gradient(135deg, #E65100, #B71C1C); 
    width: 0%; 
}

/* =========================================
   MOBILE MENU (Hamburger Button)
   ========================================= */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 2001;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
    .nav-links {
        gap: 2rem;
    }

    .brand-logo {
    width: 148px;
    height: 54px;
    }

    .nav-logo-img {
        width: 148px;
        height: 84px;
    }

    .brand-logo:hover .nav-logo-img {
        transform: scale(1.04);
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 0.6rem 0;
    }

    .brand-logo {
        width: 130px;
        height: 48px;
    }

    .nav-logo-img {
        width: 130px;
        height: 76px;
    }

    .brand-logo:hover .nav-logo-img {
        transform: scale(1.03);
    }

    .mobile-menu-btn {
        display: flex !important;
        position: relative;
        z-index: 2100;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(2, 6, 23, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 2000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        pointer-events: none;
        opacity: 0;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li { 
        width: 100%; 
        text-align: center; 
    }

    .nav-links a { 
        font-size: 1.5rem; 
        display: block;
        padding: 10px;
    }

    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
}

@media (max-width: 600px) {
    .brand-logo {
        width: 115px;
        height: 42px;
    }

    .nav-logo-img {
        width: 115px;
        height: 66px;
    }

    .brand-logo:hover .nav-logo-img {
        transform: scale(1.02);
    }
}