/* Header/Navigation Styles */

:root {
    --purple: #5B2EFF;
    --indigo: #3B1CFF;
    --neon-blue: #00CFFF;
    --dark-bg: #0E0F1A;
    --dark-secondary: #16172D;
    --dark-tertiary: #1F2141;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ===== NAV BASE ===== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(14, 15, 26, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    padding: 0 50px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(91, 46, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #5B2EFF, #00CFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Desktop Links */
.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hide drawer-only items on desktop */
.drawer-top,
.drawer-cta-wrap {
    display: none;
}

.nav-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i {
    display: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5B2EFF, #00CFFF);
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #00CFFF;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Right side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-cta-btn {
    background: linear-gradient(135deg, #5B2EFF, #3B1CFF);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(91, 46, 255, 0.3);
    white-space: nowrap;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 207, 255, 0.5);
}

.nav-login-btn {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-login-btn:hover {
    color: var(--neon-blue);
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(91, 46, 255, 0.15);
    border: 1px solid rgba(91, 46, 255, 0.4);
    border-radius: 12px;
    cursor: pointer;
    padding: 9px;
    transition: background 0.3s, box-shadow 0.3s;
}

.hamburger:hover {
    background: rgba(91, 46, 255, 0.3);
    box-shadow: 0 0 15px rgba(91, 46, 255, 0.3);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #00CFFF;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== OVERLAY ===== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.35s;
}

.nav-overlay.visible {
    display: block;
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    #main-nav {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta-btn {
        display: none;
    }

    /* ---- MOBILE DRAWER ---- */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        height: 100vh;
        background: linear-gradient(180deg, rgba(18, 14, 40, 0.99), rgba(14, 15, 26, 0.99));
        border-left: 1px solid rgba(91, 46, 255, 0.25);
        flex-direction: column;
        gap: 0;
        padding: 0 0 30px;
        z-index: 9998;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
        overflow-y: auto;
        overflow-x: hidden;
        align-items: stretch;
    }

    .nav-links.open {
        right: 0;
    }

    /* Drawer header */
    .drawer-top {
        display: flex !important;
        align-items: center;
    }

    .drawer-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 18px;
        font-weight: 700;
        padding: 28px 30px 24px;
        background: linear-gradient(135deg, #5B2EFF, #00CFFF);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        border-bottom: 1px solid rgba(91, 46, 255, 0.15);
        width: 100%;
    }

    /* Nav links inside drawer */
    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 20px 30px;
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        text-align: center;
    }

    .nav-links a i {
        display: inline-block !important;
        font-size: 20px;
        background: linear-gradient(135deg, #5B2EFF, #00CFFF);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 5px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(91, 46, 255, 0.12);
        color: #00CFFF;
        transform: scale(1.02);
    }

    /* Drawer CTA */
    .drawer-cta-wrap {
        display: flex !important;
        justify-content: center;
        padding: 30px 30px 10px;
        margin-top: auto;
    }

    .drawer-cta {
        background: linear-gradient(135deg, #5B2EFF, #00CFFF);
        color: #fff;
        border: none;
        border-radius: 30px;
        padding: 14px 36px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 8px 25px rgba(91, 46, 255, 0.4);
        transition: box-shadow 0.3s, transform 0.2s;
    }
}

@media (max-width: 400px) {
    .nav-logo {
        font-size: 18px;
    }
}
