File size: 27,784 Bytes
b070945
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Google</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        .glass-btn {
            backdrop-filter: blur(24px) saturate(200%);
            background: rgba(255, 255, 255, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.25);
            box-shadow: 
                0 4px 30px rgba(0, 0, 0, 0.1),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
            will-change: transform, box-shadow, background;
        }

        .glass-btn:hover {
            background: rgba(255, 255, 255, 0.45);
            transform: translateY(-4px) scale(1.02);
            box-shadow: 
                0 8px 40px rgba(0, 0, 0, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.3);
        }

        .glass-btn:active {
            transform: translateY(0) scale(0.98);
        }
        
        .floating-dots {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -1;
        }
        
        .dot {
            position: absolute;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            filter: blur(4px);
            animation: float-up 15s ease-in-out infinite;
            box-shadow: 
                0 0 30px rgba(255,255,255,0.8),
                inset 0 0 10px rgba(255,255,255,0.5);
            opacity: 0.9;
            will-change: transform;
            mix-blend-mode: overlay;
        }
        
        @keyframes float-up {
            0% {
                transform: translateY(100vh) scale(0);
                opacity: 0;
            }
            10% {
                opacity: 0.7;
            }
            90% {
                opacity: 0.7;
            }
            100% {
                transform: translateY(-20vh) scale(1.5);
                opacity: 0;
            }
        }

        :root {
            --primary-color: #4285F4;
            --primary-light: #EBF2FF;
            --glass-blur: 5px;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            min-height: 100vh;
        }

        body.bg-gradient {
            background: linear-gradient(-45deg, #f0f4ff, #e6f0ff, #f5f9ff);
            background-size: 400% 400%;
            animation: gradient 15s ease infinite;
        }

        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        .search-box {
            backdrop-filter: blur(24px) saturate(200%);
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 
                0 4px 30px rgba(0, 0, 0, 0.1),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
        }
        .search-box:hover {
            transform: translateY(-4px) scale(1.02);
            background: rgba(255, 255, 255, 0.7);
            box-shadow: 
                0 8px 40px rgba(0, 0, 0, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.3);
        }
        .btn {
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            font-weight: 500;
        }
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        @keyframes float {
            0%, 100% { 
                transform: translateY(0px) rotate(0deg) scale(1);
                filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
            }
            50% { 
                transform: translateY(-20px) rotate(3deg) scale(1.03);
                filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
            }
        }
        .animate-float {
            animation: float 6s ease-in-out infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
        .animate-bounce {
            animation: bounce 2s ease infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        .animate-pulse {
            animation: pulse 3s ease infinite;
        }

        .glass-btn, .search-box {
            backdrop-filter: blur(var(--glass-blur));
        }

        #customization-panel {
            transform-origin: left center;
            opacity: 0;
            transform: translateX(-100%) scale(0.95);
            transition: all 0.6s cubic-bezier(0.68,-0.6,0.32,1.6);
            left: 0;
            right: auto;
            backdrop-filter: blur(25px) saturate(200%);
            background: rgba(255, 255, 255, 0.85);
            border-right: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 20px 0 50px rgba(0,0,0,0.1);
        }

        #customization-panel.show {
            opacity: 1;
            transform: translateX(0) scale(1);
            box-shadow: 30px 0 60px rgba(0,0,0,0.15);
        }

        #customization-panel.show {
            opacity: 1;
            transform: translateX(0) scale(1);
            box-shadow: 20px 0 50px rgba(0,0,0,0.1);
        }
    </style>
</head>
<body class="flex flex-col min-h-screen text-gray-800 relative overflow-hidden bg-gradient">
    <div class="floating-dots" id="dots-container"></div>
    <div class="absolute inset-0 overflow-hidden pointer-events-none">
        <div class="absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-white/10 opacity-30"></div>
    </div>
    <!-- Header -->
    <header class="flex justify-between items-center p-6">
        <div></div>
        <div class="flex space-x-6 items-center text-sm">
            <button id="settings-btn" class="glass-btn p-3 rounded-full hover:bg-white/30 transition-all duration-300">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
                    <path fill-rule="evenodd" d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z" clip-rule="evenodd" />
                </svg>
            </button>
        </div>
    </header>

    <!-- Customization Panel -->
    <div id="customization-panel" class="fixed top-0 right-0 h-full w-80 bg-white/90 backdrop-blur-lg shadow-xl z-50 p-6 overflow-y-auto">
        <div class="flex justify-between items-center mb-6">
            <h2 class="text-xl font-semibold">Customize Appearance</h2>
            <button id="close-panel" class="p-2 rounded-full hover:bg-gray-100">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
                    <path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" />
                </svg>
            </button>
        </div>

        <div class="space-y-6">
            <div>
                <h3 class="font-medium mb-3">Background</h3>
                <div class="grid grid-cols-3 gap-3">
                    <button data-bg="gradient" class="bg-gradient-to-r from-blue-100 to-purple-100 h-12 rounded-lg border"></button>
                    <button data-bg="solid-blue" class="bg-blue-50 h-12 rounded-lg border"></button>
                    <button data-bg="solid-gray" class="bg-gray-50 h-12 rounded-lg border"></button>
                </div>
            </div>

            <div>
                <h3 class="font-medium mb-3">Animation Style</h3>
                <select id="animation-style" class="w-full p-2 border rounded-lg">
                    <option value="float">Floating</option>
                    <option value="bounce">Bounce</option>
                    <option value="pulse">Pulse</option>
                    <option value="none">None</option>
                </select>
            </div>

            <div>
                <h3 class="font-medium mb-3">Glass Effect</h3>
                <input type="range" id="glass-effect" min="0" max="10" value="5" class="w-full">
            </div>

            <div>
                <h3 class="font-medium mb-3">Color Scheme</h3>
                <div class="grid grid-cols-7 gap-2">
                    <button data-color="blue" class="bg-blue-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="purple" class="bg-purple-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="green" class="bg-green-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="red" class="bg-red-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="indigo" class="bg-indigo-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="pink" class="bg-pink-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="teal" class="bg-teal-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="yellow" class="bg-yellow-400 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="orange" class="bg-orange-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="cyan" class="bg-cyan-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="fuchsia" class="bg-fuchsia-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="rose" class="bg-rose-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="violet" class="bg-violet-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                    <button data-color="emerald" class="bg-emerald-500 h-8 rounded-full transition-transform hover:scale-110"></button>
                </div>

                <div>
                    <h3 class="font-medium mb-3">Color Intensity</h3>
                    <input type="range" id="color-intensity" min="100" max="900" step="100" value="500" class="w-full">
                </div>

                <div>
                    <h3 class="font-medium mb-3">Background Image</h3>
                    <div class="grid grid-cols-3 gap-3">
                        <button data-bg-img="mountains" class="bg-gray-200 h-12 rounded-lg border overflow-hidden">
                            <div class="h-full bg-gradient-to-br from-blue-400 to-purple-600"></div>
                        </button>
                        <button data-bg-img="beach" class="bg-gray-200 h-12 rounded-lg border overflow-hidden">
                            <div class="h-full bg-gradient-to-br from-blue-300 to-amber-200"></div>
                        </button>
                        <button data-bg-img="forest" class="bg-gray-200 h-12 rounded-lg border overflow-hidden">
                            <div class="h-full bg-gradient-to-br from-green-500 to-emerald-800"></div>
                        </button>
                        <button data-bg-img="sunset" class="bg-gray-200 h-12 rounded-lg border overflow-hidden">
                            <div class="h-full bg-gradient-to-br from-orange-400 to-pink-600"></div>
                        </button>
                        <button data-bg-img="space" class="bg-gray-200 h-12 rounded-lg border overflow-hidden">
                            <div class="h-full bg-gradient-to-br from-indigo-900 to-purple-900"></div>
                        </button>
                        <button data-bg-img="none" class="bg-gray-200 h-12 rounded-lg border flex items-center justify-center">
                            <span class="text-xs">None</span>
                        </button>
                    </div>
                </div>
            </div>

            <div>
                <h3 class="font-medium mb-3">Bubble Effects</h3>
                <div class="space-y-3">
                    <div>
                        <label class="block text-sm mb-1">Bubble Count</label>
                        <input type="range" id="bubble-count" min="5" max="50" value="20" class="w-full">
                    </div>
                    <div>
                        <label class="block text-sm mb-1">Bubble Speed</label>
                        <input type="range" id="bubble-speed" min="5" max="30" value="15" class="w-full">
                    </div>
                    <div>
                        <label class="block text-sm mb-1">Bubble Size</label>
                        <input type="range" id="bubble-size" min="2" max="20" value="10" class="w-full">
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Main Content -->
    <main class="flex-grow flex flex-col items-center justify-center px-4 -mt-20 relative z-10">
        <div class="mb-8 transform transition duration-500 hover:scale-105 animate-float">
            <img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="Google" class="w-64 md:w-72">
        </div>

        <!-- Search Box -->
        <div class="w-full max-w-2xl mb-12">
            <div class="relative flex items-center search-box bg-white rounded-2xl px-6 py-4 mb-6 w-full max-w-xl mx-auto">
                <svg class="w-5 h-5 text-gray-400 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
                </svg>
                <input type="text" class="flex-grow outline-none bg-transparent text-lg placeholder-gray-400" placeholder="Search">
            </div>
            <div class="flex justify-center space-x-4">
                <button class="glass-btn px-6 py-3 rounded-full text-sm font-medium hover:shadow-lg transition-all duration-300">
                    Google Search
                </button>
                <button class="glass-btn px-6 py-3 rounded-full text-sm font-medium hover:shadow-lg transition-all duration-300 ml-4">
                    I'm Feeling Lucky
                </button>
            </div>
        </div>


        <!-- Language Section -->
        <div class="text-sm text-gray-600 mb-8">
            <span>Google offered in: </span>
            <a href="#" class="text-blue-600 hover:underline">Español</a>
            <a href="#" class="text-blue-600 hover:underline ml-2">Français</a>
            <a href="#" class="text-blue-600 hover:underline ml-2">中文</a>
        </div>
    </main>

    <!-- Footer -->
    <footer class="bg-white/50 text-xs text-gray-600 border-t border-gray-100 backdrop-blur-sm overflow-hidden transition-all duration-500" style="height: 3.5rem; padding: 0.5rem 2rem;">
        <div class="h-full flex flex-col justify-center">
            <div class="flex justify-between items-center">
                <span class="opacity-0 md:opacity-100">Google Footer</span>
                <button id="toggle-footer" class="text-gray-500 hover:text-gray-700 transition-transform duration-300">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor">
                        <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
                    </svg>
                </button>
            </div>
            <div class="flex flex-col md:flex-row md:justify-between">
                <div class="flex flex-wrap gap-x-6 mb-2 md:mb-0">
                    <a href="#" class="hover:underline">About</a>
                    <a href="#" class="hover:underline">Advertising</a>
                    <a href="#" class="hover:underline">Business</a>
                </div>
                <div class="flex flex-wrap gap-x-6">
                    <a href="#" class="hover:underline">Privacy</a>
                    <a href="#" class="hover:underline">Terms</a>
                    <a href="#" class="hover:underline">Settings</a>
                </div>
            </div>
        </div>
    </footer>

    <script>
        // Customization functions
        function setupCustomization() {
            const panel = document.getElementById('customization-panel');
            const settingsBtn = document.getElementById('settings-btn');
            const closeBtn = document.getElementById('close-panel');

            // Toggle panel
            settingsBtn.addEventListener('click', () => {
                panel.classList.toggle('show');
            });

            closeBtn.addEventListener('click', () => {
                panel.classList.remove('show');
            });

            // Background selection
            document.querySelectorAll('[data-bg]').forEach(btn => {
                btn.addEventListener('click', () => {
                    const bgType = btn.dataset.bg;
                    document.body.className = ''; // Reset classes
                    
                    if (bgType === 'gradient') {
                        document.body.classList.add('bg-gradient');
                    } else if (bgType === 'solid-blue') {
                        document.body.classList.add('bg-blue-50');
                    } else {
                        document.body.classList.add('bg-gray-50');
                    }
                });
            });

            // Animation style
            document.getElementById('animation-style').addEventListener('change', (e) => {
                const logo = document.querySelector('img');
                logo.className = 'w-64 md:w-72 transform transition duration-500 hover:scale-105';
                
                if (e.target.value !== 'none') {
                    logo.classList.add(`animate-${e.target.value}`);
                }
            });

            // Glass effect
            document.getElementById('glass-effect').addEventListener('input', (e) => {
                const value = e.target.value;
                document.documentElement.style.setProperty('--glass-blur', `${value}px`);
                document.querySelectorAll('.glass-btn, .search-box').forEach(el => {
                    el.style.backdropFilter = `blur(${value}px)`;
                });
            });

            // Color scheme with intensity
            document.querySelectorAll('[data-color]').forEach(btn => {
                btn.addEventListener('click', () => {
                    const color = btn.dataset.color;
                    const intensity = document.getElementById('color-intensity').value;
                    document.documentElement.style.setProperty('--primary-color', `var(--${color}-${intensity})`);
                    document.documentElement.style.setProperty('--primary-light', `var(--${color}-100)`);
                    document.body.className = ''; // Reset classes
                    document.body.classList.add(`bg-${color}-50`);
                });
            });

            // Color intensity
            document.getElementById('color-intensity').addEventListener('input', (e) => {
                const colorBtns = document.querySelectorAll('[data-color]');
                const activeColor = document.querySelector('[data-color].ring-2');
                if (activeColor) {
                    const color = activeColor.dataset.color;
                    document.documentElement.style.setProperty('--primary-color', `var(--${color}-${e.target.value})`);
                }
            });

            // Background images
            document.querySelectorAll('[data-bg-img]').forEach(btn => {
                btn.addEventListener('click', () => {
                    const bgType = btn.dataset.bgImg;
                    document.body.style.backgroundImage = 'none';
                    document.body.className = '';
                    
                    if (bgType === 'mountains') {
                        document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1519681393784-d120267933ba)';
                    } else if (bgType === 'beach') {
                        document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1507525428034-b723cf961d3e)';
                    } else if (bgType === 'forest') {
                        document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1448375240586-882707db888b)';
                    } else if (bgType === 'sunset') {
                        document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1519125323398-675f0ddb6308)';
                    } else if (bgType === 'space') {
                        document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1462331940025-496dfbfc7564)';
                    } else {
                        document.body.classList.add('bg-gradient');
                    }
                    
                    document.body.style.backgroundSize = 'cover';
                    document.body.style.backgroundPosition = 'center';
                    document.body.style.backgroundAttachment = 'fixed';
                });
            });

            // Add visual feedback for selected color
            document.querySelectorAll('[data-color]').forEach(btn => {
                btn.addEventListener('click', function() {
                    document.querySelectorAll('[data-color]').forEach(b => b.classList.remove('ring-2', 'ring-offset-2'));
                    this.classList.add('ring-2', 'ring-offset-2');
                });
            });

            // Set float animation as default
            document.getElementById('animation-style').value = 'float';
        }

        // Create floating glass dots
        function createDots(count = 20) {
            const container = document.getElementById('dots-container');
            const dotCount = count;
            
            for (let i = 0; i < dotCount; i++) {
                const dot = document.createElement('div');
                dot.classList.add('dot');
                
                // Random properties
                const size = Math.random() * 15 + 5;
                const posX = Math.random() * 100;
                const delay = Math.random() * 15;
                const duration = 10 + Math.random() * 20;
                
                dot.style.width = `${size}px`;
                dot.style.height = `${size}px`;
                dot.style.left = `${posX}%`;
                dot.style.animationDelay = `${delay}s`;
                dot.style.animationDuration = `${duration}s`;
                
                container.appendChild(dot);
            }
        }

        // Add hover effect to search box
        function setupSearchBox() {
            const searchBox = document.querySelector('.search-box');
            const input = searchBox.querySelector('input');
            
            input.addEventListener('focus', () => {
                searchBox.style.transform = 'translateY(-5px)';
                searchBox.style.boxShadow = '0 25px 50px -12px rgba(0, 0, 0, 0.25)';
                searchBox.style.background = 'rgba(255, 255, 255, 0.95)';
            });
            
            input.addEventListener('blur', () => {
                searchBox.style.transform = '';
                searchBox.style.boxShadow = '0 10px 25px -10px rgba(0, 0, 0, 0.1)';
                searchBox.style.background = 'rgba(255, 255, 255, 0.7)';
            });
        }

        // Bubble customization
        function setupBubbleControls() {
            const countControl = document.getElementById('bubble-count');
            const speedControl = document.getElementById('bubble-speed');
            const sizeControl = document.getElementById('bubble-size');
            
            countControl.addEventListener('input', () => {
                document.getElementById('dots-container').innerHTML = '';
                createDots(parseInt(countControl.value));
            });
            
            speedControl.addEventListener('input', () => {
                document.querySelectorAll('.dot').forEach(dot => {
                    dot.style.animationDuration = `${parseInt(speedControl.value)}s`;
                });
            });
            
            sizeControl.addEventListener('input', () => {
                document.querySelectorAll('.dot').forEach(dot => {
                    const newSize = parseInt(sizeControl.value);
                    dot.style.width = `${newSize}px`;
                    dot.style.height = `${newSize}px`;
                });
            });
        }

        // Footer toggle
        function setupFooterToggle() {
            const footer = document.querySelector('footer');
            const toggleBtn = document.getElementById('toggle-footer');
            let isExpanded = false;
            
            toggleBtn.addEventListener('click', () => {
                isExpanded = !isExpanded;
                if (isExpanded) {
                    footer.style.height = 'auto';
                    footer.style.padding = '1rem 2rem';
                } else {
                    footer.style.height = '3.5rem';
                    footer.style.padding = '0.5rem 2rem';
                }
            });
        }

        // Initialize effects
        window.addEventListener('DOMContentLoaded', () => {
            createDots();
            setupSearchBox();
            setupCustomization();
            setupBubbleControls();
            setupFooterToggle();
        });
    </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=SerdintLex/google" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>