File size: 28,172 Bytes
42e0277
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ujraa - Coming Soon</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: '#6C63FF',
                        accent: '#00C896',
                        dark: '#0F1117',
                        light: '#F5F7FA',
                        lighttext: '#1E1E1E',
                        graytext: '#3C3C3C',
                        darktext: '#D0D0D0'
                    },
                    fontFamily: {
                        'sans': ['Inter', 'Poppins', 'sans-serif'],
                        'arabic': ['Tajawal', 'Cairo', 'sans-serif']
                    }
                }
            }
        }
    </script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=Cairo:wght@400;600;700&display=swap');
        
        body {
            background-color: #0F1117;
            color: #D0D0D0;
            overflow-x: hidden;
            transition: all 0.3s ease;
        }
        
        body.light-mode {
            background-color: #F5F7FA;
            color: #3C3C3C;
        }
        
        .gradient-text {
            background: linear-gradient(90deg, #6C63FF 0%, #00C896 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .gradient-bg {
            background: linear-gradient(135deg, #6C63FF 0%, #00C896 100%);
        }
        
        .hero-pattern {
            background-image: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
            animation: pulse 8s infinite alternate;
        }
        
        .light-mode .hero-pattern {
            background-image: radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
        }
        
        @keyframes pulse {
            0% { opacity: 0.8; }
            100% { opacity: 1; }
        }
        
        .input-glow:focus {
            box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.5);
        }
        
        .light-mode .input-glow:focus {
            box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.3);
        }
        
        .btn-glow:hover {
            box-shadow: 0 0 15px rgba(108, 99, 255, 0.5);
            transform: translateY(-2px);
        }
        
        .light-mode .btn-glow:hover {
            box-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
        }
        
        .feature-icon {
            transition: all 0.3s ease;
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .feature-card:hover .feature-icon {
            transform: scale(1.1);
            filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.5));
        }
        
        .light-mode .feature-card:hover {
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        }
        
        .rtl {
            direction: rtl;
            text-align: right;
        }
        
        .fade-in {
            animation: fadeIn 1s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .countdown {
            font-family: 'Inter', 'Poppins', sans-serif;
        }
        
        .countdown.rtl {
            font-family: 'Tajawal', 'Cairo', sans-serif;
        }
        
        /* Custom Logo Styles */
        .logo-text-en {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
            font-size: 1.5rem;
            letter-spacing: -0.5px;
        }
        
        .logo-text-ar {
            font-family: 'Cairo', sans-serif;
            font-weight: 700;
            font-size: 1.5rem;
        }
        
        .logo-combined {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo-symbol {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, #6C63FF 0%, #00C896 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .light-mode .logo-symbol {
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .logo-symbol::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
            transform: rotate(45deg);
        }
        
        .logo-inner {
            position: relative;
            z-index: 2;
            color: white;
            font-weight: bold;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .logo-inner i {
            font-size: 18px;
            margin-bottom: 2px;
        }
        
        .logo-inner span {
            font-size: 8px;
            line-height: 1;
        }
        
        /* Light mode text colors */
        .light-mode .text-slate-300 {
            color: #3C3C3C;
        }
        
        .light-mode .text-slate-400 {
            color: #3C3C3C;
        }
        
        .light-mode .text-slate-500 {
            color: #3C3C3C;
        }
        
        .light-mode .bg-dark {
            background-color: white;
            border-color: #e2e8f0;
        }
        
        .light-mode .border-slate-800 {
            border-color: #e2e8f0;
        }
        
        .light-mode .bg-slate-800 {
            background-color: #e2e8f0;
        }
        
        /* Success message */
        .success-message {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #00C896;
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 1000;
            opacity: 0;
            transition: all 0.3s ease;
        }
        
        .success-message.show {
            opacity: 1;
            top: 30px;
        }
        
        /* Ripple effect */
        .ripple {
            position: relative;
            overflow: hidden;
        }
        
        .ripple-effect {
            position: absolute;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.4);
            transform: scale(0);
            animation: ripple 0.6s linear;
            pointer-events: none;
        }
        
        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }
        
        /* Countdown animation */
        .countdown-digit {
            display: inline-block;
            min-width: 1.5em;
            text-align: center;
            animation: pulseDigit 1s infinite alternate;
        }
        
        @keyframes pulseDigit {
            0% { transform: scale(1); }
            100% { transform: scale(1.05); }
        }
        
        @media (max-width: 640px) {
            .hero-text {
                font-size: 2.5rem;
            }
        }
    </style>
</head>
<body class="min-h-screen flex flex-col font-sans" id="body">
    <!-- Navigation -->
    <nav class="py-6 px-4 sm:px-8 lg:px-12 xl:px-16 2xl:px-24">
        <div class="flex justify-between items-center">
            <div class="logo-combined">
                <div class="logo-symbol">
                    <div class="logo-inner">
                        <i class="fas fa-bolt"></i>
                        <span>Ujraa</span>
                    </div>
                </div>
                <div class="logo-text-en hidden" id="logoEn">Ujraa</div>
                <div class="logo-text-ar hidden" id="logoAr">أُجرة</div>
            </div>
            <div class="flex items-center space-x-4 rtl:space-x-reverse">
                <button id="themeToggle" class="p-2 rounded-full bg-slate-800 text-slate-300 hover:bg-slate-700 transition-colors">
                    <i class="fas fa-moon" id="themeIcon"></i>
                </button>
                <button id="languageToggle" class="px-4 py-2 rounded-md bg-slate-800 border border-slate-700 text-sm font-medium hover:bg-slate-700 transition-colors flex items-center">
                    <span id="currentLanguage">English</span>
                    <i class="fas fa-exchange-alt ml-2 text-xs rtl:ml-0 rtl:mr-2"></i>
                </button>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <main class="flex-grow hero-pattern">
        <div class="container mx-auto px-4 sm:px-8 lg:px-12 xl:px-16 2xl:px-24 py-12 sm:py-24">
            <div class="max-w-4xl mx-auto text-center fade-in">
                <div class="inline-flex items-center px-4 py-2 rounded-full bg-slate-800 border border-slate-700 mb-6">
                    <span class="text-sm font-medium" id="comingSoon">Coming Soon</span>
                    <span class="mx-2 text-slate-500">|</span>
                    <div class="countdown flex space-x-1 rtl:space-x-reverse" id="countdown">
                        <span class="bg-slate-800 px-2 py-1 rounded text-xs"><span class="countdown-digit" id="days">00</span>d</span>
                        <span class="bg-slate-800 px-2 py-1 rounded text-xs"><span class="countdown-digit" id="hours">00</span>h</span>
                        <span class="bg-slate-800 px-2 py-1 rounded text-xs"><span class="countdown-digit" id="minutes">00</span>m</span>
                    </div>
                </div>
                
                <h1 class="hero-text text-4xl sm:text-5xl md:text-6xl font-bold leading-tight mb-6">
                    <span class="gradient-text" id="mainHeadline">Change the way</span><br>
                    <span id="subHeadline">you work, forever.</span>
                </h1>
                
                <p class="text-lg sm:text-xl text-slate-300 max-w-2xl mx-auto mb-12" id="heroSubtext">
                    No more chasing. No more guessing. Something smarter is coming.
                </p>
                
                <div class="max-w-md mx-auto">
                    <div class="flex flex-col sm:flex-row gap-3">
                        <input 
                            type="email" 
                            placeholder="Your email address" 
                            id="emailPlaceholder"
                            class="input-glow flex-grow px-4 py-3 rounded-md bg-slate-800 border border-slate-700 focus:outline-none focus:border-primary transition-colors"
                        >
                        <button class="btn-glow px-6 py-3 rounded-md gradient-bg text-white font-medium hover:opacity-90 transition-opacity ripple" id="notifyButton">
                            Notify Me First
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- Features Grid -->
    <section class="py-16 sm:py-24 px-4 sm:px-8 lg:px-12 xl:px-16 2xl:px-24">
        <div class="max-w-6xl mx-auto fade-in">
            <h2 class="text-2xl sm:text-3xl font-bold mb-12 text-center" id="featuresTitle">Work Without Worry</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="feature-card bg-slate-800 p-6 rounded-xl border border-slate-700 hover:border-primary transition-all duration-300">
                    <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-4 feature-icon">
                        <i class="fas fa-bolt text-primary text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-2" id="feature1Title">Instant Payments</h3>
                    <p class="text-slate-400" id="feature1Text">Get paid instantly once work is approved.</p>
                </div>
                
                <div class="feature-card bg-slate-800 p-6 rounded-xl border border-slate-700 hover:border-primary transition-all duration-300">
                    <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-4 feature-icon">
                        <i class="fas fa-file-signature text-primary text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-2" id="feature2Title">Clear Terms</h3>
                    <p class="text-slate-400" id="feature2Text">Everything in writing, no confusion.</p>
                </div>
                
                <div class="feature-card bg-slate-800 p-6 rounded-xl border border-slate-700 hover:border-primary transition-all duration-300">
                    <div class="w-12 h-12 rounded-lg bg-primary/10 flex items-center justify-center mb-4 feature-icon">
                        <i class="fas fa-shield-alt text-primary text-xl"></i>
                    </div>
                    <h3 class="text-xl font-semibold mb-2" id="feature3Title">Secure Deals</h3>
                    <p class="text-slate-400" id="feature3Text">Work with confidence. We protect your process.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Poll Section -->
    <section class="py-16 sm:py-24 px-4 sm:px-8 lg:px-12 xl:px-16 2xl:px-24 bg-slate-800">
        <div class="max-w-4xl mx-auto text-center fade-in">
            <h2 class="text-2xl sm:text-3xl font-bold mb-4" id="pollTitle">Help shape what's next</h2>
            <p class="text-lg text-slate-300 max-w-2xl mx-auto mb-4" id="pollText">
                Share your voice. Get early access and launch rewards.
            </p>
            <button class="btn-glow px-8 py-3 rounded-md gradient-bg text-white font-medium hover:opacity-90 transition-opacity ripple" id="pollButton">
                Join the Poll
            </button>
        </div>
    </section>

    <!-- Footer -->
    <footer class="py-12 px-4 sm:px-8 lg:px-12 xl:px-16 2xl:px-24 border-t border-slate-700">
        <div class="max-w-6xl mx-auto">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="flex items-center space-x-2 mb-6 md:mb-0 rtl:space-x-reverse">
                    <div class="logo-symbol">
                        <div class="logo-inner">
                            <i class="fas fa-bolt"></i>
                            <span>Ujraa</span>
                        </div>
                    </div>
                    <div>
                        <div class="logo-text-en hidden" id="footerLogoEn">Ujraa</div>
                        <div class="logo-text-ar hidden" id="footerLogoAr">أُجرة</div>
                    </div>
                </div>
                
                <div class="flex space-x-6 mb-6 md:mb-0 rtl:space-x-reverse" id="socialIcons">
                    <a href="#" class="text-slate-400 hover:text-primary transition-colors">
                        <i class="fab fa-linkedin-in text-xl"></i>
                    </a>
                    <a href="#" class="text-slate-400 hover:text-primary transition-colors">
                        <i class="fab fa-facebook-f text-xl"></i>
                    </a>
                    <a href="#" class="text-slate-400 hover:text-primary transition-colors">
                        <i class="fab fa-tiktok text-xl"></i>
                    </a>
                    <a href="#" class="text-slate-400 hover:text-primary transition-colors">
                        <i class="fab fa-x-twitter text-xl"></i>
                    </a>
                </div>
                
                <div class="text-slate-400 hover:text-primary transition-colors mb-6 md:mb-0">
                    <a href="mailto:contact@ujraa.com" id="contactEmail">contact@ujraa.com</a>
                </div>
            </div>
            
            <div class="mt-8 pt-8 border-t border-slate-700 text-center text-sm text-slate-500">
                <p id="privacyText">We respect your privacy. No spam.</p>
                <p class="mt-2" id="copyrightText">© 2023 Ujraa. All rights reserved.</p>
            </div>
        </div>
    </footer>

    <!-- Success Message -->
    <div class="success-message" id="successMessage">
        <i class="fas fa-check-circle"></i>
        <span id="successText">✅ You're in!</span>
    </div>

    <!-- Language Content -->
    <script>
        const content = {
            en: {
                comingSoon: "Coming Soon",
                mainHeadline: "Change the way",
                subHeadline: "you work, forever.",
                heroSubtext: "No more chasing. No more guessing. Something smarter is coming.",
                emailPlaceholder: "Your email address",
                notifyButton: "Notify Me First",
                featuresTitle: "Work Without Worry",
                feature1Title: "Instant Payments",
                feature1Text: "Get paid instantly once work is approved.",
                feature2Title: "Clear Terms",
                feature2Text: "Everything in writing, no confusion.",
                feature3Title: "Secure Deals",
                feature3Text: "Work with confidence. We protect your process.",
                pollTitle: "Help shape what's next",
                pollText: "Share your voice. Get early access and launch rewards.",
                pollButton: "Join the Poll",
                privacyText: "We respect your privacy. No spam.",
                copyrightText: "© 2023 Ujraa. All rights reserved.",
                currentLanguage: "English",
                logoText: "Ujraa",
                successText: "✅ You're in!"
            },
            ar: {
                comingSoon: "قريباً",
                mainHeadline: "ابدأ طريقة جديدة",
                subHeadline: "في شغلك… وارتاح من وجع الدماغ",
                heroSubtext: "كفاية لف ودوران… حاجة أذكى جاية مخصوص ليك.",
                emailPlaceholder: "بريدك الإلكتروني",
                notifyButton: "بلغني أول واحد",
                featuresTitle: "اشتغل من غير قلق",
                feature1Title: "دفع فوري",
                feature1Text: "خد فلوسك فور ما يتم الموافقة على شغلك.",
                feature2Title: "شروط واضحة",
                feature2Text: "كل حاجة مكتوبة، من غير أي التباس.",
                feature3Title: "صفقات آمنة",
                feature3Text: "اشتغل بثقة. احنا بنحمي عملية الشغل دي.",
                pollTitle: "ساعد في تشكيل اللي جاي",
                pollText: "رأيك مهم! شارك وخد هدية أول ما نبدأ.",
                pollButton: "شارك في الاستطلاع",
                privacyText: "خصوصيتك تهمنا، مفيش سبام.",
                copyrightText: "© ٢٠٢٣ أُجرة. كل الحقوق محفوظة.",
                currentLanguage: "العربية",
                logoText: "أُجرة",
                successText: "✅ أنت معانا!"
            }
        };

        // Check for saved preferences
        let currentLang = localStorage.getItem('ujraa-lang') || 'en';
        let isDarkMode = localStorage.getItem('ujraa-theme') === 'light' ? false : true;
        
        // Set launch date for countdown (30 days from now)
        const launchDate = new Date();
        launchDate.setDate(launchDate.getDate() + 30);
        
        // Update countdown
        function updateCountdown() {
            const now = new Date();
            const diff = launchDate - now;
            
            const days = Math.floor(diff / (1000 * 60 * 60 * 24));
            const hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
            const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
            
            document.getElementById('days').textContent = days.toString().padStart(2, '0');
            document.getElementById('hours').textContent = hours.toString().padStart(2, '0');
            document.getElementById('minutes').textContent = minutes.toString().padStart(2, '0');
        }
        
        // Update countdown immediately and then every minute
        updateCountdown();
        setInterval(updateCountdown, 60000);
        
        // Language toggle functionality
        document.getElementById('languageToggle').addEventListener('click', function() {
            currentLang = currentLang === 'en' ? 'ar' : 'en';
            localStorage.setItem('ujraa-lang', currentLang);
            updateContent();
            document.body.classList.toggle('rtl');
            document.getElementById('currentLanguage').textContent = content[currentLang].currentLanguage;
            document.getElementById('countdown').classList.toggle('rtl');
        });

        // Theme toggle functionality
        document.getElementById('themeToggle').addEventListener('click', function() {
            isDarkMode = !isDarkMode;
            localStorage.setItem('ujraa-theme', isDarkMode ? 'dark' : 'light');
            if (isDarkMode) {
                document.body.classList.add('dark-mode');
                document.body.classList.remove('light-mode');
                document.getElementById('themeIcon').classList.remove('fa-sun');
                document.getElementById('themeIcon').classList.add('fa-moon');
            } else {
                document.body.classList.add('light-mode');
                document.body.classList.remove('dark-mode');
                document.getElementById('themeIcon').classList.remove('fa-moon');
                document.getElementById('themeIcon').classList.add('fa-sun');
            }
        });

        // Initialize theme
        function initTheme() {
            if (!isDarkMode) {
                document.body.classList.add('light-mode');
                document.body.classList.remove('dark-mode');
                document.getElementById('themeIcon').classList.remove('fa-moon');
                document.getElementById('themeIcon').classList.add('fa-sun');
            }
        }

        function updateContent() {
            for (const key in content[currentLang]) {
                const elements = document.querySelectorAll(`[id="${key}"]`);
                elements.forEach(el => {
                    el.textContent = content[currentLang][key];
                });
            }
            
            // Toggle logo visibility
            if (currentLang === 'en') {
                document.getElementById('logoEn').classList.remove('hidden');
                document.getElementById('logoAr').classList.add('hidden');
                document.getElementById('footerLogoEn').classList.remove('hidden');
                document.getElementById('footerLogoAr').classList.add('hidden');
            } else {
                document.getElementById('logoEn').classList.add('hidden');
                document.getElementById('logoAr').classList.remove('hidden');
                document.getElementById('footerLogoEn').classList.add('hidden');
                document.getElementById('footerLogoAr').classList.remove('hidden');
            }
        }

        // Initialize content and theme
        function initPage() {
            updateContent();
            initTheme();
            
            // Set RTL if Arabic is selected
            if (currentLang === 'ar') {
                document.body.classList.add('rtl');
                document.getElementById('countdown').classList.add('rtl');
                document.getElementById('currentLanguage').textContent = content[currentLang].currentLanguage;
            }
        }

        // Initialize page
        initPage();
        
        // Form submission handler
        document.getElementById('notifyButton').addEventListener('click', function(e) {
            const email = document.querySelector('input[type="email"]').value;
            if(email && email.includes('@')) {
                // Show success message
                const successMessage = document.getElementById('successMessage');
                successMessage.classList.add('show');
                
                // Hide after 3 seconds
                setTimeout(() => {
                    successMessage.classList.remove('show');
                }, 3000);
                
                document.querySelector('input[type="email"]').value = '';
            } else {
                alert(currentLang === 'en' ? 'Please enter a valid email address.' : 'لو سمحت أدخل بريد إلكتروني صحيح.');
            }
            
            // Ripple effect
            createRipple(e);
        });

        // Poll button handler
        document.getElementById('pollButton').addEventListener('click', function(e) {
            alert(currentLang === 'en' ? 'Redirecting to community poll...' : 'هنتوجه لصفحة الاستطلاع...');
            createRipple(e);
        });

        // Create ripple effect
        function createRipple(event) {
            const button = event.currentTarget;
            const ripple = document.createElement('span');
            ripple.classList.add('ripple-effect');
            
            const rect = button.getBoundingClientRect();
            const size = Math.max(rect.width, rect.height);
            const x = event.clientX - rect.left - size / 2;
            const y = event.clientY - rect.top - size / 2;
            
            ripple.style.width = ripple.style.height = `${size}px`;
            ripple.style.left = `${x}px`;
            ripple.style.top = `${y}px`;
            
            button.appendChild(ripple);
            
            setTimeout(() => {
                ripple.remove();
            }, 600);
        }

        // Add ripple effect to all buttons with ripple class
        document.querySelectorAll('.ripple').forEach(button => {
            button.addEventListener('click', createRipple);
        });

        // Animation on scroll
        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.classList.add('fade-in');
                }
            });
        }, { threshold: 0.1 });

        document.querySelectorAll('section').forEach(section => {
            observer.observe(section);
        });
    </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=HeshamAI/ujraa" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>