:root {
            --primary: #4361ee;
            --primary-dark: #3a56d4;
            --secondary: #7209b7;
            --accent: #f72585;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --success: #4cc9f0;
            --border-radius: 8px;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f5f7fb;
            color: var(--dark);
            line-height: 1.6;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header Styles */
        header {
            background: white;
            color: var(--dark);
            padding: 1rem 0;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }

        .logo i {
            font-size: 1.8rem;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 1.5rem;
        }

        nav a {
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            padding: 5px 10px;
            border-radius: var(--border-radius);
        }

        nav a:hover {
            background-color: var(--light-gray);
        }

        .auth-buttons {
            display: flex;
            gap: 10px;
        }

        .btn {
            padding: 8px 16px;
            border-radius: var(--border-radius);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }

        .btn-primary {
            background: var(--accent);
            color: white;
            border: 2px solid var(--accent);
        }

        .btn-primary:hover {
            background: transparent;
            color: var(--accent);
        }

        .mobile-menu {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Tool Hero Section */
        .tool-hero {
            padding: 3rem 0;
            text-align: center;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
        }

        .tool-hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .tool-hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 2rem;
            opacity: 0.9;
        }

        /* Main Tool Section */
        .tool-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 3rem 0;
        }

        .upload-area {
            width: 100%;
            max-width: 800px;
            background: white;
            border-radius: var(--border-radius);
            padding: 3rem;
            box-shadow: var(--shadow);
            text-align: center;
            margin-bottom: 2rem;
            border: 2px dashed var(--light-gray);
            transition: var(--transition);
        }

        .upload-area.active {
            border-color: var(--primary);
            background: rgba(67, 97, 238, 0.05);
        }

        .upload-icon {
            font-size: 4rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
        }

        .upload-area h2 {
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .upload-area p {
            color: var(--gray);
            margin-bottom: 1.5rem;
        }

        .file-input {
            display: none;
        }

        .file-label {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 12px 24px;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
        }

        .file-label:hover {
            background: var(--primary-dark);
        }

        .supported-formats {
            margin-top: 1.5rem;
            font-size: 0.9rem;
            color: var(--gray);
        }

        /* Preview Section */
        .preview-section {
            width: 100%;
            max-width: 1000px;
            display: none;
            margin-bottom: 2rem;
        }

        .preview-container {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            justify-content: center;
        }

        .preview-box {
            flex: 1;
            min-width: 300px;
            background: white;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            text-align: center;
        }

        .preview-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .image-container {
            width: 100%;
            height: 250px;
            border-radius: var(--border-radius);
            overflow: hidden;
            background: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .image-container img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .placeholder-text {
            color: var(--gray);
        }

        /* Processing Section */
        .processing-section {
            display: none;
            text-align: center;
            margin-bottom: 2rem;
            width: 100%;
            max-width: 800px;
        }

        .progress-container {
            background: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--shadow);
        }

        .processing-spinner {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 1rem;
            animation: spin 1.5s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .processing-text {
            font-size: 1.2rem;
            color: var(--dark);
            margin-bottom: 0.5rem;
        }

        .processing-subtext {
            color: var(--gray);
            margin-bottom: 1.5rem;
        }

        .progress-bar {
            width: 100%;
            height: 10px;
            background: var(--light-gray);
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 1rem;
        }

        .progress {
            height: 100%;
            background: var(--primary);
            width: 0%;
            transition: width 0.3s ease;
        }

        .progress-text {
            font-size: 0.9rem;
            color: var(--gray);
        }

        /* Results Section */
        .results-section {
            width: 100%;
            max-width: 1200px;
            display: none;
            margin-bottom: 2rem;
        }

        .mode-selector {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
            background: white;
            border-radius: var(--border-radius);
            padding: 1rem;
            box-shadow: var(--shadow);
        }

        .mode-btn {
            padding: 12px 24px;
            border: none;
            background: var(--light-gray);
            color: var(--dark);
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            border-radius: var(--border-radius);
            margin: 0 5px;
        }

        .mode-btn.active {
            background: var(--primary);
            color: white;
        }

        .results-container {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            justify-content: center;
        }

        .result-box {
            flex: 1;
            min-width: 300px;
            background: white;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            text-align: center;
        }

        .result-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .result-image {
            width: 100%;
            height: 250px;
            border-radius: var(--border-radius);
            overflow: hidden;
            background: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            position: relative;
        }

        .result-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .download-btn {
            background: var(--success);
            color: white;
            width: 100%;
            padding: 12px;
            border-radius: var(--border-radius);
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .download-btn:hover {
            background: #3ab0d9;
        }

        /* Edit Mode Section */
        .edit-section {
            width: 100%;
            max-width: 1200px;
            display: none;
            margin-bottom: 2rem;
        }

        .edit-container {
            display: grid;
            grid-template-columns: 1fr 3fr;
            gap: 2rem;
        }

        .edit-tools {
            background: white;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
        }

        .tool-group {
            margin-bottom: 1.5rem;
        }

        .tool-group-title {
            font-weight: 600;
            margin-bottom: 0.8rem;
            color: var(--dark);
            font-size: 1rem;
        }

        .tool-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            width: 100%;
            border: none;
            background: var(--light-gray);
            border-radius: var(--border-radius);
            margin-bottom: 5px;
            cursor: pointer;
            transition: var(--transition);
        }

        .tool-btn.active {
            background: var(--primary);
            color: white;
        }

        .tool-btn i {
            font-size: 1.2rem;
        }

        .size-control {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
        }

        .size-control input {
            width: 100%;
        }

        .edit-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .edit-action-btn {
            padding: 10px;
            border: none;
            border-radius: var(--border-radius);
            background: var(--light-gray);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .edit-action-btn:hover {
            background: var(--primary);
            color: white;
        }

        .edit-canvas-container {
            background: white;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            overflow: hidden;
            position: relative;
        }

        .canvas-wrapper {
            width: 100%;
            height: 500px;
            overflow: auto;
            border: 1px solid var(--light-gray);
            border-radius: var(--border-radius);
            background: #f0f0f0;
            background-image: 
                linear-gradient(45deg, #e0e0e0 25%, transparent 25%), 
                linear-gradient(-45deg, #e0e0e0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #e0e0e0 75%), 
                linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
            background-size: 20px 20px;
            background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
        }

        #editCanvas {
            display: block;
            cursor: crosshair;
        }

        .zoom-controls {
            position: absolute;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .zoom-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: white;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transition);
        }

        .zoom-btn:hover {
            background: var(--primary);
            color: white;
        }

        /* Features Section */
        .features-section {
            background: white;
            padding: 3rem 0;
            margin: 3rem 0;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            font-size: 2rem;
            color: var(--primary);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .feature-item {
            text-align: center;
            padding: 1rem;
        }

        .feature-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .feature-item h3 {
            margin-bottom: 0.5rem;
            color: var(--dark);
        }

        .feature-item p {
            color: var(--gray);
        }

        /* Footer */
       /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 3rem 0 1rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-column h3 {
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            background: var(--primary);
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 0.8rem;
        }

        .footer-column a {
            color: #adb5bd;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-column a:hover {
            color: white;
            padding-left: 5px;
        }

        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid #495057;
            color: #adb5bd;
            font-size: 0.9rem;
        }
          /*footer end*/

        /* Dark Mode Toggle 11/08/2025 */
        .dark-mode-toggle {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--primary);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow);
            z-index: 100;
            transition: var(--transition);
        }

        .dark-mode-toggle:hover {
            transform: scale(1.1);
        }

        /* Dark Mode Styles */
        body.dark-mode {
            background-color: #121212;
            color: #e0e0e0;
        }

        body.dark-mode .tool-card,
        body.dark-mode .category-card,
        body.dark-mode .features,
        body.dark-mode .tabs-container {
            background: #1e1e1e;
            color: #e0e0e0;
        }

        body.dark-mode .tool-card h3,
        body.dark-mode .category-card h3,
        body.dark-mode .feature-item h3 {
            color: #e0e0e0;
        }

        body.dark-mode .tool-card p,
        body.dark-mode .category-card p,
        body.dark-mode .feature-item p {
            color: #b0b0b0;
        }

        body.dark-mode .search-box input {
            background: #2d2d2d;
            border-color: #3d3d3d;
            color: #e0e0e0;
        }

        body.dark-mode footer {
            background: #1a1a1a;
        }

        body.dark-mode .tabs {
            border-bottom-color: #3d3d3d;
        }

        body.dark-mode .tab:hover {
            background-color: #2d2d2d;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
            }

            nav ul {
                flex-direction: column;
                text-align: center;
                gap: 0.5rem;
            }

            .mobile-menu {
                display: block;
            }

            .nav-menu {
                display: none;
                width: 100%;
            }

            .nav-menu.active {
                display: block;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .section-title {
                font-size: 1.5rem;
                text-align: center;
            }

            .tabs {
                flex-direction: column;
            }

            .tab {
                text-align: center;
                border-bottom: 1px solid var(--light-gray);
                border-left: 3px solid transparent;
            }

            .tab.active {
                border-bottom: 1px solid var(--light-gray);
                border-left: 3px solid var(--primary);
            }
        }
    
    .social-icons {
        display: flex;
        gap: 18px;
        margin-top: 10px;
        justify-content: flex-start;
    }
    .social-icon {
        font-size: 2rem;
        color: #adb5bd;
        transition: transform 0.3s, color 0.3s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        background: transparent;
    }
    .social-icon:hover {
        transform: scale(1.25) rotate(-12deg);
        color: var(--primary);
        background: rgba(67, 97, 238, 0.15);
    }
    .social-icon.facebook:hover { color: #3b5998; }
    .social-icon.instagram:hover { color: #e4405f; }
    .social-icon.linkedin:hover { color: #0e76a8; }
    .social-icon.twitter:hover { color: #1da1f2; }
    .social-icon.youtube:hover { color: #ff0000; }
        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
            }

            nav ul {
                flex-direction: column;
                text-align: center;
                gap: 0.5rem;
            }

            .mobile-menu {
                display: block;
            }

            .nav-menu {
                display: none;
                width: 100%;
            }

            .nav-menu.active {
                display: block;
            }

            .tool-hero h1 {
                font-size: 2rem;
            }

            .tool-hero p {
                font-size: 1rem;
            }

            .upload-area {
                padding: 2rem 1rem;
            }

            .preview-container, .results-container {
                flex-direction: column;
            }

            .edit-container {
                grid-template-columns: 1fr;
            }

            .canvas-wrapper {
                height: 300px;
            }
        }