/* Essential Navigation Variables */
:root {
    --header-height: clamp(60px, 8vh, 80px);
    --nav-font-size: clamp(13px, 1vw, 14px);
    --logo-font-size: clamp(20px, 2vw, 23px);
}

/* Header and Logo */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: var(--logo-font-size);
    font-weight: 600;
    color: #000;
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.69px;
    pointer-events: auto;
    position: absolute;
    left: 24px;
    top: 22px;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* Main Navigation */
.main-nav {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.73);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    border-radius: 100px;
    padding: clamp(4px, 0.5vw, 6px);
    border: 1px solid #D2D2D2;
    box-shadow: 
        0px 2px 12px -1px rgba(0, 0, 0, 0.08),
        0px 1px 1px 0px rgba(255, 255, 255, 0.2) inset;
    gap: clamp(4px, 1vw, 8px);
    user-select: none;
    -webkit-user-select: none;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: var(--nav-font-size);
    font-weight: 500;
    color: #888888;
    text-decoration: none;
    padding: 8px clamp(20px, 2vw, 28px);
    border-radius: 100px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #000000;
}

.nav-link.active {
    color: #000000;
    background: #F2F2F2;
    box-shadow: 
        0px 2px 4px rgba(0, 0, 0, 0.06),
        0px 1px 2px rgba(0, 0, 0, 0.04),
        0px 1px 1px rgba(255, 255, 255, 0.3) inset;
}

/* Projects Dropdown */
.nav-container .projects-section {
    position: relative;
}

.nav-container .projects-toggle {
    padding: 8px clamp(20px, 2vw, 28px);
    color: #888888;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-container .projects-toggle:hover {
    color: #000000;
}

.nav-container .projects-toggle.active {
    color: #000000;
    background: #F2F2F2;
    box-shadow: 
        0px 2px 4px rgba(0, 0, 0, 0.06),
        0px 1px 2px rgba(0, 0, 0, 0.04),
        0px 1px 1px rgba(255, 255, 255, 0.3) inset;
    border-radius: 100px;
}

.nav-container .projects-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 12px;
    min-width: 220px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 30;
}

.nav-container .projects-section:hover .projects-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-container .project-item {
    position: relative;
    display: block;
    padding: 14px 18px;
    padding-left: 24px;
    color: #666666;
    text-decoration: none;
    font-size: var(--nav-font-size);
    transition: color 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
}

.nav-container .project-item:hover {
    color: #000000;
}

.nav-container .project-item.active {
    color: #000000;
    background: none;
}

.nav-container .project-item.active .current-page-dot {
    width: 6px;
    height: 6px;
    background-color: #FF4141;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 80%);
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 100px 40px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 32px;
    visibility: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav .nav-link {
    font-size: 18px;
    padding: 0;
    background: none;
    border-radius: 0;
}

.mobile-nav .projects-section {
    margin: 0;
    padding: 0;
}

.mobile-nav .projects-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    color: #888888;
    margin-bottom: 8px;
}

.mobile-nav .projects-toggle::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #888;
    border-bottom: 1.5px solid #888;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.mobile-nav .projects-toggle.active::after {
    transform: rotate(-135deg);
}

.mobile-nav .projects-dropdown {
    display: none;
    padding-left: 24px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav .projects-dropdown.active {
    display: block;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 80;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .logo {
        font-size: 1.5rem;
        left: 16px;
        top: 16px;
    }
    
    .mobile-nav {
        display: block;
    }
} 