 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8fafc;
            scroll-behavior: smooth;
            scroll-padding-top: 80px;
        }

        /* Fixed Navigation Bar */
        .navbar {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 1rem 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
.nav-brand h2 {
    
    display: none;
}

@media (max-width: 480px) {
    .nav-brand h2 {
        display: block;
        color: #e2e8f0;
        font-size: 18px; /* optional styling */
        text-align: center; /* optional */
    }
}
     

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 2rem;
            margin: 0;
        }

        .nav-link {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
            padding: 0.5rem 0;
        }

        .nav-link:hover, .nav-link.active {
            color: #ffd700;
        }

        .nav-toggle {
            display: none;
            flex-direction: column;
            background: none;
            border: none;
            cursor: pointer;
        }

        .nav-toggle span {
            width: 25px;
            height: 3px;
            background: white;
            margin: 3px 0;
            transition: 0.3s;
        }

        /* Main Container */
        .main-container {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 2rem;
            max-width: 1400px;
            margin: 0 auto;
            padding: 80px 2rem 2rem;
            min-height: calc(100vh - 80px);
        }

        /* Sidebar */
        .sidebar {
            background: white;
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            height: fit-content;
            position: sticky;
            top: 100px;
            max-height: calc(100vh - 120px);
            overflow-y: auto;
        }

        .sidebar h3 {
            color: #2d3748;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .search-input {
            width: 100%;
            padding: 10px;
            margin-bottom: 1rem;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: #667eea;
        }

        .toc {
            list-style: none;
            padding: 0;
        }

        .toc li {
            margin-bottom: 0.5rem;
        }

        .toc a {
            color: #4a5568;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: block;
            padding: 0.5rem;
            border-radius: 6px;
            border-left: 3px solid transparent;
        }

        .toc a:hover {
            color: #667eea;
            background-color: #f7fafc;
            border-left-color: #667eea;
        }

        .toc a.active {
            color: #667eea !important;
            background-color: #edf2f7 !important;
            font-weight: 600;
            border-left-color: #667eea !important;
        }

        /* Main Content */
        .main-content {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            overflow: hidden;
        }

        /* Content Sections */
        .section {
            padding: 3rem 2rem;
            border-bottom: 1px solid #e2e8f0;
            scroll-margin-top: 100px;
        }

        .section:last-child {
            border-bottom: none;
        }

        .section h2 {
            color: #2d3748;
            font-size: 2rem;
            margin-bottom: 1rem;
            font-weight: 600;
            position: relative;
        }

        .section h2::before {
            content: '';
            position: absolute;
            left: -2rem;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 2px;
        }

        .section h3 {
            color: #4a5568;
            font-size: 1.5rem;
            margin: 2rem 0 1rem;
            font-weight: 600;
        }

        .section h4 {
            color: #2d3748;
            font-size: 1.2rem;
            margin: 1.5rem 0 1rem;
            font-weight: 600;
        }

        /* Content Cards */
        .content-card {
            background: #f8fafc;
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
        }

        .content-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .content-card p {
            margin-bottom: 1rem;
            color: #4a5568;
            line-height: 1.7;
        }

        .content-card ul {
            margin: 1rem 0;
            padding-left: 2rem;
        }

        .content-card li {
            margin-bottom: 0.5rem;
            color: #4a5568;
        }

        /* Example Boxes */
        .example-box {
            background: #1a202c;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-left: 4px solid #667eea;
            position: relative;
            transition: all 0.3s ease;
        }

        .example-box:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.3);
        }

        .example-box h4 {
            color: #e2e8f0;
            margin-bottom: 1rem;
        }

        .example-box pre {
            background: transparent;
            margin: 0;
            padding: 0;
            border-radius: 0;
            overflow-x: auto;
        }

        .example-box code {
            color: #e2e8f0;
            font-family: 'Fira Code', monospace;
        }

        .output {
            background: #2d3748;
            color: #68d391;
            padding: 1rem;
            border-radius: 6px;
            margin-top: 1rem;
            font-family: monospace;
            border-left: 3px solid #68d391;
        }

        /* Operators Grid */
        .operators-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .operator-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            border-left: 4px solid #667eea;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .operator-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .operator-card h4 {
            color: #2d3748;
            margin-bottom: 0.5rem;
        }

        .operator-card p {
            color: #4a5568;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }

        /* Note Box */
        .note-box {
            background-color: #fffde7;
            border-left: 4px solid #ffd700;
            padding: 1rem;
            margin: 1.5rem 0;
            border-radius: 6px;
        }

        /* Progress Bar */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            z-index: 9999;
            transition: width 0.3s ease;
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: #5a67d8;
            transform: translateY(-2px);
        }

        /* Footer */
    
   .footer {
            background: #2d3748;
            color: white;
            text-align: center;
            padding: 2rem;
            margin-top: 3rem;
        }

        .footer-content p {
            margin: 0;
        }

        .gr-font {
            font-family: 'Work Sans';
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .main-container {
                grid-template-columns: 1fr;
                padding: 80px 1rem 2rem;
            }
            
            .sidebar {
                position: static;
                order: 2;
                max-height: none;
            }
            
            .main-content {
                order: 1;
            }
        }

        @media (max-width: 768px) {
            .nav-menu {
                position: fixed;
                left: -100%;
                top: 70px;
                flex-direction: column;
                background: #667eea;
                width: 100%;
                text-align: center;
                transition: 0.3s;
                box-shadow: 0 10px 27px rgba(0,0,0,0.05);
                padding: 2rem 0;
            }

            .nav-menu.active {
                left: 0;
            }

            .nav-toggle {
                display: flex;
            }
            
            .section {
                padding: 2rem 1rem;
            }
            
            .section h2 {
                font-size: 1.75rem;
            }
            
            .operators-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .nav-container {
                padding: 0 1rem;
            }
            
            .sidebar {
                padding: 1rem;
            }
            
            .content-card {
                padding: 1rem;
            }
            
            .main-container {
                padding: 80px 0.5rem 2rem;
            }
            
            .example-box {
                padding: 1rem;
            }
            
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 1rem;
            }
            .nav-menu {
        /* Hide menu by default on mobile and position it for full-screen overlay */
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen to the right */
        width: 80%; /* Full width menu */
        height: 100vh; /* Full viewport height */
        background: linear-gradient(135deg, #5667d6 0%, #6a4190 100%); /* Darker gradient for mobile menu */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem; /* Adjust spacing between menu items */
        transition: right 0.3s ease-in-out;
        z-index: 998; /* Below toggle, above content */
        padding-top: 60px; /* Space for the fixed navbar */
    }

        }

        /* Loading animation */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section {
            animation: fadeIn 0.6s ease-out;
        }

        /* Enhanced Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(153, 156, 158, 0.3);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 4px;
            border: 1px solid rgba(255,255,255,0.1);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #5a67d8, #6b46c1);
        }

        /* Firefox scrollbar styling */
        * {
            scrollbar-width: auto; 
            scrollbar-color: #667eea rgba(241, 245, 249, 0.3);
        }
