/* ====================================
   MODERN DARK NAVIGATION SYSTEM
   ==================================== */

/* Navigation Wrapper */
#navwrap {
    position: relative;
}

/* ====================================
   MOBILE NAVIGATION
   ==================================== */
#navSmallScreens {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(24, 24, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#navSmall_inner_ulWrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: 70px;
}

/* Mobile Logo - Left Side */
#smallNav_image_wrap {
    order: 1;
    margin-right: auto;
}

#small_inner_logoWrap {
    width: 50px;
    height: 50px;
    position: relative;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(215, 25, 32, 0.3);
    transition: all 0.3s ease;
}

#small_inner_logoWrap:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(215, 25, 32, 0.4);
}

#small_nav_logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes logo white */
}

/* Modern Hamburger Menu - Right Side */
.nav_small_liWrap:last-child {
    order: 3;
}

.modern-hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
}

.modern-hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--light-grey);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

.modern-hamburger span:nth-child(1) {
    top: 0px;
}

.modern-hamburger span:nth-child(2) {
    top: 8px;
}

.modern-hamburger span:nth-child(3) {
    top: 16px;
}

/* Hamburger Animation */
.modern-hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
    background: var(--primary-color);
}

.modern-hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -30px;
}

.modern-hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
    background: var(--primary-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(24, 24, 24, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 40px 30px;
    height: 100%;
    overflow-y: auto;
}

.mobile-nav-link {
    display: block;
    color: var(--light-grey);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 20px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    width: 100%;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    padding-left: 15px;
}

/* Mobile Dropdown */
.mobile-dropdown {
    margin-top: 15px;
    padding-left: 20px;
}

.mobile-dropdown a {
    display: block;
    color: var(--medium-grey);
    font-size: 1.1rem;
    padding: 10px 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-dropdown a:hover {
    color: var(--primary-color);
}

/* ====================================
   DESKTOP NAVIGATION
   ==================================== */
#navLargeScreens {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(24, 24, 24, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: none;
}

#nav_inner_ulWrap {
    display: flex;
    align-items: center;
    padding: 0 40px;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Desktop Logo - First Item (Left) */
#largerNav_img_wrap {
    margin-right: 50px;
    order: 1;
}

#inner_logoWrap {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(215, 25, 32, 0.3);
    transition: all 0.3s ease;
}

#inner_logoWrap:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(215, 25, 32, 0.4);
}

#nav_logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes logo white */
}

/* Navigation Links */
#nav_inner_ulWrap li:not(#largerNav_img_wrap) {
    list-style: none;
    margin: 0 25px;
    order: 2;
}

#nav_inner_ulWrap li a {
    color: var(--light-grey);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* #nav_inner_ulWrap li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(215, 25, 32, 0.1), transparent);
    transition: left 0.5s ease;
} */

/* #nav_inner_ulWrap li a:hover::before {
    left: 100%;
} */

#nav_inner_ulWrap li a:hover {
    color: var(--primary-color);
    background: rgba(215, 25, 32, 0.1);
    transform: translateY(-2px);
}

/* Desktop Dropdown */
#dropDown_wrap_li {
    position: relative;
}

#open_dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

#dropdown_nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(24, 24, 24, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

#dropDown_wrap_li:hover #dropdown_nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

#dropdown_nav .dropdownList {
    list-style: none;
    margin: 0;
    padding: 0;
}

#dropdown_nav .dropdownList a {
    display: block;
    color: var(--light-grey);
    padding: 15px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#dropdown_nav .dropdownList:last-child a {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

#dropdown_nav .dropdownList:first-child a {
    border-radius: 10px 10px 0 0;
}

#dropdown_nav .dropdownList a:hover {
    background: rgba(215, 25, 32, 0.1);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Active Link State */
.nav-active {
    color: var(--primary-color) !important;
    background: rgba(215, 25, 32, 0.1) !important;
}

/* Scroll Effect */
.nav-scrolled {
    background: rgba(18, 18, 18, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (min-width: 1200px) {
    #navSmallScreens {
        display: none;
    }
    
    #navLargeScreens {
        display: block;
    }
    
    #nav_inner_ulWrap {
        padding: 0 60px;
    }
    
    #nav_inner_ulWrap li:not(#largerNav_img_wrap) {
        margin: 0 30px;
    }
    
    #largerNav_img_wrap {
        margin-right: 60px;
    }
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Apply animations */
#navLargeScreens,
#navSmallScreens {
    animation: fadeInDown 0.5s ease-out;
}

.mobile-menu-overlay.active {
    animation: slideInRight 0.3s ease-out;
}

/* ====================================
   ACCESSIBILITY
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
#nav_inner_ulWrap li a:focus,
.mobile-nav-link:focus,
.modern-hamburger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #navLargeScreens,
    #navSmallScreens {
        background: #000;
        border-bottom-color: #fff;
    }
    
    #nav_inner_ulWrap li a,
    .mobile-nav-link {
        color: #fff;
    }
}