.card-nav-container {
    font-family: 'DM Sans', sans-serif;
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    z-index: 1000;
    box-sizing: border-box;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-nav-container.scrolled {
    top: 0.75rem;
}

.card-nav {
    display: block;
    height: 64px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    will-change: height, background-color, border-color;
    transition:
        background-color 0.4s ease,
        border-color 0.4s ease,
        height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.4s ease;
}

.card-nav-container.scrolled .card-nav {
    height: 56px;
    background-color: rgba(10, 11, 16, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
}

.card-nav.open {
    background-color: rgba(10, 10, 15, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-nav-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 2;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.card-nav-container.scrolled .card-nav-top {
    height: 56px;
    padding: 0 1.25rem;
}

.hamburger-menu {
    height: 40px;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
    transition: opacity 0.2s ease;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

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

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

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

.logo {
    height: 32px;
    width: auto;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-nav-container.scrolled .logo {
    height: 28px;
}

.card-nav-cta-button {
    background: linear-gradient(135deg, #2F6BFF, #8B5CF6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0 1.25rem;
    height: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, height 0.4s ease, border-radius 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.card-nav-container.scrolled .card-nav-cta-button {
    height: 36px;
    border-radius: 0.6rem;
}

.card-nav-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3);
}

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

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

.nav-card {
    height: 100%;
    flex: 1 1 0;
    min-width: 0;
    border-radius: 0.8rem;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.nav-card-label {
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.nav-card-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-card-link {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-card-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-card-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.nav-card-link:hover svg {
    opacity: 1;
    transform: rotate(45deg);
}

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

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

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

    .card-nav-content {
        flex-direction: column;
        padding: 0.75rem;
        gap: 10px;
        top: 60px;
    }

    .nav-card {
        height: auto;
        padding: 1rem;
    }

    .nav-card-label {
        font-size: 1.1rem;
    }
}