/* ===== Base Navbar ===== */
.navbar {
    background-color: transparent !important;
    transition: all 0.5s ease-in-out;
    padding: 1rem 0;
}

.nav-inner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

/* ===== Scrolled State ===== */
.navbar.with-bg .nav-inner-container {
    max-width: 80%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 50px;
    padding: 0.6rem 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.theme-dark .navbar.with-bg .nav-inner-container {
    background-color: #1e1e1e;
}

/* ===== Menu Styling ===== */
.menu-container {
    display: flex;
    gap: 0.8rem;
    background-color: #f5f5f5;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.5s ease;
}
.theme-dark .menu-container {
    background-color: #2a2a2a;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    font-size: clamp(0.85rem, 0.9vw + 0.2rem, 1rem);
    transition: color 0.3s ease;
}
.navbar .nav-link:hover {
    color: #007bff;
}

/* ===== Contact Button ===== */
#contactBtn {
    padding: 0.4rem 1rem;
    font-weight: 500;
    font-size: clamp(0.8rem, 0.85vw + 0.2rem, 1rem);
    /* background: #f5f5f5; */
}

/* ===== Dark Mode Button ===== */
#darkModeToggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Tablet & Up (768px+) ===== */
@media (min-width: 768px) {
    .navbar-nav {
        justify-content: center;
    }
    .navbar-toggler {
        display: none !important;
    }
}

/* ===== Tablet Range (768px–991px) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Keep menu inline, no burger */
   .theme-light .navbar{
        background-color: #ffffff !important;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
    }
    .menu-container {
        gap: 0.6rem;
        padding: 0.4rem 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-item {
        margin: 0.25rem 0.5rem;
    }
    #contactBtn {
        padding: 0.35rem 0.9rem;
    }
}

/* ===== Small Laptops (992px–1200px) ===== */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar.with-bg .nav-inner-container {
        max-width: 90%;
        padding: 0.5rem 0.8rem;
    }
    .menu-container {
        gap: 0.6rem;
        padding: 0.4rem 1rem;
    }
    #contactBtn {
        padding: 0.35rem 0.9rem;
    }
}

/* ===== Mobile (<768px) ===== */
@media (max-width: 767.98px) {
    .navbar {
        background-color: #fff !important;
    }
    .menu-container {
        flex-direction: column;
        gap: 0.5rem;
        border-radius: 15px;
    }
}
