File size: 29,141 Bytes
aa41d8a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tech Brand Studio | VPN & Software Marketing</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
    <script src="https://kit.fontawesome.com/3ffc3c7d21.js" crossorigin="anonymous"></script>
    <style>
        @keyframes pulse-glow {
            0% { box-shadow: 0 0 0 0 rgba(7, 89, 133, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(7, 89, 133, 0); }
            100% { box-shadow: 0 0 0 0 rgba(7, 89, 133, 0); }
        }
        :root {
            --primary-bg: #0f172a;
            --secondary-bg: #1e293b;
            --accent-color: #0ea5e9;
            --card-gradient: linear-gradient(135deg, #1d4ed8, #7e22ce);
        }
        body {
            font-family: 'Inter', sans-serif;
            background: var(--primary-bg);
            min-height: 100vh;
        }
        .header-font {
            font-family: 'Space Grotesk', sans-serif;
            letter-spacing: -0.05rem;
        }
        .glassmorphism {
            background: rgba(20, 30, 48, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }
        .preview-card-aspect-square { aspect-ratio: 1 / 1; }
        .preview-card-aspect-portrait { aspect-ratio: 9 / 16; }
        .preview-card-aspect-landscape { aspect-ratio: 16 / 9; }
        .pulse-animation {
            animation: pulse-glow 2s infinite;
        }
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        .custom-scrollbar::-webkit-scrollbar-track {
            background: rgba(15, 23, 42, 0.4);
        }
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.4);
            border-radius: 3px;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: rgba(148, 163, 184, 0.6);
        }
        .chip {
            display: inline-block;
            background: rgba(14, 165, 233, 0.15);
            border: 1px solid rgba(14, 165, 233, 0.3);
            color: #38bdf8;
            border-radius: 20px;
            padding: 0.2rem 1rem;
            font-size: 0.75rem;
            font-weight: 500;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
            transition: all 0.2s ease;
        }
        .chip:hover {
            background: rgba(14, 165, 233, 0.25);
            border-color: rgba(14, 165, 233, 0.6);
        }
        .chip.active {
            background: rgba(14, 165, 233, 0.3);
            border-color: rgba(14, 165, 233, 0.8);
        }
        .glow-text {
            text-shadow: 0 0 8px rgba(14, 165, 233, 0.7);
        }
        .content-placeholder {
            color: rgba(255, 255, 255, 0.5);
            min-height: 1.25rem;
        }
    </style>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#0ea5e9',
                        primaryDark: '#0284c7',
                        darkBg: '#0f172a',
                        darkCard: '#1e293b',
                        darkBorder: '#334155',
                    }
                }
            }
        }
    </script>
</head>
<body class="text-gray-200 bg-darkBg min-h-screen flex flex-col">
    <!-- Site Header -->
    <header class="py-4 px-4 lg:px-8 border-b border-gray-800">
        <div class="container mx-auto flex justify-between items-center">
            <div class="flex items-center space-x-3">
                <svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 text-primary" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
                    <path d="M12 8L6 19.4M12 8L18 19.4M12 8L6 4.5M12 8L18 4.5" stroke-linecap="round" stroke-linejoin="round"/>
                    <circle cx="12" cy="3" r="1" fill="currentColor"/>
                    <circle cx="12" cy="21" r="1" fill="currentColor"/>
                </svg>
                <div>
                    <h1 class="text-2xl font-bold text-white header-font">VPN Brand Studio</h1>
                    <p class="text-sm text-gray-400">Create content for VPNs & software products</p>
                </div>
            </div>
            <div class="hidden md:flex items-center space-x-4">
                <button class="px-4 py-2 rounded-full bg-primary/10 hover:bg-primary/20 text-primary ring-1 ring-primary/30 transition-all">
                    <i class="fas fa-save mr-2"></i> Save Template
                </button>
                <button class="px-4 py-2 rounded-full bg-darkCard hover:bg-gray-700 text-gray-300 ring-1 ring-gray-700 transition-all">
                    <i class="fas fa-cog mr-2"></i> Settings
                </button>
            </div>
            <div class="flex md:hidden">
                <button id="mobile-menu" class="p-2 rounded-md bg-gray-800">
                    <i class="fas fa-bars text-gray-300"></i>
                </button>
            </div>
        </div>
    </header>

    <div class="flex flex-col lg:flex-row flex-1 overflow-hidden">
        <!-- Left Panel: Controls -->
        <aside class="w-full lg:w-1/3 xl:w-1/4 p-4 lg:p-6 space-y-6 overflow-y-auto custom-scrollbar">
            
            <!-- Brand Manager -->
            <div class="glassmorphism p-6 rounded-2xl space-y-4 transition-all hover:border-opacity-40">
                <h2 class="text-xl font-bold flex items-center">
                    <i class="fas fa-building text-primary mr-3"></i>
                    Brand Manager
                </h2>
                <div class="space-y-4">
                    <div>
                        <label class="block text-gray-400 text-sm mb-1">Brand Name</label>
                        <input type="text" id="brandName" placeholder="e.g., SecureGuard VPN" class="w-full bg-darkCard border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:outline-none transition">
                    </div>
                    <div>
                        <label class="block text-gray-400 text-sm mb-1">Tagline</label>
                        <input type="text" id="brandTagline" placeholder="e.g., Privacy Without Compromise" class="w-full bg-darkCard border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:outline-none transition">
                    </div>
                    <div class="space-y-3">
                        <label class="block text-gray-400 text-sm">Brand Assets</label>
                        <div class="grid grid-cols-2 gap-3">
                            <div>
                                <label for="logoUpload" class="w-full flex flex-col items-center justify-center bg-darkCard border-2 border-dashed border-gray-700 hover:border-primary/50 rounded-lg p-4 cursor-pointer transition-all duration-200">
                                    <i class="fas fa-image text-primary mb-2 text-xl"></i>
                                    <span class="text-sm">Upload Logo</span>
                                </label>
                                <input type="file" id="logoUpload" class="hidden" accept="image/*">
                            </div>
                            <div>
                                <label for="bgImageUpload" class="w-full flex flex-col items-center justify-center bg-darkCard border-2 border-dashed border-gray-700 hover:border-primary/50 rounded-lg p-4 cursor-pointer transition-all duration-200">
                                    <i class="fas fa-globe text-primary mb-2 text-xl"></i>
                                    <span class="text-sm">Background Image</span>
                                </label>
                                <input type="file" id="bgImageUpload" class="hidden" accept="image/*">
                            </div>
                        </div>
                    </div>
                    <div>
                        <label class="block text-gray-400 text-sm mb-1">Brand Color</label>
                        <div class="flex space-x-3">
                            <input type="color" id="brandColor" value="#0ea5e9" class="w-12 h-12 rounded-lg bg-darkCard cursor-pointer">
                        </div>
                    </div>
                </div>
            </div>

            <!-- Content Categories -->
            <div class="glassmorphism p-6 rounded-2xl">
                <h2 class="text-xl font-bold mb-4 flex items-center">
                    <i class="fas fa-layer-group text-primary mr-3"></i>
                    Content Themes
                </h2>
                <div class="flex flex-wrap gap-2">
                    <span class="chip active">Online Privacy</span>
                    <span class="chip">Security Threats</span>
                    <span class="chip">VPN Comparisons</span>
                    <span class="chip">Encryption Tech</span>
                    <span class="chip">Geo-Unblocking</span>
                    <span class="chip">DNS Protection</span>
                    <span class="chip">Speed Tests</span>
                    <span class="chip">No-Log Policies</span>
                </div>
            </div>

            <!-- Content Suggestions -->
            <div class="glassmorphism p-6 rounded-2xl space-y-4">
                <h2 class="text-xl font-bold flex items-center">
                    <i class="fas fa-robot text-primary mr-3"></i>
                    AI Assistant
                </h2>
                <div>
                    <label class="block text-gray-400 text-sm mb-1">Generate Content About</label>
                    <select class="w-full bg-darkCard border border-gray-700 rounded-lg px-4 py-3 focus:ring-2 focus:ring-primary focus:outline-none transition">
                        <option>Online Privacy Risks</option>
                        <option>VPN vs Proxy Comparison</option>
                        <option>How Encryption Works</option>
                        <option>Benefits of a No-Logs Policy</option>
                        <option>How VPNs Improve Security</option>
                        <option>Bypassing Geographic Restrictions</option>
                    </select>
                </div>
                <button class="w-full bg-primary/10 hover:bg-primary/20 text-primary ring-1 ring-primary/30 rounded-lg px-4 py-3 flex items-center justify-center font-semibold transition-all transform hover:scale-[1.01]">
                    Generate Content Ideas
                </button>
            </div>

            <!-- Content Templates -->
            <div class="glassmorphism p-6 rounded-2xl">
                <h2 class="text-xl font-bold mb-4 flex items-center">
                    <i class="fas fa-star text-primary mr-3"></i>
                    Recommended Templates
                </h2>
                <div class="space-y-3">
                    <div class="p-3 bg-gray-800/30 rounded-lg cursor-pointer transition-all hover:bg-primary/10 border border-gray-700">
                        <div class="flex items-start">
                            <div class="mr-3 mt-1 text-primary">
                                <i class="fas fa-shield-alt"></i>
                            </div>
                            <div>
                                <h3 class="font-semibold">Security Showcase</h3>
                                <p class="text-sm text-gray-400">Highlight security features</p>
                            </div>
                        </div>
                    </div>
                    <div class="p-3 bg-gray-800/30 rounded-lg cursor-pointer transition-all hover:bg-primary/10 border border-gray-700">
                        <div class="flex items-start">
                            <div class="mr-3 mt-1 text-primary">
                                <i class="fas fa-list-ol"></i>
                            </div>
                            <div>
                                <h3 class="font-semibold">Top Features List</h3>
                                <p class="text-sm text-gray-400">Bullet point key benefits</p>
                            </div>
                        </div>
                    </div>
                    <div class="p-3 bg-gray-800/30 rounded-lg cursor-pointer transition-all hover:bg-primary/10 border border-gray-700">
                        <div class="flex items-start">
                            <div class="mr-3 mt-1 text-primary">
                                <i class="fas fa-globe-americas"></i>
                            </div>
                            <div>
                                <h3 class="font-semibold">Global Server Map</h3>
                                <p class="text-sm text-gray-400">Show worldwide coverage</p>
                            </div>
                        </div>
                    </div>
                    <div class="p-3 bg-gray-800/30 rounded-lg cursor-pointer transition-all hover:bg-primary/10 border border-gray-700">
                        <div class="flex items-start">
                            <div class="mr-3 mt-1 text-primary">
                                <i class="fas fa-bolt"></i>
                            </div>
                            <div>
                                <h3 class="font-semibold">Speed Comparison</h3>
                                <p class="text-sm text-gray-400">Display performance data</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </aside>

        <!-- Right Panel: Preview & Actions -->
        <main class="w-full lg:w-2/3 xl:w-3/4 flex flex-col items-center p-4 lg:p-8">
            <!-- Preview Controls -->
            <div class="w-full max-w-4xl bg-darkCard rounded-xl p-4 mb-6">
                <div class="flex flex-wrap items-center justify-between gap-4">
                    <div class="space-y-2">
                        <h3 class="text-lg font-semibold">Preview Options</h3>
                        <div class="flex space-x-2 items-center">
                            <div class="bg-gray-800 px-2 py-1 rounded-lg">
                                <label class="text-sm text-gray-400 mr-2">Ratio:</label>
                                <div class="inline-flex space-x-1">
                                    <button class="aspect-btn px-2 py-1 rounded-md bg-gray-950" data-aspect="square">1:1</button>
                                    <button class="aspect-btn px-2 py-1 rounded-md" data-aspect="portrait">9:16</button>
                                    <button class="aspect-btn px-2 py-1 rounded-md" data-aspect="landscape">16:9</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="space-y-2">
                        <div class="space-y-1">
                            <label class="text-sm text-gray-400">Background Blur</label>
                            <input type="range" min="0" max="20" value="8" class="w-28 accent-primary">
                        </div>
                    </div>
                    <div class="space-y-2">
                        <div class="space-y-1">
                            <label class="text-sm text-gray-400">Light/Dark Mode</label>
                            <div class="relative inline-block">
                                <input type="checkbox" id="darkModeToggle" class="sr-only" checked>
                                <div class="block bg-gray-700 w-14 h-7 rounded-full"></div>
                                <div class="dot absolute left-1 top-1 bg-primary w-5 h-5 rounded-full transition transform"></div>
                            </div>
                        </div>
                    </div>
                    <div>
                        <button class="export-btn px-4 py-2 rounded-lg bg-primary text-white font-medium flex items-center">
                            <i class="fas fa-download mr-2"></i> Export as PNG
                        </button>
                    </div>
                </div>
            </div>

            <!-- Main Preview Area -->
            <div class="w-full flex justify-center mb-8 max-w-4xl">
                <div id="preview-container" class="w-full">
                    <div id="preview-card" class="w-full h-0 relative overflow-hidden rounded-3xl preview-card-aspect-portrait">
                        <!-- Background Image -->
                        <div class="absolute inset-0 bg-cover bg-center" id="bg-container" style=""></div>
                        <!-- Background Overlay -->
                        <div class="absolute inset-0" id="bg-overlay" style="background: rgba(0, 0, 0, 0.4);"></div>
                        <!-- Content Container -->
                        <div class="absolute inset-0 z-10 flex flex-col items-center justify-center p-8 text-center">
                            <!-- Brand Identity Section -->
                            <div class="mb-6" id="logo-container">
                                <div class="w-32 h-32 bg-gray-200 border-2 border-dashed rounded-xl flex items-center justify-center text-gray-600">
                                    Upload Logo
                                </div>
                            </div>
                            
                            <!-- Headline -->
                            <h1 id="headline" class="text-5xl font-bold mb-6 text-white">
                                Protect Your<span class="text-primary glow-text"> Digital Life</span>
                            </h1>
                            
                            <!-- Features List -->
                            <ul id="features-list" class="mb-8 text-left max-w-lg">
                                <li class="text-xl mb-4 flex items-start">
                                    <i class="fas fa-check-circle text-primary mt-1 mr-3 text-lg"></i>
                                    <span>Military-grade 256-bit encryption</span>
                                </li>
                                <li class="text-xl mb-4 flex items-start">
                                    <i class="fas fa-check-circle text-primary mt-1 mr-3 text-lg"></i>
                                    <span>2,000+ servers in 94 countries</span>
                                </li>
                                <li class="text-xl mb-4 flex items-start">
                                    <i class="fas fa-check-circle text-primary mt-1 mr-3 text-lg"></i>
                                    <span>Strict no-logs policy</span>
                                </li>
                                <li class="text-xl flex items-start">
                                    <i class="fas fa-check-circle text-primary mt-1 mr-3 text-lg"></i>
                                    <span>24/7 customer support</span>
                                </li>
                            </ul>
                            
                            <!-- Call to Action Button -->
                            <div class="mt-6 relative z-20 cursor-pointer">
                                <span class="relative inline-flex items-center justify-center px-8 py-4 overflow-hidden font-bold rounded-full group pulse-animation">
                                    <span class="absolute top-0 left-0 w-full h-full opacity-0 transition-all duration-500 transform -translate-x-full group-hover:opacity-100"></span>
                                    <span class="absolute w-8 h-8 opacity-0 bottom-0 left-1/2 transform -translate-x-1/2 -translate-y-4 transition-all duration-500 ease-in-out"></span>
                                    <span class="relative flex items-center text-white text-lg">
                                        <i class="fas fa-shield-alt mr-3"></i>
                                        Secure Your Connection Now
                                    </span>
                                </span>
                            </div>
                            
                            <!-- Brand Footer -->
                            <div class="mt-16 text-gray-300">
                                <p id="brand-name-tagline">SecureGuard VPN • Privacy Without Compromise</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Additional Templates -->
            <div class="w-full max-w-4xl">
                <h3 class="text-xl font-semibold mb-4">Other Recommended Templates</h3>
                <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                    <!-- Template 1 -->
                    <div class="relative h-40 bg-gradient-to-r from-blue-900 to-blue-700 rounded-xl overflow-hidden">
                        <div class="absolute inset-0 bg-gray-900/30 flex items-center justify-center">
                            <button class="text-white">Use This Template</button>
                        </div>
                        <div class="absolute top-2 left-2 text-sm text-white bg-primary/30 px-2 py-1 rounded">Premium</div>
                    </div>
                    
                    <!-- Template 2 -->
                    <div class="relative h-40 bg-gradient-to-r from-violet-800 to-purple-800 rounded-xl overflow-hidden">
                        <div class="absolute inset-0 bg-gray-900/30 flex items-center justify-center">
                            <button class="text-white">Use This Template</button>
                        </div>
                        <div class="absolute top-2 left-2 text-sm text-white bg-primary/30 px-2 py-1 rounded">Free</div>
                    </div>
                    
                    <!-- Template 3 -->
                    <div class="relative h-40 bg-gradient-to-r from-teal-900 to-emerald-800 rounded-xl overflow-hidden">
                        <div class="absolute inset-0 bg-gray-900/30 flex items-center justify-center">
                            <button class="text-white">Use This Template</button>
                        </div>
                        <div class="absolute top-2 left-2 text-sm text-white bg-primary/30 px-2 py-1 rounded">Popular</div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script>
        // Initialize elements
        document.addEventListener('DOMContentLoaded', function() {
            // Aspect Ratio Buttons
            const aspectBtns = document.querySelectorAll('.aspect-btn');
            const previewCard = document.getElementById('preview-card');
            
            aspectBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    // Reset all buttons
                    aspectBtns.forEach(b => b.classList.remove('bg-primary', 'text-white'));
                    
                    // Set active state
                    this.classList.add('bg-primary', 'text-white');
                    
                    // Update aspect ratio
                    const aspect = this.dataset.aspect;
                    previewCard.className = previewCard.className.replace(/preview-card-aspect-(square|portrait|landscape)/, '');
                    previewCard.classList.add(`preview-card-aspect-${aspect}`);
                });
            });
            
            // Set first aspect ratio button as active
            if (aspectBtns.length > 0) {
                aspectBtns[0].classList.add('bg-primary', 'text-white');
            }
            
            // File Upload Handlers
            const logoUpload = document.getElementById('logoUpload');
            if (logoUpload) {
                logoUpload.addEventListener('change', function(e) {
                    if (e.target.files && e.target.files[0]) {
                        const reader = new FileReader();
                        reader.onload = function(event) {
                            document.getElementById('logo-container').innerHTML = `
                                <img src="${event.target.result}" class="max-h-24 mx-auto" alt="Brand Logo">
                            `;
                        }
                        reader.readAsDataURL(e.target.files[0]);
                    }
                });
            }
            
            const bgUpload = document.getElementById('bgImageUpload');
            if (bgUpload) {
                bgUpload.addEventListener('change', function(e) {
                    if (e.target.files && e.target.files[0]) {
                        const reader = new FileReader();
                        reader.onload = function(event) {
                            document.getElementById('bg-container').style.backgroundImage = `url('${event.target.result}')`;
                        }
                        reader.readAsDataURL(e.target.files[0]);
                    }
                });
            }
            
            // Brand Name & Tagline
            const brandName = document.getElementById('brandName');
            const brandTagline = document.getElementById('brandTagline');
            const brandNameTaglineEl = document.getElementById('brand-name-tagline');
            
            function updateBrand() {
                if (!brandName.value && !brandTagline.value) {
                    brandNameTaglineEl.textContent = "SecureGuard VPN • Privacy Without Compromise";
                    return;
                }
                
                let name = brandName.value || "SecureGuard VPN";
                let tagline = brandTagline.value ? ` • ${brandTagline.value}` : "";
                brandNameTaglineEl.textContent = name + tagline;
            }
            
            brandName.addEventListener('input', updateBrand);
            brandTagline.addEventListener('input', updateBrand);
            
            // Color Picker
            const brandColor = document.getElementById('brandColor');
            brandColor.addEventListener('input', function() {
                document.documentElement.style.setProperty('--accent-color', this.value);
                document.querySelectorAll('.primary-color').forEach(el => {
                    el.style.color = this.value;
                });
            });
            
            // Dark Mode Toggle
            const darkModeToggle = document.getElementById('darkModeToggle');
            darkModeToggle.addEventListener('change', function() {
                if (this.checked) {
                    document.documentElement.style.setProperty('--primary-bg', '#0f172a');
                    document.documentElement.style.setProperty('--secondary-bg', '#1e293b');
                } else {
                    document.documentElement.style.setProperty('--primary-bg', '#f8fafc');
                    document.documentElement.style.setProperty('--secondary-bg', '#f1f5f9');
                }
            });
            
            // Export Button
            const exportBtn = document.querySelector('.export-btn');
            exportBtn.addEventListener('click', function() {
                this.innerHTML = '<i class="fas fa-spinner animate-spin mr-2"></i> Exporting...';
                
                html2canvas(document.getElementById('preview-container')).then(canvas => {
                    const link = document.createElement('a');
                    link.download = 'vpn-brand-studio-export.png';
                    link.href = canvas.toDataURL('image/png');
                    link.click();
                    
                    this.innerHTML = '<i class="fas fa-download mr-2"></i> Export as PNG';
                    
                    // Pulse effect on export
                    this.classList.add('pulse-animation');
                    setTimeout(() => {
                        this.classList.remove('pulse-animation');
                    }, 2000);
                });
            });
        });
    </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=Saad4web/ts3" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>