:root {
            --primary: #4f46e5;
            --primary-hover: #4338ca;
            --bg: #f3f4f6;
            --card: #ffffff;
            --text: #1f2937;
            --text-light: #6b7280;
            --border: #e5e7eb;
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); /* Missing variable added */
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; }
        body { background: var(--bg); color: var(--text); }
        
        /* Header */
        .header { background: var(--card); padding: 0.5rem 5%; box-shadow: 0 1px 3px rgba(0,0,0,0.1); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50; !important}
        .logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; text-decoration: none; }
        
        /* Navigation */
        .nav-menu { display: flex; gap: 1rem; list-style: none; align-items: center; }
        
        .nav-link { color: var(--text); text-decoration: none; font-weight: 600; padding: 1.5rem; border-radius: 8px; transition: all 0.3s ease; font-size: 0.95rem; letter-spacing: 0.2px; }
        .nav-link:hover { background: var(--primary); color: white; transform: translateY(-1px); }
        
        /* Mega Menu */
      .mega-menu {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100vw;
            background: white;
            border: 1px solid var(--border);
            border-radius: 16px;
            box-shadow: var(--shadow-lg);
            padding: 2rem;
            margin-top: 0.1rem;
            display: none;
            grid-template-columns: repeat(6, 1fr);
            gap: 2rem;
            z-index: 9999;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        /* PDF TOOLS Mega Menu (6 columns) */
        .nav-item:first-child .mega-menu {
            grid-template-columns: repeat(6, 1fr);
            min-width: 1600px;
        }

        /* Desktop hover - disabled on mobile */
        @media (min-width: 901px) {
            .nav-item:hover .mega-menu {
                display: grid;
                opacity: 1;
                transform: translateY(0);
                pointer-events: auto;
            }
        }

        /* Overflow fix for menu visibility */
        header, .navbar, .header-container {
            overflow: visible !important;
        }
        
        /* Mega Menu Column */
        .mega-column {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .mega-header {
            font-size: 0.8rem;
            font-weight: 800;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .mega-header::after {
            content: '';
            flex: 1;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), transparent);
            margin-left: 0.5rem;
        }
        /* Mega Menu Links */
        .mega-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.3rem;
            color: var(--text);
            text-decoration: none;
            border-radius: 12px;
            transition: all 0.2s ease;
            font-size: 0.9rem;
            position: relative;
            overflow: hidden;
        }
        
        .mega-link::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 100%;
            background: transparent;
            transition: width 0.3s ease;
        }
        
        .mega-link:hover {
            background: #f8fafc;
            color: var(--primary);
            transform: translateX(4px);
        }
        
        .mega-link:hover::before {
            width: 100%;
            background: linear-gradient(180deg, var(--primary), #60a5fa);
            opacity: 0.1;
        }
        
        .mega-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #e0f2fe, #dbeafe);
            color: var(--primary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
        }
        
        .mega-link:hover .mega-icon {
            background: linear-gradient(135deg, var(--primary), #60a5fa);
            color: white;
            transform: scale(1.05);
        }

        /* Menu Toggle Button Style */
        .menu-toggle {
            display: none;
            font-size: 1.8rem;
            background: none;
            border: none;
            color: var(--primary);
            cursor: pointer;
            padding: 0.5rem;
        }

        /* Hero Section */
        .hero { background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%); color: white; padding: 3rem 1rem; text-align: center; }
        .hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; font-weight: 700; }
        .hero p { font-size: 1.1rem; opacity: 0.9; }
        
        /* Categories Grid */
        .container { max-width: 1200px; margin: 3rem auto; padding: 0 1rem; }
        .categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
        
        .category-card { background: var(--card); padding: 2rem; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; }
        .category-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
        
        .category-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
        .category-icon { width: 50px; height: 50px; background: #e0e7ff; color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
        .category-title { font-size: 1.5rem; font-weight: 700; }
        
        .tools-list { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
        .tool-link { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: #f8fafc; border-radius: 8px; text-decoration: none; color: var(--text); transition: all 0.2s; }
        .tool-link:hover { background: var(--primary); color: white; transform: translateX(4px); }
        .tool-desc { font-size: 0.875rem; color: var(--text-light); }

        /* =============================================
           UPDATED MOBILE & TABLET STYLES (SIRF YAHAN CHANGES HAIN)
           ============================================= */

        @media (max-width: 900px) {
            .menu-toggle {
                display: block;
            }

            .nav-menu {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: white;
                padding: 1rem;
                box-shadow: var(--shadow-lg);
                z-index: 1000;
                border-top: 1px solid var(--border);
                gap: 0;
            }

            .nav-menu.active {
                display: flex !important;
            }

            .nav-item {
                width: 100%;
            }

            .nav-link {
                display: block;
                padding: 1rem;
                width: 100%;
                border-bottom: 1px solid var(--border);
            }

            .mega-menu {
                position: relative !important;
                top: 0 !important;
                width: 100% !important;
                min-width: 100% !important;
                display: none;
                grid-template-columns: 1fr !important;
                padding: 1rem !important;
                margin-top: 0 !important;
                box-shadow: none !important;
                opacity: 1 !important;
                transform: none !important;
                pointer-events: auto !important;
                background: #f9fafb !important;
                max-height: 60vh !important;
                overflow-y: auto !important;
            }

            .nav-item:hover .mega-menu,
            .nav-item.active .mega-menu {
                display: grid !important;
            }

            .nav-item:first-child .mega-menu {
                min-width: 100% !important;
            }
        }

        @media (max-width: 768px) {
            .header { padding: 1rem 3%; }
            .hero { padding: 2rem 1rem; }
            .hero h1 { font-size: 1.75rem; }
            .hero p { font-size: 1rem; }
            .categories-grid { grid-template-columns: 1fr; gap: 1.5rem; }
        }

        @media (max-width: 480px) {
            .hero h1 { font-size: 1.5rem; }
            .logo { font-size: 1.25rem; }
            .category-title { font-size: 1.25rem; }
        }