/* ==========================
   NAVBAR
   ========================== */

nav {
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(4, 10, 22, 0.65);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo i {
    font-size: 34px;
    color: var(--cyan);
}

.logo h2 {
    font-weight: 700;
}

.logo span {
    color: var(--cyan);
}

nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #dfe7ff;
    transition: .3s;
    font-size: 15px;
}

nav a:hover {
    color: var(--cyan);
}

.buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.buttons a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.outline {
    height: 45px;
    padding: 0 25px;
    background: none;
    border: 1px solid var(--cyan);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: .35s;
    font-size: 14px;
    font-weight: 500;
}

.outline:hover {
    background: var(--cyan);
    color: black;
}

.solid {
    height: 45px;
    padding: 0 28px;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: white;
    box-shadow: 0 0 25px rgba(59, 130, 246, .35);
    transition: .35s;
    font-size: 14px;
}

.solid:hover {
    transform: translateY(-3px);
}

/* ==========================
   HAMBURGER MENU
   ========================== */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: white;
    border-radius: 4px;
    transition: all .3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150;
    opacity: 0;
    transition: opacity .3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    z-index: 160;
    padding: 100px 2rem 2rem;
    transition: right .3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.mobile-menu ul li a {
    display: block;
    padding: 12px 16px;
    color: var(--light);
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all .3s ease;
}

.mobile-menu ul li a:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--cyan);
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.mobile-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

body.menu-open {
    overflow: hidden;
}

/* ==========================
   RESPONSIVE - Desktop (901px+)
   ========================== */
@media (min-width: 901px) {
    .hamburger,
    .mobile-menu,
    .mobile-menu.active,
    .mobile-menu-overlay,
    .mobile-menu-overlay.active {
        display: none !important;
    }

    nav ul {
        display: flex !important;
        position: static !important;
        width: auto !important;
        order: 0 !important;
        flex-wrap: nowrap !important;
    }

    .buttons {
        display: flex !important;
    }
}

/* ==========================
   RESPONSIVE - Mobile (900px and below)
   ========================== */
@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
    }

    .buttons {
        display: none;
    }

    nav {
        justify-content: space-between;
        height: auto;
        padding: 18px 5%;
    }
}