/* Enhanced Navbar Styles */
.enhanced-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
}

.enhanced-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
}

.jdm-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.jdm-logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--black);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: var(--red);
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 33, 33, 0.3);
    text-decoration: none;
}

.nav-link.active {
    color: var(--white);
    background: var(--primary-color);
    box-shadow: 0 3px 10px rgba(221, 33, 33, 0.3);
}

.nav-link i {
    margin-right: 8px;
    font-size: 16px;
}

/* Dropdown Styles - Scoped to navbar to avoid conflicts with Bootstrap Select */
.enhanced-navbar .dropdown {
    position: relative;
}

.enhanced-navbar .dropdown-toggle {
    position: relative;
    cursor: pointer;
}

.enhanced-navbar .dropdown-icon {
    margin-left: 8px !important;
    margin-right: 0 !important;
    font-size: 12px !important;
    transition: transform 0.3s ease;
}

.enhanced-navbar .dropdown.show .dropdown-icon {
    transform: rotate(180deg);
}

.enhanced-navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    margin: 8px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    border: 1px solid rgba(221, 33, 33, 0.1);
    display: none;
}

.enhanced-navbar .dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.enhanced-navbar .dropdown-menu li {
    margin: 0;
}

.enhanced-navbar .dropdown-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.enhanced-navbar .dropdown-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.enhanced-navbar .dropdown-link i {
    margin-right: 10px;
    font-size: 14px;
    width: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Desktop - hide hamburger */
@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile Styles */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 90%;
        margin: 0.5rem 0;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 16px;
        border-radius: 10px;
    }

    .navbar-container {
        padding: 0 15px;
    }

    .jdm-logo img {
        height: 45px;
    }

    /* Mobile dropdown fix */
    .enhanced-navbar .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        box-shadow: none;
        background: rgba(240, 240, 240, 0.9);
        margin: 10px 0;
        border-radius: 8px;
    }

    .enhanced-navbar .dropdown.show .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

@media (max-width: 768px) {
    .header-section {
        padding: 40px 0;
        min-height: 400px;
    }

    .banner-header {
        font-size: 1.8rem;
    }

    .banner-container-area {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .footer-basic ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .banner-header {
        font-size: 1.5rem;
    }

    .banner-container-area p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

.footer-basic {
    margin-top: auto;
    padding: 40px 0;
    background-color: #f8f9fa;
    color: #666;
}

.footer-basic ul {
    padding: 0;
    list-style: none;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-basic li {
    padding: 0;
}

.footer-basic ul a {
    text-decoration: none;
    font-size: 15px;
    color: #666;
    transition: color 0.3s ease;
}

.footer-basic ul a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #8f9898;
    margin-top: 20px;
}

.copyright span {
    font-weight: 600;
    color: var(--primary-color);
}