/* Base & Resets */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
            line-height: 1.6;
            overflow-x: hidden;
        }

        :root {
            --primary: #2563eb;
            --primary-light: #eff6ff;
            --dark: #0f172a;
            --light: #ffffff;
            --gray: #64748b;
        }

        /* --- UPDATED NAVBAR: More Blur & Smooth Transitions --- */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 8%;
            /* Initial large padding */
            position: sticky;
            top: 0;
            background: rgba(255, 255, 255, 0.6);
            /* More transparent to show blur */
            backdrop-filter: blur(25px);
            /* INCREASED BLUR */
            -webkit-backdrop-filter: blur(25px);
            z-index: 100;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            /* SMOOTH ANIMATION */
        }

        /* Class added via JS on scroll */
        header.scrolled {
            padding: 15px 8%;
            /* Shrinks on scroll */
            background: rgba(255, 255, 255, 0.85);
            box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .logo span {
            color: var(--dark);
        }

        nav {
            display: flex;
            gap: 35px;
            align-items: center;
        }

        nav a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: color 0.3s;
        }

        nav a:hover {
            color: var(--primary);
        }

        /* Updated Button Style */
        .nav-btn {
            background: var(--primary);
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: 0.3s;
            font-family: 'Inter';
            font-size: 0.95rem;
        }

        .nav-btn:hover {
            background: #1d4ed8;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
        }

        /* --- PREVIEW MODAL STYLING --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(8px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-content {
            background: #ffffff;
            padding: 30px;
            border-radius: 20px;
            width: 90%;
            max-width: 450px;
            text-align: center;
            position: relative;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }

        .preview-box {
            width: 100%;
            height: 250px;
            background: #f1f5f9;
            border-radius: 12px;
            margin: 20px 0;
            overflow: hidden;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #previewImg {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 2rem;
            cursor: pointer;
            color: var(--gray);
        }

        /* --- NEON SCANNER LINE --- */
        .scan-line {
            position: absolute;
            width: 100%;
            height: 4px;
            background: var(--primary);
            box-shadow: 0 0 15px var(--primary);
            top: 0;
            display: none;
            /* Sirf upload ke waqt dikhega */
            z-index: 10;
        }

        @keyframes scanning {
            0% {
                top: 0%;
            }

            100% {
                top: 100%;
            }
        }

        .is-scanning {
            display: block !important;
            animation: scanning 2s infinite linear;
        }

        /* Hero Section */
        .hero {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 80px 8%;
            min-height: 85vh;
            gap: 50px;
            flex-wrap: wrap;
            background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
        }

        .hero-text {
            flex: 1;
            min-width: 300px;
        }

        .hero-text h1 {
            font-size: 4rem;
            line-height: 1.15;
            margin-bottom: 25px;
            color: var(--dark);
            font-weight: 700;
        }

        .hero-text h1 span {
            color: var(--primary);
        }

        .hero-text p {
            font-size: 1.1rem;
            color: var(--gray);
            margin-bottom: 40px;
            max-width: 90%;
        }

        .btn-group {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 16px 35px;
            background-color: var(--primary);
            color: var(--light);
            text-decoration: none;
            font-size: 1rem;
            transition: all 0.3s ease;
            border-radius: 10px;
            font-weight: 600;
            border: 2px solid var(--primary);
            display: inline-block;
            cursor: pointer;
        }

        .btn:hover {
            background-color: #1d4ed8;
            border-color: #1d4ed8;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--primary);
        }

        .btn-outline:hover {
            background-color: var(--primary-light);
            color: var(--primary);
            box-shadow: none;
        }

        .hero-img {
            flex: 1;
            text-align: right;
            min-width: 300px;
        }

        .hero-img img {
            width: 100%;
            max-width: 550px;
            border-radius: 20px;
            object-fit: cover;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
        }

        /* Categories Section */
        .categories {
            padding: 100px 8%;
            background-color: var(--light);
            text-align: center;
        }

        .section-title {
            font-size: 2.5rem;
            color: var(--dark);
            margin-bottom: 15px;
            font-weight: 700;
        }

        .section-subtitle {
            color: var(--gray);
            margin-bottom: 60px;
            font-size: 1.1rem;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .card {
            background: var(--light);
            padding: 40px 30px;
            border-radius: 16px;
            transition: all 0.4s ease;
            border: 1px solid #e2e8f0;
            text-align: center;
            cursor: pointer;
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
            border-color: var(--primary-light);
        }

        .card .icon {
            font-size: 3.5rem;
            margin-bottom: 20px;
            display: inline-block;
            padding: 15px;
            background: var(--primary-light);
            border-radius: 50%;
            width: 90px;
            height: 90px;
            line-height: 60px;
        }

        .card h3 {
            font-size: 1.4rem;
            margin-bottom: 12px;
            color: var(--dark);
        }

        .card p {
            color: var(--gray);
            font-size: 0.95rem;
        }

        /* Upload CTA */
        .cta {
            background-color: var(--primary);
            color: var(--light);
            text-align: center;
            padding: 80px 8%;
            margin: 50px 8%;
            border-radius: 24px;
            box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
        }

        .cta h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
        }

        .cta p {
            margin-bottom: 35px;
            color: var(--primary-light);
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto 35px;
        }

        /* Scroll Animations */
        .slide-up {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s ease-out;
        }

        .slide-right {
            opacity: 0;
            transform: translateX(-50px);
            transition: all 0.8s ease-out;
        }

        .slide-left {
            opacity: 0;
            transform: translateX(50px);
            transition: all 0.8s ease-out;
        }

        .visible {
            opacity: 1;
            transform: translate(0);
        }

        .delay-1 {
            transition-delay: 0.1s;
        }

        .delay-2 {
            transition-delay: 0.2s;
        }

        .delay-3 {
            transition-delay: 0.3s;
        }

        /* Responsive */
        @media (max-width: 768px) {
            header {
                flex-direction: column;
                gap: 15px;
                padding: 20px 5%;
            }

            header.scrolled {
                padding: 10px 5%;
            }

            nav {
                flex-wrap: wrap;
                justify-content: center;
                gap: 15px;
            }

            .hero {
                text-align: center;
                padding-top: 40px;
            }

            .hero-text h1 {
                font-size: 3rem;
            }

            .btn-group {
                justify-content: center;
            }

            .hero-img {
                margin-top: 40px;
            }

            .cta {
                padding: 60px 5%;
                margin: 50px 5%;
            }
        }

        /* Auth Modal Specifics */
        .auth-card {
            max-width: 400px !important;
            border: 1px solid rgba(37, 99, 235, 0.2);
        }

        .auth-tabs {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }

        .tab-btn {
            background: none;
            border: none;
            font-size: 1rem;
            font-weight: 600;
            color: var(--gray);
            cursor: pointer;
            transition: 0.3s;
        }

        .tab-btn.active {
            color: var(--primary);
            border-bottom: 2px solid var(--primary);
        }

        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .auth-form h2 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--dark);
        }

        .auth-form input {
            padding: 12px 15px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            outline: none;
            font-family: 'Inter';
            transition: 0.3s;
        }

        .auth-form input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        /* --- RESPONSIVE AUTH & PREVIEW MODALS --- */

/* Jab screen 480px se choti ho (Mobile Phones) */
@media (max-width: 480px) {
    .modal-content {
        width: 95% !important; /* Screen ke kinaro se thoda gap */
        padding: 20px !important;
        border-radius: 15px !important;
    }

    .auth-form h2 {
        font-size: 1.2rem; /* Chota font mobile ke liye */
    }

    .preview-box {
        height: 180px; /* Choti screen par height kam */
    }

    .auth-tabs {
        gap: 10px;
    }

    .tab-btn {
        font-size: 0.9rem;
    }

    .auth-form input {
        padding: 10px; /* Inputs thode compact */
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Modal ko center mein rakhne ke liye base fix */
.modal-overlay {
    display: none; /* JS control karega */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 10px; /* Mobile safety padding */
}