/* Header Consistency Styles */
/* Modern hamburger menu with dropdown design */

.main_header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.navbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
    z-index: 1001;
    order: 1;
    margin-right: auto;
}

.navbar-toggler {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
    order: 3;
    margin-left: auto;
    position: relative;
    min-width: 40px !important;
    min-height: 40px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.navbar-toggler:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.navbar-toggler:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.1);
}

/* Google Translate positioning */
#google_translate_element {
    order: 2;
    margin-left: 20px;
    margin-right: 20px;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Hamburger Menu Button */
.navbar-toggler {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.navbar-toggler-line {
    width: 100% !important;
    height: 4px !important;
    background: #000000 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block !important;
    margin: 2px 0 !important;
}

/* Hamburger Animation */
.navbar-toggler.active .navbar-toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler.active .navbar-toggler-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.navbar-toggler.active .navbar-toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown Menu - Always visible when shown */
.navbar-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-radius: 0 0 15px 15px !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    display: none !important;
    flex-direction: column !important;
    min-height: auto !important;
    width: 100% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    height: 0 !important;
    overflow: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.navbar-nav.show {
    display: flex !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

.navbar-nav .nav-item {
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.navbar-nav .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    margin: 5px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333 !important;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
}

/* Remove active highlighting by default */
.navbar-nav .nav-item.active .nav-link {
    background: transparent !important;
    color: #333 !important;
    box-shadow: none !important;
}

/* Hover effects for all menu items */
.navbar-nav .nav-link:hover {
    background: #8B5CF6 !important;
    color: white !important;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.navbar-nav .nav-link i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.1);
}

/* Special Button Styles */
.navbar-nav .nav-link.contact_us {
    background: transparent !important;
    color: #333 !important;
    margin: 5px 20px;
    box-shadow: none !important;
}

.navbar-nav .nav-link.contact_us:hover {
    background: #8B5CF6 !important;
    color: white !important;
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.navbar-nav .nav-link[href*="customer-login"] {
    background: transparent !important;
    border: 2px solid #8B5CF6;
    color: #8B5CF6 !important;
    font-weight: 600;
    margin: 5px 20px;
}

.navbar-nav .nav-link[href*="customer-login"]:hover {
    background: #8B5CF6 !important;
    color: white !important;
    transform: translateX(5px);
}

/* Google Translate Element Styling */
#google_translate_element .goog-te-gadget {
    font-size: 12px;
    color: #666;
}

#current_lang {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar {
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-toggler {
        order: 3;
        margin-left: auto;
        margin-right: 0;
    }
    
    #google_translate_element {
        order: 2;
        margin-right: 15px;
    }
    
    .navbar-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }
    
    .navbar-nav.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav .nav-item {
        margin: 10px 0;
        width: 80%;
        max-width: 300px;
    }
    
    .navbar-nav .nav-link {
        padding: 20px 30px;
        font-size: 18px;
        font-weight: 600;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link i {
        font-size: 20px;
        margin-right: 15px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 35px;
    }
    
    .navbar-nav .nav-link {
        font-size: 16px;
        padding: 18px 25px;
    }
    
    .navbar-nav .nav-link i {
        margin-right: 12px;
        font-size: 18px;
    }
    
    .navbar-toggler {
        width: 25px;
        height: 25px;
    }
    
    .navbar-toggler-line {
        height: 2px;
    }
}

/* Professional Header Overrides */
.professional-header .navbar {
    padding: 15px 0;
}

.professional-header .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hide any promotional overlays or cards that might interfere */
[class*="promo"], [class*="overlay"], [class*="popup"], [class*="card"] {
    display: none !important;
}

/* Ensure no elements overlap the main content */
.banner-section-outer {
    position: relative;
    z-index: 1;
}

.banner-section {
    position: relative;
    z-index: 2;
}

/* Container and Layout Improvements */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Close button for mobile menu */
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #8B5CF6;
    cursor: pointer;
    z-index: 1001;
}

/* Overlay for mobile menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Force override all conflicting styles */
body .navbar-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-radius: 0 0 15px 15px !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    flex-direction: column !important;
    min-height: auto !important;
    width: 100% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    height: 0 !important;
    overflow: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

body .navbar-nav.show {
    display: flex !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

/* Force hide navigation unless explicitly shown */
.navbar-nav:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    transform: translateY(-100%) !important;
}

/* Ensure show class works */
.navbar-nav.show {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    transform: translateY(0) !important;
}
