File size: 26,176 Bytes
d196029
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>VidGen - AI Video Generator</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">
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #6e8efb, #a777e3);
        }
        .video-card {
            transition: all 0.3s ease;
            transform-style: preserve-3d;
        }
        .video-card:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .loading-dots:after {
            content: '.';
            animation: dots 1.5s steps(5, end) infinite;
        }
        @keyframes dots {
            0%, 20% { content: '.'; }
            40% { content: '..'; }
            60% { content: '...'; }
            80%, 100% { content: ''; }
        }
        .wave-animation {
            animation: wave 2s infinite;
        }
        @keyframes wave {
            0% { transform: rotate(0deg); }
            10% { transform: rotate(14deg); }
            20% { transform: rotate(-8deg); }
            30% { transform: rotate(14deg); }
            40% { transform: rotate(-4deg); }
            50% { transform: rotate(10deg); }
            60% { transform: rotate(0deg); }
            100% { transform: rotate(0deg); }
        }
    </style>
</head>
<body class="bg-gray-50 min-h-screen">
    <!-- Header -->
    <header class="gradient-bg text-white shadow-lg">
        <div class="container mx-auto px-4 py-6">
            <div class="flex justify-between items-center">
                <div class="flex items-center space-x-2">
                    <i class="fas fa-video text-2xl"></i>
                    <h1 class="text-2xl font-bold">VidGen</h1>
                </div>
                <nav class="hidden md:flex space-x-6">
                    <a href="#" class="hover:text-gray-200 transition">Home</a>
                    <a href="#" class="hover:text-gray-200 transition">Templates</a>
                    <a href="#" class="hover:text-gray-200 transition">Pricing</a>
                    <a href="#" class="hover:text-gray-200 transition">About</a>
                </nav>
                <button class="md:hidden text-xl">
                    <i class="fas fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- Hero Section -->
    <section class="gradient-bg text-white py-16">
        <div class="container mx-auto px-4 flex flex-col items-center text-center">
            <h1 class="text-4xl md:text-6xl font-bold mb-6">Turn Ideas Into Videos <span class="wave-animation inline-block">🎬</span></h1>
            <p class="text-xl md:text-2xl mb-8 max-w-3xl">Generate stunning short videos in seconds with our AI-powered video creator. Just describe your idea and let us do the magic!</p>
            
            <!-- Video Generator Form -->
            <div class="w-full max-w-2xl bg-white rounded-xl shadow-2xl p-6 mb-12">
                <div class="flex flex-col space-y-4">
                    <div>
                        <label for="video-idea" class="block text-gray-700 font-medium mb-2">Describe your video idea</label>
                        <textarea id="video-idea" rows="3" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="E.g. A cat wearing sunglasses dancing on a beach at sunset"></textarea>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div>
                            <label for="video-style" class="block text-gray-700 font-medium mb-2">Style</label>
                            <select id="video-style" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent">
                                <option>Animated</option>
                                <option>Realistic</option>
                                <option>Cartoon</option>
                                <option>Minimalist</option>
                                <option>Cinematic</option>
                            </select>
                        </div>
                        <div>
                            <label for="video-length" class="block text-gray-700 font-medium mb-2">Duration</label>
                            <select id="video-length" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent">
                                <option>15 seconds</option>
                                <option>30 seconds</option>
                                <option>45 seconds</option>
                                <option>60 seconds</option>
                            </select>
                        </div>
                    </div>
                    <button id="generate-btn" class="gradient-bg text-white font-bold py-3 px-6 rounded-lg hover:opacity-90 transition flex items-center justify-center">
                        <i class="fas fa-magic mr-2"></i> Generate Video
                    </button>
                </div>
            </div>
        </div>
    </section>

    <!-- Loading State (Hidden by default) -->
    <div id="loading-section" class="hidden container mx-auto px-4 py-12 text-center">
        <div class="max-w-2xl mx-auto bg-white rounded-xl shadow-xl p-8">
            <div class="flex flex-col items-center">
                <div class="w-20 h-20 gradient-bg rounded-full flex items-center justify-center mb-6">
                    <i class="fas fa-film text-white text-3xl"></i>
                </div>
                <h2 class="text-2xl font-bold text-gray-800 mb-4">Creating your masterpiece<span class="loading-dots"></span></h2>
                <p class="text-gray-600 mb-6">Our AI is working hard to bring your vision to life. This usually takes about 30-45 seconds.</p>
                <div class="w-full bg-gray-200 rounded-full h-2.5">
                    <div id="progress-bar" class="gradient-bg h-2.5 rounded-full" style="width: 0%"></div>
                </div>
            </div>
        </div>
    </div>

    <!-- Generated Video Section (Hidden by default) -->
    <div id="result-section" class="hidden container mx-auto px-4 py-12">
        <div class="max-w-4xl mx-auto bg-white rounded-xl shadow-xl overflow-hidden">
            <div class="p-6">
                <h2 class="text-2xl font-bold text-gray-800 mb-2">Your Generated Video</h2>
                <p id="generated-idea" class="text-gray-600 mb-6">Based on: <span class="font-medium">A cat wearing sunglasses dancing on a beach at sunset</span></p>
                
                <div class="relative bg-black rounded-lg overflow-hidden mb-6" style="padding-bottom: 56.25%;">
                    <video id="generated-video" controls class="absolute top-0 left-0 w-full h-full">
                        <source src="" type="video/mp4">
                        Your browser does not support the video tag.
                    </video>
                    <div id="video-placeholder" class="absolute top-0 left-0 w-full h-full flex items-center justify-center">
                        <i class="fas fa-play-circle text-white text-6xl opacity-70"></i>
                    </div>
                </div>
                
                <div class="flex flex-col sm:flex-row justify-between space-y-4 sm:space-y-0">
                    <button class="gradient-bg text-white font-bold py-3 px-6 rounded-lg hover:opacity-90 transition flex items-center justify-center">
                        <i class="fas fa-download mr-2"></i> Download
                    </button>
                    <div class="flex space-x-4">
                        <button class="bg-gray-100 text-gray-700 font-medium py-3 px-6 rounded-lg hover:bg-gray-200 transition flex items-center justify-center">
                            <i class="fas fa-redo mr-2"></i> Regenerate
                        </button>
                        <button class="bg-gray-100 text-gray-700 font-medium py-3 px-6 rounded-lg hover:bg-gray-200 transition flex items-center justify-center">
                            <i class="fas fa-edit mr-2"></i> Edit
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Features Section -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Why Choose VidGen?</h2>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="bg-gray-50 p-6 rounded-xl video-card">
                    <div class="w-14 h-14 gradient-bg rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-bolt text-white text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold text-gray-800 mb-2">Lightning Fast</h3>
                    <p class="text-gray-600">Generate videos in under a minute with our powerful AI technology.</p>
                </div>
                
                <div class="bg-gray-50 p-6 rounded-xl video-card">
                    <div class="w-14 h-14 gradient-bg rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-palette text-white text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold text-gray-800 mb-2">Multiple Styles</h3>
                    <p class="text-gray-600">Choose from various artistic styles to match your brand or vision.</p>
                </div>
                
                <div class="bg-gray-50 p-6 rounded-xl video-card">
                    <div class="w-14 h-14 gradient-bg rounded-full flex items-center justify-center mb-4">
                        <i class="fas fa-sliders-h text-white text-xl"></i>
                    </div>
                    <h3 class="text-xl font-bold text-gray-800 mb-2">Easy Customization</h3>
                    <p class="text-gray-600">Fine-tune your videos with simple controls before downloading.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Video Templates Section -->
    <section class="py-16 bg-gray-50">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center text-gray-800 mb-4">Popular Video Templates</h2>
            <p class="text-center text-gray-600 max-w-2xl mx-auto mb-12">Get inspired by our most popular video styles</p>
            
            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
                <!-- Template 1 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md video-card">
                    <div class="relative bg-gray-200" style="padding-bottom: 56.25%;">
                        <div class="absolute inset-0 flex items-center justify-center">
                            <i class="fas fa-play-circle text-gray-400 text-4xl"></i>
                        </div>
                    </div>
                    <div class="p-4">
                        <h3 class="font-bold text-gray-800 mb-1">Product Showcase</h3>
                        <p class="text-sm text-gray-600">Highlight your products in style</p>
                    </div>
                </div>
                
                <!-- Template 2 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md video-card">
                    <div class="relative bg-gray-200" style="padding-bottom: 56.25%;">
                        <div class="absolute inset-0 flex items-center justify-center">
                            <i class="fas fa-play-circle text-gray-400 text-4xl"></i>
                        </div>
                    </div>
                    <div class="p-4">
                        <h3 class="font-bold text-gray-800 mb-1">Social Media Ad</h3>
                        <p class="text-sm text-gray-600">Engaging ads for Instagram & TikTok</p>
                    </div>
                </div>
                
                <!-- Template 3 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md video-card">
                    <div class="relative bg-gray-200" style="padding-bottom: 56.25%;">
                        <div class="absolute inset-0 flex items-center justify-center">
                            <i class="fas fa-play-circle text-gray-400 text-4xl"></i>
                        </div>
                    </div>
                    <div class="p-4">
                        <h3 class="font-bold text-gray-800 mb-1">Explainer Video</h3>
                        <p class="text-sm text-gray-600">Simplify complex ideas visually</p>
                    </div>
                </div>
                
                <!-- Template 4 -->
                <div class="bg-white rounded-xl overflow-hidden shadow-md video-card">
                    <div class="relative bg-gray-200" style="padding-bottom: 56.25%;">
                        <div class="absolute inset-0 flex items-center justify-center">
                            <i class="fas fa-play-circle text-gray-400 text-4xl"></i>
                        </div>
                    </div>
                    <div class="p-4">
                        <h3 class="font-bold text-gray-800 mb-1">Travel Vlog</h3>
                        <p class="text-sm text-gray-600">Showcase destinations beautifully</p>
                    </div>
                </div>
            </div>
            
            <div class="text-center mt-8">
                <button class="border-2 border-purple-500 text-purple-500 font-bold py-2 px-6 rounded-lg hover:bg-purple-50 transition">
                    Browse All Templates
                </button>
            </div>
        </div>
    </section>

    <!-- Testimonials -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">What Our Users Say</h2>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <!-- Testimonial 1 -->
                <div class="bg-gray-50 p-6 rounded-xl">
                    <div class="flex items-center mb-4">
                        <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
                            <span class="text-purple-600 font-bold">JD</span>
                        </div>
                        <div>
                            <h4 class="font-bold">Jane Doe</h4>
                            <p class="text-sm text-gray-500">Marketing Director</p>
                        </div>
                    </div>
                    <p class="text-gray-600">"VidGen has completely transformed our social media strategy. We can now create professional-looking videos in minutes instead of days!"</p>
                    <div class="flex mt-4">
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                    </div>
                </div>
                
                <!-- Testimonial 2 -->
                <div class="bg-gray-50 p-6 rounded-xl">
                    <div class="flex items-center mb-4">
                        <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
                            <span class="text-purple-600 font-bold">AS</span>
                        </div>
                        <div>
                            <h4 class="font-bold">Alex Smith</h4>
                            <p class="text-sm text-gray-500">Small Business Owner</p>
                        </div>
                    </div>
                    <p class="text-gray-600">"As a small business with no video budget, VidGen has been a game-changer. The quality rivals professional agencies at a fraction of the cost."</p>
                    <div class="flex mt-4">
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                    </div>
                </div>
                
                <!-- Testimonial 3 -->
                <div class="bg-gray-50 p-6 rounded-xl">
                    <div class="flex items-center mb-4">
                        <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
                            <span class="text-purple-600 font-bold">TM</span>
                        </div>
                        <div>
                            <h4 class="font-bold">Taylor Morgan</h4>
                            <p class="text-sm text-gray-500">Content Creator</p>
                        </div>
                    </div>
                    <p class="text-gray-600">"I use VidGen daily for my YouTube channel. The AI understands exactly what I need and delivers creative results every time."</p>
                    <div class="flex mt-4">
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star text-yellow-400"></i>
                        <i class="fas fa-star-half-alt text-yellow-400"></i>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- CTA Section -->
    <section class="gradient-bg text-white py-16">
        <div class="container mx-auto px-4 text-center">
            <h2 class="text-3xl md:text-4xl font-bold mb-6">Ready to Create Amazing Videos?</h2>
            <p class="text-xl mb-8 max-w-2xl mx-auto">Join thousands of creators and businesses who are transforming their ideas into engaging video content.</p>
            <button class="bg-white text-purple-600 font-bold py-3 px-8 rounded-lg hover:bg-gray-100 transition">
                Get Started - It's Free
            </button>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
                <div>
                    <div class="flex items-center space-x-2 mb-4">
                        <i class="fas fa-video text-2xl"></i>
                        <h3 class="text-xl font-bold">VidGen</h3>
                    </div>
                    <p class="text-gray-400">The easiest way to create professional videos with AI.</p>
                </div>
                
                <div>
                    <h4 class="text-lg font-bold mb-4">Product</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Features</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Pricing</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Templates</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Integrations</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-bold mb-4">Resources</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Help Center</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Tutorials</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Community</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-bold mb-4">Company</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition">About Us</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Careers</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Press</a></li>
                    </ul>
                </div>
            </div>
            
            <div class="pt-8 border-t border-gray-800 flex flex-col md:flex-row justify-between items-center">
                <p class="text-gray-400 mb-4 md:mb-0">© 2023 VidGen. All rights reserved.</p>
                <div class="flex space-x-6">
                    <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter"></i></a>
                    <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-facebook"></i></a>
                    <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-instagram"></i></a>
                    <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-linkedin"></i></a>
                </div>
            </div>
        </div>
    </footer>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const generateBtn = document.getElementById('generate-btn');
            const loadingSection = document.getElementById('loading-section');
            const resultSection = document.getElementById('result-section');
            const videoIdeaInput = document.getElementById('video-idea');
            const generatedIdea = document.getElementById('generated-idea');
            const progressBar = document.getElementById('progress-bar');
            const videoPlaceholder = document.getElementById('video-placeholder');
            const generatedVideo = document.getElementById('generated-video');
            
            // Sample video URLs (in a real app, these would come from your backend)
            const sampleVideos = [
                'https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4',
                'https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_2mb.mp4',
                'https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_5mb.mp4'
            ];
            
            generateBtn.addEventListener('click', function() {
                const idea = videoIdeaInput.value.trim();
                
                if (!idea) {
                    alert('Please describe your video idea first!');
                    return;
                }
                
                // Show loading section
                loadingSection.classList.remove('hidden');
                resultSection.classList.add('hidden');
                
                // Update the generated idea text
                generatedIdea.innerHTML = `Based on: <span class="font-medium">${idea}</span>`;
                
                // Simulate progress
                let progress = 0;
                const interval = setInterval(() => {
                    progress += Math.random() * 10;
                    if (progress > 100) progress = 100;
                    progressBar.style.width = `${progress}%`;
                    
                    if (progress === 100) {
                        clearInterval(interval);
                        
                        // Hide loading, show result after a small delay
                        setTimeout(() => {
                            loadingSection.classList.add('hidden');
                            resultSection.classList.remove('hidden');
                            
                            // Randomly select a sample video
                            const randomVideo = sampleVideos[Math.floor(Math.random() * sampleVideos.length)];
                            generatedVideo.src = randomVideo;
                            
                            // When video is loaded, hide placeholder
                            generatedVideo.onloadeddata = function() {
                                videoPlaceholder.style.display = 'none';
                            };
                        }, 500);
                    }
                }, 300);
            });
            
            // Play video when placeholder is clicked
            videoPlaceholder.addEventListener('click', function() {
                videoPlaceholder.style.display = 'none';
                generatedVideo.play();
            });
        });
    </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=nolascoin/video-maker" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>