/* Navigation - Apple Style */
nav {
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: background-color, backdrop-filter;
}
nav.scrolled {
    background: rgba(251, 251, 253, 0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.25rem;
    max-width: 1440px;
    margin: 0 auto;
    height: 44px;
}
.logo {
    font-size: 1.0625rem;
    font-weight: 400;
    color: #1d1d1f;
    letter-spacing: -0.011em;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.logo:hover {
    opacity: 0.7;
}
.logo-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #1d1d1f;
    stroke-width: 1.5;
    opacity: 0.9;
}
.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-links li {
    position: relative;
}
.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: -0.011em;
    transition: opacity 0.2s ease;
    position: relative;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    opacity: 0.88;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.nav-links a:hover {
    opacity: 1;
    color: #1d1d1f;
}
.nav-links a.active {
    opacity: 1;
    color: #1d1d1f;
}
/* Language Switcher in Nav - styles are in language-switcher.css */
/* Mobile Menu Toggle - Apple Style */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3.5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}
.menu-toggle:hover {
    opacity: 0.7;
}
.menu-toggle span {
    width: 17px;
    height: 1px;
    background: #1d1d1f;
    border-radius: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px);
}
@media (max-width: 1068px) {
    .nav-links {
        position: static;
        transform: none;
    }
    nav .container {
        justify-content: space-between;
    }
}
@media (max-width: 768px) {
    nav .container {
        padding: 0 1.375rem;
        height: 44px;
    }
    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1003;
    }
    
    /* Mobile menu overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1001;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    
    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(251, 251, 253, 0.98);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        flex-direction: column;
        align-items: flex-start;
        padding: 4.5rem 1.5rem 2rem;
        gap: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
        transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-right: 0.5px solid rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1002;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        opacity: 1;
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }
    .nav-links a:hover {
        background: rgba(0, 0, 0, 0.04);
    }
    .logo {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    nav .container {
        padding: 0 1rem;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
    }

    .menu-toggle span {
        width: 18px;
    }

    .nav-links {
        width: 90%;
        max-width: 280px;
        padding: 3.5rem 1.25rem 2rem;
        left: -100%;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        padding: 0.875rem 1rem;
        font-size: 0.8125rem;
        min-height: 44px; /* Touch-friendly */
        display: flex;
        align-items: center;
    }

    .logo {
        font-size: 0.95rem;
    }
}
