/* =============================================
   MODERN PROFESSIONAL NAVIGATION ENHANCEMENTS
   Software Company Branding
   ============================================= */

/* Enhanced Logo */
.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand .logo {
    max-height: 45px;
    width: auto;
}

/* Modern Navigation Links */
.navbar-nav .nav-link {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.3s ease;
}

@media (min-width: 992px) {
    .navbar-nav .nav-link:hover::before {
        width: 70%;
    }
}

/* Professional Dropdown Arrows */
.navbar-nav .nav-link.dropdown-toggle::after {
    border-top-color: #3b82f6;
    border-left-color: #3b82f6;
}

/* Enhanced Sticky Navbar */
.navbar.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Mega Menu Improvements */
.dropdown-menu.mega-menu {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 0 0 8px 8px;
}

/* Modern CTA Buttons */
.nav-item.btn-signup .nav-link {
    background: transparent;
    border: 2px solid #3b82f6 !important;
    color: #3b82f6 !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-item.btn-signup .nav-link:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

.nav-item.btn-login .nav-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.nav-item.btn-login .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Language Selector Enhancement */
.nav-item.language .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px !important;
    border: 2px solid #e2e8f0;
    border-radius: 22px;
    transition: all 0.3s ease;
}

.nav-item.language .nav-link:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.nav-item.language .language-code {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Software Company Badge */
.navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #3b82f6 20%,
        #2563eb 50%,
        #3b82f6 80%,
        transparent 100%
    );
    opacity: 0.7;
}

@media (min-width: 992px) {
    .navbar::after {
        display: block;
    }
}

/* Tech Company Accent */
.navbar-nav .nav-item:hover .nav-link {
    color: #3b82f6;
}

/* Professional Contact Link */
.nav-link.nav-contact {
    font-weight: 700;
    position: relative;
}

.nav-link.nav-contact::before {
    content: "●";
    color: #10b981;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Dropdown Item Hover Effects */
.dropdown-menu .dropdown-item:hover {
    background-color: #f1f5f9;
    color: #1e293b;
    padding-left: 20px;
    transition: all 0.2s ease;
}

/* Tech Company Typography */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        font-size: 15px;
    }
}

/* Mobile Menu Enhancements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1.5rem 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid #e2e8f0;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item.btn-signup,
    .nav-item.btn-login {
        margin-top: 1rem;
        border: none !important;
    }

    .nav-item.btn-signup .nav-link,
    .nav-item.btn-login .nav-link {
        text-align: center;
        border-radius: 8px !important;
    }

    .nav-item.language {
        margin-top: 1rem;
    }

    .nav-item.language .nav-link {
        justify-content: center;
    }
}

/* Professional Mega Menu Product/Service Cards */
.mega-menu .item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mega-menu .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Tech Branding: Code-like Accent */
.navbar-brand::before {
    content: "<";
    color: #3b82f6;
    font-weight: 700;
    margin-right: 4px;
    opacity: 0.8;
}

.navbar-brand::after {
    content: "/>";
    color: #3b82f6;
    font-weight: 700;
    margin-left: 4px;
    opacity: 0.8;
}

/* Loading State for Dynamic Menus */
.dropdown-menu:empty::before {
    content: "Loading...";
    display: block;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Accessibility Improvements */
.navbar-nav .nav-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Professional Hover State for All Links */
a {
    transition: color 0.2s ease;
}

/* Smooth Animations */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@media(min-width: 992px) {
    .sub-banner {
        height: 50px !important;
    }
}

/* Prevent nav-link text from breaking into two lines */
.navbar-nav .nav-link {
    white-space: nowrap; /* keep text on one line */
    display: inline-flex; /* align text and icons horizontally */
    align-items: center; /* vertical centering */
}

/* Ensure logo and nav items align properly */
.navbar-brand img.logo {
    max-height: 40px; /* adjust to fit navbar height */
    display: inline-block;
    vertical-align: middle;
}

/* Optional: tighten spacing for signup/login buttons */
.navbar-nav.nav-last .nav-item {
    margin-left: 10px;
}
