/* ========================================================== */
/* CLEAN HEADER NAVIGATION - NO EXTRA BOXES                  */
/* ========================================================== */

/* Desktop Navigation Styles */
.elegant-nav {
    display: flex;
    align-items: center;
}

.nav-list, .elegant-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item, .elegant-nav li {
    position: relative;
}

.nav-link, .elegant-nav a {
    display: block;
    padding: 8px 16px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: -0.01em;
}

.nav-link:hover, .elegant-nav a:hover {
    color: #2d3748;
    background: rgba(74, 85, 104, 0.08);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
}

.mobile-toggle:hover {
    background: rgba(74, 85, 104, 0.08);
    border-radius: 6px;
}

.toggle-line {
    width: 18px;
    height: 2px;
    background: #4a5568;
    border-radius: 1px;
    margin: 2px 0;
    transition: all 0.25s ease;
}

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

.mobile-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

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

/* ========================================================== */
/* MOBILE RESPONSIVE DESIGN                                  */
/* ========================================================== */

@media (max-width: 768px) {
    /* Show mobile toggle */
    .mobile-toggle {
        display: flex;
        z-index: 1002;
    }
    
    /* Mobile dropdown nav */
    .elegant-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 1001;
        padding: 0;
    }
    
    .elegant-nav.mobile-open {
        max-height: 400px;
        opacity: 1;
        padding: 20px;
    }
    
    .nav-list, .elegant-nav ul {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .nav-item, .elegant-nav li {
        width: 100%;
    }
    
    .nav-link, .elegant-nav a {
        padding: 12px 16px;
        font-size: 1rem;
        background: none;
        border: none;
        border-radius: 6px;
        color: #4a5568;
        margin-bottom: 4px;
        width: 100%;
        text-align: left;
    }
    
    .nav-link:hover, .elegant-nav a:hover {
        background: rgba(74, 85, 104, 0.08);
        color: #2d3748;
        transform: none;
    }
}

/* ========================================================== */
/* MOBILE OVERLAY (Optional Background Blur)                 */
/* ========================================================== */

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================================== */
/* RESPONSIVE BREAKPOINTS                                     */
/* ========================================================== */

@media (max-width: 480px) {
    .elegant-nav {
        width: 100%;
    }
    
    .nav-link, .elegant-nav a {
        font-size: 1rem;
        padding: 14px 16px;
    }
}