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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
672
673
674
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>موقع البروفايل الشخصي</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary-color: #4a6fa5;
            --secondary-color: #166088;
            --accent-color: #4fc3f7;
            --text-color: #333;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --success-color: #28a745;
            --danger-color: #dc3545;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: var(--text-color);
            line-height: 1.6;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        header {
            background-color: var(--primary-color);
            color: white;
            padding: 15px 0;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 24px;
            font-weight: bold;
        }
        
        .logo a {
            color: white;
            text-decoration: none;
        }
        
        .auth-buttons {
            display: flex;
            gap: 10px;
        }
        
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background-color: white;
            color: var(--primary-color);
        }
        
        .btn-outline {
            background-color: transparent;
            color: white;
            border: 1px solid white;
        }
        
        .btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 60px 0;
            text-align: center;
        }
        
        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
        }
        
        .hero p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto 30px;
        }
        
        /* Auth Forms */
        .auth-forms {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .auth-form {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            position: relative;
        }
        
        .close-btn {
            position: absolute;
            top: 10px;
            left: 10px;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-color);
        }
        
        .auth-form h2 {
            text-align: center;
            margin-bottom: 20px;
            color: var(--primary-color);
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-control {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        
        .submit-btn {
            width: 100%;
            padding: 12px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .submit-btn:hover {
            background-color: var(--secondary-color);
        }
        
        .form-footer {
            text-align: center;
            margin-top: 20px;
        }
        
        .form-footer a {
            color: var(--primary-color);
            text-decoration: none;
        }
        
        .form-footer a:hover {
            text-decoration: underline;
        }
        
        /* Profile Section */
        .profile-section {
            display: none;
            padding: 40px 0;
        }
        
        .profile-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 30px;
        }
        
        .profile-avatar {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid white;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            margin-bottom: 20px;
        }
        
        .profile-name {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .profile-title {
            color: var(--secondary-color);
            font-size: 18px;
            margin-bottom: 15px;
        }
        
        .profile-bio {
            max-width: 600px;
            text-align: center;
            margin-bottom: 20px;
        }
        
        .profile-stats {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-number {
            font-size: 24px;
            font-weight: bold;
            color: var(--primary-color);
        }
        
        .stat-label {
            font-size: 14px;
            color: #666;
        }
        
        .profile-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }
        
        .profile-card {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .profile-card h3 {
            margin-bottom: 15px;
            color: var(--primary-color);
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }
        
        .edit-btn {
            background-color: var(--accent-color);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            float: left;
            margin-top: 10px;
        }
        
        /* Footer */
        footer {
            background-color: var(--dark-color);
            color: white;
            padding: 30px 0;
            text-align: center;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .footer-links a {
            color: white;
            text-decoration: none;
        }
        
        .footer-links a:hover {
            text-decoration: underline;
        }
        
        .social-icons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .social-icons a {
            color: white;
            font-size: 20px;
        }
        
        .copyright {
            font-size: 14px;
            color: #aaa;
        }
        
        /* Responsive Styles */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                gap: 15px;
            }
            
            .hero h1 {
                font-size: 2rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
            
            .profile-stats {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .profile-content {
                grid-template-columns: 1fr;
            }
        }
        
        /* Animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }
        
        /* Built with link */
        .built-with {
            position: fixed;
            bottom: 10px;
            right: 10px;
            background-color: var(--primary-color);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            text-decoration: none;
            z-index: 1000;
        }
        
        .built-with:hover {
            background-color: var(--secondary-color);
        }
    </style>
</head>
<body>
    <header>
        <div class="container header-container">
            <div class="logo">
                <a href="#">بروفايلك</a>
            </div>
            <div class="auth-buttons">
                <button id="loginBtn" class="btn btn-outline">تسجيل الدخول</button>
                <button id="registerBtn" class="btn btn-primary">إنشاء حساب</button>
            </div>
        </div>
    </header>
    
    <section class="hero">
        <div class="container">
            <h1>أنشئ بروفايلك الشخصي الآن</h1>
            <p>موقعك الشخصي لعرض مهاراتك، خبراتك وإنجازاتك بطريقة احترافية وجذابة</p>
            <button id="heroRegisterBtn" class="btn btn-primary">ابدأ الآن مجانًا</button>
        </div>
    </section>
    
    <!-- Login Form -->
    <div id="loginForm" class="auth-forms">
        <div class="auth-form fade-in">
            <span class="close-btn" id="closeLogin">&times;</span>
            <h2>تسجيل الدخول</h2>
            <form id="loginFormElement">
                <div class="form-group">
                    <label for="loginEmail">البريد الإلكتروني</label>
                    <input type="email" id="loginEmail" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="loginPassword">كلمة المرور</label>
                    <input type="password" id="loginPassword" class="form-control" required>
                </div>
                <button type="submit" class="submit-btn">تسجيل الدخول</button>
            </form>
            <div class="form-footer">
                <p>ليس لديك حساب؟ <a href="#" id="switchToRegister">إنشاء حساب جديد</a></p>
            </div>
        </div>
    </div>
    
    <!-- Registration Form -->
    <div id="registerForm" class="auth-forms">
        <div class="auth-form fade-in">
            <span class="close-btn" id="closeRegister">&times;</span>
            <h2>إنشاء حساب جديد</h2>
            <form id="registerFormElement">
                <div class="form-group">
                    <label for="registerName">الاسم الكامل</label>
                    <input type="text" id="registerName" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="registerEmail">البريد الإلكتروني</label>
                    <input type="email" id="registerEmail" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="registerPassword">كلمة المرور</label>
                    <input type="password" id="registerPassword" class="form-control" required>
                </div>
                <div class="form-group">
                    <label for="registerConfirmPassword">تأكيد كلمة المرور</label>
                    <input type="password" id="registerConfirmPassword" class="form-control" required>
                </div>
                <button type="submit" class="submit-btn">إنشاء حساب</button>
            </form>
            <div class="form-footer">
                <p>لديك حساب بالفعل؟ <a href="#" id="switchToLogin">تسجيل الدخول</a></p>
            </div>
        </div>
    </div>
    
    <!-- Profile Section -->
    <section class="profile-section container" id="profileSection">
        <div class="profile-header">
            <img src="https://via.placeholder.com/150" alt="صورة البروفايل" class="profile-avatar" id="profileAvatar">
            <h2 class="profile-name" id="profileName">محمد أحمد</h2>
            <p class="profile-title" id="profileTitle">مطور ويب ومصمم</p>
            <p class="profile-bio" id="profileBio">أنا مطور ويب بخبرة تزيد عن 5 سنوات في إنشاء تطبيقات ويب حديثة وسريعة الاستجابة. متخصص في JavaScript وReact وNode.js.</p>
            
            <div class="profile-stats">
                <div class="stat-item">
                    <div class="stat-number">125</div>
                    <div class="stat-label">المشاريع</div>
                </div>
                <div class="stat-item">
                    <div class="stat-number">3.5K</div>
                    <div class="stat-label">المتابعون</div>
                </div>
                <div class="stat-item">
                    <div class="stat-number">48</div>
                    <div class="stat-label">العملاء</div>
                </div>
            </div>
        </div>
        
        <div class="profile-content">
            <div class="profile-card">
                <h3>المهارات</h3>
                <ul id="skillsList">
                    <li>HTML5, CSS3, JavaScript</li>
                    <li>React, Vue.js, Angular</li>
                    <li>Node.js, Express</li>
                    <li>MongoDB, MySQL</li>
                    <li>UI/UX Design</li>
                </ul>
                <button class="edit-btn">تعديل</button>
            </div>
            
            <div class="profile-card">
                <h3>الخبرة العملية</h3>
                <div class="experience-item">
                    <h4>مطور ويب أول</h4>
                    <p>شركة التقنية المتقدمة | 2020 - حتى الآن</p>
                    <p>قيادة فريق تطوير لإنشاء تطبيقات ويب معقدة باستخدام أحدث التقنيات.</p>
                </div>
                <div class="experience-item">
                    <h4>مطور ويب</h4>
                    <p>شركة الحلول الرقمية | 2018 - 2020</p>
                    <p>تطوير واجهات مستخدم تفاعلية وتطبيقات ويب متكاملة.</p>
                </div>
                <button class="edit-btn">تعديل</button>
            </div>
            
            <div class="profile-card">
                <h3>المشاريع</h3>
                <div class="project-item">
                    <h4>نظام إدارة المحتوى</h4>
                    <p>نظام متكامل لإدارة المحتوى مع لوحة تحكم مخصصة.</p>
                </div>
                <div class="project-item">
                    <h4>متجر إلكتروني</h4>
                    <p>منصة بيع بالتجزئة مع نظام دفع إلكتروني.</p>
                </div>
                <button class="edit-btn">تعديل</button>
            </div>
        </div>
    </section>
    
    <footer>
        <div class="container">
            <div class="footer-links">
                <a href="#">الصفحة الرئيسية</a>
                <a href="#">عن الموقع</a>
                <a href="#">اتصل بنا</a>
                <a href="#">الشروط والأحكام</a>
                <a href="#">سياسة الخصوصية</a>
            </div>
            <div class="social-icons">
                <a href="#"><i class="fab fa-facebook"></i></a>
                <a href="#"><i class="fab fa-twitter"></i></a>
                <a href="#"><i class="fab fa-linkedin"></i></a>
                <a href="#"><i class="fab fa-instagram"></i></a>
                <a href="#"><i class="fab fa-github"></i></a>
            </div>
            <p class="copyright">جميع الحقوق محفوظة &copy; 2023 بروفايلك</p>
        </div>
    </footer>
    
    <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="built-with">Built with anycoder</a>
    
    <script>
        // DOM Elements
        const loginBtn = document.getElementById('loginBtn');
        const registerBtn = document.getElementById('registerBtn');
        const heroRegisterBtn = document.getElementById('heroRegisterBtn');
        const loginForm = document.getElementById('loginForm');
        const registerForm = document.getElementById('registerForm');
        const closeLogin = document.getElementById('closeLogin');
        const closeRegister = document.getElementById('closeRegister');
        const switchToRegister = document.getElementById('switchToRegister');
        const switchToLogin = document.getElementById('switchToLogin');
        const loginFormElement = document.getElementById('loginFormElement');
        const registerFormElement = document.getElementById('registerFormElement');
        const profileSection = document.getElementById('profileSection');
        
        // Show login form
        loginBtn.addEventListener('click', () => {
            loginForm.style.display = 'flex';
        });
        
        // Show register form
        registerBtn.addEventListener('click', () => {
            registerForm.style.display = 'flex';
        });
        
        heroRegisterBtn.addEventListener('click', () => {
            registerForm.style.display = 'flex';
        });
        
        // Close forms
        closeLogin.addEventListener('click', () => {
            loginForm.style.display = 'none';
        });
        
        closeRegister.addEventListener('click', () => {
            registerForm.style.display = 'none';
        });
        
        // Switch between forms
        switchToRegister.addEventListener('click', (e) => {
            e.preventDefault();
            loginForm.style.display = 'none';
            registerForm.style.display = 'flex';
        });
        
        switchToLogin.addEventListener('click', (e) => {
            e.preventDefault();
            registerForm.style.display = 'none';
            loginForm.style.display = 'flex';
        });
        
        // Close when clicking outside form
        window.addEventListener('click', (e) => {
            if (e.target === loginForm) {
                loginForm.style.display = 'none';
            }
            if (e.target === registerForm) {
                registerForm.style.display = 'none';
            }
        });
        
        // Login form submission
        loginFormElement.addEventListener('submit', (e) => {
            e.preventDefault();
            const email = document.getElementById('loginEmail').value;
            const password = document.getElementById('loginPassword').value;
            
            // Simple validation
            if (email && password) {
                // In a real app, you would send this to your backend
                alert('تم تسجيل الدخول بنجاح!');
                loginForm.style.display = 'none';
                profileSection.style.display = 'block';
                
                // Update profile with user data
                document.getElementById('profileName').textContent = 'محمد أحمد';
                document.getElementById('profileTitle').textContent = 'مطور ويب ومصمم';
                document.getElementById('profileBio').textContent = 'أنا مطور ويب بخبرة تزيد عن 5 سنوات في إنشاء تطبيقات ويب حديثة وسريعة الاستجابة. متخصص في JavaScript وReact وNode.js.';
            } else {
                alert('الرجاء إدخال البريد الإلكتروني وكلمة المرور');
            }
        });
        
        // Register form submission
        registerFormElement.addEventListener('submit', (e) => {
            e.preventDefault();
            const name = document.getElementById('registerName').value;
            const email = document.getElementById('registerEmail').value;
            const password = document.getElementById('registerPassword').value;
            const confirmPassword = document.getElementById('registerConfirmPassword').value;
            
            // Simple validation
            if (password !== confirmPassword) {
                alert('كلمة المرور غير متطابقة!');
                return;
            }
            
            if (name && email && password) {
                // In a real app, you would send this to your backend
                alert('تم إنشاء الحساب بنجاح! يمكنك الآن تسجيل الدخول.');
                registerForm.style.display = 'none';
                
                // Auto-fill login form
                document.getElementById('loginEmail').value = email;
                document.getElementById('loginPassword').value = password;
                loginForm.style.display = 'flex';
            } else {
                alert('الرجاء إكمال جميع الحقول المطلوبة');
            }
        });
        
        // Check if user is logged in (for demo purposes)
        // In a real app, you would check with your backend
        const isLoggedIn = localStorage.getItem('isLoggedIn');
        if (isLoggedIn) {
            profileSection.style.display = 'block';
        }
    </script>
</body>
</html>