        /* Dark background default set karein taaki network delay par bhi white screen na dikhe */
html, body {
    background-color: #030712;
}

/* Smooth Page Load Fade-In */
body {
    animation: pageFadeIn 0.25s ease-in-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}
        /* --- DYNAMIC THEMING VARIABLES --- */
        :root[data-theme="dark"] {
            --bg-main: #030712;
            --bg-surface: #0b1329;
            --bg-card: #0f172a;
            --bg-card-border: rgba(255, 255, 255, 0.2);
            --text-primary: #ffffff;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --nav-bg: rgba(3, 7, 18, 0.85);
            --nav-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
            --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
        }

        :root[data-theme="light"] {
            --bg-main: #f8fafc;
            --bg-surface: #ffffff;
            --bg-card: #ffffff;
            --bg-card-border: #e2e8f0;
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-muted: #64748b;
            --nav-bg: rgba(255, 255, 255, 0.95);
            --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
            --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        }

        /* --- RESET & GENERAL STYLES --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Plus Jakarta Sans', sans-serif;
            scroll-behavior: smooth;
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        body {
            color: var(--text-secondary);
            background-color: var(--bg-main);
            line-height: 1.5;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* --- SMART HEADER & NAVBAR --- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background-color: var(--nav-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--bg-card-border);
            box-shadow: var(--nav-shadow);
            transition: transform 0.35s ease, background-color 0.3s ease, box-shadow 0.3s ease;
        }

        header.nav-hidden {
            transform: translateY(-100%);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .logo i {
            color: #2563eb;
            font-size: 1.5rem;
        }

        .logo-text h3 {
            font-size: 1.1rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            line-height: 1.1;
            color: var(--text-primary);
        }

        .logo-text span {
            font-size: 0.75rem;
            color: #3b82f6;
            font-weight: 500;
        }

        .nav-links {
            display: flex;
            gap: 28px;
            list-style: none;
            align-items: center;
            margin: 0 auto;
        }

        .nav-links a {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-secondary);
            transition: color 0.3s;
        }

        .nav-links a:hover, .nav-links a.active {
            color: #2563eb;
        }

        .nav-links a.active {
            border-bottom: 2px solid #2563eb;
            padding-bottom: 4px;
        }

        .nav-right-container {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .btn-talk {
            border: 1px solid #2563eb;
            padding: 8px 18px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
            background-color: rgba(37, 99, 235, 0.1);
            color: var(--text-primary);
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn-talk:hover {
            background-color: #2563eb;
            color: #ffffff;
        }


        /* Desktop par yeh button hidden rahega */
.mobile-next_page-btn {
    display: none;
}

        .theme-toggle-btn {
            background: var(--bg-card);
            border: 1px solid var(--bg-card-border);
            color: var(--text-primary);
            width: 38px;
            height: 38px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }

        .hamburger {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* --- HERO SECTION (MATCHED WITH INDEX.HTML) --- */
        .hero-section {
            background-color: var(--bg-main);
            color: var(--text-primary);
            position: relative;
            overflow: hidden;
            padding-top: 110px;
            padding-bottom: 80px;
            background-image: radial-gradient(rgba(37, 99, 235, 0.15) 1px, transparent 1px);
            background-size: 30px 30px;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
            margin-top: 20px;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(37, 99, 235, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.3);
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.8rem;
            color: #3b82f6;
            margin-bottom: 24px;
            font-weight: 600;
        }

        .hero-badge .dot {
            width: 6px;
            height: 6px;
            background-color: #3b82f6;
            border-radius: 50%;
        }

        .hero-title {
            font-size: 2.8rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 16px;
            color: var(--text-primary);
        }

        .hero-title span {
            color: #3b82f6;
        }

        .hero-desc {
            color: var(--text-secondary);
            font-size: 0.95rem;
            margin-bottom: 32px;
            max-width: 480px;
        }

        .stats-group {
            display: flex;
            gap: 16px;
        }

        .stat-card {
            background: var(--bg-card);
            border: 1px solid var(--bg-card-border);
            border-radius: 12px;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            box-shadow: var(--card-shadow);
        }

        .stat-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }

        .stat-icon.blue { background: rgba(37, 99, 235, 0.2); color: #3b82f6; }
        .stat-icon.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
        .stat-icon.purple { background: rgba(147, 51, 234, 0.2); color: #a855f7; }

        .stat-info h4 {
            font-size: 1.1rem;
            font-weight: 800;
            line-height: 1;
            color: var(--text-primary);
        }

        .stat-info p {
            font-size: 0.7rem;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        /* Hero Graphic Mockup */
        .hero-image-container {
            position: relative;
            display: flex;
            justify-content: center;
        }

        .mockup-wrapper {
            position: relative;
            width: 100%;
            max-width: 550px;
        }

        .laptop-screen {
            background: var(--bg-card);
            border-radius: 12px;
            padding: 10px;
            box-shadow: var(--card-shadow);
            border: 1px solid var(--bg-card-border);
        }

        .laptop-screen img {
            width: 100%;
            border-radius: 6px;
            display: block;
        }

        .phone-screen {
            position: absolute;
            left: -20px;
            bottom: -20px;
            width: 130px;
            background: var(--bg-card);
            border: 4px solid var(--bg-card-border);
            border-radius: 16px;
            box-shadow: var(--card-shadow);
            overflow: hidden;
        }

        .floating-card {
            position: absolute;
            right: -10px;
            top: 20px;
            width: 180px;
            background: var(--bg-card);
            border: 1px solid var(--bg-card-border);
            border-radius: 8px;
            padding: 10px;
            box-shadow: var(--card-shadow);
            color: var(--text-primary);
        }

        .whatsapp-float {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background-color: #25d366;
            color: white;
            padding: 12px 20px;
            border-radius: 30px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 0.9rem;
            box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
            z-index: 999;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .whatsapp-float:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
            color: #ffffff;
        }

        /* --- PROJECTS FILTER & GRID SECTION --- */
        .portfolio-section {
            padding: 60px 0 80px;
            background-color: var(--bg-surface);
        }

        .filter-tabs {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        #project-filters {
            scroll-margin-top: 100px;
        }

        .filter-btn {
            background: var(--bg-card);
            border: 1px solid var(--bg-card-border);
            padding: 10px 20px;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .filter-btn:hover, .filter-btn.active {
            background: #2563eb;
            color: #ffffff;
            border-color: #2563eb;
        }

        .filter-btn i {
            font-size: 0.9rem;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .project-card {
            background: var(--bg-card);
            border: 1px solid var(--bg-card-border);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .project-card:hover {
            transform: translateY(-4px);
        }

        .project-thumb {
            height: 180px;
            background-size: cover;
            background-position: center;
            position: relative;
        }

        .project-content {
            padding: 20px;
        }

        .category-badge {
            display: inline-block;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 20px;
            margin-bottom: 10px;
        }

        .badge-blue { background: rgba(37, 99, 235, 0.15); color: #2563eb; }
        .badge-green { background: rgba(22, 163, 74, 0.15); color: #16a34a; }
        .badge-orange { background: rgba(234, 88, 12, 0.15); color: #ea580c; }
        .badge-cyan { background: rgba(8, 145, 178, 0.15); color: #0891b2; }

        .project-card h3 {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .project-card p {
            font-size: 0.78rem;
            color: var(--text-secondary);
            line-height: 1.4;
            margin-bottom: 16px;
        }

        .tech-tags {
            display: flex;
            gap: 6px;
            margin-bottom: 16px;
        }

        .tech-tag {
            background: rgba(37, 99, 235, 0.1);
            color: #2563eb;
            font-size: 0.68rem;
            padding: 3px 8px;
            border-radius: 4px;
            font-weight: 600;
        }

        .view-project-link {
            color: #2563eb;
            font-size: 0.8rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: gap 0.2s;
        }

        .view-project-link:hover {
            gap: 10px;
        }

        /* --- CTA BANNER SECTION --- */
        .cta-section {
            padding: 0 0 60px;
            background-color: var(--bg-surface);
        }

        .cta-card {
            background: linear-gradient(135deg, #030712 0%, #0b1536 100%);
            border-radius: 16px;
            padding: 30px 40px;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid #1e293b;
        }

        .cta-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .cta-icon-box {
            width: 48px;
            height: 48px;
            background: rgba(37, 99, 235, 0.2);
            border: 1px solid rgba(37, 99, 235, 0.4);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: #3b82f6;
        }

        .cta-text h3 {
            font-size: 1.4rem;
            font-weight: 800;
            margin-bottom: 4px;
            color: #ffffff;
        }

        .cta-text p {
            color: #94a3b8;
            font-size: 0.85rem;
        }

        .cta-buttons {
            display: flex;
            gap: 12px;
        }

        .btn-primary-cta {
            background-color: #2563eb;
            color: white;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: background 0.3s;
        }

        .btn-primary-cta:hover {
            background-color: #1d4ed8;
        }

        .btn-whatsapp-cta {
            border: 1px solid #16a34a;
            color: #22c55e;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(22, 163, 74, 0.1);
            transition: all 0.3s;
        }

        .btn-whatsapp-cta:hover {
            background: #16a34a;
            color: white;
        }

        /* --- STRICT ALWAYS BLACK FOOTER SECTION --- */
        footer {
            background-color: #030712 !important;
            color: #94a3b8 !important;
            padding: 60px 0 24px;
            border-top: 1px solid #1e293b;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1.5fr;
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-brand p {
            font-size: 0.8rem;
            margin: 16px 0;
            max-width: 280px;
            line-height: 1.5;
            color: #94a3b8 !important;
        }

        .social-icons {
            display: flex;
            gap: 12px;
        }

        .social-icons a {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #1e293b;
            border: 1px solid #334155;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff !important;
            font-size: 0.85rem;
            transition: all 0.3s;
        }

        .social-icons a:hover {
            background: #2563eb;
            border-color: #2563eb;
        }

        .footer-column h4 {
            color: #ffffff !important;
            font-size: 0.85rem;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 8px;
        }

        .footer-column ul li a {
            font-size: 0.8rem;
            color: #94a3b8 !important;
            transition: color 0.3s;
        }

        .footer-column ul li a:hover {
            color: #ffffff !important;
        }

        .contact-list li {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.8rem;
            margin-bottom: 12px;
            color: #cbd5e1 !important;
        }

        .contact-list i {
            color: #2563eb;
            font-size: 0.9rem;
        }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 24px;
            border-top: 1px solid #1e293b;
            font-size: 0.75rem;
            color: #94a3b8 !important;
        }

        .footer-bottom-links {
            display: flex;
            gap: 16px;
        }

        .footer-bottom-links a {
            color: #94a3b8;
        }

        /* --- RESPONSIVE STYLES --- */
        @media (max-width: 1024px) {
            .projects-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .footer-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

@media (max-width: 768px) {
    /* --- HEADER MOBILE VIEW FIX (LARGER BUTTONS & SPACING) --- */
    #site-header .container {
        padding: 12px 16px;
    }

    #site-header nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 1;
        min-width: 0;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .logo-text h3 {
        font-size: 0.85rem;
        white-space: nowrap;
        margin: 0;
        line-height: 1.1;
    }

    .logo-text span {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .nav-right-container {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    /* Hide Desktop Button */
    .btn-talk {
        display: none !important;
    }

    /* Mobile Services Pill Button */
    .mobile-next_page-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 3px 10px;
        border: 1.5px solid #3b82f6;
        border-radius: 24px;
        font-size: 0.82rem;
        font-weight: 700;
        color: #3b82f6;
        text-decoration: none;
        background: transparent;
        white-space: nowrap;
    }

    /* Mobile Theme/Settings Gear Button */
    .theme-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: transparent;
        border: 1.5px solid #f59e0b;
        border-radius: 50%;
        color: #f59e0b;
        font-size: 0.95rem;
        cursor: pointer;
    }

    /* Mobile Hamburger Menu Button */
    .hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.3rem;
        cursor: pointer;
        color: var(--text-primary);
        padding: 4px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        border-bottom: 1px solid var(--bg-card-border);
        flex-direction: column;
        padding: 24px 0;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        margin: 0;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }


            .btn-talk {
                display: none;
            }

            /* HERO SECTION MOBILE REORDER */
            .hero-grid {
                display: flex;
                flex-direction: column;
                gap: 30px;
            }

            .hero-image-container {
                order: -1;
                width: 100%;
                padding: 0 10px;
            }

            .mockup-wrapper {
                max-width: 100%;
                margin: 0 auto;
            }

            .phone-screen {
                left: 5px;
                bottom: -15px;
                width: 100px;
            }

            .floating-card {
                right: 5px;
                top: 10px;
                width: 150px;
                padding: 8px;
            }

            .hero-left {
                order: 1;
            }

            .hero-title {
                font-size: 2.1rem;
            }

            /* --- WHATSAPP FLOAT BUTTON MOBILE VIEW (ICON ONLY) --- */
            .whatsapp-float {
                padding: 0;
                width: 48px;
                height: 48px;
                border-radius: 50%;
                justify-content: center;
                font-size: 1.3rem;
            }

            .whatsapp-float span {
                display: none;
            }

            /* 2 CARDS PER ROW ON MOBILE */
            .projects-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .project-thumb {
                height: 120px;
            }

            .project-content {
                padding: 12px;
            }

            .project-card h3 {
                font-size: 0.88rem;
            }

            .project-card p {
                font-size: 0.7rem;
                margin-bottom: 10px;
            }

            .stats-group {
                flex-direction: row;
                gap: 8px;
            }

            .stat-card {
                padding: 8px;
            }

            .stat-info h4 {
                font-size: 0.9rem;
            }

            .stat-info p {
                font-size: 0.6rem;
            }

            .cta-card {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
            }

            .cta-buttons {
                width: 100%;
                flex-direction: column;
            }

            /* MOBILE FOOTER CENTERED ALIGNMENT */
            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .footer-brand {
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .footer-brand p {
                max-width: 100%;
            }

            .social-icons {
                justify-content: center;
            }

            .contact-list li {
                justify-content: center;
            }

            .footer-bottom {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
        }

        /* --- SCROLL TO TOP BUTTON STYLES --- */
#scrollTopBtn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 42px;
    height: 42px;
    background-color: #2563eb;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 999;
    
    /* Pehle se Hidden rahega */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Active State */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover Effect */
#scrollTopBtn:hover {
    background-color: #1d4ed8;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}
