/* RESET BOOTSTRAP NAVBAR STYLES */
nav.navbar.navbar {
    /* Remove all Bootstrap defaults */
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
    flex-wrap: nowrap !important;
}

/* Override Bootstrap container styles */
nav.navbar#navbar .nav-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}

/* Desktop Navbar */
nav.navbar#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(42, 42, 42, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0px solid rgba(77, 208, 196, 0.2);
    padding: 15px 50px;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.navbar#navbar.scrolled {
    background: rgba(42, 42, 42, 0.3);
    padding: 10px 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

nav.navbar#navbar .nav-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

/* Desktop - 3 Column Layout: Logo Left | Pages Center | Language Right */
nav.navbar#navbar .nav-desktop {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
    margin-left: 10px;
    margin-right: 10px;
}

/* DEBUG: Force proper width distribution */
nav.navbar#navbar .nav-desktop > * {
    flex-shrink: 0;
}

/* Logo on Left */
nav.navbar#navbar .nav-logo-center {
    transition: all 0.3s ease;
    flex: 0 0 auto !important;
    order: 1;
}

nav.navbar#navbar .nav-logo-center img {
    height: 45px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}



nav.navbar#navbar .nav-logo-center img:hover {
    filter: drop-shadow(0 0 20px rgba(77, 208, 196, 0.6));
    transform: scale(1.05);
}

/* Hide left menu (not used) */
nav.navbar#navbar .nav-menu-left {
    display: none !important;
}

/* Center Pages Container - THIS IS THE KEY */
nav.navbar#navbar .nav-right-container {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 2;
    min-width: 0 !important;
}

/* All Pages in Center */
nav.navbar#navbar .nav-right-container .nav-menu-right {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    gap: 35px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
}

nav.navbar#navbar .nav-menu-right li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Language Button on Right */
nav.navbar#navbar .nav-lang-wrapper {
    display: flex !important;
    flex: 0 0 auto !important;
    order: 3;
}

/* Menu Links */
nav.navbar#navbar .nav-menu-right a {
    color: white !important;
    text-decoration: none !important;
    font-size: 1.15rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    display: block;
}

nav.navbar#navbar .nav-menu-right a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4dd0c4;
    transition: width 0.3s ease;
}

nav.navbar#navbar .nav-menu-right a:hover {
    color: #4dd0c4 !important;
}

nav.navbar#navbar .nav-menu-right a:hover::after {
    width: 100%;
}

/* Language Button */
nav.navbar#navbar .lang-btn {
    padding: 8px 20px;
    border: 2px solid #4dd0c4;
    border-radius: 25px;
    background: transparent;
    color: #4dd0c4;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
}

nav.navbar#navbar .lang-btn:hover {
    background: #4dd0c4;
    color: #2a2a2a;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(77, 208, 196, 0.4);
}

/* Mobile Elements - Hidden on Desktop */
nav.navbar#navbar .nav-mobile,
.fullscreen-menu {
    display: none;
}

/* Mobile Navbar */
@media (max-width: 1023px) {
    nav.navbar#navbar {
        padding: 15px 20px;
    }

    nav.navbar#navbar.scrolled {
        padding: 12px 20px;
    }

    /* Hide Desktop Layout */
    nav.navbar#navbar .nav-desktop {
        display: none !important;
    }

    /* Show Mobile Layout */
    nav.navbar#navbar .nav-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100%;
        margin-left: 10px;
        margin-right: 10px;
    }

    /* Mobile Logo - Full Logo with Text */
    nav.navbar#navbar .nav-logo-mobile img {
        height: 45px;
        transition: all 0.3s ease;
    }

    nav.navbar#navbar.scrolled .nav-logo-mobile img {
        height: 45px;
    }

    /* Hamburger Menu */
    .hamburger {
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: #4dd0c4;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation to X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Fullscreen Overlay */
    .fullscreen-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 80px 0 40px 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }

    .fullscreen-menu.active {
        opacity: 1;
        visibility: visible;
    }

    /* Overlay Logo at Top */
    .overlay-logo {
        margin-top: 20px;
        opacity: 0;
        transform: translateY(-30px);
        transition: all 0.5s ease 0.1s;
    }

    .fullscreen-menu.active .overlay-logo {
        opacity: 1;
        transform: translateY(0);
    }

    .overlay-logo img {
        height: 80px;
        filter: drop-shadow(0 0 30px rgba(77, 208, 196, 0.3));
    }

    /* Menu Items in Center */
    .overlay-menu {
        list-style: none;
        text-align: center;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .overlay-menu li {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.4s ease;
    }

    .fullscreen-menu.active .overlay-menu li {
        opacity: 1;
        transform: translateY(0);
    }

    .fullscreen-menu.active .overlay-menu li:nth-child(1) { transition-delay: 0.15s; }
    .fullscreen-menu.active .overlay-menu li:nth-child(2) { transition-delay: 0.2s; }
    .fullscreen-menu.active .overlay-menu li:nth-child(3) { transition-delay: 0.25s; }
    .fullscreen-menu.active .overlay-menu li:nth-child(4) { transition-delay: 0.3s; }
    .fullscreen-menu.active .overlay-menu li:nth-child(5) { transition-delay: 0.35s; }
    .fullscreen-menu.active .overlay-menu li:nth-child(6) { transition-delay: 0.4s; }

    .overlay-menu a {
        color: white;
        text-decoration: none;
        font-size: 2rem;
        font-weight: 600;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .overlay-menu a:hover {
        color: #4dd0c4;
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(77, 208, 196, 0.5);
    }

    /* Language Button at Bottom */
    .overlay-lang {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease 0.45s;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .fullscreen-menu.active .overlay-lang {
        opacity: 1;
        transform: translateY(0);
    }

    .overlay-lang .lang-btn {
        font-size: 1.1rem;
        padding: 12px 30px;
        border: 2px solid #4dd0c4;
        border-radius: 25px;
        background: transparent;
        color: #4dd0c4;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 0 !important;
    }
    }

    .lang-btn:hover {
    background: #4dd0c4;
    color: #2a2a2a;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(77, 208, 196, 0.4);
}

