@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
}

.code-font {
    font-family: 'Fira Code', monospace;
}

.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.code-block {
    scroll-behavior: auto;
    background-color: #1e293b;
    border-left: 4px solid #8b5cf6;
    max-width: 90vw;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.nav-link:hover {
    color: #8b5cf6;
}

.btn-primary {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* Syntax highlighting */
.keyword {
    color: #f472b6;
}

.type {
    color: #60a5fa;
}

.string {
    color: #86efac;
}

.comment {
    color: #64748b;
}

.function {
    color: #fbbf24;
}

.number {
    color: #a78bfa;
}

.menu-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 0.25rem;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #1e293b;
    border-left: 1px solid #334155;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.offcanvas-menu.open {
    right: 0;
}

.offcanvas-menu .nav-link {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 400;
    padding: 0.75rem 0;
    border-bottom: 1px solid #334155;
    transition: color 0.2s;
}

.offcanvas-menu .nav-link:hover {
    color: #8b5cf6;
}

.offcanvas-menu .nav-link:last-child {
    border-bottom: none;
}

/* Overlay to darken the rest of the page */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Hide offcanvas menu on desktop */
@media (min-width: 769px) {
    .offcanvas-menu {
        display: none;
    }

    .menu-overlay {
        display: none;
    }
}