/* Floating Navigation Menu */
.fixed-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    width: auto;
    max-width: 900px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 2.5s ease;
}

@keyframes slideDownNav {
    0% {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0px);
        opacity: 1;
    }
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 60px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-logo span {
    color: #247dff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 400;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #2563eb;
    font-weight: 500;
    background: rgba(37, 99, 235, 0.15);
}

/* 모바일 햄버거 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background-color: #2563eb;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 1px;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* 반응형 플로팅 메뉴 */
@media (max-width: 1024px) {
    .fixed-nav {
        max-width: 800px;
    }
    
    .nav-container {
        padding: 0 25px;
        gap: 30px;
    }
    
    .nav-menu {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .fixed-nav {
        max-width: 90%;
        height: 55px;
        border-radius: 27px;
    }
    
    .nav-container {
        padding: 0 20px;
        gap: 20px;
        position: relative;
    }
    
    .nav-logo {
        height: 55px;
        font-size: 1.2rem;
    }
    
    .nav-menu {
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transform: translateY(-20px) scaleY(0.8);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        transform-origin: top center;
        z-index: 999;
    }
    
    .nav-menu.mobile-open {
        transform: translateY(0) scaleY(1);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 12px 20px;
        display: block;
        margin: 0 20px;
        border-radius: 12px;
        transition: all 0.2s ease;
    }
    
    .nav-link:hover {
        transform: translateY(0);
        background: rgba(37, 99, 235, 0.1);
    }
}

@media (max-width: 480px) {
    .fixed-nav {
        max-width: 95%;
        height: 50px;
        border-radius: 25px;
        top: 15px;
    }
    
    .nav-container {
        padding: 0 15px;
        gap: 15px;
    }
    
    .nav-logo {
        height: 50px;
        font-size: 1.1rem;
    }
    
    .nav-menu {
        top: 60px;
        padding: 15px 0;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 10px 15px;
        margin: 0 15px;
    }
}