html {
    font-size: 16px;
    overflow-y: scroll;
}

#app-root {
    min-height: 80vh;
}

:root {
    --bg-color: #0c0c0e;
    --text-color: #ffffff;
    --accent-color: #5865f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 100%;
    max-width: 85.625rem;
    box-sizing: border-box;
    z-index: 1000;
    backface-visibility: hidden;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
    gap: 6.25rem;
}

.logo {
    height: 1.75rem;
    width: auto;
}

.header-right {
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #efefef;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: color 0.2s ease, opacity 0.2s ease;
    height: 2.25rem;
}

.nav-link:hover {
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.65;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.social-link:hover {
    opacity: 1;
}

.github-icon {
    width: 1.25rem;
    height: 1.25rem;
    filter: invert(1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0;
    color: #efefef;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
    height: 2.25rem;
    font-family: inherit;
}

.nav-dropdown:hover .dropdown-trigger,
.dropdown-trigger:hover {
    opacity: 0.8;
}

.chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
}

.nav-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: -14px;
    width: 17.5rem;
    background: rgba(12, 12, 14, 0.95);
    backdrop-filter: blur(1rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.875rem;
    padding: 0.375rem;
    margin-top: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 1px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.08s ease-out, visibility 0.08s ease-out;
    will-change: opacity;
    z-index: 2000;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    width: 120%;
    height: 1.25rem;
}

.dropdown-item {
    padding: 0.375rem 0.625rem;
    border-radius: 0.875rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.item-arrow {
    opacity: 0;
    transition: opacity 0.2s ease;
    color: rgba(255, 255, 255, 0.3);
}

.dropdown-item:hover .item-arrow {
    opacity: 1;
}

.item-title {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.item-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.6875rem;
    font-weight: 400;
    line-height: 1.3;
}

.nav-link-about::before {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block !important;
        padding: 0.5rem;
    }

    .logo-link,
    .nav-links,
    .header-social {
        display: none !important;
    }

    .main-header {
        flex-direction: row;
        padding: 1rem 1.5rem !important;
        width: 100vw;
        left: 0;
        transform: none;
        max-width: 100%;
    }

    .header-left {
        display: none !important;
    }

    .header-right {
        width: 100%;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-direction: row !important;
        padding: 0 !important;
    }

    #login-button {
        display: flex !important;
        margin: 0 !important;
    }

    .main-header.menu-open {
        background: rgba(12, 12, 14, 0.98);
        backdrop-filter: blur(20px);
        height: 100vh;
        align-items: flex-start;
        padding-top: 1.5rem !important;
        flex-direction: column !important;
    }

    .main-header.menu-open .header-right {
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 2rem;
        margin-top: 4rem;
    }

    .main-header.menu-open .header-left {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        align-items: center;
        margin-top: 2rem;
    }

    .main-header.menu-open .nav-links {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 2rem;
        align-items: center;
    }

    .main-header.menu-open .mobile-menu-btn {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }

    .main-header.menu-open #login-button {
        position: absolute;
        top: 1rem;
        left: 1.5rem;
    }

    .nav-dropdown .dropdown-content {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 1rem !important;
        width: 100% !important;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .nav-dropdown.expanded .dropdown-content {
        display: flex !important;
    }

    .nav-dropdown.expanded .chevron {
        transform: rotate(180deg);
    }

    .main-header.menu-open .nav-link,
    .main-header.menu-open .dropdown-trigger {
        font-size: 1.25rem !important;
        font-weight: 500 !important;
        color: #efefef !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .dropdown-item {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        height: auto !important;
        text-align: center !important;
        width: 100% !important;
    }

    .dropdown-item .item-desc,
    .dropdown-item .item-arrow,
    .dropdown-item .item-icon {
        display: none !important;
    }

    .dropdown-item .item-title {
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        color: rgba(255, 255, 255, 0.7) !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }
}