/* ============================================
   NAVIGATION.CSS - ניווט ותפריט
   ============================================ */

/* Main Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass-strong);
    box-shadow: var(--shadow-glass);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container:hover {
    background: var(--surface-glass-hover);
    border-color: var(--border-glass-strong);
    box-shadow: var(--shadow-glass);
}

/* Logo */
.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(96, 165, 250, 0.8));
}

.logo i {
    background: linear-gradient(135deg, #60a5fa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
        margin: 0 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu.active {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-glass);
        border-radius: 20px;
        flex-direction: column;
        padding: 1.5rem;
        margin-top: 0.5rem;
        gap: 0;
        box-shadow: var(--shadow-glass);
    }
    
    .nav-menu.active li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .nav-menu.active a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .nav-menu.active a:last-child {
        border-bottom: none;
    }
    
        .mobile-menu.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background: #60a5fa;
    }

    .mobile-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background: #60a5fa;
    }
}