.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 30px;
    background-color: #000000;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

/* ---------- Logo ---------- */

.navbar .navlogo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .navlogo .img img {
    height: 70px;
    width: auto;
    display: block;
}

.vyronix2 {
    color: #ffffff;
    text-align: center;
    font-family: "Orbitron";
    font-size: 22px;
    line-height: 24px;
    letter-spacing: 2px;
    font-weight: 700;
    position: static;
}

.labs2 {
    background: linear-gradient(90deg,
            rgba(96, 165, 250, 1) 0%,
            rgba(168, 85, 247, 1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-family: "Orbitron", sans-serif;
    font-size: 18px;
    line-height: 16px;
    letter-spacing: 6px;
    font-weight: 600;
    position: static;
    margin-top: 2px;
}

/* ---------- Nav links ---------- */

.Navpages ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.Navpages ul li a {
    display: inline-block;
    text-decoration: none;
    color: #8b93a7;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.Navpages ul li a:hover {
    color: #ffffff;
}

.Navpages ul li.active a {
    color: #ffffff;
    border: 1px solid #7c3aed;
    background: rgba(124, 58, 237, 0.08);
}

/* ---------- Join button ---------- */

.JoiningButton button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #7c3aed;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.JoiningButton button:hover {
    background: rgba(124, 58, 237, 0.1);
}

.JoiningButton button img {
    height: 16px;
    width: auto;
}

.JoiningButton button h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hamburger img {
    height: 40px;
}

/* ---------- Drawer Styles ---------- */

/* Overlay */
.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: -320px;
    /* Hidden off-screen */
    width: 320px;
    height: 100%;
    background: #0a0e2b;
    border-right: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    overflow-y: auto;
}

.drawer.open {
    left: 0;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-logo img {
    height: 36px;
    width: auto;
}

.drawer-logo span {
    color: #ffffff;
    font-family: "Orbitron", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.drawer-close {
    background: none;
    border: none;
    color: #9aa3b8;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.drawer-close:hover {
    color: #ffffff;
}

/* Drawer Navigation */
.drawer-nav {
    list-style: none;
    flex: 1;
    padding: 0;
}

.drawer-nav li {
    margin-bottom: 4px;
}

.drawer-nav li a {
    display: block;
    text-decoration: none;
    color: #8b93a7;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.drawer-nav li a:hover {
    color: #ffffff;
    background: rgba(124, 58, 237, 0.08);
}

.drawer-nav li.active a {
    color: #ffffff;
    background: rgba(124, 58, 237, 0.12);
    border-left: 3px solid #7c3aed;
}

/* Drawer Footer */
.drawer-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(90deg, #7c3aed, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-bottom: 16px;
}

.drawer-join-btn img {
    height: 16px;
    width: auto;
}

.drawer-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.drawer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.drawer-social a:hover {
    background: rgba(124, 58, 237, 0.2);
}

.drawer-social a img {
    width: 16px;
    height: 16px;
}

/* ---------- Drawer: Explore Vyronix list (shown by default) ---------- */

.drawer-explore-nav {
    list-style: none;
    padding: 0;
}

.explore-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    margin-bottom: 8px;
}

.explore-label .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a855f7;
}

.drawer-explore-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #8b93a7;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.drawer-explore-nav li a img {
    width: 18px;
    height: 18px;
}

.drawer-explore-nav li a:hover {
    color: #ffffff;
    background: rgba(124, 58, 237, 0.08);
}

.drawer-explore-nav li.active a {
    color: #ffffff;
    background: #7c3aed;
}

/* ---------- Drawer: page-link list hidden until Navpages is hidden ---------- */

.drawer-nav {
    display: none;
}

/* footer */
.footer-bottom {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 24px;
    padding: 40px 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-tagline {
    color: #9aa3b8;
    font-size: 17px;
    line-height: 1.6;
    max-width: 220px;
}

.footer-links-col h4,
.footer-follow-col h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col li {
    margin-bottom: 12px;
}

.footer-links-col a {
    color: #9aa3b8;
    font-size: 15px;
    text-decoration: none;
}

.footer-links-col a:hover {
    color: #ffffff;
}

.footer-follow-col .social-icons {
    display: flex;
    gap: 10px;
}

.footer-follow-col .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.footer-follow-col .social-icons a img {
    width: 14px;
    height: 14px;
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright p {
    color: #6b7280;
    font-size: 15px;
}

.footer-copyright-links {
    display: flex;
    gap: 24px;
}

.footer-copyright-links a {
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
}

.footer-copyright-links a:hover {
    color: #9aa3b8;
}


@media (max-width: 1220px) {

    /* ---------- Navbar: shrink before it stacks at 1024px ---------- */
    .navbar {
        padding: 0 20px;
    }

    .Navpages ul {
        gap: 2px;
    }

    .Navpages ul li a {
        padding: 8px 10px;
        font-size: 12px;
    }

    .JoiningButton button {
        padding: 8px 14px;
    }

    .JoiningButton button h3 {
        font-size: 12px;
    }
}

/* Tablets (landscape) */
@media (max-width: 1024px) {

    /* ---------- Navbar: stacked column ---------- */
    .navbar {
        height: auto;
        gap: 16px;
        padding: 20px;
    }

    .navbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .Navpages,
    .JoiningButton {
        margin: auto;
    }

    .navlogo {
        grid-row: 1;
        grid-column: 1/2;
    }

    .Navpages {
        grid-row: 2;
        grid-column: 1/3;
    }

    .JoiningButton {
        grid-row: 3;
        grid-column: 1/3;
    }

    .hamburger {
        margin-left: auto;
    }

    .footer-bottom {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 10px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}

/* Tablets (portrait) */
@media (max-width: 768px) {

    /* ---------- Navbar: back to row, links hidden ---------- */
    .navbar {
        display: flex;
        flex-direction: row;
        height: 72px;
        padding: 0 20px;
        justify-content: center;
    }

    .navlogo {
        margin-right: auto;
    }

    .Navpages {
        display: none;
    }

    .JoiningButton {
        margin: 0;
        margin-left: auto;
    }

    .JoiningButton button {
        padding: 20px;
        border: 1px solid #7c3aed;
        background: transparent;
        border-radius: 8px;
    }

    .hamburger {
        margin: 0;
        display: block;
        order: 3;
        cursor: pointer;
        padding: 0px;
    }

    .hamburger img {
        height: 40px;
    }

    .drawer-nav {
        display: block;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 40px;
    }

    .footer-copyright-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Mobile */
@media (max-width: 480px) {

    .navbar {
        height: 60px;
    }

    .navbar .navlogo .img img {
        height: 50px;
        width: auto;
        display: block;
    }

    .JoiningButton button h3 {
        display: none;
    }

    /* ---------- Footer ---------- */
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 20px;
    }

    .footer-copyright {
        padding: 24px 20px;
    }
}