/* ============================================
   NAVBAR STYLES - Rebuilt
   ============================================ */

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #0c1b33;
    /* Dark Navy by default to ensure visibility */
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 1rem 0;
    /* Standard padding */
}

.navbar.scrolled {
    background: rgba(12, 27, 51, 0.98);
    /* Slightly more opaque on scroll */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    /* Compact padding */
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Flex behaviour ensures logo is left, menu is right */
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    z-index: 1001;
    /* Ensure logo is above mobile menu overlay if needed */
}

.logo-img {
    height: 60px;
    /* Increased size for clarity */
    width: auto;
    object-fit: contain;
}

/* Logo text styles removed as logo is now image-only */

/* Desktop Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* Spacing between links */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold, #d4a953);
}

/* Underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold, #d4a953);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    /* Above mobile menu */
    padding: 0;
}

.navbar-toggle .bar {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Toggle Animation */
.navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu & Breakpoints */
.mobile-menu {
    display: none;
    /* Hidden by default */
}

@media (max-width: 992px) {
    .navbar-menu {
        display: none;
        /* Hide desktop menu on tablet/mobile */
    }

    .navbar-toggle {
        display: flex;
        /* Show toggle */
    }

    /* Mobile Menu Drawer */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        /* Off-screen */
        width: 100%;
        height: 100vh;
        background: rgba(12, 27, 51, 0.98);
        /* Solid dark background */
        z-index: 1000;
        /* Behind toggle/logo */
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        padding-top: 80px;
        /* Space for header */
        display: flex;
        /* Flex to center items if we want, or block */
        flex-direction: column;
        align-items: center;
        /*justify-content: center; */
    }

    .mobile-menu.active {
        right: 0;
        /* Slide in */
    }

    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .mobile-nav-list li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Staggered animation for links */
    .mobile-menu.active .mobile-nav-list li {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu.active .mobile-nav-list li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .mobile-menu.active .mobile-nav-list li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .mobile-menu.active .mobile-nav-list li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .mobile-menu.active .mobile-nav-list li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .mobile-menu.active .mobile-nav-list li:nth-child(5) {
        transition-delay: 0.5s;
    }

    .mobile-menu.active .mobile-nav-list li:nth-child(6) {
        transition-delay: 0.6s;
    }

    .mobile-menu.active .mobile-nav-list li:nth-child(7) {
        transition-delay: 0.7s;
    }

    .mobile-nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: #fff;
        text-decoration: none;
        display: inline-block;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: var(--accent-gold, #d4a953);
    }
}