
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', 'Segoe UI', sans-serif;
        }

        :root {
            --primary: #FF6B35;
            --primary-dark: #E55A2B;
            --secondary: #00D4FF;
            --accent: #FFE066;
            --dark: #1A1A2E;
            --darker: #16213E;
            --light: #F8F9FA;
            --gray: #a1b0bd;
            --success: #2ECC71;
            --glass: rgba(255, 255, 255, 0.08);
            --glass-dark: rgba(0, 0, 0, 0.3);
            --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            --neon-glow: 0 0 20px rgba(255, 107, 53, 0.5);
        }

        [data-theme="light"] {
            --primary: #FF6B35;
            --primary-dark: #E55A2B;
            --secondary: #007BFF;
            --accent: #FFC107;
            --dark: #F8F9FA;
            --darker: #E9ECEF;
            --light: #d4d4f9;
            --gray: #6C757D;
            --glass: rgba(26, 26, 46, 0.08);
            --glass-dark: rgba(255, 255, 255, 0.3);
        }

        body {
            background: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
            min-height: 100vh;
            padding: 0;
            color: var(--light);
            line-height: 1.6;
            transition: all 0.5s ease;
        }

        [data-theme="light"] body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /*Logo-For Both Devices*/
        .logo{
            margin:40px auto 40px auto;
            display:table;
            border-radius:50%;
        }

        /* Ads Spaces - Fixed for Mobile */
        .img-full{
            width: 728px;
            max-width: 100%;
            margin: 0px auto 30px auto;
            display: block;
            border: 1px dashed #fff;
        }

        .ad-top {
            height:105px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 728px;
            max-width: 100%;
            margin: 0 auto 40px auto;
        }

        .ad-middle {
            height: 105px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 728px;
            max-width: 100%;
            margin: 0 auto 40px auto;
        }

        .ad-bottom {
            height: 105px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 728px;
            max-width: 100%;
            margin: 0 auto 40px auto;
        }

        /* Header Styles */
        .header {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 20px;
            margin: 15px 0 20px 0;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
            animation: slideDown 0.8s ease;
            z-index: 100;
        }

        @keyframes slideDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
        }

        .header h1 {
            background: linear-gradient(45deg, var(--accent), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-align: center;
            font-size: 28px;
            margin-bottom: 8px;
            font-weight: 800;
            text-shadow: var(--neon-glow);
            line-height: 1.3;
        }

        .header p {
            text-align: center;
            opacity: 0.9;
            font-size: 14px;
            line-height: 1.4;
        }

        .theme-toggle {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--glass);
            border: 2px solid var(--primary);
            padding: 8px;
            border-radius: 50%;
            cursor: pointer;
            color: var(--accent);
            font-size: 16px;
            transition: all 0.3s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: bounce 2s infinite;
            z-index: 101;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-5px);
            }
            60% {
                transform: translateY(-3px);
            }
        }

        .theme-toggle:hover {
            transform: rotate(180deg) scale(1.1);
            box-shadow: var(--neon-glow);
        }

        /* Mobile Menu - Completely Fixed */
        .mobile-menu-btn {
            display: none;
            position: fixed;
            top: 20px;
            left: 20px;
            background: var(--primary);
            border: 2px solid var(--accent);
            padding: 10px;
            border-radius: 12px;
            cursor: pointer;
            color: white;
            font-size: 20px;
            z-index: 1002;
            width: 50px;
            height: 50px;
            align-items: center;
            justify-content: center;
            animation: pulse 2s infinite;
            box-shadow: var(--shadow);
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(255, 107, 53, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
            }
        }

        .mobile-nav {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(26, 26, 46, 0.98);
            backdrop-filter: blur(25px);
            z-index: 1001;
            padding: 80px 20px 20px 20px;
            overflow-y: auto;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .mobile-nav.active {
            display: block;
        }

        .mobile-nav-links {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .mobile-nav-links a {
            color: var(--light);
            text-decoration: none;
            padding: 20px;
            background: var(--glass);
            border-radius: 15px;
            text-align: center;
            font-size: 19px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid rgba(255, 255, 255, 0.2);
            animation: slideInLeft 0.5s ease;
        }

        @keyframes slideInLeft {
            from {
                transform: translateX(-50px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .mobile-nav-links a:hover {
            background: var(--primary);
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
        }

        .close-menu {
            position: fixed;
            top: 25px;
            right: 25px;
            background: var(--primary);
            border: none;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 1003;
            box-shadow: var(--shadow);
        }

        .close-menu:hover {
            transform: rotate(90deg) scale(1.1);
            background: var(--secondary);
        }

        /* Desktop Navigation */
        .main-nav {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border-radius: 15px;
            padding: 12px 20px;
            margin: 12px 0;
            border: 1px solid rgba(255, 255, 255, 0.15);
            display: block;
            animation: slideUp 0.8s ease;
            z-index: 100;
            position: relative;
        }

        @keyframes slideUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .nav-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .nav-links a {
            color: var(--light);
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 12px;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 15px;
            white-space: nowrap;
            position: relative;
            overflow: hidden;
        }

        .nav-links a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
            transition: 0.5s;
        }

        .nav-links a:hover::before {
            left: 100%;
        }

        .nav-links a:hover {
            background: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
        }

        /* Main Grid */
        .main-grid {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 20px;
            margin-bottom: 25px;
            animation: fadeInUp 1s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Template Section */
        .template-section {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: var(--shadow);
            animation: zoomIn 0.8s ease;
            position: relative;
            z-index: 10;
        }

        @keyframes zoomIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .template-header {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 15px;
        }

        .template-controls {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
        }

        .search-box {
            width: 100%;
            position: relative;
        }

        .search-box input {
            width: 100%;
            padding: 12px 40px 12px 15px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            background: var(--glass-dark);
            color: white;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: var(--neon-glow);
            transform: scale(1.02);
        }

        .search-icon {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--accent);
        }

        .category-filter {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .category-btn {
            padding: 10px 15px;
            background: var(--glass-dark);
            border: 2px solid transparent;
            border-radius: 10px;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 13px;
            font-weight: 600;
            flex: 1;
            min-width: 70px;
            text-align: center;
        }

        .category-btn.active {
            background: var(--primary);
            border-color: var(--accent);
            box-shadow: var(--neon-glow);
            transform: scale(1.05);
        }

        .category-btn:hover {
            transform: translateY(-2px);
            border-color: var(--primary);
        }

        .template-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
            max-height: 400px;
            overflow-y: auto;
            padding: 10px;
            background: var(--glass-dark);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .template {
            aspect-ratio: 1;
            background: linear-gradient(135deg, var(--dark), var(--darker));
            border-radius: 10px;
            cursor: pointer;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
            border: 2px solid transparent;
            animation: fadeIn 0.5s ease;
        }

        .template:hover {
            transform: translateY(-5px) scale(1.05);
            border-color: var(--primary);
            box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
        }

        .template img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .template:hover img {
            transform: scale(1.1);
        }

        .template-name {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
            color: white;
            padding: 6px 3px;
            font-size: 10px;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            font-weight: 500;
        }

        .template:hover .template-name {
            opacity: 1;
        }

        /* Load More Button - Centered and Improved */
        .load-more-container {
            text-align: center;
            margin-top: 20px;
            padding: 10px 0;
        }

        .load-more-btn {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow);
        }

        .load-more-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
        }

        .load-more-btn:active {
            transform: translateY(-1px);
        }

        /* Meme Canvas Section - Improved Image Handling */
        .meme-section {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: var(--shadow);
            position: relative;
            animation: slideInRight 0.8s ease;
            z-index: 10;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(50px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .meme-canvas-container {
            position: relative;
            background: linear-gradient(135deg, var(--darker), var(--dark));
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            min-height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            width: 100%;
        }

        .meme-canvas-container:hover {
            transform: scale(1.02);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
        }

        #memeCanvas {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            display: none;
            border-radius: 8px;
            animation: fadeIn 0.5s ease;
            object-fit: contain;
        }

        .canvas-placeholder {
            color: var(--gray);
            text-align: center;
            padding: 60px 20px;
            animation: pulse 2s infinite;
        }

        .canvas-placeholder h3 {
            color: var(--accent);
            margin-bottom: 12px;
            font-size: 19px;
        }

        .canvas-placeholder p {
            font-size: 14px;
        }

        /* Controls Section */
        .controls-section {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: var(--shadow);
            height: fit-content;
            animation: slideInLeft 0.8s ease;
            z-index: 10;
        }

        .control-group {
            margin-bottom: 20px;
        }

        .control-group h3 {
            color: var(--accent);
            margin-bottom: 15px;
            font-size: 17px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Input Styles */
        .text-inputs {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .input-group label {
            color: var(--accent);
            font-weight: 600;
            font-size: 14px;
        }

        input, select, button {
            padding: 12px 15px;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        input, select {
            background: var(--glass-dark);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: white;
        }

        input:focus, select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: var(--neon-glow);
            transform: scale(1.02);
        }

        /* Font Size Input Styles */
        .font-size-control {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .font-size-input {
            flex: 1;
        }

        .font-size-input input {
            width: 100%;
        }

        .font-size-value {
            min-width: 40px;
            text-align: center;
            font-weight: 600;
            color: var(--accent);
            background: var(--glass-dark);
            padding: 8px;
            border-radius: 8px;
            font-size: 14px;
        }

        /* Button Styles */
        .btn {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: none;
            position: relative;
            overflow: hidden;
            font-size: 14px;
            padding: 12px 10px;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
        }

        .btn-secondary {
            background: linear-gradient(135deg, var(--secondary), #0099CC);
        }

        .btn-success {
            background: linear-gradient(135deg, var(--success), #27AE60);
        }

        .btn-danger {
            background: linear-gradient(135deg, #FF4757, #FF3742);
        }

        .action-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 15px;
        }

        /* Enhanced Color Picker */
        .color-picker {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            align-items: center;
            justify-content: center;
        }

        .color-option {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
        }

        .color-option:hover {
            transform: scale(1.2) rotate(15deg);
        }

        .color-option.active {
            border-color: var(--accent);
            box-shadow: 0 0 20px currentColor;
            transform: scale(1.1);
        }

        /* Text Colors with Labels */
        .color-white { background: #FFFFFF; color: #000; }
        .color-black { background: #000000; color: #fff; }
        .color-red { background: #FF4757; color: #fff; }
        .color-blue { background: #3742FA; color: #fff; }
        .color-green { background: #2ED573; color: #fff; }
        .color-yellow { background: #FFA502; color: #000; }
        .color-purple { background: #8B78E6; color: #fff; }
        .color-pink { background: #FF6B9D; color: #fff; }
        .color-orange { background: #FF9F43; color: #fff; }
        .color-cyan { background: #17C0EB; color: #fff; }
        .color-lime { background: #7BED9F; color: #000; }
        .color-gold { background: #FFD700; color: #000; }

        /* Features Grid */
        .features-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        /* History Section - IMPROVED */
        .history-section {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 20px;
            margin-top: 20px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: var(--shadow);
            animation: fadeIn 1s ease;
            z-index: 10;
        }

        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .history-actions {
            display: flex;
            gap: 10px;
        }

        .clear-history-btn {
            background: var(--glass-dark);
            color: var(--accent);
            border: 1px solid var(--primary);
            padding: 8px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s ease;
        }

        .clear-history-btn:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.05);
        }

        .history-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            gap: 12px;
            margin-top: 15px;
        }

        .history-item {
            aspect-ratio: 1;
            background: linear-gradient(135deg, var(--dark), var(--darker));
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            animation: zoomIn 0.5s ease;
            position: relative;
        }

        .history-item:hover {
            transform: translateY(-3px) scale(1.05);
            border-color: var(--secondary);
            box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
        }

        .history-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Remove button for history items */
        .remove-history-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(255, 71, 87, 0.9);
            color: white;
            border: none;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .history-item:hover .remove-history-btn {
            opacity: 1;
        }

        .remove-history-btn:hover {
            background: #FF4757;
            transform: scale(1.1);
        }

        .no-history {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px 20px;
            color: var(--gray);
            font-size: 14px;
        }

        .no-history p {
            margin-bottom: 10px;
        }

        /* SEO Article Section - Full 3000+ WORDS */
        .seo-article {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 40px;
            margin: 25px 0;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: var(--shadow);
            animation: fadeInUp 1s ease;
            z-index: 10;
        }

        .seo-article h2 {
            color: var(--accent);
            font-size: 35px;
            margin-bottom: 30px;
            text-align: center;
            line-height: 1.4;
            animation: slideDown 0.8s ease;
        }

        .article-content {
            font-size: 17px;
            line-height: 1.8;
        }

        .article-content h3 {
            color: var(--secondary);
            margin: 30px 0 15px 0;
            font-size: 24px;
            border-left: 4px solid var(--primary);
            padding-left: 15px;
            animation: fadeIn 0.8s ease;
        }

        .article-content p {
            margin-bottom: 20px;
            text-align: justify;
            animation: fadeIn 1s ease;
        }

        .article-content ul, .article-content ol {
            margin: 15px 0 15px 30px;
            animation: fadeIn 1s ease;
        }

        .article-content li {
            margin-bottom: 10px;
            animation: slideInLeft 0.5s ease;
        }

        .keyword-highlight {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 700;
            padding: 2px 4px;
            border-radius: 4px;
        }

        .article-tip {
            background: var(--glass-dark);
            border-left: 4px solid var(--accent);
            padding: 20px;
            margin: 20px 0;
            border-radius: 8px;
            animation: slideInRight 0.8s ease;
        }

        .article-note {
            background: linear-gradient(135deg, var(--glass), var(--primary-dark));
            border: 2px solid var(--primary);
            padding: 25px;
            margin: 25px 0;
            border-radius: 12px;
            text-align: center;
            animation: pulse 3s infinite;
        }

        /* Footer Styles */
        .footer {
            background: var(--glass);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 25px;
            margin: 30px 0 15px 0;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: var(--shadow);
            animation: fadeInUp 1s ease;
            z-index: 10;
        }

        .footer-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            text-align: center;
        }

        .footer-links {
            display: flex;
            gap: 25px;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 15px;
        }

        .footer-links a {
            color: var(--light);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 14px;
            padding: 10px 20px;
            border-radius: 10px;
            background: var(--glass-dark);
            font-weight: 600;
        }

        .footer-links a:hover {
            color:#ffffff;
            background: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--gray);
            font-size: 13px;
        }

        /* Back to Top */
        .back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: var(--primary);
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-size: 17px;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            z-index: 999;
            animation: bounce 2s infinite;
        }

        .back-to-top:hover {
            transform: translateY(-3px) scale(1.1);
            background: var(--secondary);
        }

        /* ===== MOBILE RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .main-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .container {
                padding: 0 12px;
            }
        }

        @media (max-width: 768px) {
            /* Hide desktop nav, show mobile menu button */
            .main-nav {
                display: none;
            }
            
            .mobile-menu-btn {
                display: flex;
            }
            
            .ad-top {
                margin-top:15px; /* Fixed space for mobile menu */
            }
            
            .header h1 {
                font-size: 25px;
                margin-left: 40px;
                margin-right: 40px;
            }
            
            .template-gallery {
                grid-template-columns: repeat(3, 1fr);
                max-height: 350px;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
            }
            
            .action-buttons {
                grid-template-columns: 1fr;
            }
            
            .seo-article {
                padding: 25px;
            }
            
            .seo-article h2 {
                font-size: 25px;
            }
            
            .article-content {
                font-size: 16px;
            }
            
            .footer-links {
                flex-direction: column;
                gap: 15px;
            }
            
            .color-picker {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .meme-canvas-container {
                min-height: 350px;
            }

            .history-header {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }

            .history-actions {
                align-self: flex-end;
            }
        }

        @media (max-width: 480px) {
            .logo {
                margin: 0px auto 20px auto;
                display: table;
                border-radius: 50%;
            }

            .img-full{
                width:728px;
                max-width:100%;
            }
            
            .template-gallery {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .header h1 {
                font-size: 22px;
                margin-left: 30px;
                margin-right: 30px;
            }
            
            .theme-toggle, .mobile-menu-btn {
                width: 40px;
                height: 40px;
            }
            
            .mobile-menu-btn {
                top: 15px;
                left: 15px;
            }
            
            .close-menu {
                top: 20px;
                right: 15px;
            }
            
            .seo-article h2 {
                font-size: 22px;
            }
            
            .article-content {
                font-size: 15px;
            }
            
            .color-picker {
                grid-template-columns: repeat(4, 1fr);
                gap: 8px;
            }
            
            .color-option {
                width: 30px;
                height: 30px;
                font-size: 10px;
            }
            
            .meme-canvas-container {
                min-height: 300px;
            }

            .history-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 360px) {
            .template-gallery {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            
            .header h1 {
                font-size: 20px;
            }
            
            .category-btn {
                font-size: 12px;
                padding: 8px 10px;
            }
            
            .color-picker {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .seo-article {
                padding: 20px;
            }

            .history-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }