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
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
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CS Mastery | Learn Computer Science</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);
        }
        .code-editor {
            font-family: 'Courier New', monospace;
            background-color: #1e293b;
            color: #f8fafc;
        }
        .terminal {
            background-color: #0f172a;
            color: #94a3b8;
            font-family: 'Courier New', monospace;
        }
        .skill-level::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #4f46e5, #a855f7);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        .skill-level:hover::after {
            transform: scaleX(1);
        }
        .active-level::after {
            transform: scaleX(1);
        }
        .progress-ring__circle {
            transition: stroke-dashoffset 0.35s;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
        }
        .flip-card {
            perspective: 1000px;
        }
        .flip-card-inner {
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }
        .flip-card:hover .flip-card-inner {
            transform: rotateY(180deg);
        }
        .flip-card-front, .flip-card-back {
            backface-visibility: hidden;
        }
        .flip-card-back {
            transform: rotateY(180deg);
        }
    </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-laptop-code text-3xl"></i>
                    <h1 class="text-2xl font-bold">CS Mastery</h1>
                </div>
                <nav class="hidden md:flex space-x-6">
                    <a href="#" class="hover:text-gray-200 transition">Home</a>
                    <a href="#courses" class="hover:text-gray-200 transition">Courses</a>
                    <a href="#practice" class="hover:text-gray-200 transition">Practice</a>
                    <a href="#resources" class="hover:text-gray-200 transition">Resources</a>
                    <a href="#community" class="hover:text-gray-200 transition">Community</a>
                </nav>
                <button class="md:hidden text-2xl" id="mobile-menu-button">
                    <i class="fas fa-bars"></i>
                </button>
            </div>
        </div>
        
        <!-- Mobile Menu -->
        <div class="md:hidden hidden bg-indigo-800" id="mobile-menu">
            <div class="container mx-auto px-4 py-4 flex flex-col space-y-3">
                <a href="#" class="hover:text-gray-200 transition">Home</a>
                <a href="#courses" class="hover:text-gray-200 transition">Courses</a>
                <a href="#practice" class="hover:text-gray-200 transition">Practice</a>
                <a href="#resources" class="hover:text-gray-200 transition">Resources</a>
                <a href="#community" class="hover:text-gray-200 transition">Community</a>
            </div>
        </div>
    </header>

    <!-- Hero Section -->
    <section class="gradient-bg text-white py-20">
        <div class="container mx-auto px-4 flex flex-col md:flex-row items-center">
            <div class="md:w-1/2 mb-10 md:mb-0">
                <h1 class="text-4xl md:text-5xl font-bold mb-4">Master Computer Science From Zero to Hero</h1>
                <p class="text-xl mb-8">Interactive learning platform for beginners to advanced students. Learn programming, algorithms, data structures, and more with hands-on exercises.</p>
                <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
                    <button class="bg-white text-indigo-600 px-6 py-3 rounded-lg font-semibold hover:bg-gray-100 transition">Start Learning</button>
                    <button class="border-2 border-white text-white px-6 py-3 rounded-lg font-semibold hover:bg-white hover:text-indigo-600 transition">Explore Courses</button>
                </div>
            </div>
            <div class="md:w-1/2 flex justify-center">
                <div class="code-editor rounded-lg shadow-2xl w-full max-w-lg">
                    <div class="bg-gray-800 px-4 py-2 rounded-t-lg flex items-center">
                        <div class="flex space-x-2">
                            <div class="w-3 h-3 rounded-full bg-red-500"></div>
                            <div class="w-3 h-3 rounded-full bg-yellow-500"></div>
                            <div class="w-3 h-3 rounded-full bg-green-500"></div>
                        </div>
                        <div class="ml-4 text-sm text-gray-400">script.js</div>
                    </div>
                    <div class="p-4 overflow-auto" style="max-height: 300px;">
                        <pre class="text-sm"><code class="language-javascript">// Binary Search Implementation
function binarySearch(arr, target) {
    let left = 0;
    let right = arr.length - 1;
    
    while (left <= right) {
        const mid = Math.floor((left + right) / 2);
        
        if (arr[mid] === target) {
            return mid; // Found the target
        } else if (arr[mid] < target) {
            left = mid + 1; // Search right half
        } else {
            right = mid - 1; // Search left half
        }
    }
    
    return -1; // Target not found
}

// Example usage
const numbers = [1, 3, 5, 7, 9, 11, 13];
console.log(binarySearch(numbers, 9)); // Output: 4</code></pre>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Skill Level Selector -->
    <section class="py-12 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center mb-12">Choose Your Learning Path</h2>
            <div class="flex flex-wrap justify-center gap-4 mb-12">
                <button class="skill-level px-6 py-3 rounded-lg font-semibold bg-indigo-100 text-indigo-700 relative transition hover:bg-indigo-200" data-level="beginner">
                    <i class="fas fa-seedling mr-2"></i> Beginner
                </button>
                <button class="skill-level px-6 py-3 rounded-lg font-semibold bg-blue-100 text-blue-700 relative transition hover:bg-blue-200" data-level="intermediate">
                    <i class="fas fa-rocket mr-2"></i> Intermediate
                </button>
                <button class="skill-level px-6 py-3 rounded-lg font-semibold bg-purple-100 text-purple-700 relative transition hover:bg-purple-200" data-level="advanced">
                    <i class="fas fa-brain mr-2"></i> Advanced
                </button>
                <button class="skill-level px-6 py-3 rounded-lg font-semibold bg-pink-100 text-pink-700 relative transition hover:bg-pink-200" data-level="expert">
                    <i class="fas fa-trophy mr-2"></i> Expert
                </button>
            </div>

            <!-- Content based on level -->
            <div id="content-display" class="grid md:grid-cols-3 gap-8">
                <!-- Content will be dynamically loaded here -->
            </div>
        </div>
    </section>

    <!-- Interactive Code Playground -->
    <section id="practice" class="py-16 bg-gray-100">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center mb-12">Interactive Code Playground</h2>
            <div class="grid md:grid-cols-2 gap-8">
                <div>
                    <div class="code-editor rounded-lg shadow-lg mb-4">
                        <div class="bg-gray-800 px-4 py-2 rounded-t-lg flex items-center justify-between">
                            <div class="flex items-center">
                                <div class="flex space-x-2 mr-4">
                                    <div class="w-3 h-3 rounded-full bg-red-500"></div>
                                    <div class="w-3 h-3 rounded-full bg-yellow-500"></div>
                                    <div class="w-3 h-3 rounded-full bg-green-500"></div>
                                </div>
                                <div class="text-sm text-gray-400">playground.js</div>
                            </div>
                            <select id="language-select" class="bg-gray-700 text-gray-200 text-sm px-2 py-1 rounded">
                                <option value="javascript">JavaScript</option>
                                <option value="python">Python</option>
                                <option value="java">Java</option>
                                <option value="csharp">C#</option>
                                <option value="cpp">C++</option>
                            </select>
                        </div>
                        <textarea id="code-input" class="w-full p-4 text-sm h-64 focus:outline-none" spellcheck="false">// Write your code here
// Example: Calculate factorial
function factorial(n) {
    if (n === 0 || n === 1) {
        return 1;
    }
    return n * factorial(n - 1);
}

console.log(factorial(5)); // Should output 120</textarea>
                    </div>
                    <div class="flex justify-between">
                        <button id="run-code" class="bg-green-600 text-white px-6 py-2 rounded-lg font-semibold hover:bg-green-700 transition">
                            <i class="fas fa-play mr-2"></i> Run Code
                        </button>
                        <button id="reset-code" class="bg-gray-600 text-white px-6 py-2 rounded-lg font-semibold hover:bg-gray-700 transition">
                            <i class="fas fa-redo mr-2"></i> Reset
                        </button>
                    </div>
                </div>
                <div>
                    <div class="terminal rounded-lg shadow-lg h-80 overflow-hidden">
                        <div class="bg-gray-900 px-4 py-2 rounded-t-lg flex items-center">
                            <div class="flex space-x-2 mr-4">
                                <div class="w-3 h-3 rounded-full bg-red-500"></div>
                                <div class="w-3 h-3 rounded-full bg-yellow-500"></div>
                                <div class="w-3 h-3 rounded-full bg-green-500"></div>
                            </div>
                            <div class="text-sm text-gray-400">Terminal Output</div>
                        </div>
                        <div id="code-output" class="p-4 overflow-auto h-full">
                            <div class="text-green-400">$ Output will appear here after running your code</div>
                        </div>
                    </div>
                    <div class="mt-4">
                        <h3 class="font-semibold mb-2">Challenge:</h3>
                        <p class="text-sm text-gray-700">Modify the factorial function to handle negative numbers by returning an error message.</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Courses Section -->
    <section id="courses" class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center mb-12">Featured Courses</h2>
            <div class="grid md:grid-cols-3 gap-8">
                <!-- Course 1 -->
                <div class="flip-card bg-white rounded-xl shadow-lg overflow-hidden h-full">
                    <div class="flip-card-inner h-full">
                        <div class="flip-card-front h-full">
                            <div class="h-48 bg-indigo-600 flex items-center justify-center">
                                <i class="fas fa-code text-white text-6xl"></i>
                            </div>
                            <div class="p-6">
                                <h3 class="text-xl font-bold mb-2">Programming Fundamentals</h3>
                                <p class="text-gray-600 mb-4">Learn the basics of programming with JavaScript, Python, or Java.</p>
                                <div class="flex items-center text-sm text-gray-500">
                                    <i class="fas fa-clock mr-2"></i>
                                    <span>8 weeks</span>
                                    <i class="fas fa-star ml-4 mr-2 text-yellow-500"></i>
                                    <span>4.9</span>
                                </div>
                            </div>
                        </div>
                        <div class="flip-card-back bg-indigo-700 text-white p-6 h-full flex flex-col justify-center">
                            <h3 class="text-xl font-bold mb-4">What You'll Learn</h3>
                            <ul class="list-disc pl-5 space-y-2 text-sm">
                                <li>Variables, data types, and operators</li>
                                <li>Control structures (loops, conditionals)</li>
                                <li>Functions and modular programming</li>
                                <li>Basic data structures (arrays, objects)</li>
                                <li>Debugging techniques</li>
                            </ul>
                            <button class="mt-6 bg-white text-indigo-700 px-4 py-2 rounded-lg font-semibold hover:bg-gray-100 transition self-start">Enroll Now</button>
                        </div>
                    </div>
                </div>

                <!-- Course 2 -->
                <div class="flip-card bg-white rounded-xl shadow-lg overflow-hidden h-full">
                    <div class="flip-card-inner h-full">
                        <div class="flip-card-front h-full">
                            <div class="h-48 bg-blue-600 flex items-center justify-center">
                                <i class="fas fa-project-diagram text-white text-6xl"></i>
                            </div>
                            <div class="p-6">
                                <h3 class="text-xl font-bold mb-2">Data Structures & Algorithms</h3>
                                <p class="text-gray-600 mb-4">Master essential CS concepts for technical interviews.</p>
                                <div class="flex items-center text-sm text-gray-500">
                                    <i class="fas fa-clock mr-2"></i>
                                    <span>12 weeks</span>
                                    <i class="fas fa-star ml-4 mr-2 text-yellow-500"></i>
                                    <span>4.8</span>
                                </div>
                            </div>
                        </div>
                        <div class="flip-card-back bg-blue-700 text-white p-6 h-full flex flex-col justify-center">
                            <h3 class="text-xl font-bold mb-4">What You'll Learn</h3>
                            <ul class="list-disc pl-5 space-y-2 text-sm">
                                <li>Arrays, Linked Lists, Stacks, Queues</li>
                                <li>Trees, Graphs, Hash Tables</li>
                                <li>Sorting and searching algorithms</li>
                                <li>Recursion and dynamic programming</li>
                                <li>Time and space complexity analysis</li>
                            </ul>
                            <button class="mt-6 bg-white text-blue-700 px-4 py-2 rounded-lg font-semibold hover:bg-gray-100 transition self-start">Enroll Now</button>
                        </div>
                    </div>
                </div>

                <!-- Course 3 -->
                <div class="flip-card bg-white rounded-xl shadow-lg overflow-hidden h-full">
                    <div class="flip-card-inner h-full">
                        <div class="flip-card-front h-full">
                            <div class="h-48 bg-purple-600 flex items-center justify-center">
                                <i class="fas fa-server text-white text-6xl"></i>
                            </div>
                            <div class="p-6">
                                <h3 class="text-xl font-bold mb-2">Advanced Systems Design</h3>
                                <p class="text-gray-600 mb-4">Design scalable distributed systems for senior engineers.</p>
                                <div class="flex items-center text-sm text-gray-500">
                                    <i class="fas fa-clock mr-2"></i>
                                    <span>10 weeks</span>
                                    <i class="fas fa-star ml-4 mr-2 text-yellow-500"></i>
                                    <span>4.9</span>
                                </div>
                            </div>
                        </div>
                        <div class="flip-card-back bg-purple-700 text-white p-6 h-full flex flex-col justify-center">
                            <h3 class="text-xl font-bold mb-4">What You'll Learn</h3>
                            <ul class="list-disc pl-5 space-y-2 text-sm">
                                <li>System architecture patterns</li>
                                <li>Database scaling and replication</li>
                                <li>Caching strategies</li>
                                <li>Load balancing and CDNs</li>
                                <li>Microservices architecture</li>
                            </ul>
                            <button class="mt-6 bg-white text-purple-700 px-4 py-2 rounded-lg font-semibold hover:bg-gray-100 transition self-start">Enroll Now</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Progress Tracker -->
    <section class="py-16 bg-gray-100">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center mb-12">Track Your Learning Progress</h2>
            <div class="bg-white rounded-xl shadow-lg p-8 max-w-4xl mx-auto">
                <div class="grid md:grid-cols-4 gap-8">
                    <div class="text-center">
                        <div class="relative w-24 h-24 mx-auto mb-4">
                            <svg class="w-full h-full" viewBox="0 0 36 36">
                                <path
                                    d="M18 2.0845
                                    a 15.9155 15.9155 0 0 1 0 31.831
                                    a 15.9155 15.9155 0 0 1 0 -31.831"
                                    fill="none"
                                    stroke="#e6e6e6"
                                    stroke-width="3"
                                />
                                <path
                                    class="progress-ring__circle"
                                    d="M18 2.0845
                                    a 15.9155 15.9155 0 0 1 0 31.831
                                    a 15.9155 15.9155 0 0 1 0 -31.831"
                                    fill="none"
                                    stroke="#4f46e5"
                                    stroke-width="3"
                                    stroke-dasharray="100, 100"
                                    id="course-progress"
                                />
                            </svg>
                            <div class="absolute inset-0 flex items-center justify-center">
                                <span class="text-lg font-bold" id="progress-percent">0%</span>
                            </div>
                        </div>
                        <h3 class="font-semibold">Courses Completed</h3>
                    </div>
                    
                    <div class="text-center">
                        <div class="relative w-24 h-24 mx-auto mb-4">
                            <svg class="w-full h-full" viewBox="0 0 36 36">
                                <path
                                    d="M18 2.0845
                                    a 15.9155 15.9155 0 0 1 0 31.831
                                    a 15.9155 15.9155 0 0 1 0 -31.831"
                                    fill="none"
                                    stroke="#e6e6e6"
                                    stroke-width="3"
                                />
                                <path
                                    class="progress-ring__circle"
                                    d="M18 2.0845
                                    a 15.9155 15.9155 0 0 1 0 31.831
                                    a 15.9155 15.9155 0 0 1 0 -31.831"
                                    fill="none"
                                    stroke="#10b981"
                                    stroke-width="3"
                                    stroke-dasharray="100, 100"
                                    id="challenge-progress"
                                />
                            </svg>
                            <div class="absolute inset-0 flex items-center justify-center">
                                <span class="text-lg font-bold" id="challenge-percent">0%</span>
                            </div>
                        </div>
                        <h3 class="font-semibold">Challenges Solved</h3>
                    </div>
                    
                    <div class="text-center">
                        <div class="relative w-24 h-24 mx-auto mb-4">
                            <svg class="w-full h-full" viewBox="0 0 36 36">
                                <path
                                    d="M18 2.0845
                                    a 15.9155 15.9155 0 0 1 0 31.831
                                    a 15.9155 15.9155 0 0 1 0 -31.831"
                                    fill="none"
                                    stroke="#e6e6e6"
                                    stroke-width="3"
                                />
                                <path
                                    class="progress-ring__circle"
                                    d="M18 2.0845
                                    a 15.9155 15.9155 0 0 1 0 31.831
                                    a 15.9155 15.9155 0 0 1 0 -31.831"
                                    fill="none"
                                    stroke="#f59e0b"
                                    stroke-width="3"
                                    stroke-dasharray="100, 100"
                                    id="concept-progress"
                                />
                            </svg>
                            <div class="absolute inset-0 flex items-center justify-center">
                                <span class="text-lg font-bold" id="concept-percent">0%</span>
                            </div>
                        </div>
                        <h3 class="font-semibold">Concepts Mastered</h3>
                    </div>
                    
                    <div class="text-center">
                        <div class="relative w-24 h-24 mx-auto mb-4">
                            <svg class="w-full h-full" viewBox="0 0 36 36">
                                <path
                                    d="M18 2.0845
                                    a 15.9155 15.9155 0 0 1 0 31.831
                                    a 15.9155 15.9155 0 0 1 0 -31.831"
                                    fill="none"
                                    stroke="#e6e6e6"
                                    stroke-width="3"
                                />
                                <path
                                    class="progress-ring__circle"
                                    d="M18 2.0845
                                    a 15.9155 15.9155 0 0 1 0 31.831
                                    a 15.9155 15.9155 0 0 1 0 -31.831"
                                    fill="none"
                                    stroke="#ef4444"
                                    stroke-width="3"
                                    stroke-dasharray="100, 100"
                                    id="streak-progress"
                                />
                            </svg>
                            <div class="absolute inset-0 flex items-center justify-center">
                                <span class="text-lg font-bold" id="streak-count">0</span>
                            </div>
                        </div>
                        <h3 class="font-semibold">Day Streak</h3>
                    </div>
                </div>
                
                <div class="mt-8">
                    <h3 class="font-semibold mb-4">Recent Activity</h3>
                    <div class="space-y-4">
                        <div class="flex items-start">
                            <div class="bg-indigo-100 p-2 rounded-full mr-3">
                                <i class="fas fa-check-circle text-indigo-600"></i>
                            </div>
                            <div>
                                <p class="text-sm font-medium">Completed "Recursion Basics" lesson</p>
                                <p class="text-xs text-gray-500">2 hours ago</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="bg-green-100 p-2 rounded-full mr-3">
                                <i class="fas fa-code text-green-600"></i>
                            </div>
                            <div>
                                <p class="text-sm font-medium">Solved "Binary Tree Traversal" challenge</p>
                                <p class="text-xs text-gray-500">Yesterday</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="bg-yellow-100 p-2 rounded-full mr-3">
                                <i class="fas fa-book text-yellow-600"></i>
                            </div>
                            <div>
                                <p class="text-sm font-medium">Started "System Design Fundamentals" course</p>
                                <p class="text-xs text-gray-500">3 days ago</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Resources Section -->
    <section id="resources" class="py-16 bg-white">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center mb-12">Learning Resources</h2>
            <div class="grid md:grid-cols-3 gap-8">
                <!-- Cheat Sheets -->
                <div class="bg-gray-50 rounded-xl shadow-md overflow-hidden hover:shadow-lg transition">
                    <div class="bg-indigo-600 p-4">
                        <i class="fas fa-file-alt text-white text-3xl"></i>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-bold mb-3">Cheat Sheets</h3>
                        <p class="text-gray-600 mb-4">Quick reference guides for common programming concepts and syntax.</p>
                        <div class="flex flex-wrap gap-2">
                            <span class="bg-indigo-100 text-indigo-800 text-xs px-3 py-1 rounded-full">JavaScript</span>
                            <span class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">Python</span>
                            <span class="bg-purple-100 text-purple-800 text-xs px-3 py-1 rounded-full">SQL</span>
                            <span class="bg-green-100 text-green-800 text-xs px-3 py-1 rounded-full">Git</span>
                        </div>
                        <button class="mt-4 text-indigo-600 font-semibold hover:text-indigo-800 transition flex items-center">
                            Explore Cheat Sheets <i class="fas fa-arrow-right ml-2"></i>
                        </button>
                    </div>
                </div>
                
                <!-- Video Tutorials -->
                <div class="bg-gray-50 rounded-xl shadow-md overflow-hidden hover:shadow-lg transition">
                    <div class="bg-blue-600 p-4">
                        <i class="fas fa-video text-white text-3xl"></i>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-bold mb-3">Video Tutorials</h3>
                        <p class="text-gray-600 mb-4">Comprehensive video courses with hands-on coding exercises.</p>
                        <div class="flex flex-wrap gap-2">
                            <span class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">Algorithms</span>
                            <span class="bg-indigo-100 text-indigo-800 text-xs px-3 py-1 rounded-full">Web Dev</span>
                            <span class="bg-purple-100 text-purple-800 text-xs px-3 py-1 rounded-full">Mobile</span>
                            <span class="bg-green-100 text-green-800 text-xs px-3 py-1 rounded-full">Data Science</span>
                        </div>
                        <button class="mt-4 text-blue-600 font-semibold hover:text-blue-800 transition flex items-center">
                            Browse Videos <i class="fas fa-arrow-right ml-2"></i>
                        </button>
                    </div>
                </div>
                
                <!-- Interview Prep -->
                <div class="bg-gray-50 rounded-xl shadow-md overflow-hidden hover:shadow-lg transition">
                    <div class="bg-purple-600 p-4">
                        <i class="fas fa-clipboard-list text-white text-3xl"></i>
                    </div>
                    <div class="p-6">
                        <h3 class="text-xl font-bold mb-3">Interview Prep</h3>
                        <p class="text-gray-600 mb-4">Practice questions and mock interviews for technical interviews.</p>
                        <div class="flex flex-wrap gap-2">
                            <span class="bg-purple-100 text-purple-800 text-xs px-3 py-1 rounded-full">FAANG</span>
                            <span class="bg-indigo-100 text-indigo-800 text-xs px-3 py-1 rounded-full">Startups</span>
                            <span class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">Big Tech</span>
                            <span class="bg-green-100 text-green-800 text-xs px-3 py-1 rounded-full">Finance</span>
                        </div>
                        <button class="mt-4 text-purple-600 font-semibold hover:text-purple-800 transition flex items-center">
                            Prepare for Interviews <i class="fas fa-arrow-right ml-2"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Community Section -->
    <section id="community" class="py-16 bg-gray-100">
        <div class="container mx-auto px-4">
            <h2 class="text-3xl font-bold text-center mb-12">Join Our Community</h2>
            <div class="bg-white rounded-xl shadow-lg overflow-hidden max-w-4xl mx-auto">
                <div class="md:flex">
                    <div class="md:w-1/2 bg-indigo-700 text-white p-8">
                        <h3 class="text-2xl font-bold mb-4">Connect with Fellow Learners</h3>
                        <p class="mb-6">Ask questions, share projects, and get feedback from a community of passionate computer science students and professionals.</p>
                        <div class="space-y-4">
                            <div class="flex items-center">
                                <i class="fas fa-users text-2xl mr-4"></i>
                                <div>
                                    <h4 class="font-bold">100,000+ Members</h4>
                                    <p class="text-sm text-indigo-200">Active community of learners</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <i class="fas fa-comments text-2xl mr-4"></i>
                                <div>
                                    <h4 class="font-bold">24/7 Discussions</h4>
                                    <p class="text-sm text-indigo-200">Get help anytime</p>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <i class="fas fa-calendar-check text-2xl mr-4"></i>
                                <div>
                                    <h4 class="font-bold">Weekly Events</h4>
                                    <p class="text-sm text-indigo-200">Study groups, hackathons, and more</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="md:w-1/2 p-8">
                        <h3 class="text-xl font-bold mb-6">Sign Up for Community Access</h3>
                        <form>
                            <div class="mb-4">
                                <label for="name" class="block text-sm font-medium mb-1">Name</label>
                                <input type="text" id="name" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                            </div>
                            <div class="mb-4">
                                <label for="email" class="block text-sm font-medium mb-1">Email</label>
                                <input type="email" id="email" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                            </div>
                            <div class="mb-4">
                                <label for="skill-level" class="block text-sm font-medium mb-1">Skill Level</label>
                                <select id="skill-level" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
                                    <option value="beginner">Beginner</option>
                                    <option value="intermediate">Intermediate</option>
                                    <option value="advanced">Advanced</option>
                                    <option value="expert">Expert</option>
                                </select>
                            </div>
                            <button type="submit" class="w-full bg-indigo-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-indigo-700 transition">
                                Join Community
                            </button>
                        </form>
                        <div class="mt-4 text-center text-sm text-gray-600">
                            Already a member? <a href="#" class="text-indigo-600 hover:underline">Sign in</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid md:grid-cols-4 gap-8">
                <div>
                    <div class="flex items-center space-x-2 mb-4">
                        <i class="fas fa-laptop-code text-2xl"></i>
                        <h3 class="text-xl font-bold">CS Mastery</h3>
                    </div>
                    <p class="text-gray-400">The complete computer science learning platform for students of all levels.</p>
                    <div class="flex space-x-4 mt-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-github"></i></a>
                        <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-discord"></i></a>
                        <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-youtube"></i></a>
                    </div>
                </div>
                <div>
                    <h4 class="font-bold mb-4">Learn</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Courses</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">Challenges</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Roadmaps</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Interview Prep</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="font-bold mb-4">Resources</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Cheat Sheets</a></li>
                        <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">Glossary</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Projects</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Open Source</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="font-bold mb-4">Company</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition">About</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">Privacy</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Terms</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
                    </ul>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-400">
                <p>&copy; 2023 CS Mastery. All rights reserved.</p>
            </div>
        </div>
    </footer>

    <script>
        // Mobile menu toggle
        document.getElementById('mobile-menu-button').addEventListener('click', function() {
            const menu = document.getElementById('mobile-menu');
            menu.classList.toggle('hidden');
        });

        // Skill level selector
        const skillLevels = document.querySelectorAll('.skill-level');
        const contentDisplay = document.getElementById('content-display');
        
        // Sample content for different skill levels
        const levelContent = {
            beginner: [
                {
                    title: 'Programming Basics',
                    icon: 'fa-code',
                    description: 'Learn fundamental programming concepts with simple, interactive exercises.',
                    color: 'indigo'
                },
                {
                    title: 'Web Development',
                    icon: 'fa-globe',
                    description: 'Build your first website with HTML, CSS, and JavaScript.',
                    color: 'blue'
                },
                {
                    title: 'Problem Solving',
                    icon: 'fa-puzzle-piece',
                    description: 'Develop computational thinking skills with beginner-friendly challenges.',
                    color: 'green'
                }
            ],
            intermediate: [
                {
                    title: 'Data Structures',
                    icon: 'fa-layer-group',
                    description: 'Master arrays, linked lists, stacks, queues, and hash tables.',
                    color: 'purple'
                },
                {
                    title: 'Algorithms',
                    icon: 'fa-robot',
                    description: 'Learn sorting, searching, and basic algorithm design techniques.',
                    color: 'pink'
                },
                {
                    title: 'Object-Oriented Programming',
                    icon: 'fa-cubes',
                    description: 'Understand classes, objects, inheritance, and polymorphism.',
                    color: 'indigo'
                }
            ],
            advanced: [
                {
                    title: 'Advanced Algorithms',
                    icon: 'fa-brain',
                    description: 'Study graph algorithms, dynamic programming, and divide & conquer.',
                    color: 'red'
                },
                {
                    title: 'System Design',
                    icon: 'fa-server',
                    description: 'Learn to design scalable distributed systems and architectures.',
                    color: 'yellow'
                },
                {
                    title: 'Database Systems',
                    icon: 'fa-database',
                    description: 'Deep dive into SQL, NoSQL, indexing, and query optimization.',
                    color: 'blue'
                }
            ],
            expert: [
                {
                    title: 'Competitive Programming',
                    icon: 'fa-trophy',
                    description: 'Prepare for coding competitions with advanced problem-solving techniques.',
                    color: 'green'
                },
                {
                    title: 'Machine Learning',
                    icon: 'fa-microchip',
                    description: 'Implement ML algorithms and neural networks from scratch.',
                    color: 'purple'
                },
                {
                    title: 'Blockchain Development',
                    icon: 'fa-link',
                    description: 'Build decentralized applications and smart contracts.',
                    color: 'indigo'
                }
            ]
        };

        // Set default level to beginner
        let currentLevel = 'beginner';
        skillLevels[0].classList.add('active-level');
        updateContentDisplay(currentLevel);

        skillLevels.forEach(level => {
            level.addEventListener('click', function() {
                // Remove active class from all buttons
                skillLevels.forEach(btn => btn.classList.remove('active-level'));
                
                // Add active class to clicked button
                this.classList.add('active-level');
                
                // Update content display
                currentLevel = this.dataset.level;
                updateContentDisplay(currentLevel);
            });
        });

        function updateContentDisplay(level) {
            const content = levelContent[level];
            let html = '';
            
            content.forEach(item => {
                html += `
                    <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition transform hover:-translate-y-1">
                        <div class="h-48 bg-${item.color}-600 flex items-center justify-center">
                            <i class="fas ${item.icon} text-white text-6xl"></i>
                        </div>
                        <div class="p-6">
                            <h3 class="text-xl font-bold mb-3">${item.title}</h3>
                            <p class="text-gray-600 mb-4">${item.description}</p>
                            <button class="text-${item.color}-600 font-semibold hover:text-${item.color}-800 transition flex items-center">
                                Explore <i class="fas fa-arrow-right ml-2"></i>
                            </button>
                        </div>
                    </div>
                `;
            });
            
            contentDisplay.innerHTML = html;
        }

        // Code playground functionality
        const runButton = document.getElementById('run-code');
        const resetButton = document.getElementById('reset-code');
        const codeInput = document.getElementById('code-input');
        const codeOutput = document.getElementById('code-output');
        const languageSelect = document.getElementById('language-select');

        runButton.addEventListener('click', function() {
            const code = codeInput.value;
            
            // Clear previous output
            codeOutput.innerHTML = '<div class="text-green-400">$ Running your code...</div>';
            
            // Simulate code execution (in a real app, this would be handled by a backend or WebAssembly)
            setTimeout(() => {
                try {
                    // This is a simplified execution for demo purposes
                    // In a real app, you'd want to use a safer approach like a sandboxed iframe or WebWorker
                    const originalConsoleLog = console.log;
                    let output = '';
                    
                    console.log = function(message) {
                        output += message + '\n';
                    };
                    
                    // Evaluate the code
                    eval(code);
                    
                    console.log = originalConsoleLog;
                    
                    if (output === '') {
                        output = 'Program executed successfully with no output.';
                    }
                    
                    codeOutput.innerHTML = `<pre class="text-green-400">$ ${output}</pre>`;
                } catch (error) {
                    codeOutput.innerHTML = `<pre class="text-red-400">$ Error: ${error.message}</pre>`;
                }
            }, 500);
        });

        resetButton.addEventListener('click', function() {
            // Reset to default code based on selected language
            const language = languageSelect.value;
            let defaultCode = '';
            
            switch(language) {
                case 'python':
                    defaultCode = `# Python factorial example
def factorial(n):
    if n == 0 or n == 1:
        return 1
    return n * factorial(n - 1)

print(factorial(5))  # Should output 120`;
                    break;
                case 'java':
                    defaultCode = `// Java factorial example
public class Main {
    public static int factorial(int n) {
        if (n == 0 || n == 1) {
            return 1;
        }
        return n * factorial(n - 1);
    }
    
    public static void main(String[] args) {
        System.out.println(factorial(5)); // Should output 120
    }
}`;
                    break;
                case 'csharp':
                    defaultCode = `// C# factorial example
using System;

class Program {
    static int Factorial(int n) {
        if (n == 0 || n == 1) {
            return 1;
        }
        return n * Factorial(n - 1);
    }
    
    static void Main() {
        Console.WriteLine(Factorial(5)); // Should output 120
    }
}`;
                    break;
                case 'cpp':
                    defaultCode = `// C++ factorial example
#include <iostream>
using namespace std;

int factorial(int n) {
    if (n == 0 || n == 1) {
        return 1;
    }
    return n * factorial(n - 1);
}

int main() {
    cout << factorial(5) << endl; // Should output 120
    return 0;
}`;
                    break;
                default: // JavaScript
                    defaultCode = `// JavaScript factorial example
function factorial(n) {
    if (n === 0 || n === 1) {
        return 1;
    }
    return n * factorial(n - 1);
}

console.log(factorial(5)); // Should output 120`;
            }
            
            codeInput.value = defaultCode;
            codeOutput.innerHTML = '<div class="text-green-400">$ Output will appear here after running your code</div>';
        });

        languageSelect.addEventListener('change', function() {
            resetButton.click();
        });

        // Initialize with JavaScript code
        resetButton.click();

        // Progress tracker animation
        function animateProgress(elementId, percent, displayElement) {
            const circle = document.getElementById(elementId);
            const radius = circle.r.baseVal.value;
            const circumference = 2 * Math.PI * radius;
            const offset = circumference - (percent / 100) * circumference;
            
            circle.style.strokeDashoffset = offset;
            displayElement.textContent = `${percent}%`;
        }

        // Simulate progress (in a real app, this would come from user data)
        setTimeout(() => {
            animateProgress('course-progress', 35, document.getElementById('progress-percent'));
            animateProgress('challenge-progress', 62, document.getElementById('challenge-percent'));
            animateProgress('concept-progress', 48, document.getElementById('concept-percent'));
            document.getElementById('streak-count').textContent = '7';
        }, 500);
    </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=DEVINESKEW/cs" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>