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

nav {
    width: 100%;
    max-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);
    box-sizing: border-box;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--cyan);
    color: #06111f;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

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

.logo-text {
    font-weight: 700;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

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

nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

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

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

.nav-dropdown {
    position: relative;
}

.nav-dropdown > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: #dfe7ff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    padding: 0;
    transition: color .25s ease;
}

.nav-dropdown > button:hover,
.nav-dropdown:focus-within > button,
.nav-dropdown:hover > button {
    color: var(--cyan);
}

.nav-dropdown > button i {
    font-size: 10px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: 190px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #0b1427;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 9px;
    color: var(--light);
    font-weight: 700;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, .07);
    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;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
    padding: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    border-radius: 8px;
}

.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: 92px 2rem 2rem;
    transition: right .3s ease;
    overflow-y: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
}

.mobile-menu-close i {
    font-size: 20px;
    width: 22px;
    min-width: 22px;
}

.mobile-menu-brand {
    position: absolute;
    top: 25px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.mobile-menu-brand i,
.mobile-menu-brand span span {
    color: var(--cyan);
}

.mobile-menu-brand i {
    width: 28px;
    min-width: 28px;
}

.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);
}

.user-menu {
    position: relative;
}

.user-menu summary {
    min-height: 44px;
    max-width: 210px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid rgba(34, 211, 238, .5);
    border-radius: 50px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-menu summary > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu summary > .fa-circle-user {
    color: var(--cyan);
    font-size: 18px;
}

.user-menu-chevron {
    margin-left: auto;
    font-size: 11px;
    transition: transform .2s ease;
}

.user-menu[open] .user-menu-chevron {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #0b1427;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .4);
}

.user-menu-heading {
    display: flex;
    flex-direction: column;
    padding: 9px 11px 11px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 5px;
}

.user-menu-heading strong {
    overflow-wrap: anywhere;
}

.user-menu-heading small {
    color: var(--cyan);
}

.user-menu .user-menu-dropdown a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 9px;
    color: var(--light);
}

.user-menu .user-menu-dropdown a:hover {
    background: rgba(255, 255, 255, .07);
    color: var(--cyan);
}

.user-menu .user-menu-dropdown .user-menu-logout {
    margin-top: 5px;
    border-top: 1px solid var(--border);
    color: #fca5a5;
}

.user-menu-mobile {
    width: 100%;
}

.user-menu-mobile summary {
    max-width: none;
    width: 100%;
    justify-content: flex-start;
}

.user-menu-mobile .user-menu-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
}

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

body.menu-open {
    overflow: hidden;
}

/* ==========================
   RESPONSIVE - Desktop (1025px+)
   ========================== */
@media (min-width: 1025px) {
    .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 - Tablet + Mobile (1024px and below)
   ========================== */
@media (max-width: 1200px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
    }

    .buttons {
        display: none;
    }

    nav {
        justify-content: space-between;
        height: 78px;
        padding: 18px 5%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }

    .logo {
        min-width: 0;
        max-width: calc(100% - 56px);
    }

    .logo-text {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu {
        display: none;
        width: min(300px, 85vw);
    }

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

@media (max-width: 560px) {
    nav {
        padding: 14px 4%;
        height: 70px;
    }

    .logo i {
        font-size: 28px;
        width: 32px;
        min-width: 32px;
    }

    .logo-text {
        font-size: 18px;
    }
}
