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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e6ba631
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Undefined Harmony</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        :root {
            --primary-500: #8B5CF6;
            --secondary-500: #EC4899;
            --primary-400: #A78BFA;
            --secondary-400: #F472B6;
            --primary-600: #7C3AED;
            --secondary-600: #DB2777;
        }

        .dark {
            --primary-500: #EC4899;
            --secondary-500: #8B5CF6;
            --primary-400: #F472B6;
            --secondary-400: #A78BFA;
            --primary-600: #DB2777;
            --secondary-600: #7C3AED;
        }

        .bg-primary-500 { background-color: var(--primary-500); }
        .bg-secondary-500 { background-color: var(--secondary-500); }
        .bg-primary-400 { background-color: var(--primary-400); }
        .bg-secondary-400 { background-color: var(--secondary-400); }
        .bg-primary-600 { background-color: var(--primary-600); }
        .bg-secondary-600 { background-color: var(--secondary-600); }
        
        .text-primary-500 { color: var(--primary-500); }
        .text-secondary-500 { color: var(--secondary-500); }
        .text-primary-400 { color: var(--primary-400); }
        .text-secondary-400 { color: var(--secondary-400); }
        .text-primary-600 { color: var(--primary-600); }
        .text-secondary-600 { color: var(--secondary-600); }
        
        .border-primary-500 { border-color: var(--primary-500); }
        .border-secondary-500 { border-color: var(--secondary-500); }
        .border-primary-400 { border-color: var(--primary-400); }
        .border-secondary-400 { border-color: var(--secondary-400); }
        .border-primary-600 { border-color: var(--primary-600); }
        .border-secondary-600 { border-color: var(--secondary-600); }
        
        .ring-primary-500 { --tw-ring-color: var(--primary-500); }
        .ring-secondary-500 { --tw-ring-color: var(--secondary-500); }

        .gradient-bg {
            background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
        }

        .glass-effect {
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .dark .glass-effect {
            background: rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .btn-primary {
            background: var(--primary-500);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn-primary:hover {
            background: var(--primary-600);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .btn-secondary {
            background: var(--secondary-500);
            transition: all 0.3s ease;
        }

        .btn-secondary:hover {
            background: var(--secondary-600);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .card-hover {
            transition: all 0.3s ease;
        }

        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        .form-input {
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .form-input:focus {
            border-color: var(--primary-500);
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
        }

        .dark .form-input:focus {
            box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
        }

        .modal {
            backdrop-filter: blur(5px);
            transition: all 0.3s ease;
        }

        .modal-content {
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .nav-link {
            position: relative;
            transition: color 0.3s ease;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--secondary-500);
            transition: width 0.3s ease;
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .toggle-switch {
            position: relative;
            width: 60px;
            height: 30px;
            background: var(--primary-400);
            border-radius: 15px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .toggle-switch.active {
            background: var(--secondary-500);
        }

        .toggle-switch::before {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 24px;
            height: 24px;
            background: white;
            border-radius: 50%;
            transition: transform 0.3s ease;
        }

        .toggle-switch.active::before {
            transform: translateX(30px);
        }

        .floating-element {
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        .gradient-text {
            background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            transform: scale(0);
            animation: ripple 0.6s ease-out;
        }

        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }
    </style>
</head>
<body class="bg-gradient-to-br from-purple-50 to-pink-50 dark:from-gray-900 dark:to-gray-800 min-h-screen transition-colors duration-500">
    <!-- Navigation -->
    <nav class="fixed top-0 w-full z-50 glass-effect">
        <div class="container mx-auto px-4 py-4">
            <div class="flex justify-between items-center">
                <div class="flex items-center space-x-2">
                    <div class="w-8 h-8 rounded-full gradient-bg"></div>
                    <span class="text-xl font-bold gradient-text">Undefined</span>
                </div>
                <div class="hidden md:flex space-x-8">
                    <a href="#home" class="nav-link text-gray-700 dark:text-gray-300 hover:text-primary-500">Home</a>
                    <a href="#features" class="nav-link text-gray-700 dark:text-gray-300 hover:text-primary-500">Features</a>
                    <a href="#portfolio" class="nav-link text-gray-700 dark:text-gray-300 hover:text-primary-500">Portfolio</a>
                    <a href="#contact" class="nav-link text-gray-700 dark:text-gray-300 hover:text-primary-500">Contact</a>
                </div>
                <div class="flex items-center space-x-4">
                    <div class="toggle-switch" id="darkModeToggle"></div>
                    <button class="md:hidden" onclick="toggleMobileMenu()">
                        <i data-feather="menu" class="w-6 h-6"></i>
                    </button>
                </div>
            </div>
            <div id="mobileMenu" class="hidden md:hidden mt-4 pb-4">
                <a href="#home" class="block py-2 text-gray-700 dark:text-gray-300">Home</a>
                <a href="#features" class="block py-2 text-gray-700 dark:text-gray-300">Features</a>
                <a href="#portfolio" class="block py-2 text-gray-700 dark:text-gray-300">Portfolio</a>
                <a href="#contact" class="block py-2 text-gray-700 dark:text-gray-300">Contact</a>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <section id="home" class="min-h-screen flex items-center justify-center relative overflow-hidden">
        <div class="absolute inset-0 z-0">
            <div class="absolute top-20 left-10 w-32 h-32 bg-primary-400 rounded-full opacity-20 floating-element"></div>
            <div class="absolute bottom-20 right-10 w-40 h-40 bg-secondary-400 rounded-full opacity-20 floating-element" style="animation-delay: 3s;"></div>
            <div class="absolute top-1/2 left-1/4 w-24 h-24 bg-primary-300 rounded-full opacity-10 floating-element" style="animation-delay: 1.5s;"></div>
        </div>
        <div class="container mx-auto px-4 text-center relative z-10">
            <h1 class="text-5xl md:text-7xl font-bold mb-6 gradient-text">
                Undefined Harmony
            </h1>
            <p class="text-xl md:text-2xl text-gray-600 dark:text-gray-300 mb-8 max-w-3xl mx-auto">
                Where creativity meets undefined possibilities. Experience the perfect blend of design and functionality.
            </p>
            <div class="flex flex-col sm:flex-row gap-4 justify-center">
                <button class="btn-primary px-8 py-3 rounded-full text-white font-semibold" onclick="showModal('getStarted')">
                    Get Started
                </button>
                <button class="btn-secondary px-8 py-3 rounded-full text-white font-semibold" onclick="scrollToSection('features')">
                    Learn More
                </button>
            </div>
        </div>
    </section>

    <!-- Features Section -->
    <section id="features" class="py-20">
        <div class="container mx-auto px-4">
            <h2 class="text-4xl font-bold text-center mb-12 gradient-text">Features</h2>
            <div class="grid md:grid-cols-3 gap-8">
                <div class="card-hover bg-white dark:bg-gray-800 p-8 rounded-2xl shadow-lg">
                    <div class="w-16 h-16 rounded-full gradient-bg mb-4 flex items-center justify-center">
                        <i data-feather="zap" class="w-8 h-8 text-white"></i>
                    </div>
                    <h3 class="text-2xl font-bold mb-4 text-primary-500">Lightning Fast</h3>
                    <p class="text-gray-600 dark:text-gray-300">
                        Experience blazing fast performance with our optimized framework.
                    </p>
                </div>
                <div class="card-hover bg-white dark:bg-gray-800 p-8 rounded-2xl shadow-lg">
                    <div class="w-16 h-16 rounded-full gradient-bg mb-4 flex items-center justify-center">
                        <i data-feather="shield" class="w-8 h-8 text-white"></i>
                    </div>
                    <h3 class="text-2xl font-bold mb-4 text-secondary-500">Secure</h3>
                    <p class="text-gray-600 dark:text-gray-300">
                        Your data is protected with enterprise-grade security measures.
                    </p>
                </div>
                <div class="card-hover bg-white dark:bg-gray-800 p-8 rounded-2xl shadow-lg">
                    <div class="w-16 h-16 rounded-full gradient-bg mb-4 flex items-center justify-center">
                        <i data-feather="heart" class="w-8 h-8 text-white"></i>
                    </div>
                    <h3 class="text-2xl font-bold mb-4 text-primary-500">User Friendly</h3>
                    <p class="text-gray-600 dark:text-gray-300">
                        Intuitive design that makes complex tasks simple and enjoyable.
                    </p>
                </div>
            </div>
        </div>
    </section>

    <!-- Portfolio Section -->
    <section id="portfolio" class="py-20 bg-gray-50 dark:bg-gray-900">
        <div class="container mx-auto px-4">
            <h2 class="text-4xl font-bold text-center mb-12 gradient-text">Portfolio</h2>
            <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
                <div class="card-hover group relative overflow-hidden rounded-2xl">
                    <img src="http://static.photos/technology/640x360/42" alt="Project" class="w-full h-64 object-cover">
                    <div class="absolute inset-0 bg-gradient-to-t from-black/70 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300">
                        <div class="absolute bottom-0 left-0 right-0 p-6">
                            <h3 class="text-white text-xl font-bold mb-2">Tech Innovation</h3>
                            <p class="text-gray-200">Revolutionary tech solutions</p>
                        </div>
                    </div>
                </div>
                <div class="card-hover group relative overflow-hidden rounded-2xl">
                    <img src="http://static.photos/workspace/640x360/133" alt="Project" class="w-full h-64 object-cover">
                    <div class="absolute inset-0 bg-gradient-to-t from-black/70 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300">
                        <div class="absolute bottom-0 left-0 right-0 p-6">
                            <h3 class="text-white text-xl font-bold mb-2">Modern Workspace</h3>
                            <p class="text-gray-200">Efficient work environments</p>
                        </div>
                    </div>
                </div>
                <div class="card-hover group relative overflow-hidden rounded-2xl">
                    <img src="http://static.photos/nature/640x360/99" alt="Project" class="w-full h-64 object-cover">
                    <div class="absolute inset-0 bg-gradient-to-t from-black/70 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300">
                        <div class="absolute bottom-0 left-0 right-0 p-6">
                            <h3 class="text-white text-xl font-bold mb-2">Nature Connect</h3>
                            <p class="text-gray-200">Sustainable solutions</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Contact Section -->
    <section id="contact" class="py-20">
        <div class="container mx-auto px-4">
            <h2 class="text-4xl font-bold text-center mb-12 gradient-text">Get In Touch</h2>
            <div class="max-w-2xl mx-auto">
                <form class="space-y-6" onsubmit="handleSubmit(event)">
                    <div class="grid md:grid-cols-2 gap-6">
                        <input type="text" placeholder="Your Name" class="form-input w-full px-4 py-3 rounded-lg bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 focus:outline-none">
                        <input type="email" placeholder="Your Email" class="form-input w-full px-4 py-3 rounded-lg bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 focus:outline-none">
                    </div>
                    <input type="text" placeholder="Subject" class="form-input w-full px-4 py-3 rounded-lg bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 focus:outline-none">
                    <textarea placeholder="Your Message" rows="6" class="form-input w-full px-4 py-3 rounded-lg bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 focus:outline-none resize-none"></textarea>
                    <button type="submit" class="btn-primary w-full py-3 rounded-lg text-white font-semibold">
                        Send Message
                    </button>
                </form>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="py-8 bg-gray-900 text-white">
        <div class="container mx-auto px-4 text-center">
            <p>&copy; 2024 Undefined Harmony. All rights reserved.</p>
        </div>
    </footer>

    <!-- Modal -->
    <div id="modal" class="modal fixed inset-0 bg-black/50 hidden items-center justify-center z-50">
        <div class="modal-content bg-white dark:bg-gray-800 rounded-2xl p-8 max-w-md w-full mx-4">
            <h3 class="text-2xl font-bold mb-4 gradient-text">Welcome!</h3>
            <p class="text-gray-600 dark:text-gray-300 mb-6">
                Thank you for your interest in Undefined Harmony. We're excited to have you on board!
            </p>
            <button onclick="hideModal()" class="btn-primary px-6 py-2 rounded-lg text-white font-semibold w-full">
                Close
            </button>
        </div>
    </div>

    <script>
        // Initialize Feather Icons
        feather.replace();

        // Dark Mode Toggle
        const darkModeToggle = document.getElementById('darkModeToggle');
        const html = document.documentElement;

        // Check for saved theme preference
        if (localStorage.getItem('darkMode') === 'true') {
            html.classList.add('dark');
            darkModeToggle.classList.add('active');
        }

        darkModeToggle.addEventListener('click', () => {
            html.classList.toggle('dark');
            darkModeToggle.classList.toggle('active');
            localStorage.setItem('darkMode', html.classList.contains('dark'));
        });

        // Mobile Menu Toggle
        function toggleMobileMenu() {
            const mobileMenu = document.getElementById('mobileMenu');
            mobileMenu.classList.toggle('hidden');
        }

        // Smooth Scroll
        function scrollToSection(sectionId) {
            const section = document.getElementById(sectionId);
            section.scrollIntoView({ behavior: 'smooth' });
        }

        // Modal Functions
        function showModal(modalType) {
            const modal = document.getElementById('modal');
            modal.classList.remove('hidden');
            modal.classList.add('flex');
        }

        function hideModal() {
            const modal = document.getElementById('modal');
            modal.classList.add('hidden');
            modal.classList.remove('flex');
        }

        // Form Submit
        function handleSubmit(event) {
            event.preventDefault();
            showModal();
            event.target.reset();
        }

        // Add ripple effect to buttons
        document.querySelectorAll('.btn-primary, .btn-secondary').forEach(button => {
            button.addEventListener('click', function(e) {
                const ripple = document.createElement('span');
                ripple.classList.add('ripple');
                
                const rect = this.getBoundingClientRect();
                const size = Math.max(rect.width, rect.height);
                const x = e.clientX - rect.left - size / 2;
                const y = e.clientY - rect.top - size / 2;
                
                ripple.style.width = ripple.style.height = size + 'px';
                ripple.style.left = x + 'px';
                ripple.style.top = y + 'px';
                
                this.appendChild(ripple);
                
                setTimeout(() => ripple.remove(), 600);
            });
        });

        // Animate elements on scroll
        const observerOptions = {
            threshold: 0.1,
            rootMargin: '0px 0px -100px 0px'
        };

        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.style.opacity = '1';
                    entry.target.style.transform = 'translateY(0)';
                }
            });
        }, observerOptions);

        // Observe all cards and sections
        document.querySelectorAll('.card-hover, section').forEach(el => {
            el.style.opacity = '0';
            el.style.transform = 'translateY(20px)';
            el.style.transition = 'all 0.6s ease';
            observer.observe(el);
        });

        // Add some dynamic background elements
        function createFloatingElement() {
            const element = document.createElement('div');
            element.classList.add('absolute', 'rounded-full', 'opacity-10', 'floating-element');
            element.style.width = Math.random() * 100 + 50 + 'px';
            element.style.height = element.style.width;
            element.style.left = Math.random() * 100 + '%';
            element.style.top = Math.random() * 100 + '%';
            element.style.background = `var(--${Math.random() > 0.5 ? 'primary' : 'secondary'}-400)`;
            element.style.animationDuration = (Math.random() * 3 + 3) + 's';
            
            document.body.appendChild(element);
            
            setTimeout(() => element.remove(), 10000);
        }

        // Create floating elements periodically
        setInterval(createFloatingElement, 3000);
    </script>
</body>
</html>