:root {
    --bg: #01040a;
    --text: #ffffff;
}

.light {
    --bg: #f5f7f9;
    --text: #01040a;
}

html {
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    font-family: 'Space Grotesk', sans-serif;
}

::-webkit-scrollbar {
    display: none;
}

.glass-nav {
    backdrop-filter: blur(15px);
    background: rgba(1, 4, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.light .glass-nav {
    background: rgba(245, 247, 249, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    backdrop-filter: blur(20px);
    background: rgba(1, 4, 10, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.light .mobile-menu-overlay {
    background: rgba(245, 247, 249, 0.95);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-overlay a {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    padding: 12px 0;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.mobile-menu-overlay a:hover {
    opacity: 1;
    color: #45c1ff;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.light .mobile-menu-close {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #45c1ff, #2e66d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 12px 0;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    background: rgba(1, 4, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateX(-50%) translateY(-6px);
    z-index: 500;
    display: flex;
    flex-direction: column;
}

.light .nav-dropdown-menu {
    background: rgba(245, 247, 249, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

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

.nav-dropdown-menu a {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    opacity: 1;
    color: #45c1ff;
    background: rgba(69, 193, 255, 0.08);
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.nav-link-active {
    opacity: 1 !important;
    color: #45c1ff !important;
}

.light .nav-link-active {
    color: #2e66d4 !important;
}

.category-badge {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(45,193,255,0.15), rgba(46,102,212,0.15));
    color: #45c1ff;
    border: 1px solid rgba(45,193,255,0.2);
}

.light .category-badge {
    background: linear-gradient(135deg, rgba(46,102,212,0.1), rgba(45,193,255,0.1));
    color: #2e66d4;
    border: 1px solid rgba(46,102,212,0.2);
}
