:root {
            --bg-dark: #0a0118;
            --bg-darker: #05010d;
            --card-bg: rgba(255, 255, 255, 0.03);
            --card-hover: rgba(255, 255, 255, 0.06);
            --border-color: rgba(255, 255, 255, 0.08);
            --border-light: rgba(255, 255, 255, 0.15);
            --text-primary: #ffffff;
            --text-secondary: #b0b0b0;
            --text-muted: #888888;
            --accent-blue: #00f2ff;
            --accent-pink: #ff00d4;
            --accent-green: #00ff88;
            --accent-orange: #ffaa00;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        
        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            overflow-x: hidden;
            padding-top: 70px;
            line-height: 1.6;
        }

        /* BACKGROUND EFFECTS */
        .bg-fixed {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 50% -20%, #1a0b2e 0%, #000 100%);
            z-index: -2;
        }

        .orb {
            position: fixed;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.1;
            z-index: -1;
            animation: float 20s infinite alternate ease-in-out;
        }

        .orb-1 {
            top: 10%;
            left: -10%;
            width: 400px;
            height: 400px;
            background: var(--accent-blue);
            animation-delay: 0s;
        }

        .orb-2 {
            bottom: 10%;
            right: -10%;
            width: 350px;
            height: 350px;
            background: var(--accent-pink);
            animation-delay: 5s;
        }

        .orb-3 {
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 300px;
            height: 300px;
            background: var(--accent-green);
            opacity: 0.05;
            animation-delay: 10s;
        }

        @keyframes float {
            0% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(30px, 30px) scale(1.1); }
            66% { transform: translate(-20px, 20px) scale(0.9); }
            100% { transform: translate(0, 0) scale(1); }
        }

        /* TOP FIXED HEADER */
        .top-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 70px;
            background: rgba(10, 1, 24, 0.98);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 40px;
            z-index: 1000;
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
        }

        .top-header-left a {
            font-family: 'Outfit', sans-serif;
            font-size: 1.6rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-pink) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
            letter-spacing: -0.5px;
            transition: all 0.3s ease;
        }

        .top-header-left a:hover {
            transform: translateY(-2px);
        }

        .top-header-left a i {
            font-size: 1.3rem;
        }

        .top-header-right a {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 600;
            padding: 10px 22px;
            border: 1px solid var(--border-light);
            border-radius: 12px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            font-size: 0.95rem;
            background: rgba(255, 255, 255, 0.05);
        }

        .top-header-right a:hover {
            background: var(--accent-blue);
            color: #000;
            border-color: var(--accent-blue);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 242, 255, 0.25);
        }

        /* MAIN CONTENT */
        .main-container {
            width: 100%; 
            max-width: 800px; 
            margin: 0 auto;
            padding: 50px 40px 60px; 
            text-align: center; 
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        /* PAGE TITLE */
        .page-title {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            padding-top: 20px;
        }
        
        .page-title h1 {
            font-family: 'Outfit', sans-serif;
            font-size: 3.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-pink) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 20px;
            line-height: 1.1;
            letter-spacing: -1px;
        }
        
        .page-title p {
            color: var(--text-secondary);
            font-size: 1.25rem;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
            font-weight: 400;
        }

        /* TOOLS CONTAINER */
        #tools-container {
            display: flex;
            flex-direction: column;
            gap: 30px;
            width: 100%;
        }

        /* LOADING STATE */
        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 80px 20px;
            color: var(--text-secondary);
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top-color: var(--accent-blue);
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 25px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* TOOL CARD */
        .tool-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 35px 40px;
            text-decoration: none;
            color: var(--text-primary);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            text-align: left;
            backdrop-filter: blur(10px);
        }

        .tool-card:hover {
            transform: translateY(-5px);
            border-color: var(--tool-accent);
            background: var(--card-hover);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--tool-glow);
        }

        /* Tool header with icon and title */
        .tool-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
        }

        .tool-icon {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            border: 1px solid var(--border-color);
            color: var(--tool-accent);
            flex-shrink: 0;
            transition: all 0.3s ease;
        }

        .tool-card:hover .tool-icon {
            transform: scale(1.1) rotate(5deg);
            background: rgba(255, 255, 255, 0.1);
        }

        .tool-title-section {
            flex: 1;
        }

        .tool-card h2 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-primary);
            letter-spacing: -0.3px;
        }

        .tool-badge {
            display: inline-block;
            padding: 4px 12px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--tool-accent);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Tool description */
        .tool-description {
            color: var(--text-secondary);
            margin-bottom: 30px;
            font-size: 1.05rem;
            line-height: 1.7;
            padding-left: 80px;
        }

        /* Tool action button */
        .tool-action {
            display: flex;
            justify-content: flex-end;
            padding-left: 80px;
        }

        .tool-cta {
            background: transparent;
            color: var(--tool-accent);
            padding: 12px 28px;
            border-radius: 12px;
            font-weight: 700;
            border: 2px solid var(--tool-accent);
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            font-size: 1rem;
        }

        .tool-cta:hover {
            background: var(--tool-accent);
            color: #000;
            transform: translateX(5px);
        }

        /* DIVIDER BETWEEN TOOLS */
        .tool-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border-color), transparent);
            margin: 0 40px;
        }

        /* FOOTER */
        footer {
            margin-top: auto; 
            padding: 35px; 
            text-align: center;
            border-top: 1px solid var(--border-color);
            background: rgba(0, 0, 0, 0.2);
        }
        
        .dev-badge {
            display: inline-flex; 
            align-items: center; 
            gap: 10px;
            background: rgba(255,255,255,0.05); 
            border: 1px solid var(--border-color);
            padding: 10px 22px; 
            border-radius: 50px; 
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .dev-badge:hover { 
            background: rgba(255,255,255,0.1); 
            transform: translateY(-3px); 
            border-color: var(--accent-blue);
        }
        
        .dev-text { 
            color: var(--accent-blue); 
            font-weight: 700; 
            font-size: 0.9rem; 
        }
        
        .dev-name { 
            color: #FFD700; 
            font-weight: 700; 
            font-size: 0.95rem; 
            display: flex; 
            align-items: center; 
            gap: 8px; 
        }
        
        .profile-pic { 
            width: 28px; 
            height: 28px; 
            border-radius: 50%; 
            object-fit: cover; 
            border: 2px solid #fff; 
        }

        /* ERROR STATE */
        .error-state {
            text-align: center;
            padding: 60px 20px;
            border-radius: 20px;
            background: rgba(255, 68, 68, 0.05);
            border: 1px solid rgba(255, 68, 68, 0.2);
        }

        .error-state i {
            font-size: 3rem;
            color: #ff4444;
            margin-bottom: 20px;
        }

        .error-state h3 {
            color: #ff4444;
            margin-bottom: 15px;
            font-size: 1.5rem;
        }

        .error-state p {
            color: var(--text-secondary);
            margin-bottom: 25px;
            font-size: 1.1rem;
        }

        .retry-btn {
            padding: 12px 30px;
            background: var(--accent-blue);
            border: none;
            border-radius: 12px;
            color: #000;
            font-weight: 700;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .retry-btn:hover {
            background: var(--accent-pink);
            color: #000;
            transform: translateY(-2px);
        }
         .tools_logo {
            width: 30px;
            height: 30px;
            object-fit: contain;
            margin: 0px;
        }

        /* RESPONSIVE DESIGN - TABLET */
        @media (max-width: 1024px) {
            .main-container {
                max-width: 700px;
                padding: 40px 30px 50px;
            }
            
            .page-title h1 {
                font-size: 3rem;
            }
            
            .page-title p {
                font-size: 1.15rem;
            }
            
            .tool-card {
                padding: 30px 35px;
            }
            
            .tool-icon {
                width: 55px;
                height: 55px;
                font-size: 1.6rem;
            }
            
            .tool-description,
            .tool-action {
                padding-left: 75px;
            }
            .tools_logo {
            width: 30px;
            height: 30px;
            object-fit: contain;
            margin: 0px;
        }
        }

        /* RESPONSIVE DESIGN - MOBILE */
        @media (max-width: 768px) {
            body {
                padding-top: 60px;
            }
            
            .top-header {
                height: 60px;
                padding: 0 20px;
            }
            
            .top-header-left a {
                font-size: 1.3rem;
                gap: 8px;
            }
            
            .top-header-left a i {
                font-size: 1.1rem;
            }
            
            .top-header-right a {
                padding: 8px 16px;
                font-size: 0.9rem;
                gap: 6px;
                border-radius: 10px;
            }
            
            .main-container {
                padding: 30px 20px 40px;
                max-width: 100%;
            }
            
            .page-title h1 {
                font-size: 2.5rem;
                margin-bottom: 15px;
            }
            
            .page-title p {
                font-size: 1.1rem;
                padding: 0 10px;
            }
            
            #tools-container {
                gap: 25px;
            }
            
            .tool-card {
                padding: 25px;
                border-radius: 18px;
            }
            
            .tool-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
                margin-bottom: 15px;
            }
            
            .tool-icon {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
            
            .tool-description,
            .tool-action {
                padding-left: 0;
            }
            
            .tool-card h2 {
                font-size: 1.6rem;
            }
            
            .tool-description {
                font-size: 1rem;
                margin-bottom: 25px;
            }
            
            .tool-action {
                justify-content: center;
            }
            
            .tool-cta {
                width: 100%;
                justify-content: center;
                padding: 12px 24px;
            }
            
            .tool-divider {
                margin: 0 25px;
            }
            
            footer {
                padding: 25px 20px;
            }
            
            .orb-1, .orb-2, .orb-3 {
                display: none;
            }
            
            .tools_logo {
                height: 40px;
                width: 40px;
                object-fit: contain;
                margin: -2px;
                margin-left: -7px;
            }
        }

        /* SMALL MOBILE */
        @media (max-width: 480px) {
            .top-header {
                height: 60px;
                padding: 0 15px;
            }
            
            .top-header-left a {
                font-size: 1.1rem;
                gap: 6px;
            }
            
            .top-header-left a i {
                font-size: 0.9rem;
            }
            
            .top-header-right a {
                padding: 6px 12px;
                font-size: 0.85rem;
                gap: 4px;
            }
            
            .page-title h1 {
                font-size: 2.2rem;
            }
            
            .page-title p {
                font-size: 1rem;
            }
            
            .tool-card {
                padding: 20px;
            }
            
            .tool-card h2 {
                font-size: 1.4rem;
            }
            
            .tool-description {
                font-size: 0.95rem;
            }
            
            .tool-cta {
                font-size: 0.95rem;
                padding: 10px 20px;
            }
            
            .dev-badge {
                padding: 8px 16px;
            }
            
            .dev-text, .dev-name {
                font-size: 0.85rem;
            }
            
            .profile-pic {
                width: 24px;
                height: 24px;
            }
             .tools_logo {
                height: 18px;
                width: 18px;
            }
        }
/* =========================================================
   📱 MOBILE COMPACT FIX FOR TOOLS PAGE (Production Ready)
   ========================================================= */
@media (max-width: 768px) {
    /* Page Title Setup */
    .page-title { margin-top: 8px !important; margin-bottom: 18px !important; }
    .page-title h1 { font-size: 1.65rem !important; margin-bottom: 6px !important; }
    .page-title p { font-size: 0.9rem !important; }

    /* 🔥 CARD PADDING INCREASED: Card ke andar aur hawa (space) aane di */
    .tool-card { 
        padding: 22px 18px !important; 
    }
    
    .tool-header { 
        flex-direction: row !important; 
        align-items: center !important; 
        gap: 16px !important; /* Icon aur text ke beech thoda aur gap */
        margin-bottom: 18px !important; /* Description se doori thodi badhai */
    }
    
    .tool-icon { 
        width: 52px !important; /* Icon halka sa bada kiya space ke hisab se */
        height: 52px !important; 
        font-size: 1.35rem !important; 
        margin: 0 !important; 
        flex-shrink: 0 !important;
    }
    
    .tool-title-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important; /* Title aur badge ke beech ekdum perfect margin */
    }

    .tool-title-section h2 { 
        font-size: 1.15rem !important; 
        margin-bottom: 0 !important; 
        line-height: 1.4 !important; 
    }
    
    .tool-badge { 
        font-size: 0.65rem !important; 
        padding: 4px 10px !important; 
    }

    /* Description Clamping & Spacing */
    .tool-description { 
        font-size: 0.9rem !important; 
        line-height: 1.5 !important; 
        margin-bottom: 18px !important; /* Button aur text me thoda space */
        padding-left: 0 !important; 
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Button Styling */
    .tool-cta { 
        font-size: 0.95rem !important; 
        padding: 12px 18px !important; /* Button thoda aur clickable banaya */
        width: 100% !important; 
        justify-content: center !important; 
        margin-top: auto !important;
    }

    /* 🔥 GAP FIX: Cards ke beech ka gap thoda badhaya */
    #tools-container {
        gap: 12px !important; /* 6px se 12px kiya - Best for mobile list */
    }
    
    .tool-divider {
        margin: 14px 0 !important; /* 9px se 14px kiya */
        opacity: 0.5 !important; /* Line ko thoda aur soft kiya */
    }
}

