File size: 32,069 Bytes
2e24415
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20bf1a7
 
2e24415
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20bf1a7
 
 
 
 
 
 
2e24415
 
 
 
20bf1a7
 
 
 
 
2e24415
20bf1a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2e24415
20bf1a7
 
 
 
 
 
 
 
 
 
 
 
 
2e24415
20bf1a7
 
 
 
 
2e24415
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MagicQuill | AI-Powered Image Editing</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#7E22CE',
                        secondary: '#3B82F6',
                        dark: '#0F172A',
                        light: '#F8FAFC'
                    }
                }
            }
        }
    </script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            min-height: 100vh;
            background-attachment: fixed;
        }
        
        .gallery-item {
            transition: all 0.3s ease;
        }
        
        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }
        
        .editor-tool:hover {
            background: rgba(126, 34, 206, 0.2);
            color: #e9d5ff;
        }
        
        .drag-area {
            border: 2px dashed #7E22CE;
            border-radius: 12px;
            transition: all 0.3s ease;
        }
        
        .drag-area.active {
            background-color: rgba(126, 34, 206, 0.1);
        }
        
        .progress-ring__circle {
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
            transition: stroke-dashoffset 0.3s;
        }
        
        .glow {
            box-shadow: 0 0 15px rgba(126, 34, 206, 0.7);
        }
    </style>
</head>
<body class="text-light">
    <!-- Header -->
    <header class="bg-dark/70 backdrop-blur-sm border-b border-gray-700 sticky top-0 z-50">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <div class="bg-primary p-2 rounded-lg">
                    <i class="fas fa-wand-magic-sparkles text-xl"></i>
                </div>
                <h1 class="text-2xl font-bold">MagicQuill</h1>
            </div>
            
            <nav class="hidden md:flex space-x-6">
                <a href="#" class="hover:text-primary transition">Home</a>
                <a href="#" class="hover:text-primary transition">Gallery</a>
                <a href="#" class="hover:text-primary transition">Features</a>
                <a href="#" class="hover:text-primary transition">Tutorials</a>
            </nav>
            
            <div class="flex items-center space-x-4">
                <button class="bg-gray-700 hover:bg-gray-600 transition rounded-full h-10 w-10 flex items-center justify-center">
                    <i class="fas fa-bell"></i>
                </button>
                <button class="bg-gradient-to-r from-primary to-secondary px-5 py-2 rounded-lg hover:opacity-90 transition font-medium">
                    Try Free
                </button>
            </div>
        </div>
    </header>
    
    <main>
        <!-- Hero Section -->
        <section class="pt-16 pb-12 container mx-auto px-4 text-center">
            <div class="max-w-3xl mx-auto">
                <h1 class="text-4xl md:text-5xl font-bold mb-4 leading-tight">
                    Transform Your Images with <span class="text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-primary">AI Magic</span>
                </h1>
                <p class="text-lg text-gray-300 mb-8">
                    The most powerful AI-powered image editing tool. Generate, enhance, and transform visuals with simple text prompts.
                </p>
                
                <div class="flex flex-col sm:flex-row justify-center gap-4">
                    <button class="bg-gradient-to-r from-primary to-purple-500 hover:from-purple-500 hover:to-primary px-8 py-3 rounded-lg text-lg font-semibold transition-all transform hover:scale-[1.02]">
                        <i class="fas fa-play mr-2"></i> Start Creating
                    </button>
                    <button class="bg-gray-700 hover:bg-gray-600 border border-gray-600 px-8 py-3 rounded-lg text-lg font-semibold transition">
                        <i class="fas fa-image mr-2"></i> View Gallery
                    </button>
                </div>
            </div>
        </section>
        
        <!-- Editing Interface -->
        <section class="my-16 container mx-auto px-4">
            <div class="bg-gray-800/60 rounded-2xl overflow-hidden border border-gray-700 shadow-2xl">
                <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
                    <!-- Tools Panel -->
                    <div class="p-6 bg-gray-900/30">
                        <h2 class="text-xl font-semibold mb-4 flex items-center">
                            <i class="fas fa-sliders-h mr-2 text-primary"></i> Editing Tools
                        </h2>
                        
                        <div class="space-y-4">
                            <div>
                                <label class="block text-sm mb-2">Prompt Strength</label>
                                <input type="range" min="0" max="100" value="75" class="w-full accent-primary">
                            </div>
                            
                            <div>
                                <label class="block text-sm mb-2">Creativity Level</label>
                                <input type="range" min="0" max="100" value="60" class="w-full accent-secondary">
                            </div>
                            
                            <div>
                                <label class="block text-sm mb-2">Style Similarity</label>
                                <input type="range" min="0" max="100" value="85" class="w-full accent-purple-500">
                            </div>
                        </div>
                        
                        <div class="mt-8">
                            <h3 class="font-medium mb-3">Quick Edits</h3>
                            <div class="grid grid-cols-3 gap-2">
                                <button class="editor-tool flex flex-col items-center justify-center p-3 rounded-lg bg-gray-700 hover:bg-primary/20 transition cursor-pointer">
                                    <i class="fas fa-sun text-yellow-300 text-xl mb-2"></i>
                                    <span class="text-xs">Brighten</span>
                                </button>
                                <button class="editor-tool flex flex-col items-center justify-center p-3 rounded-lg bg-gray-700 hover:bg-primary/20 transition cursor-pointer">
                                    <i class="fas fa-cloud-rain text-blue-400 text-xl mb-2"></i>
                                    <span class="text-xs">Enhance</span>
                                </button>
                                <button class="editor-tool flex flex-col items-center justify-center p-3 rounded-lg bg-gray-700 hover:bg-primary/20 transition cursor-pointer">
                                    <i class="fas fa-magic text-purple-400 text-xl mb-2"></i>
                                    <span class="text-xs">Artify</span>
                                </button>
                                <button class="editor-tool flex flex-col items-center justify-center p-3 rounded-lg bg-gray-700 hover:bg-primary/20 transition cursor-pointer">
                                    <i class="fas fa-expand-arrows-alt text-green-400 text-xl mb-2"></i>
                                    <span class="text-xs">Zoom+</span>
                                </button>
                                <button class="editor-tool flex flex-col items-center justify-center p-3 rounded-lg bg-gray-700 hover:bg-primary/20 transition cursor-pointer">
                                    <i class="fas fa-crop text-orange-400 text-xl mb-2"></i>
                                    <span class="text-xs">Crop</span>
                                </button>
                                <button class="editor-tool flex flex-col items-center justify-center p-3 rounded-lg bg-gray-700 hover:bg-primary/20 transition cursor-pointer">
                                    <i class="fas fa-paint-brush text-pink-400 text-xl mb-2"></i>
                                    <span class="text-xs">Draw</span>
                                </button>
                            </div>
                        </div>
                        
                        <button class="w-full mt-6 bg-gradient-to-r from-primary to-secondary p-3 rounded-lg font-medium hover:opacity-90 transition flex items-center justify-center">
                            <i class="fas fa-bolt mr-2"></i> Apply Changes
                        </button>
                    </div>
                    
                    <!-- Image Canvas -->
                    <div class="p-6 flex flex-col">
                        <div class="bg-gradient-to-br from-gray-900 to-dark border-2 border-dashed border-gray-700 rounded-xl h-96 w-full overflow-hidden relative flex items-center justify-center">
                            <img id="main-image" src="https://images.unsplash.com/photo-1683009427051-00a2fe827a2c?q=80&w=300" alt="Editing Preview" class="w-full h-full object-cover hidden">
                            
                            <div id="upload-ui" class="text-center p-8">
                                <div class="mb-4">
                                    <i class="fas fa-cloud-upload-alt text-4xl text-primary mb-3"></i>
                                    <h3 class="text-xl font-medium">Drag & Drop to Upload</h3>
                                    <p class="text-gray-400 text-sm mt-2">or click to browse</p>
                                </div>
                                
                                <input type="file" id="file-input" class="hidden" accept="image/*">
                                <button id="browse-btn" class="bg-gray-700 hover:bg-gray-600 px-4 py-2 rounded-lg mt-2 transition">
                                    Select Image
                                </button>
                            </div>
                        </div>
                        
                        <div class="mt-6">
                            <div class="drag-area bg-dark/60 border-2 border-dashed border-primary rounded-lg p-4 mb-4 flex items-center transition-colors duration-300">
                                <i class="fas fa-keyboard text-primary mr-3"></i>
                                <input 
                                    type="text" 
                                    placeholder="Describe your image edit... (e.g., 'make it sunset, add mountains in background')" 
                                    class="w-full bg-transparent outline-none placeholder-gray-500"
                                >
                                <button class="bg-primary hover:bg-purple-600 ml-2 px-4 py-2 rounded-lg text-sm transition">
                                    Generate
                                </button>
                            </div>
                            
                            <div class="text-sm flex items-center">
                                <div class="mr-4 flex items-center">
                                    <div class="relative w-8 h-8 mr-2">
                                        <svg class="w-8 h-8" viewBox="0 0 36 36">
                                            <circle cx="18" cy="18" r="15.9155" fill="none" stroke="#333" stroke-width="3" />
                                            <circle class="progress-ring__circle" cx="18" cy="18" r="15.9155" fill="none" stroke="#7E22CE" stroke-width="3" stroke-dasharray="100" stroke-dashoffset="40" />
                                        </svg>
                                        <span class="absolute inset-0 flex items-center justify-center text-xs">60%</span>
                                    </div>
                                    <span>AI Processing</span>
                                </div>
                                
                                <div class="flex space-x-2">
                                    <button class="hover:bg-gray-700 p-2 rounded-full transition">
                                        <i class="fas fa-undo text-gray-400"></i>
                                    </button>
                                    <button class="hover:bg-gray-700 p-2 rounded-full transition">
                                        <i class="fas fa-redo text-gray-400"></i>
                                    </button>
                                    <button class="hover:bg-gray-700 p-2 rounded-full transition">
                                        <i class="fas fa-trash text-gray-400"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- History & Presets -->
                    <div class="p-6 bg-gray-900/30">
                        <div class="mb-8">
                            <h2 class="text-xl font-semibold mb-4 flex items-center">
                                <i class="fas fa-history mr-2 text-primary"></i> Edit History
                            </h2>
                            
                            <div class="space-y-3">
                                <div class="flex items-center bg-gray-800/60 p-3 rounded-lg border border-gray-700">
                                    <div class="bg-gradient-to-r from-primary to-secondary w-10 h-10 rounded-lg mr-3"></div>
                                    <div>
                                        <div class="font-medium text-sm">Enhance colors</div>
                                        <div class="text-xs text-gray-400">1 min ago</div>
                                    </div>
                                </div>
                                <div class="flex items-center bg-gray-800/60 p-3 rounded-lg">
                                    <div class="bg-gradient-to-r from-blue-500 to-cyan-400 w-10 h-10 rounded-lg mr-3"></div>
                                    <div>
                                        <div class="font-medium text-sm">Added sky details</div>
                                        <div class="text-xs text-gray-400">3 min ago</div>
                                    </div>
                                </div>
                                <div class="flex items-center bg-gray-800/60 p-3 rounded-lg">
                                    <div class="bg-gradient-to-r from-purple-500 to-pink-500 w-10 h-10 rounded-lg mr-3"></div>
                                    <div>
                                        <div class="font-medium text-sm">Artistic filter</div>
                                        <div class="text-xs text-gray-400">5 min ago</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div>
                            <h2 class="text-xl font-semibold mb-4 flex items-center">
                                <i class="fas fa-gem mr-2 text-primary"></i> Style Presets
                            </h2>
                            
                            <div class="grid grid-cols-2 gap-3">
                                <div class="cursor-pointer p-3 rounded-lg bg-gray-800/60 border border-gray-700 hover:border-primary transition group">
                                    <div class="font-medium text-sm mb-1 group-hover:text-primary">Cinematic</div>
                                    <div class="text-xs text-gray-400">Deep colors, dramatic</div>
                                </div>
                                <div class="cursor-pointer p-3 rounded-lg bg-gray-800/60 border border-gray-700 hover:border-primary transition group">
                                    <div class="font-medium text-sm mb-1 group-hover:text-primary">Watercolor</div>
                                    <div class="text-xs text-gray-400">Soft painted effect</div>
                                </div>
                                <div class="cursor-pointer p-3 rounded-lg bg-gray-800/60 border border-gray-700 hover:border-primary transition group">
                                    <div class="font-medium text-sm mb-1 group-hover:text-primary">Cyberpunk</div>
                                    <div class="text-xs text-gray-400">Neon, futuristic</div>
                                </div>
                                <div class="cursor-pointer p-3 rounded-lg bg-gray-800/60 border border-gray-700 hover:border-primary transition group">
                                    <div class="font-medium text-sm mb-1 group-hover:text-primary">Anime</div>
                                    <div class="text-xs text-gray-400">Japanese animation</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- Gallery Preview -->
        <section class="my-20 container mx-auto px-4">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold">Inspiring Creations</h2>
                <button class="text-primary hover:underline">View All</button>
            </div>
            
            <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-5">
                <!-- Gallery Items -->
                <div class="gallery-item rounded-xl overflow-hidden group">
                    <div class="h-64 bg-gradient-to-tr from-violet-700 to-fuchsia-800 relative">
                        <div class="absolute top-3 left-3 bg-gray-900 px-3 py-1 rounded-full text-sm">
                            <i class="fas fa-mountain mr-1"></i> Landscape
                        </div>
                        <div class="absolute bottom-0 w-full bg-gradient-to-t from-gray-900 to-transparent p-3 text-sm">
                            "Sunset over mountains, vibrant colors"
                        </div>
                    </div>
                    <div class="bg-gray-800 p-3">
                        <div class="flex justify-between items-center">
                            <div>4.8 <i class="fas fa-star text-yellow-400"></i></div>
                            <div class="text-xs flex items-center">
                                <i class="fas fa-clock mr-1"></i> 15 sec ago
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="gallery-item rounded-xl overflow-hidden group">
                    <div class="h-64 bg-gradient-to-tr from-blue-900 to-teal-800 relative">
                        <div class="absolute top-3 left-3 bg-gray-900 px-3 py-1 rounded-full text-sm">
                            <i class="fas fa-water mr-1"></i> Ocean
                        </div>
                        <div class="absolute bottom-0 w-full bg-gradient-to-t from-gray-900 to-transparent p-3 text-sm">
                            "Underwater scene with colorful fish"
                        </div>
                    </div>
                    <div class="bg-gray-800 p-3">
                        <div class="flex justify-between items-center">
                            <div>4.5 <i class="fas fa-star text-yellow-400"></i></div>
                            <div class="text-xs flex items-center">
                                <i class="fas fa-clock mr-1"></i> 1 min ago
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="gallery-item rounded-xl overflow-hidden group">
                    <div class="h-64 bg-gradient-to-tr from-amber-800 to-orange-700 relative">
                        <div class="absolute top-3 left-3 bg-gray-900 px-3 py-1 rounded-full text-sm">
                            <i class="fas fa-city mr-1"></i> Urban
                        </div>
                        <div class="absolute bottom-0 w-full bg-gradient-to-t from-gray-900 to-transparent p-3 text-sm">
                            "Futuristic cityscape at night"
                        </div>
                    </div>
                    <div class="bg-gray-800 p-3">
                        <div class="flex justify-between items-center">
                            <div>5.0 <i class="fas fa-star text-yellow-400"></i></div>
                            <div class="text-xs flex items-center">
                                <i class="fas fa-clock mr-1"></i> 3 min ago
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="gallery-item rounded-xl overflow-hidden group">
                    <div class="h-64 bg-gradient-to-tr from-purple-800 to-blue-800 relative">
                        <div class="absolute top-3 left-3 bg-gray-900 px-3 py-1 rounded-full text-sm">
                            <i class="fas fa-hat-wizard mr-1"></i> Fantasy
                        </div>
                        <div class="absolute bottom-0 w-full bg-gradient-to-t from-gray-900 to-transparent p-3 text-sm">
                            "Magical forest with glowing creatures"
                        </div>
                    </div>
                    <div class="bg-gray-800 p-3">
                        <div class="flex justify-between items-center">
                            <div>4.9 <i class="fas fa-star text-yellow-400"></i></div>
                            <div class="text-xs flex items-center">
                                <i class="fas fa-clock mr-1"></i> 8 min ago
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>
    
    <!-- Footer -->
    <footer class="border-t border-gray-800 mt-20 py-10">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-xl font-bold mb-4 flex items-center">
                        <div class="bg-primary p-2 rounded-lg mr-2">
                            <i class="fas fa-wand-magic-sparkles"></i>
                        </div>
                        MagicQuill
                    </h3>
                    <p class="text-gray-400 text-sm">
                        AI-powered image generation and editing for everyone.
                    </p>
                </div>
                
                <div>
                    <h4 class="font-medium text-lg mb-4">Features</h4>
                    <ul class="space-y-2 text-gray-400">
                        <li class="hover:text-primary transition cursor-pointer">AI Image Editing</li>
                        <li class="hover:text-primary transition cursor-pointer">Text-to-Image</li>
                        <li class="hover:text-primary transition cursor-pointer">Style Transfer</li>
                        <li class="hover:text-primary transition cursor-pointer">Upscaling</li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="font-medium text-lg mb-4">Resources</h4>
                    <ul class="space-y-2 text-gray-400">
                        <li class="hover:text-primary transition cursor-pointer">Documentation</li>
                        <li class="hover:text-primary transition cursor-pointer">Tutorials</li>
                        <li class="hover:text-primary transition cursor-pointer">API Access</li>
                        <li class="hover:text-primary transition cursor-pointer">Community</li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="font-medium text-lg mb-4">Subscribe</h4>
                    <p class="text-gray-400 mb-3 text-sm">Get notified about new features</p>
                    <div class="flex">
                        <input type="email" placeholder="Your email" class="bg-gray-800 rounded-l-lg px-3 py-2 outline-none w-full">
                        <button class="bg-primary hover:bg-purple-600 rounded-r-lg px-4 transition">
                            <i class="fas fa-paper-plane"></i>
                        </button>
                    </div>
                </div>
            </div>
            
            <div class="border-t border-gray-800 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center">
                <p class="text-gray-500 text-sm">© 2023 MagicQuill AI. All rights reserved.</p>
                <div class="flex space-x-4 mt-4 md:mt-0">
                    <a href="#" class="text-gray-400 hover:text-primary transition">
                        <i class="fab fa-twitter"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-primary transition">
                        <i class="fab fa-discord"></i>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-primary transition">
                        <i class="fab fa-github"></i>
                    </a>
                </div>
            </div>
        </div>
    </footer>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // File upload functionality
            const fileInput = document.getElementById('file-input');
            const browseBtn = document.getElementById('browse-btn');
            const uploadUI = document.getElementById('upload-ui');
            const mainImage = document.getElementById('main-image');
            const dragArea = document.querySelector('.drag-area');
            const promptInput = document.querySelector('.drag-area input');
            const generateBtn = document.querySelector('.drag-area button');
            
            browseBtn.addEventListener('click', () => {
                fileInput.click();
            });
            
            fileInput.addEventListener('change', function(e) {
                if (e.target.files.length) {
                    uploadImage(e.target.files[0]);
                }
            });
            
            // Drag and drop functionality
            ['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
                dragArea.addEventListener(eventName, preventDefaults, false);
            });
            
            function preventDefaults(e) {
                e.preventDefault();
                e.stopPropagation();
            }
            
            ['dragenter', 'dragover'].forEach(eventName => {
                dragArea.addEventListener(eventName, highlight, false);
            });
            
            ['dragleave', 'drop'].forEach(eventName => {
                dragArea.addEventListener(eventName, unhighlight, false);
            });
            
            function highlight() {
                dragArea.classList.add('active', 'glow');
            }
            
            function unhighlight() {
                dragArea.classList.remove('active', 'glow');
            }
            
            dragArea.addEventListener('drop', handleDrop, false);
            
            function handleDrop(e) {
                const dt = e.dataTransfer;
                const file = dt.files[0];
                if (file.type.match('image.*')) {
                    uploadImage(file);
                }
            }
            
            function uploadImage(file) {
                const reader = new FileReader();
                
                reader.onload = function(e) {
                    mainImage.src = e.target.result;
                    uploadUI.style.display = 'none';
                    mainImage.classList.remove('hidden');
                    
                    // Auto-detect if no prompt is provided
                    if (!promptInput.value.trim()) {
                        setTimeout(() => {
                            processClothingRemoval(mainImage.src);
                        }, 1000);
                    }
                };
                
                reader.readAsDataURL(file);
            }

            function processClothingRemoval(imageSrc) {
                // Simulate AI processing
                const progressRing = document.querySelector('.progress-ring__circle');
                const progressText = document.querySelector('.progress-ring__circle + span');
                
                let progress = 0;
                const interval = setInterval(() => {
                    progress += 10;
                    if (progress > 100) {
                        clearInterval(interval);
                        progress = 100;
                        // Show final result
                        setTimeout(() => {
                            mainImage.src = simulateClothingRemoval(imageSrc);
                            progressText.textContent = "Done!";
                        }, 500);
                    }
                    progressRing.style.strokeDashoffset = 100 - progress;
                    progressText.textContent = `${progress}%`;
                }, 300);
            }

            function simulateClothingRemoval(imageSrc) {
                // In a real implementation, this would call an AI API
                // For demo purposes, we'll just modify the image URL
                return imageSrc + "&autoedit=clothing-removed";
            }

            // Handle manual generation
            generateBtn.addEventListener('click', () => {
                if (mainImage.src && !mainImage.classList.contains('hidden')) {
                    processClothingRemoval(mainImage.src);
                }
            });
            
            // Initialize progress at 0%
            const progressRing = document.querySelector('.progress-ring__circle');
            const progressText = document.querySelector('.progress-ring__circle + span');
            progressRing.style.strokeDashoffset = 100;
            progressText.textContent = "0%";
            
            // Tool hover effects
            const tools = document.querySelectorAll('.editor-tool');
            tools.forEach(tool => {
                tool.addEventListener('mouseenter', () => {
                    tool.classList.add('glow');
                });
                
                tool.addEventListener('mouseleave', () => {
                    tool.classList.remove('glow');
                });
            });
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=DeletedUser8688/beta-auto-magicquil" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>