nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #031d44;
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
}

.nav-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 512px) {
    .nav-title {
        display: none;
    }
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: #ff006e;
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 1.5rem;
    }
}

.nav-cta {
    background: linear-gradient(135deg, #ff006e, #8338ec);
    color: white;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 0, 110, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 0, 110, 0.4);
}

/* hamburger button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1100;
    padding: 0;
}

.hamburger-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ff006e, #8338ec);
    -webkit-mask-image: url('assets/hamburger-icon.svg');
    mask-image: url('assets/hamburger-icon.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* close X */
.hamburger-close {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    transition: all 0.3s ease;
}
.hamburger-close::before,
.hamburger-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(135deg, #ff006e, #8338ec);
}
.hamburger-close::before { transform: rotate(45deg); }
.hamburger-close::after  { transform: rotate(-45deg); }

nav.menu-open .hamburger-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
nav.menu-open .hamburger-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* dark overlay behind panel */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 29, 68, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

@media (max-width: 1000px) {
    .hamburger { display: flex; }

    .nav-overlay { display: block; }
    nav.menu-open .nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    /* turn nav-links into a panel */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        margin: 0;
        background: #031d44;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        padding: 8rem 2.5rem 2rem;
        gap: 2rem;
        z-index: 1050;
        transition: right 0.4s ease;
    }

    nav.menu-open .nav-links {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }
}