
/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-transparent {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-transparent.scrolled,
.navbar-transparent.mobile-menu-open {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 60px;
    gap: 15px;
    flex-wrap: nowrap;
}

/* Logo Styling */
.logo-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link:hover {
    opacity: 0.8;
}

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

.logo-image {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Smaller logo when navbar is scrolled */
.navbar-transparent.scrolled .logo-image {
    height: 45px;
}

.nav-cech-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-left: 15px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    order: 2;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--primary-color);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    min-width: fit-content; /* Ensure enough space for content */
    align-items: center; /* Ensure vertical centering */
    flex-wrap: nowrap; /* Prevent wrapping */
}

.nav-menu-left {
    justify-content: center;
    flex: 1;
    order: 1;
    display: flex;
    align-items: center;
    min-width: fit-content;
}

.nav-menu-right {
    justify-content: center;
    flex: 1;
    order: 3;
    display: flex;
    align-items: center;
    min-width: fit-content;
}

/* Dropdown Navigation Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    position: relative;
}

.dropdown-trigger::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-trigger::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 300;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
    width: 100%;
}

.mobile-dropdown-trigger {
    display: block;
    padding: 15px 20px;
    color: #333;
    cursor: pointer;
    font-weight: 300;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    font-size: 20.8px;
}

.mobile-dropdown-trigger::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s ease;
    color: #333;
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    transition: max-height 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-dropdown.active .mobile-dropdown-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
}

.mobile-dropdown-menu .mobile-nav-link {
    padding-left: 40px;
    font-size: var(--font-size-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #333 !important;
    position: relative;
}

.mobile-dropdown-menu .mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 1px;
    background: var(--primary-color);
}



.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 300;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-transparent .nav-link,
.navbar-transparent.scrolled .nav-link {
    color: #333;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 15px;
    right: 15px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 30px);
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
    border-radius: 2px;
}

.navbar-transparent .hamburger span,
.navbar-transparent.scrolled .hamburger span {
    background: #333;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
    left: 0;
}

/* Mobile Sidebar Header */
.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px; /* Match nav-container padding */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 95%; /* Match nav-container max-width */
    margin: 0 auto;
    min-height: 60px; /* Match nav-container min-height */
    position: relative;
}

.mobile-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; /* Match nav-logo flex behavior */
    justify-content: flex-start; /* Match nav-logo justify-content */
}

.mobile-sidebar-logo img {
    height: 50px; /* Match logo-image height on mobile */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.mobile-sidebar-logo .logo-text {
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--primary-color);
    text-transform: uppercase;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: #333;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: absolute;
    right: 20px; /* Match hamburger right position */
    top: 50%;
    transform: translateY(-50%); /* Match hamburger positioning */
}

.mobile-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 90%;
}

.mobile-nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 300;
    font-size: 20.8px; /* 30% bigger from 16px */
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

.mobile-nav-link.active {
    color: var(--primary-color);
    font-weight: 300;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}


/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Medium screen adjustments */
@media (min-width: 769px) and (max-width: 1199px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-container {
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: calc(var(--font-size-base) * 0.9);
    }
    
    .nav-menu-left,
    .nav-menu-right {
        justify-content: center;
    }
}

/* Large screen adjustments */
@media (min-width: 1200px) {
    .nav-menu {
        gap: 30px;
    }
    
    .nav-container {
        max-width: 1200px;
        gap: 30px;
    }
    
    .nav-menu-left,
    .nav-menu-right {
        justify-content: center;
    }
}

/* Ensure text doesn't wrap on any screen size */
@media (min-width: 769px) {
    .nav-link {
        min-width: max-content;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
        justify-content: space-between;
        position: relative;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-logo {
        order: unset;
        flex: 1;
        justify-content: flex-start;
    }
    
    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .nav-cech-logo {
        height: 35px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 12px 15px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .nav-cech-logo {
        height: 30px;
        margin-left: 8px;
    }
    
    .mobile-sidebar {
        width: 100%;
    }
    
    .mobile-sidebar-logo img {
        height: 45px; /* Match mobile header logo */
    }
}