-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
908 lines (843 loc) · 46.9 KB
/
Copy pathindex.html
File metadata and controls
908 lines (843 loc) · 46.9 KB
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
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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The 12-Month Creative Developer Odyssey by JDR</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['"Plus Jakarta Sans"', 'sans-serif'],
mono: ['"Space Grotesk"', 'monospace'],
},
animation: {
'pulse-slow': 'pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite',
'float': 'float 6s ease-in-out infinite',
'float-delayed': 'float 6s ease-in-out 2s infinite',
'glow': 'glow 2s ease-in-out infinite alternate',
'slide-up': 'slideUp 0.6s ease-out forwards',
'slide-up-delay-1': 'slideUp 0.6s ease-out 0.1s forwards',
'slide-up-delay-2': 'slideUp 0.6s ease-out 0.2s forwards',
'slide-up-delay-3': 'slideUp 0.6s ease-out 0.3s forwards',
},
keyframes: {
float: {
'0%, 100%': { transform: 'translateY(0px)' },
'50%': { transform: 'translateY(-20px)' },
},
glow: {
'0%': { boxShadow: '0 0 20px rgba(168, 85, 247, 0.2)' },
'100%': { boxShadow: '0 0 40px rgba(168, 85, 247, 0.4)' },
},
slideUp: {
'0%': { opacity: '0', transform: 'translateY(30px)' },
'100%': { opacity: '1', transform: 'translateY(0)' },
},
},
}
}
}
</script>
<style>
body {
background-color: #0B0F19;
color: #F3F4F6;
}
.gradient-text {
background: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.gradient-text-alt {
background: linear-gradient(135deg, #818CF8 0%, #C084FC 50%, #F472B6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.gradient-border {
position: relative;
background: linear-gradient(135deg, #1E1B4B, #311042);
border: 1px solid rgba(168, 85, 247, 0.2);
}
.gradient-border::before {
content: '';
position: absolute;
inset: -1px;
border-radius: inherit;
padding: 1px;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.5));
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
pointer-events: none;
}
.hero-glow {
position: absolute;
border-radius: 50%;
filter: blur(120px);
pointer-events: none;
z-index: 0;
}
/* Scroll reveal animation */
.reveal {
opacity: 0;
transform: translateY(40px);
transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
opacity: 1;
transform: translateY(0);
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #0B0F19;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #6366F1, #A855F7);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #818CF8, #C084FC);
}
/* Phase card hover glow */
.phase-card {
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.phase-card:hover {
transform: translateY(-4px);
}
/* Badge pulse ring */
.pulse-ring {
animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}
/* Stat counter glow */
.stat-card {
transition: all 0.3s ease;
}
.stat-card:hover {
transform: scale(1.05);
}
/* Smooth nav */
.nav-blur {
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
}
/* Timeline connector dot animation */
.timeline-dot {
transition: all 0.3s ease;
}
.timeline-dot:hover {
transform: scale(1.3);
}
/* Mobile timeline */
@media (max-width: 768px) {
.mobile-timeline-line {
position: absolute;
left: 24px;
top: 0;
bottom: 0;
width: 2px;
background: linear-gradient(180deg, #6366F1, #A855F7, #EC4899);
opacity: 0.3;
}
.mobile-phase-dot {
position: absolute;
left: 16px;
top: 24px;
width: 18px;
height: 18px;
border-radius: 50%;
border: 3px solid;
z-index: 10;
}
}
/* Ticker animation */
.ticker-scroll {
animation: ticker 20s linear infinite;
}
@keyframes ticker {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
</style>
</head>
<body class="font-sans antialiased overflow-x-hidden selection:bg-purple-500 selection:text-white">
<!-- Fixed Navigation -->
<nav id="mainNav" class="fixed top-0 left-0 right-0 z-50 nav-blur bg-[#0B0F19]/70 border-b border-slate-800/50 transition-all duration-300 -translate-y-full">
<div class="max-w-6xl mx-auto px-6 py-3 flex items-center justify-between">
<a href="#" class="font-mono font-bold text-sm gradient-text">JDR ODYSSEY</a>
<div class="hidden sm:flex items-center gap-6">
<a href="#comparison" class="text-xs text-slate-400 hover:text-purple-300 transition-colors font-mono">COMPARISON</a>
<a href="#demo" class="text-xs text-slate-400 hover:text-purple-300 transition-colors font-mono">LIVE DEMO</a>
<a href="#timeline" class="text-xs text-slate-400 hover:text-purple-300 transition-colors font-mono">TIMELINE</a>
<a href="#stats" class="text-xs text-slate-400 hover:text-purple-300 transition-colors font-mono">STATS</a>
</div>
<button id="scrollTopBtn" class="text-xs bg-purple-600/20 hover:bg-purple-600/40 border border-purple-500/30 text-purple-300 px-3 py-1.5 rounded-lg font-mono transition-all flex items-center gap-1.5">
<i data-lucide="arrow-up" class="w-3 h-3"></i>
TOP
</button>
</div>
</nav>
<!-- Background Glow Effects -->
<div class="hero-glow top-0 left-1/4 w-[500px] h-[500px] bg-indigo-900/20 animate-float"></div>
<div class="hero-glow top-[600px] right-0 w-[400px] h-[400px] bg-purple-900/25 animate-float-delayed"></div>
<div class="hero-glow bottom-40 left-0 w-[350px] h-[350px] bg-pink-900/20 animate-float"></div>
<div class="hero-glow top-[1600px] left-1/3 w-[300px] h-[300px] bg-violet-900/15 animate-float-delayed"></div>
<!-- Tech Ticker Bar -->
<div class="relative overflow-hidden bg-slate-900/40 border-b border-slate-800/50 py-2">
<div class="ticker-scroll flex whitespace-nowrap gap-8 text-xs font-mono text-slate-500">
<span>THREE.JS</span><span>•</span>
<span>WEBGL</span><span>•</span>
<span>GLSL SHADERS</span><span>•</span>
<span>GSAP</span><span>•</span>
<span>SCROLLTRIGGER</span><span>•</span>
<span>CANVAS API</span><span>•</span>
<span>VERTEX MATH</span><span>•</span>
<span>FRAGMENT SHADERS</span><span>•</span>
<span>GPU RENDERING</span><span>•</span>
<span>3D MATRICES</span><span>•</span>
<span>VERCEL</span><span>•</span>
<span>ES6+</span><span>•</span>
<span>THREE.JS</span><span>•</span>
<span>WEBGL</span><span>•</span>
<span>GLSL SHADERS</span><span>•</span>
<span>GSAP</span><span>•</span>
<span>SCROLLTRIGGER</span><span>•</span>
<span>CANVAS API</span><span>•</span>
<span>VERTEX MATH</span><span>•</span>
<span>FRAGMENT SHADERS</span><span>•</span>
<span>GPU RENDERING</span><span>•</span>
<span>3D MATRICES</span><span>•</span>
<span>VERCEL</span><span>•</span>
<span>ES6+</span><span>•</span>
</div>
</div>
<!-- Header Section -->
<header class="max-w-6xl mx-auto px-6 pt-20 pb-16 text-center relative z-10">
<div class="opacity-0 animate-slide-up">
<div class="inline-flex items-center gap-2 bg-purple-950/40 border border-purple-800/60 px-4 py-1.5 rounded-full text-xs font-semibold text-purple-300 tracking-wider uppercase mb-8 shadow-lg shadow-purple-950/20 pulse-ring">
<span class="w-2 h-2 rounded-full bg-purple-400 animate-pulse"></span>
Industry Verification Document
</div>
</div>
<h1 class="text-4xl sm:text-5xl md:text-7xl font-extrabold tracking-tight mb-6 font-mono opacity-0 animate-slide-up-delay-1">
The <span class="gradient-text">Creative Developer</span> Odyssey
</h1>
<p class="text-base sm:text-lg md:text-xl text-slate-400 max-w-3xl mx-auto font-light leading-relaxed opacity-0 animate-slide-up-delay-2">
A transparent comparison of what it takes to build pre-made website templates vs. mastering custom mathematical 3D graphics, motion physics, and real-time GPU processing.
</p>
<div class="mt-8 flex flex-wrap items-center justify-center gap-3 opacity-0 animate-slide-up-delay-3">
<a href="#demo" class="inline-flex items-center gap-2 bg-purple-600 hover:bg-purple-500 text-white px-5 py-2.5 rounded-xl text-sm font-semibold transition-all shadow-lg shadow-purple-900/40 hover:shadow-purple-900/60">
<i data-lucide="play" class="w-4 h-4"></i>
See Live Demo
</a>
<a href="#timeline" class="inline-flex items-center gap-2 bg-slate-800/60 hover:bg-slate-700/60 border border-slate-700 text-slate-300 hover:text-white px-5 py-2.5 rounded-xl text-sm font-semibold transition-all">
<i data-lucide="map" class="w-4 h-4"></i>
View Roadmap
</a>
</div>
</header>
<!-- Main Content -->
<main class="max-w-6xl mx-auto px-6 pb-24 relative z-10 space-y-16">
<!-- Comparison Section -->
<section id="comparison" class="reveal">
<div class="text-center mb-8">
<span class="text-xs font-mono text-purple-400 uppercase tracking-widest">Side-by-Side Analysis</span>
<h2 class="text-2xl sm:text-3xl font-extrabold font-mono mt-2">
The <span class="gradient-text">Battle</span> of Stacks
</h2>
</div>
<div class="gradient-border p-6 sm:p-8 rounded-3xl overflow-hidden shadow-2xl relative">
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 divide-y md:divide-y-0 md:divide-x divide-slate-800 relative z-10">
<!-- Column 1: WordPress Templates -->
<div class="pb-8 md:pb-0 md:pr-8 flex flex-col justify-between">
<div>
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl sm:text-2xl font-bold text-slate-100 flex items-center gap-2 font-mono">
<i data-lucide="puzzle" class="w-6 h-6 text-emerald-400"></i>
WordPress Templates
</h2>
<span class="px-2.5 py-1 text-xs font-medium text-emerald-400 bg-emerald-950/40 border border-emerald-800/50 rounded-md flex items-center gap-1">
<i data-lucide="smile" class="w-3 h-3"></i>
Easy
</span>
</div>
<p class="text-slate-400 text-sm leading-relaxed mb-6">
Using pre-built themes, visual builders, and plugins to assemble a website without needing to write custom performance-driven graphics or interactive physics code.
</p>
<ul class="space-y-3 mb-6">
<li class="flex items-start gap-2.5 text-sm text-slate-300">
<i data-lucide="check-circle-2" class="w-5 h-5 text-emerald-400 shrink-0 mt-0.5"></i>
Template Customization (Modifying pre-existing page designs)
</li>
<li class="flex items-start gap-2.5 text-sm text-slate-300">
<i data-lucide="check-circle-2" class="w-5 h-5 text-emerald-400 shrink-0 mt-0.5"></i>
No-code builders & plugins (No custom math equations required)
</li>
<li class="flex items-start gap-2.5 text-sm text-slate-300">
<i data-lucide="check-circle-2" class="w-5 h-5 text-emerald-400 shrink-0 mt-0.5"></i>
Standard vertical scroll & flat 2D designs
</li>
</ul>
</div>
<div class="bg-slate-900/60 p-4 rounded-xl border border-slate-800">
<span class="text-xs text-slate-500 uppercase tracking-widest block mb-1">Building Analogy</span>
<p class="text-xs text-slate-300">
<strong>Buying a LEGO Set:</strong> You follow the step-by-step instruction manual. It looks fantastic at the end, but you did not formulate the plastic, design the instructions, or engineer the bricks.
</p>
</div>
</div>
<!-- Column 2: Creative Dev Stack -->
<div class="pt-8 md:pt-0 md:pl-8 flex flex-col justify-between">
<div>
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl sm:text-2xl font-bold text-purple-300 flex items-center gap-2 font-mono">
<i data-lucide="orbit" class="w-6 h-6 text-purple-400"></i>
The Creative Dev Stack
</h3>
<span class="px-2.5 py-1 text-xs font-medium text-pink-400 bg-pink-950/40 border border-pink-800/50 rounded-md flex items-center gap-1">
<i data-lucide="zap" class="w-3 h-3"></i>
Extreme
</span>
</div>
<p class="text-slate-400 text-sm leading-relaxed mb-6">
Low-level rendering, vector mathematics, animation timelines, physics matrices, and 3D engine design. Built line-by-line using deep programming.
</p>
<ul class="space-y-3 mb-6">
<li class="flex items-start gap-2.5 text-sm text-slate-300">
<i data-lucide="shield-check" class="w-5 h-5 text-purple-400 shrink-0 mt-0.5"></i>
Direct control over the GPU/graphics chip of the computer
</li>
<li class="flex items-start gap-2.5 text-sm text-slate-300">
<i data-lucide="shield-check" class="w-5 h-5 text-purple-400 shrink-0 mt-0.5"></i>
3D Math (Matrices, vectors, lighting matrices, camera coordinates)
</li>
<li class="flex items-start gap-2.5 text-sm text-slate-300">
<i data-lucide="shield-check" class="w-5 h-5 text-purple-400 shrink-0 mt-0.5"></i>
Complex state synchronization and pipeline deployment
</li>
</ul>
</div>
<div class="bg-purple-950/35 p-4 rounded-xl border border-purple-900/50">
<span class="text-xs text-purple-400 uppercase tracking-widest block mb-1">Building Analogy</span>
<p class="text-xs text-slate-300">
<strong>Machining a Space Shuttle:</strong> You start with blocks of raw steel, cast the engine components, map out the mechanical layout, and code the flight guidance system by hand.
</p>
</div>
</div>
</div>
</div>
</section>
<!-- LIVE DEMO SECTION -->
<section id="demo" class="reveal">
<div class="bg-slate-900/40 border border-slate-800/80 p-6 sm:p-8 rounded-3xl relative">
<div class="flex items-start justify-between mb-2 flex-wrap gap-2">
<h3 class="text-xl font-bold text-slate-200 font-mono flex items-center gap-2">
<i data-lucide="monitor-play" class="w-5 h-5 text-purple-400"></i>
Live Interaction Demo (WebGL-Lite)
</h3>
<div class="flex items-center gap-2">
<button id="toggleWaves" class="text-xs bg-slate-800/60 hover:bg-slate-700/60 border border-slate-700 text-slate-300 hover:text-white px-3 py-1.5 rounded-lg font-mono transition-all flex items-center gap-1">
<i data-lucide="waves" class="w-3 h-3"></i>
Mode
</button>
<button id="resetCanvas" class="text-xs bg-slate-800/60 hover:bg-slate-700/60 border border-slate-700 text-slate-300 hover:text-white px-3 py-1.5 rounded-lg font-mono transition-all flex items-center gap-1">
<i data-lucide="rotate-ccw" class="w-3 h-3"></i>
Reset
</button>
</div>
</div>
<p class="text-slate-400 text-sm mb-6">
Below is a live Canvas running real-time, interactive mathematical sine wave rendering. Hover or drag your mouse across it. On mobile, touch and drag. This is computed frame-by-frame on your device right now using raw math equations. <strong class="text-purple-300">Standard WordPress sites cannot program custom rendering like this.</strong>
</p>
<!-- Interactive Wave Canvas -->
<div class="relative w-full h-64 sm:h-80 bg-slate-950 rounded-2xl border border-slate-800 overflow-hidden group">
<canvas id="interactiveCanvas" class="w-full h-full block cursor-crosshair"></canvas>
<div class="absolute bottom-4 left-4 bg-slate-900/80 backdrop-blur-md px-3 py-1.5 rounded-lg border border-slate-700/50 text-xs text-slate-400 font-mono flex items-center gap-3">
<span class="flex items-center gap-1.5">
<i data-lucide="activity" class="w-3 h-3 text-purple-400"></i>
<span id="fpsTracker" class="text-purple-400">60.0 FPS</span>
</span>
<span class="flex items-center gap-1.5">
<i data-lucide="mouse-pointer-2" class="w-3 h-3 text-indigo-400"></i>
<span id="coordTracker" class="text-indigo-400">0, 0</span>
</span>
</div>
<div class="absolute top-4 right-4 bg-slate-900/80 backdrop-blur-md px-3 py-1.5 rounded-lg border border-slate-700/50 text-xs text-slate-500 font-mono" id="modeLabel">
Wave Mode: Sine
</div>
</div>
<!-- Equation display -->
<div class="mt-4 bg-slate-950/60 border border-slate-800/50 rounded-xl p-4 font-mono text-xs text-slate-500 overflow-x-auto">
<span class="text-purple-400">// Fragment-equivalent math running in your browser:</span><br>
<span class="text-indigo-300">distFactor</span> = <span class="text-emerald-400">Math.sin</span>(dist * <span class="text-pink-400">0.05</span> - frame * <span class="text-pink-400">0.1</span>) * <span class="text-yellow-400">15</span>;<br>
<span class="text-indigo-300">waveX</span> = x + (dx / (dist + <span class="text-yellow-400">1</span>)) * distFactor;<br>
<span class="text-indigo-300">waveY</span> = y + (dy / (dist + <span class="text-yellow-400">1</span>)) * distFactor;
</div>
</div>
</section>
<!-- The 12-Month Curriculum Timeline -->
<section id="timeline" class="space-y-10 reveal">
<div class="text-center mb-8">
<span class="text-xs font-mono text-purple-400 uppercase tracking-widest">Curriculum Roadmap</span>
<h3 class="text-3xl sm:text-4xl font-extrabold font-mono mt-2">
The <span class="gradient-text">12-Month</span> Deep-Dive Timeline
</h3>
<p class="text-slate-400 text-sm mt-3 max-w-2xl mx-auto">Each phase builds on the last, transforming you from a template user into a creative engine architect.</p>
</div>
<div class="space-y-6 relative">
<!-- Connecting Line for desktop timeline -->
<div class="absolute left-6 md:left-1/2 top-4 bottom-4 w-0.5 bg-gradient-to-b from-indigo-500 via-purple-500 to-pink-500 opacity-20 pointer-events-none hidden md:block"></div>
<!-- Mobile timeline line -->
<div class="mobile-timeline-line md:hidden"></div>
<!-- Phase 1 -->
<div class="flex flex-col md:flex-row items-stretch gap-6 md:gap-12 relative pl-14 md:pl-0">
<!-- Mobile dot -->
<div class="mobile-phase-dot md:hidden bg-indigo-950 border-indigo-500"></div>
<div class="w-full md:w-1/2 md:text-right flex flex-col justify-center order-2 md:order-1">
<div class="phase-card bg-slate-900/50 p-6 rounded-2xl border border-slate-800/80 hover:border-indigo-500/35 shadow-lg">
<span class="text-indigo-400 font-mono text-xs uppercase tracking-widest block mb-2">Months 1–3 · Phase 1</span>
<h4 class="text-xl font-bold text-slate-200 mb-2 font-mono">Foundations & Engineering Logic</h4>
<p class="text-slate-400 text-sm leading-relaxed mb-4">
Mastering modern HTML5, CSS3 structural semantics, and deep functional ES6+ JavaScript. Moving past visuals to understand memory structures, programmatic arrays, event loops, and console debugging.
</p>
<div class="flex flex-wrap gap-2 md:justify-end">
<span class="bg-indigo-950/40 border border-indigo-800/60 text-indigo-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="code-2" class="w-3 h-3"></i>VS Code</span>
<span class="bg-indigo-950/40 border border-indigo-800/60 text-indigo-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="braces" class="w-3 h-3"></i>JavaScript ES6</span>
<span class="bg-indigo-950/40 border border-indigo-800/60 text-indigo-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="git-branch" class="w-3 h-3"></i>Git & GitHub</span>
</div>
</div>
</div>
<div class="hidden md:flex items-center justify-center relative z-20 order-2">
<div class="timeline-dot w-12 h-12 rounded-full bg-indigo-950 border-4 border-indigo-500 text-indigo-300 font-mono font-bold flex items-center justify-center shadow-lg shadow-indigo-500/20">01</div>
</div>
<div class="w-full md:w-1/2 flex items-center order-1 md:order-3">
<div class="flex items-center gap-4 bg-indigo-950/10 border border-indigo-900/30 p-4 rounded-xl w-full">
<div class="w-12 h-12 rounded-lg bg-indigo-900/30 flex items-center justify-center shrink-0">
<i data-lucide="code-2" class="w-6 h-6 text-indigo-400"></i>
</div>
<div>
<h5 class="text-xs text-indigo-300 uppercase tracking-wider font-bold">Crucial Learning Goal</h5>
<p class="text-xs text-slate-400">Shift from consumer visual thinking to writing clean, algorithmic logic inside computational engines.</p>
</div>
</div>
</div>
</div>
<!-- Phase 2 -->
<div class="flex flex-col md:flex-row items-stretch gap-6 md:gap-12 relative pl-14 md:pl-0">
<div class="mobile-phase-dot md:hidden bg-purple-950 border-purple-500"></div>
<div class="w-full md:w-1/2 flex items-center order-1">
<div class="flex items-center gap-4 bg-purple-950/10 border border-purple-900/30 p-4 rounded-xl w-full">
<div class="w-12 h-12 rounded-lg bg-purple-900/30 flex items-center justify-center shrink-0">
<i data-lucide="zap" class="w-6 h-6 text-purple-400"></i>
</div>
<div>
<h5 class="text-xs text-purple-300 uppercase tracking-wider font-bold">Crucial Learning Goal</h5>
<p class="text-xs text-slate-400">Bending visual elements dynamically through physics vectors and scroll trigger interpolation.</p>
</div>
</div>
</div>
<div class="hidden md:flex items-center justify-center relative z-20 order-2">
<div class="timeline-dot w-12 h-12 rounded-full bg-purple-950 border-4 border-purple-500 text-purple-300 font-mono font-bold flex items-center justify-center shadow-lg shadow-purple-500/20">02</div>
</div>
<div class="w-full md:w-1/2 flex flex-col justify-center order-2">
<div class="phase-card bg-slate-900/50 p-6 rounded-2xl border border-slate-800/80 hover:border-purple-500/35 shadow-lg">
<span class="text-purple-400 font-mono text-xs uppercase tracking-widest block mb-2">Month 4 · Phase 2</span>
<h4 class="text-xl font-bold text-slate-200 mb-2 font-mono">Motion & Cloud Deployment Pipelines</h4>
<p class="text-slate-400 text-sm leading-relaxed mb-4">
Integrating GSAP (GreenSock Animation Platform) to handle complex, multi-layered scroll animations, responsive timing chains, and publishing builds straight to high-speed CDN cloud hosts.
</p>
<div class="flex flex-wrap gap-2">
<span class="bg-purple-950/40 border border-purple-800/60 text-purple-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="play" class="w-3 h-3"></i>GSAP Core</span>
<span class="bg-purple-950/40 border border-purple-800/60 text-purple-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="mouse" class="w-3 h-3"></i>ScrollTrigger</span>
<span class="bg-purple-950/40 border border-purple-800/60 text-purple-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="cloud" class="w-3 h-3"></i>Vercel Pipeline</span>
</div>
</div>
</div>
</div>
<!-- Phase 3 -->
<div class="flex flex-col md:flex-row items-stretch gap-6 md:gap-12 relative pl-14 md:pl-0">
<div class="mobile-phase-dot md:hidden bg-pink-950 border-pink-500"></div>
<div class="w-full md:w-1/2 md:text-right flex flex-col justify-center order-2 md:order-1">
<div class="phase-card bg-slate-900/50 p-6 rounded-2xl border border-slate-800/80 hover:border-pink-500/35 shadow-lg">
<span class="text-pink-400 font-mono text-xs uppercase tracking-widest block mb-2">Months 5–7 · Phase 3</span>
<h4 class="text-xl font-bold text-slate-200 mb-2 font-mono">Entering the 3D World (WebGL)</h4>
<p class="text-slate-400 text-sm leading-relaxed mb-4">
The massive shift into 3D environments. Programming virtual world cameras, perspective projection, mesh geometry, texture packing, real-time dynamic light baking, and performance optimization techniques.
</p>
<div class="flex flex-wrap gap-2 md:justify-end">
<span class="bg-pink-950/40 border border-pink-800/60 text-pink-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="box" class="w-3 h-3"></i>Three.js Engine</span>
<span class="bg-pink-950/40 border border-pink-800/60 text-pink-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="compass" class="w-3 h-3"></i>3D Math Vectors</span>
<span class="bg-pink-950/40 border border-pink-800/60 text-pink-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="package" class="w-3 h-3"></i>GLTF Optimization</span>
</div>
</div>
</div>
<div class="hidden md:flex items-center justify-center relative z-20 order-2">
<div class="timeline-dot w-12 h-12 rounded-full bg-pink-950 border-4 border-pink-500 text-pink-300 font-mono font-bold flex items-center justify-center shadow-lg shadow-pink-500/20">03</div>
</div>
<div class="w-full md:w-1/2 flex items-center order-1 md:order-3">
<div class="flex items-center gap-4 bg-pink-950/10 border border-pink-900/30 p-4 rounded-xl w-full">
<div class="w-12 h-12 rounded-lg bg-pink-900/30 flex items-center justify-center shrink-0">
<i data-lucide="globe" class="w-6 h-6 text-pink-400"></i>
</div>
<div>
<h5 class="text-xs text-pink-300 uppercase tracking-wider font-bold">Crucial Learning Goal</h5>
<p class="text-xs text-slate-400">Managing geometry rendering cycles inside live browser RAM (keeping frame rates pinned at 60fps).</p>
</div>
</div>
</div>
</div>
<!-- Phase 4 -->
<div class="flex flex-col md:flex-row items-stretch gap-6 md:gap-12 relative pl-14 md:pl-0">
<div class="mobile-phase-dot md:hidden bg-violet-950 border-violet-500"></div>
<div class="w-full md:w-1/2 flex items-center order-1">
<div class="flex items-center gap-4 bg-violet-950/10 border border-violet-900/30 p-4 rounded-xl w-full">
<div class="w-12 h-12 rounded-lg bg-violet-900/30 flex items-center justify-center shrink-0">
<i data-lucide="flask-conical" class="w-6 h-6 text-violet-400"></i>
</div>
<div>
<h5 class="text-xs text-violet-300 uppercase tracking-wider font-bold">Crucial Learning Goal</h5>
<p class="text-xs text-slate-400">Writing custom vertex and fragment GLSL shaders executed directly by the GPU hardware matrix.</p>
</div>
</div>
</div>
<div class="hidden md:flex items-center justify-center relative z-20 order-2">
<div class="timeline-dot w-12 h-12 rounded-full bg-violet-950 border-4 border-violet-500 text-violet-300 font-mono font-bold flex items-center justify-center shadow-lg shadow-violet-500/20">04</div>
</div>
<div class="w-full md:w-1/2 flex flex-col justify-center order-2">
<div class="phase-card bg-slate-900/50 p-6 rounded-2xl border border-slate-800/80 hover:border-violet-500/35 shadow-lg">
<span class="text-violet-400 font-mono text-xs uppercase tracking-widest block mb-2">Months 8–9 · Phase 4</span>
<h4 class="text-xl font-bold text-slate-200 mb-2 font-mono">The Deep End (Custom Shaders)</h4>
<p class="text-slate-400 text-sm leading-relaxed mb-4">
Moving beyond third-party packages to write direct WebGL / GLSL code. Using math matrices, algorithms, and light reflection vector coordinates to draw procedural art and custom shader-based effects.
</p>
<div class="flex flex-wrap gap-2">
<span class="bg-violet-950/40 border border-violet-800/60 text-violet-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="cpu" class="w-3 h-3"></i>GLSL Shaders</span>
<span class="bg-violet-950/40 border border-violet-800/60 text-violet-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="file-code-2" class="w-3 h-3"></i>Custom Vertex/Frag</span>
<span class="bg-violet-950/40 border border-violet-800/60 text-violet-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="waves" class="w-3 h-3"></i>Mathematical Wave Art</span>
</div>
</div>
</div>
</div>
<!-- Phase 5 -->
<div class="flex flex-col md:flex-row items-stretch gap-6 md:gap-12 relative pl-14 md:pl-0">
<div class="mobile-phase-dot md:hidden bg-fuchsia-950 border-fuchsia-500"></div>
<div class="w-full md:w-1/2 md:text-right flex flex-col justify-center order-2 md:order-1">
<div class="phase-card bg-slate-900/50 p-6 rounded-2xl border border-slate-800/80 hover:border-fuchsia-500/35 shadow-lg">
<span class="text-fuchsia-400 font-mono text-xs uppercase tracking-widest block mb-2">Months 10–12 · Phase 5</span>
<h4 class="text-xl font-bold text-slate-200 mb-2 font-mono">Production Integration & Capstone</h4>
<p class="text-slate-400 text-sm leading-relaxed mb-4">
Combining all structural, animation, 3D math, and WebGL elements into high-performance, responsive creative web software. Launching the global production app seamlessly to Vercel networks.
</p>
<div class="flex flex-wrap gap-2 md:justify-end">
<span class="bg-fuchsia-950/40 border border-fuchsia-800/60 text-fuchsia-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="rocket" class="w-3 h-3"></i>Production Release</span>
<span class="bg-fuchsia-950/40 border border-fuchsia-800/60 text-fuchsia-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="gauge" class="w-3 h-3"></i>Performance Auditing</span>
<span class="bg-fuchsia-950/40 border border-fuchsia-800/60 text-fuchsia-300 text-[11px] font-semibold px-2.5 py-1 rounded-md font-mono flex items-center gap-1"><i data-lucide="workflow" class="w-3 h-3"></i>Vercel Automation</span>
</div>
</div>
</div>
<div class="hidden md:flex items-center justify-center relative z-20 order-2">
<div class="timeline-dot w-12 h-12 rounded-full bg-fuchsia-950 border-4 border-fuchsia-500 text-fuchsia-300 font-mono font-bold flex items-center justify-center shadow-lg shadow-fuchsia-500/20">05</div>
</div>
<div class="w-full md:w-1/2 flex items-center order-1 md:order-3">
<div class="flex items-center gap-4 bg-fuchsia-950/10 border border-fuchsia-900/30 p-4 rounded-xl w-full">
<div class="w-12 h-12 rounded-lg bg-fuchsia-900/30 flex items-center justify-center shrink-0">
<i data-lucide="sparkles" class="w-6 h-6 text-fuchsia-400"></i>
</div>
<div>
<h5 class="text-xs text-fuchsia-300 uppercase tracking-wider font-bold">Crucial Learning Goal</h5>
<p class="text-xs text-slate-400">Perfect engineering fusion. Building responsive systems that work flawlessly on all modern computer & phone displays.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Fun Stats Counter widget -->
<section id="stats" class="reveal">
<div class="text-center mb-6">
<span class="text-xs font-mono text-purple-400 uppercase tracking-widest">By The Numbers</span>
</div>
<div class="grid grid-cols-1 sm:grid-cols-3 gap-6">
<div class="stat-card bg-slate-900/30 border border-slate-800 p-6 rounded-2xl text-center hover:border-indigo-500/30 transition-all">
<div class="w-14 h-14 mx-auto rounded-xl bg-indigo-900/30 flex items-center justify-center mb-3">
<i data-lucide="file-code-2" class="w-7 h-7 text-indigo-400"></i>
</div>
<h4 class="text-4xl font-extrabold text-indigo-400 font-mono mb-2" id="linesCounter">0</h4>
<p class="text-xs text-slate-400 uppercase tracking-wider">Lines of Custom Logic Written</p>
</div>
<div class="stat-card bg-slate-900/30 border border-slate-800 p-6 rounded-2xl text-center hover:border-purple-500/30 transition-all">
<div class="w-14 h-14 mx-auto rounded-xl bg-purple-900/30 flex items-center justify-center mb-3">
<i data-lucide="calendar-days" class="w-7 h-7 text-purple-400"></i>
</div>
<h4 class="text-4xl font-extrabold text-purple-400 font-mono mb-2" id="coffeeCounter">0</h4>
<p class="text-xs text-slate-400 uppercase tracking-wider">Days of Continuous Execution</p>
</div>
<div class="stat-card bg-slate-900/30 border border-slate-800 p-6 rounded-2xl text-center hover:border-pink-500/30 transition-all">
<div class="w-14 h-14 mx-auto rounded-xl bg-pink-900/30 flex items-center justify-center mb-3">
<i data-lucide="gauge" class="w-7 h-7 text-pink-400"></i>
</div>
<h4 class="text-4xl font-extrabold text-pink-400 font-mono mb-2" id="fpsStatCounter">0</h4>
<p class="text-xs text-slate-400 uppercase tracking-wider">Required Rendering Target</p>
</div>
</div>
</section>
<!-- Final Note Footer Box -->
<footer class="text-center pt-8 border-t border-slate-800/80 reveal">
<div class="inline-flex items-center gap-2 mb-4">
<i data-lucide="shield-check" class="w-4 h-4 text-purple-400"></i>
<span class="text-xs font-mono text-purple-400 uppercase tracking-widest">Verified Document</span>
</div>
<p class="text-xs text-slate-500 max-w-lg mx-auto leading-relaxed">
BY JESSE DANIEL ROBERTS: This document is an accurate roadmap and representation of Creative Technology skills in 2026. Custom Three.js/WebGL structures represent advanced technical design competencies globally.
</p>
<div class="mt-6 flex items-center justify-center gap-4">
<a href="#" class="text-slate-600 hover:text-purple-400 transition-colors"><i data-lucide="github" class="w-5 h-5"></i></a>
<a href="#" class="text-slate-600 hover:text-purple-400 transition-colors"><i data-lucide="twitter" class="w-5 h-5"></i></a>
<a href="#" class="text-slate-600 hover:text-purple-400 transition-colors"><i data-lucide="linkedin" class="w-5 h-5"></i></a>
<a href="#" class="text-slate-600 hover:text-purple-400 transition-colors"><i data-lucide="globe" class="w-5 h-5"></i></a>
</div>
</footer>
</main>
<!-- Lucide Icons -->
<script src="https://unpkg.com/lucide@latest"></script>
<script>
lucide.createIcons();
</script>
<!-- Main Application Script -->
<script>
// ============================================
// SCROLL REVEAL ANIMATIONS
// ============================================
const revealElements = document.querySelectorAll('.reveal');
const revealObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}, { threshold: 0.1, rootMargin: '0px 0px -50px 0px' });
revealElements.forEach(el => revealObserver.observe(el));
// ============================================
// FIXED NAVIGATION - Show on scroll
// ============================================
const mainNav = document.getElementById('mainNav');
const scrollTopBtn = document.getElementById('scrollTopBtn');
let lastScrollY = 0;
window.addEventListener('scroll', () => {
const currentScrollY = window.scrollY;
if (currentScrollY > 400) {
mainNav.classList.remove('-translate-y-full');
mainNav.classList.add('translate-y-0');
} else {
mainNav.classList.add('-translate-y-full');
mainNav.classList.remove('translate-y-0');
}
lastScrollY = currentScrollY;
});
scrollTopBtn.addEventListener('click', () => {
window.scrollTo({ top: 0, behavior: 'smooth' });
});
// Smooth scroll for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
}
});
});
// ============================================
// INTERACTIVE CANVAS - Math Rendering System
// ============================================
const canvas = document.getElementById('interactiveCanvas');
const ctx = canvas.getContext('2d');
let width = canvas.width = canvas.offsetWidth;
let height = canvas.height = canvas.offsetHeight;
let mouse = { x: width / 2, y: height / 2, active: false };
let targetMouse = { x: width / 2, y: height / 2 };
let waveMode = 0; // 0 = sine, 1 = cosine, 2 = tangent-clamped
const modeNames = ['Sine', 'Cosine', 'Tangent-Clamped'];
const toggleWavesBtn = document.getElementById('toggleWaves');
const resetCanvasBtn = document.getElementById('resetCanvas');
const modeLabel = document.getElementById('modeLabel');
const coordTracker = document.getElementById('coordTracker');
toggleWavesBtn.addEventListener('click', () => {
waveMode = (waveMode + 1) % 3;
modeLabel.textContent = `Wave Mode: ${modeNames[waveMode]}`;
});
resetCanvasBtn.addEventListener('click', () => {
mouse = { x: width / 2, y: height / 2, active: false };
targetMouse = { x: width / 2, y: height / 2 };
frame = 0;
ctx.clearRect(0, 0, width, height);
});
// Handle Resize
window.addEventListener('resize', () => {
width = canvas.width = canvas.offsetWidth;
height = canvas.height = canvas.offsetHeight;
});
// Track Mouse
canvas.addEventListener('mousemove', (e) => {
const rect = canvas.getBoundingClientRect();
targetMouse.x = e.clientX - rect.left;
targetMouse.y = e.clientY - rect.top;
mouse.active = true;
coordTracker.textContent = `${Math.round(targetMouse.x)}, ${Math.round(targetMouse.y)}`;
});
canvas.addEventListener('mouseleave', () => {
mouse.active = false;
});
// Touch Support
canvas.addEventListener('touchstart', (e) => {
e.preventDefault();
const rect = canvas.getBoundingClientRect();
const touch = e.touches[0];
targetMouse.x = touch.clientX - rect.left;
targetMouse.y = touch.clientY - rect.top;
mouse.active = true;
coordTracker.textContent = `${Math.round(targetMouse.x)}, ${Math.round(targetMouse.y)}`;
}, { passive: false });
canvas.addEventListener('touchmove', (e) => {
e.preventDefault();
const rect = canvas.getBoundingClientRect();
const touch = e.touches[0];
targetMouse.x = touch.clientX - rect.left;
targetMouse.y = touch.clientY - rect.top;
coordTracker.textContent = `${Math.round(targetMouse.x)}, ${Math.round(targetMouse.y)}`;
}, { passive: false });
canvas.addEventListener('touchend', () => {
mouse.active = false;
});
// Rendering
let frame = 0;
let lastTime = performance.now();
let fps = 60;
function getWaveValue(dist, frameNum) {
switch(waveMode) {
case 0: return Math.sin(dist * 0.05 - frameNum * 0.1) * 15;
case 1: return Math.cos(dist * 0.04 - frameNum * 0.08) * 18;
case 2: return Math.max(-20, Math.min(20, Math.tan(dist * 0.02 - frameNum * 0.06) * 5));
default: return Math.sin(dist * 0.05 - frameNum * 0.1) * 15;
}
}
function draw() {
// Trailing opacity for motion blur
ctx.fillStyle = 'rgba(11, 15, 25, 0.12)';
ctx.fillRect(0, 0, width, height);
// Lerp mouse
mouse.x += (targetMouse.x - mouse.x) * 0.08;
mouse.y += (targetMouse.y - mouse.y) * 0.08;
// Adaptive grid density based on canvas size
const cols = Math.max(15, Math.floor(width / 30));
const rows = Math.max(8, Math.floor(height / 30));
const xSpacing = width / (cols - 1);
const ySpacing = height / (rows - 1);
for (let i = 0; i < cols; i++) {
for (let j = 0; j < rows; j++) {
const x = i * xSpacing;
const y = j * ySpacing;
const dx = mouse.x - x;
const dy = mouse.y - y;
const dist = Math.sqrt(dx * dx + dy * dy);
const distFactor = getWaveValue(dist, frame);
const waveX = x + (dx / (dist + 1)) * distFactor;
const waveY = y + (dy / (dist + 1)) * distFactor;
// Color shifts
const r = Math.floor(115 + (i / cols) * 100);
const g = Math.floor(80 + Math.sin(frame * 0.05) * 40);
const b = Math.floor(210 + (j / rows) * 45);
const maxDist = Math.max(width, height);
const alpha = 0.15 + (1 - dist / maxDist) * 0.6;
const size = 1.5 + (Math.sin(dist * 0.04) + 1) * 1.5;
ctx.beginPath();
ctx.arc(waveX, waveY, size, 0, Math.PI * 2);
ctx.fillStyle = `rgba(${r}, ${g}, ${b}, ${alpha})`;
ctx.fill();
// Draw connecting lines for close neighbors (only to right and bottom to avoid duplicates)
if (i < cols - 1 && dist < maxDist * 0.3) {
const nx = (i + 1) * xSpacing;
const ndx = mouse.x - nx;
const ndist = Math.sqrt(ndx * ndx + dy * dy);
const nDistFactor = getWaveValue(ndist, frame);
const nWaveX = nx + (ndx / (ndist + 1)) * nDistFactor;
const nWaveY = y + (dy / (ndist + 1)) * nDistFactor;
ctx.beginPath();
ctx.moveTo(waveX, waveY);
ctx.lineTo(nWaveX, nWaveY);
ctx.strokeStyle = `rgba(${r}, ${g}, ${b}, ${alpha * 0.15})`;
ctx.lineWidth = 0.5;
ctx.stroke();
}
}
}
// Mouse glow effect
if (mouse.active) {
const gradient = ctx.createRadialGradient(mouse.x, mouse.y, 0, mouse.x, mouse.y, 100);
gradient.addColorStop(0, 'rgba(168, 85, 247, 0.15)');
gradient.addColorStop(1, 'rgba(168, 85, 247, 0)');
ctx.fillStyle = gradient;
ctx.fillRect(0, 0, width, height);
}
frame++;
// FPS tracking
const now = performance.now();
const currentFps = 1000 / (now - lastTime);
lastTime = now;
fps = fps * 0.95 + currentFps * 0.05;
document.getElementById('fpsTracker').innerText = `${fps.toFixed(1)} FPS`;
requestAnimationFrame(draw);
}
draw();
// ============================================
// ANIMATED COUNTERS - Trigger on scroll
// ============================================
let countersAnimated = false;
const statsSection = document.getElementById('stats');
function animateCounter(element, target, suffix = '', duration = 2000) {
const start = 0;
const startTime = performance.now();
function update(currentTime) {
const elapsed = currentTime - startTime;
const progress = Math.min(elapsed / duration, 1);
// Ease out cubic
const eased = 1 - Math.pow(1 - progress, 3);
const current = Math.floor(start + (target - start) * eased);
element.textContent = current.toLocaleString() + suffix;
if (progress < 1) {
requestAnimationFrame(update);
}
}
requestAnimationFrame(update);
}
const statsObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting && !countersAnimated) {
countersAnimated = true;
animateCounter(document.getElementById('linesCounter'), 14820, '+', 2500);
animateCounter(document.getElementById('coffeeCounter'), 365, '', 2000);
animateCounter(document.getElementById('fpsStatCounter'), 60, ' FPS', 1500);
}
});
}, { threshold: 0.3 });
statsObserver.observe(statsSection);
</script>
</body>
</html>