/* Card Navigation Styles - Enhanced Clean & Professional */
.card-nav-container {
    position: fixed;
    top: 1.5em;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 750px;
    z-index: 1000;
    box-sizing: border-box;
}

.card-nav {
    display: block;
    height: 64px;
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
    will-change: height;
    transition: all 0.3s ease;
}

.card-nav:hover {
    box-shadow: 
        0 6px 32px rgba(0, 0, 0, 0.08),
        0 3px 12px rgba(0, 0, 0, 0.06);
}

.card-nav.open {
    background: rgba(248, 250, 252, 0.98);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-nav-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 2;
}

.hamburger-menu {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px;
}

.hamburger-menu:hover {
    background: rgba(0, 0, 0, 0.04);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border-radius: 1px;
}

.hamburger-menu.open .hamburger-line:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.logo-container {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.card-nav-cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    height: 36px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.card-nav-cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-nav-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    bottom: 0;
    padding: 12px;
    display: flex;
    align-items: stretch;
    gap: 8px;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.card-nav.open .card-nav-content {
    visibility: visible;
    pointer-events: auto;
}

.nav-card {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 16px 16px;
    gap: 12px;
    user-select: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.25);
}

.nav-card.open {
    border-color: rgba(0, 0, 0, 0.3);
}

.nav-card-label {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.nav-card-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-card-link {
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    padding: 4px 0;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: -0.01em;
}

.nav-card-link:hover {
    opacity: 1;
    transform: translateX(2px);
}

.nav-card-link-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-card-link:hover .nav-card-link-icon {
    transform: translate(1px, -1px);
    opacity: 1;
}

@media (max-width: 768px) {
    .card-nav-container {
        width: 95%;
        top: 1em;
    }

    .card-nav {
        height: 56px;
    }

    .card-nav-top {
        height: 56px;
        padding: 0 20px;
        justify-content: space-between;
    }

    .hamburger-menu {
        order: 2;
        width: 32px;
        height: 32px;
    }

    .logo-container {
        position: static;
        transform: none;
        order: 1;
    }

    .logo {
        font-size: 16px;
    }

    .card-nav-cta-button {
        display: none;
    }

    .card-nav-content {
        top: 56px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 8px;
        justify-content: flex-start;
    }

    .nav-card {
        height: auto;
        min-height: 70px;
        flex: none;
        padding: 16px 14px 12px;
        gap: 8px;
    }

    .nav-card-label {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .nav-card-links {
        gap: 4px;
    }

    .nav-card-link {
        font-size: 12px;
        padding: 2px 0;
    }
}

@media (max-width: 480px) {
    .card-nav-container {
        width: 96%;
    }

    .card-nav-top {
        padding: 0 16px;
    }

    .nav-card {
        padding: 14px 12px 10px;
        min-height: 65px;
    }

    .nav-card-label {
        font-size: 14px;
    }

    .nav-card-link {
        font-size: 11px;
    }
}