/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0b;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* === SELECTION === */
::selection {
    background-color: rgba(96, 165, 250, 0.3);
    color: #fff;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0b;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2e;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3e;
}

/* === NAV SCROLLED STATE === */
.nav-scrolled {
    background: rgba(10, 10, 11, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(42, 42, 46, 0.6) !important;
}

/* === DESKTOP NAV LINKS === */
.desktop-nav-link {
    color: rgba(212, 212, 216, 0.78);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9999px;
    padding: 0.5rem 0.85rem;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.desktop-nav-link:hover {
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.desktop-nav-link.is-active {
    color: #ffffff;
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.08);
}

/* === FADE UP ON SCROLL === */
.fade-up-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === SMOOTH CARD HOVER === */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #93bbfd 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === SUBTLE SHIMMER === */
.shimmer-bg {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* === MOBILE MENU TRANSITION === */
#mobile-menu {
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 640px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}
