-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1145 lines (1067 loc) · 54.2 KB
/
Copy pathindex.html
File metadata and controls
1145 lines (1067 loc) · 54.2 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
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
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sujith.M — Systems & Software Engineer</title>
<meta name="description" content="Portfolio of Sujith.M — Systems & Software Engineer, ML Enthusiast, Competitive Programmer." />
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'%3E%3C/polyline%3E%3C/svg%3E" />
<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:ital,wght@0,300..800;1,300..800&family=JetBrains+Mono:ital,wght@0,300..700;1,300..700&display=swap" rel="stylesheet" />
<!-- Atropos 3D Parallax CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/atropos@2.0.2/atropos.min.css" />
<!-- Lucide Icons (shadcn/ui icon system) -->
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
<style>
/* ============================================================
DESIGN TOKENS
============================================================ */
:root {
--chassis-dark: #05070c;
--panel-bg: rgba(12, 16, 26, 0.82);
--panel-inner: #0b0f1a;
--metal-highlight: rgba(255,255,255,0.12);
--accent-cyan: #06b6d4;
--accent-blue: #2563eb;
--accent-indigo: #6366f1;
--accent-bright: #38bdf8;
--text-main: #f0f4ff;
--text-muted: #8b9ab5;
--text-dim: #4d5f7a;
--font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--bezier-spring: cubic-bezier(0.32, 0.72, 0, 1);
}
/* ============================================================
RESET
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
font-family: var(--font-sans);
background-color: var(--chassis-dark);
color: var(--text-main);
overflow-x: hidden;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
::selection { background: rgba(6,182,212,0.3); color: var(--accent-cyan); }
a { color: inherit; text-decoration: none; }
/* ============================================================
LOADER
============================================================ */
#gl-loader {
position: fixed; inset: 0; z-index: 9999;
background: #04060b;
display: flex; flex-direction: column; align-items: center; justify-content: center;
transition: opacity 0.9s var(--bezier-spring), visibility 0.9s;
}
#gl-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
width: 48px; height: 48px;
border: 2px solid rgba(6,182,212,0.12);
border-top-color: var(--accent-cyan);
border-radius: 50%;
animation: spin 0.9s linear infinite;
box-shadow: 0 0 20px rgba(6,182,212,0.35);
}
.loader-text {
font-family: var(--font-mono); font-size: 0.7rem;
color: var(--accent-cyan); margin-top: 1.2rem;
letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ============================================================
BG LAYER STACK (z-index map)
0 — body base colour
1 — #aurora-canvas (WebGL GLSL aurora)
2 — #dotgrid-canvas (interactive dot grid)
3 — .orb-* (CSS animated orbs / Cult UI style)
4 — #spotlight (mouse-follow spotlight / Aceternity)
5 — #threads-canvas (Perlin noise threads / ReactBits)
6 — .grain-overlay (noise grain)
10+ — content z-index
============================================================ */
/* --- Aurora (WebGL) --- */
#aurora-canvas {
position: fixed; inset: 0; z-index: 1;
width: 100%; height: 100%;
pointer-events: none;
opacity: 0.6;
}
/* --- DotGrid (Canvas) --- */
#dotgrid-canvas {
position: fixed; inset: 0; z-index: 2;
width: 100%; height: 100%;
pointer-events: none;
opacity: 0.45;
}
/* --- Floating Orbs (CSS / Cult UI) --- */
.orb {
position: fixed; border-radius: 50%;
pointer-events: none; z-index: 3;
filter: blur(90px);
mix-blend-mode: screen;
opacity: 0;
animation: orbFloat 18s ease-in-out infinite, orbFade 18s ease-in-out infinite;
will-change: transform, opacity;
}
.orb-1 {
width: 700px; height: 700px;
background: radial-gradient(circle, rgba(37,99,235,0.55) 0%, transparent 70%);
top: -18%; left: -14%;
animation-delay: 0s;
}
.orb-2 {
width: 600px; height: 600px;
background: radial-gradient(circle, rgba(6,182,212,0.45) 0%, transparent 70%);
top: 8%; right: -12%;
animation-delay: -6s;
}
.orb-3 {
width: 500px; height: 500px;
background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, transparent 70%);
bottom: 28%; left: 22%;
animation-delay: -12s;
}
.orb-4 {
width: 550px; height: 550px;
background: radial-gradient(circle, rgba(6,182,212,0.3) 0%, transparent 70%);
bottom: -10%; right: 18%;
animation-delay: -4s;
}
@keyframes orbFloat {
0%, 100% { transform: translate(0, 0) scale(1); }
25% { transform: translate(40px, -50px) scale(1.08); }
50% { transform: translate(-30px, 30px) scale(0.95); }
75% { transform: translate(60px, 20px) scale(1.04); }
}
@keyframes orbFade {
0%,100% { opacity: 0.65; }
50% { opacity: 0.9; }
}
/* --- Aceternity-style mouse spotlight --- */
#spotlight {
position: fixed; z-index: 4; pointer-events: none;
width: 600px; height: 600px;
border-radius: 50%;
background: radial-gradient(circle,
rgba(6,182,212,0.08) 0%,
rgba(37,99,235,0.05) 30%,
transparent 70%
);
transform: translate(-50%, -50%);
transition: left 0.12s ease, top 0.12s ease;
top: -9999px; left: -9999px;
}
/* --- Threads canvas (Perlin noise lines / React Bits) --- */
#threads-canvas {
position: fixed; inset: 0; z-index: 5;
width: 100%; height: 100%;
pointer-events: none;
opacity: 0.22;
}
/* --- Grain overlay --- */
.grain-overlay {
position: fixed; inset: 0; z-index: 6; pointer-events: none;
opacity: 0.028;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
background-repeat: repeat;
background-size: 200px 200px;
}
/* --- Radial vignette for depth --- */
.vignette {
position: fixed; inset: 0; z-index: 7; pointer-events: none;
background: radial-gradient(ellipse 80% 80% at 50% 50%,
transparent 30%,
rgba(4,6,11,0.55) 100%
);
}
/* ============================================================
NAV
============================================================ */
.nav-wrapper {
position: fixed; top: 1.5rem; left: 0; right: 0;
z-index: 100; display: flex; justify-content: center;
padding: 0 1.5rem; pointer-events: none;
}
.nav-hardware-bar {
pointer-events: auto;
display: flex; align-items: center; justify-content: space-between;
gap: 2.2rem; padding: 0.5rem 0.55rem 0.5rem 1.4rem;
background: linear-gradient(135deg, rgba(14,20,35,0.92) 0%, rgba(8,12,22,0.92) 100%);
backdrop-filter: blur(24px) saturate(2);
border: 1px solid var(--metal-highlight);
border-radius: 100px;
box-shadow: inset 0 1px 1px rgba(255,255,255,0.18),
inset 0 -1px 2px rgba(0,0,0,0.9),
0 16px 40px rgba(0,0,0,0.7),
0 0 0 1px rgba(6,182,212,0.06);
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.92rem; letter-spacing: -0.3px; }
.nav-led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 12px var(--accent-cyan), inset 0 1px 1px #fff; animation: pulse-led 2s ease-in-out infinite; }
@keyframes pulse-led { 0%,100%{box-shadow:0 0 12px var(--accent-cyan),inset 0 1px 1px #fff;} 50%{box-shadow:0 0 22px var(--accent-cyan),0 0 40px rgba(6,182,212,0.4),inset 0 1px 1px #fff;} }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-main); }
.btn-nav-cta {
display: inline-flex; align-items: center; gap: 0.5rem;
padding: 0.48rem 1.2rem;
background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
border-radius: 100px; font-size: 0.8rem; font-weight: 700; color: #fff;
border: 1px solid rgba(255,255,255,0.25);
box-shadow: inset 0 1px 1px rgba(255,255,255,0.45),
inset 0 -2px 0 rgba(0,0,0,0.4),
0 4px 14px rgba(37,99,235,0.5);
transition: all 0.15s var(--bezier-spring); cursor: pointer;
}
.btn-nav-cta:hover { transform: translateY(-1px); box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 8px 20px rgba(37,99,235,0.65); }
.btn-nav-cta:active { transform: translateY(1px); box-shadow: inset 0 3px 6px rgba(0,0,0,0.6); }
/* ============================================================
SECTIONS BASE
============================================================ */
section {
position: relative; z-index: 10;
padding: 9rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.section-header { margin-bottom: 4rem; }
.section-label {
font-family: var(--font-mono); font-size: 0.72rem;
text-transform: uppercase; letter-spacing: 0.22em;
color: var(--accent-cyan); margin-bottom: 0.7rem;
display: flex; align-items: center; gap: 0.7rem;
}
.section-label::before {
content: ''; width: 18px; height: 1px;
background: linear-gradient(90deg, var(--accent-cyan), transparent);
box-shadow: 0 0 6px var(--accent-cyan);
}
.section-title {
font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800;
letter-spacing: -2px; line-height: 1.06;
color: var(--text-main);
text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
/* ============================================================
HERO
============================================================ */
.hero {
position: relative; z-index: 10;
min-height: 100dvh; display: flex; flex-direction: column;
justify-content: center; align-items: center;
text-align: center; padding: 9rem 1.5rem 6rem;
max-width: 1050px; margin: 0 auto;
}
.hero-eyebrow {
display: inline-flex; align-items: center; gap: 0.65rem;
padding: 0.38rem 1.1rem;
background: linear-gradient(135deg, rgba(14,20,35,0.9), rgba(8,12,22,0.9));
backdrop-filter: blur(16px);
border: 1px solid rgba(6,182,212,0.2);
border-radius: 100px; font-size: 0.72rem;
font-family: var(--font-mono); color: var(--accent-cyan);
letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2.2rem;
box-shadow: 0 0 0 1px rgba(6,182,212,0.08), 0 8px 24px rgba(0,0,0,0.5),
inset 0 1px 1px rgba(255,255,255,0.14);
}
.led-dot {
width: 7px; height: 7px; border-radius: 50%; background: #10b981;
box-shadow: 0 0 10px #10b981, inset 0 1px 1px rgba(255,255,255,0.6);
}
.hero h1 {
font-size: clamp(3rem, 7.5vw, 5.6rem); font-weight: 800;
line-height: 1.03; letter-spacing: -2.5px; margin-bottom: 1.5rem;
text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.hero h1 .grad {
background: linear-gradient(135deg, #f0f4ff 30%, #a5f3fc 65%, #06b6d4 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
.hero .subtitle {
font-size: clamp(1rem, 2vw, 1.28rem); color: var(--text-muted);
max-width: 680px; margin-bottom: 2.5rem; font-weight: 400;
}
.hero-terminal {
background: rgba(5,8,15,0.85); backdrop-filter: blur(12px);
border: 1px solid rgba(6,182,212,0.15);
border-radius: 12px; padding: 0.8rem 1.5rem; margin-bottom: 3rem;
display: inline-flex; align-items: center; gap: 0.8rem;
font-family: var(--font-mono); font-size: 0.88rem;
box-shadow: inset 0 2px 6px rgba(0,0,0,0.85), 0 0 0 1px rgba(6,182,212,0.06),
0 8px 24px rgba(0,0,0,0.55);
}
.hero-terminal .prompt { color: var(--accent-cyan); font-weight: 700; }
.hero-terminal .typed { color: #e2e8f0; }
.cursor-blink {
display: inline-block; width: 2px; height: 1.1em;
background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan);
margin-left: 2px; vertical-align: middle; animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-btns { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
/* ============================================================
BUTTONS
============================================================ */
.btn-primary {
display: inline-flex; align-items: center; gap: 0.6rem;
padding: 0.85rem 2rem;
background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
border-radius: 12px; font-size: 0.92rem; font-weight: 700; color: #fff;
border: 1px solid rgba(255,255,255,0.25);
box-shadow: inset 0 1px 1px rgba(255,255,255,0.45),
inset 0 -3px 0 rgba(0,0,0,0.4),
0 8px 24px rgba(37,99,235,0.5);
transition: all 0.15s var(--bezier-spring); cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 14px 30px rgba(37,99,235,0.65); }
.btn-primary:active { transform: translateY(2px); box-shadow: inset 0 3px 6px rgba(0,0,0,0.7); }
.btn-secondary {
display: inline-flex; align-items: center; gap: 0.6rem;
padding: 0.85rem 2rem;
background: linear-gradient(180deg, rgba(20,28,48,0.9) 0%, rgba(10,15,28,0.9) 100%);
backdrop-filter: blur(12px);
border-radius: 12px; font-size: 0.92rem; font-weight: 700; color: var(--text-main);
border: 1px solid var(--metal-highlight);
box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 6px 18px rgba(0,0,0,0.5);
transition: all 0.15s var(--bezier-spring); cursor: pointer;
}
.btn-secondary:hover { transform: translateY(-2px); border-color: rgba(6,182,212,0.3); }
.btn-secondary:active { transform: translateY(2px); box-shadow: inset 0 3px 6px rgba(0,0,0,0.8); }
/* ============================================================
CARDS (Doppelrand double-bezel)
============================================================ */
.card-outer {
background: linear-gradient(145deg, rgba(22,30,50,0.9) 0%, rgba(10,14,25,0.9) 100%);
backdrop-filter: blur(20px);
border: 1px solid var(--metal-highlight);
border-radius: 1.6rem; padding: 0.6rem;
box-shadow: inset 0 1px 1px rgba(255,255,255,0.16),
inset 0 -2px 3px rgba(0,0,0,0.8),
0 16px 44px rgba(0,0,0,0.65),
0 0 0 1px rgba(6,182,212,0.04);
transition: border-color 0.3s, box-shadow 0.3s;
}
.card-outer:hover {
border-color: rgba(6,182,212,0.2);
box-shadow: inset 0 1px 1px rgba(255,255,255,0.2),
0 20px 50px rgba(0,0,0,0.7),
0 0 0 1px rgba(6,182,212,0.1),
0 0 40px rgba(6,182,212,0.06);
}
.card-inner {
background: rgba(9,13,22,0.95);
border: 1px solid rgba(0,0,0,0.8);
border-radius: calc(1.6rem - 0.6rem);
padding: 2.2rem; height: 100%;
box-shadow: inset 0 3px 8px rgba(0,0,0,0.8),
inset 0 -1px 1px rgba(255,255,255,0.06);
display: flex; flex-direction: column; justify-content: space-between;
}
.win-bar {
display: flex; align-items: center; gap: 0.5rem;
padding-bottom: 1.2rem; margin-bottom: 1.4rem;
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.win-dot {
width: 10px; height: 10px; border-radius: 50%;
box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
}
.win-red { background: #ef4444; box-shadow: 0 0 8px #ef4444, inset 0 1px 1px rgba(255,255,255,0.4); }
.win-yel { background: #f59e0b; box-shadow: 0 0 8px #f59e0b, inset 0 1px 1px rgba(255,255,255,0.4); }
.win-grn { background: #10b981; box-shadow: 0 0 8px #10b981, inset 0 1px 1px rgba(255,255,255,0.4); }
.win-file { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); margin-left: auto; }
/* ============================================================
ABOUT BENTO
============================================================ */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
.bio-text { color: var(--text-muted); font-size: 1.02rem; line-height: 1.72; }
.bio-text strong { color: var(--text-main); font-weight: 700; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.8rem; }
.chip {
font-family: var(--font-mono); font-size: 0.73rem;
padding: 0.32rem 0.82rem;
background: linear-gradient(180deg, rgba(20,30,52,0.9) 0%, rgba(10,15,28,0.9) 100%);
border: 1px solid var(--metal-highlight); border-radius: 7px;
color: var(--accent-cyan);
box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 3px 8px rgba(0,0,0,0.5);
transition: all 0.2s;
}
.chip:hover { transform: translateY(-1px); border-color: rgba(6,182,212,0.4); color: #fff; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-box {
background: rgba(5,8,15,0.9);
border: 1px solid rgba(0,0,0,0.8); border-radius: 11px; padding: 1.35rem;
box-shadow: inset 0 2px 5px rgba(0,0,0,0.9), inset 0 -1px 1px rgba(255,255,255,0.04);
}
.stat-val {
font-family: var(--font-mono); font-size: 2.1rem; font-weight: 800;
color: var(--text-main); letter-spacing: -1px;
text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 -1px 0 rgba(255,255,255,0.15);
}
.stat-lbl { font-size: 0.76rem; color: var(--text-dim); margin-top: 0.3rem; }
/* ============================================================
SKILLS BENTO
============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.skill-icon-badge {
padding: 0.28rem 0.58rem;
background: rgba(6,182,212,0.08);
border: 1px solid rgba(6,182,212,0.2);
border-radius: 6px; color: var(--accent-cyan); font-size: 0.82rem;
}
.skill-title { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 1.3rem; display: flex; align-items: center; gap: 0.6rem; }
/* ============================================================
PROJECTS BENTO
============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.proj-cell { grid-column: span 4; }
.proj-cell.wide { grid-column: span 8; }
@media (max-width: 992px) {
.proj-cell, .proj-cell.wide { grid-column: span 12; }
.about-grid { grid-template-columns: 1fr; }
}
.proj-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.lang-badge {
font-family: var(--font-mono); font-size: 0.7rem; padding: 0.22rem 0.72rem;
background: linear-gradient(180deg, rgba(6,182,212,0.12), rgba(6,182,212,0.04));
border: 1px solid rgba(6,182,212,0.28); border-radius: 5px;
color: var(--accent-cyan); font-weight: 700;
}
.feat-badge {
font-family: var(--font-mono); font-size: 0.68rem; color: #fbbf24;
background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.28);
padding: 0.18rem 0.58rem; border-radius: 4px;
}
.proj-h3 { font-size: 1.45rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.7rem; letter-spacing: -0.5px; }
.proj-p { font-size: 0.94rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 2rem; }
.proj-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.05); margin-top: auto; }
.proj-stats { display: flex; gap: 1.2rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); }
.repo-link {
display: inline-flex; align-items: center; gap: 0.45rem;
padding: 0.38rem 0.95rem;
background: linear-gradient(180deg, rgba(20,30,52,0.9), rgba(10,15,28,0.9));
border: 1px solid var(--metal-highlight); border-radius: 8px;
font-size: 0.8rem; font-weight: 700; color: var(--accent-cyan);
box-shadow: inset 0 1px 1px rgba(255,255,255,0.14), 0 1px 3px rgba(0,0,0,0.2);
transition: all 0.15s;
}
.repo-link:hover { transform: translateY(-1px); border-color: var(--accent-cyan); color: #fff; box-shadow: inset 0 1px 1px rgba(255,255,255,0.14), 0 2px 4px rgba(0,0,0,0.25); }
/* ============================================================
CONTACT
============================================================ */
.contact-wrap { max-width: 820px; margin: 0 auto; }
.contact-core { text-align: center; padding: 4rem 2.5rem; }
.contact-links { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2.5rem; }
/* ============================================================
FOOTER
============================================================ */
footer {
text-align: center; padding: 3.5rem 1.5rem;
font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim);
border-top: 1px solid rgba(255,255,255,0.04);
max-width: 1200px; margin: 0 auto;
position: relative; z-index: 10;
}
/* ============================================================
SCROLL REVEAL
============================================================ */
.reveal {
opacity: 0; transform: translateY(30px) scale(0.97);
transition: opacity 0.7s var(--bezier-spring), transform 0.7s var(--bezier-spring);
}
.reveal.visible { opacity: 1; transform: none; }
/* ============================================================
ATROPOS
============================================================ */
.atropos { width: 100%; border-radius: 1.6rem; }
.atropos-inner { border-radius: 1.6rem; overflow: visible !important; }
.atropos-scale { pointer-events: none; }
.atropos-rotate { pointer-events: auto; }
.atropos a { pointer-events: auto; }
/* ============================================================
LUCIDE ICON UTILITY
============================================================ */
.icon {
display: inline-flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.icon svg {
width: 1em; height: 1em;
stroke: currentColor; fill: none;
stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
vertical-align: middle;
}
.icon-sm svg { width: 14px; height: 14px; }
.icon-md svg { width: 16px; height: 16px; }
.icon-lg svg { width: 20px; height: 20px; }
.icon-xl svg { width: 24px; height: 24px; }
/* Skill card icon badge using Lucide */
.skill-icon-badge {
display: inline-flex; align-items: center; justify-content: center;
width: 32px; height: 32px;
background: rgba(6,182,212,0.08);
border: 1px solid rgba(6,182,212,0.2);
border-radius: 8px; color: var(--accent-cyan);
}
.skill-icon-badge svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
</style>
</head>
<body>
<!-- ===== LOADER ===== -->
<div id="gl-loader">
<div class="loader-ring"></div>
<div class="loader-text">Compiling Shader Backgrounds…</div>
</div>
<!-- ===== BG LAYER STACK ===== -->
<!-- 1. Aurora WebGL Canvas (React Bits Aurora-style GLSL simplex noise) -->
<canvas id="aurora-canvas"></canvas>
<!-- 2. Interactive Dot Grid (React Bits DotGrid) -->
<canvas id="dotgrid-canvas"></canvas>
<!-- 3. CSS Animated Orbs (Cult UI / Aceternity style) -->
<div class="orb orb-1"></div>
<div class="orb orb-2"></div>
<div class="orb orb-3"></div>
<div class="orb orb-4"></div>
<!-- 4. Mouse spotlight (Aceternity UI) -->
<div id="spotlight"></div>
<!-- 5. Perlin Threads Canvas (React Bits Threads style) -->
<canvas id="threads-canvas"></canvas>
<!-- 6. Grain + Vignette -->
<div class="grain-overlay"></div>
<div class="vignette"></div>
<!-- ===== NAV ===== -->
<div class="nav-wrapper">
<nav class="nav-hardware-bar">
<div class="nav-brand">
<span class="nav-led"></span>
<span>Sujith.M</span>
</div>
<div class="nav-links">
<a href="#about">About</a>
<a href="#skills">Skills</a>
<a href="#projects">Projects</a>
<a href="#contact">Contact</a>
</div>
<a href="https://github.com/sujith0613" target="_blank" class="btn-nav-cta">
<span class="icon icon-sm"><svg viewBox="0 0 24 24"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.2c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.4 5.4 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65S9 17.44 9 18v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg></span>
GitHub
<span class="icon icon-sm"><svg viewBox="0 0 24 24"><line x1="7" y1="17" x2="17" y2="7"/><polyline points="7 7 17 7 17 17"/></svg></span>
</a>
</nav>
</div>
<!-- ===== HERO ===== -->
<section class="hero">
<div class="hero-eyebrow reveal">
<span class="led-dot"></span>
Available for Engineering Roles
</div>
<h1 class="reveal">
Architecting High-Performance<br/>
<span class="grad">Systems & ML Solutions</span>
</h1>
<p class="subtitle reveal">
Software Engineer & Systems Enthusiast specializing in low-latency Go backends, distributed tooling, and research-grade ML workflows.
</p>
<div class="hero-terminal reveal">
<span class="prompt">sujith@ssn:~$</span>
<span>exec --building</span>
<span class="typed" id="typing-text"></span>
<span class="cursor-blink"></span>
</div>
<div class="hero-btns reveal">
<a href="#projects" class="btn-primary">
Explore Selected Work
<span class="icon icon-md"><svg viewBox="0 0 24 24"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg></span>
</a>
<a href="#contact" class="btn-secondary">
Get In Touch
<span class="icon icon-md"><svg viewBox="0 0 24 24"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12 19.79 19.79 0 0 1 1.61 3.4 2 2 0 0 1 3.6 1.2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.76a16 16 0 0 0 6.29 6.29l.54-.54a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 21.73 17z"/></svg></span>
</a>
</div>
</section>
<!-- ===== ABOUT ===== -->
<section id="about">
<div class="section-header">
<div class="section-label">Background</div>
<h2 class="section-title">Engineering with precision.</h2>
</div>
<div class="about-grid">
<div class="atropos reveal" id="atropos-about1">
<div class="atropos-scale"><div class="atropos-rotate">
<div class="atropos-inner card-outer">
<div class="card-inner">
<div class="win-bar" data-atropos-offset="3">
<span class="win-dot win-red"></span>
<span class="win-dot win-yel"></span>
<span class="win-dot win-grn"></span>
<span class="win-file">about_sujith.go</span>
</div>
<p class="bio-text" data-atropos-offset="5">
I'm <strong>Sujith.M</strong>, a Software Engineer based in <strong>Chennai</strong>, currently at <strong>SSN</strong>. My work centers on designing low-latency backend systems, concurrent execution engines, and intelligence tools.
</p>
<br/>
<p class="bio-text" data-atropos-offset="5">
From crafting WAL-backed job schedulers in Go to fine-tuning NLP transformer models, I focus on building software that is correct, clean, and demonstrably performant.
</p>
<div class="tag-cloud" data-atropos-offset="8">
<span class="chip">#ConcurrentGo</span>
<span class="chip">#SystemsDesign</span>
<span class="chip">#MLPipelines</span>
<span class="chip">#TypeScript</span>
<span class="chip">#NLP</span>
</div>
</div>
</div>
</div></div>
</div>
<div class="atropos reveal" id="atropos-about2">
<div class="atropos-scale"><div class="atropos-rotate">
<div class="atropos-inner card-outer">
<div class="card-inner">
<h3 style="font-size:1.05rem;margin-bottom:1.8rem;font-weight:700;" data-atropos-offset="3">Metrics Overview</h3>
<div class="stats-grid" data-atropos-offset="6">
<div class="stat-box"><div class="stat-val">06</div><div class="stat-lbl">Core Languages</div></div>
<div class="stat-box"><div class="stat-val">13</div><div class="stat-lbl">Public Repos</div></div>
<div class="stat-box"><div class="stat-val">03</div><div class="stat-lbl">Hackathon Wins</div></div>
<div class="stat-box"><div class="stat-val">SSN</div><div class="stat-lbl">Institution</div></div>
</div>
</div>
</div>
</div></div>
</div>
</div>
</section>
<!-- ===== SKILLS ===== -->
<section id="skills">
<div class="section-header">
<div class="section-label">Capabilities</div>
<h2 class="section-title">Technical Expertise</h2>
</div>
<div class="skills-grid">
<div class="atropos reveal" id="atropos-sk1"><div class="atropos-scale"><div class="atropos-rotate"><div class="atropos-inner card-outer"><div class="card-inner">
<div class="skill-title" data-atropos-offset="3"><span class="skill-icon-badge"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg></span> Languages</div>
<div class="tag-cloud" data-atropos-offset="6">
<span class="chip">Go</span><span class="chip">TypeScript</span><span class="chip">Python</span>
<span class="chip">JavaScript</span><span class="chip">SQL</span><span class="chip">C/C++</span>
</div>
</div></div></div></div></div>
<div class="atropos reveal" id="atropos-sk2"><div class="atropos-scale"><div class="atropos-rotate"><div class="atropos-inner card-outer"><div class="card-inner">
<div class="skill-title" data-atropos-offset="3"><span class="skill-icon-badge"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="8" x="2" y="2" rx="2"/><rect width="20" height="8" x="2" y="14" rx="2"/><line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="18" x2="6.01" y2="18"/></svg></span> Systems & Cloud</div>
<div class="tag-cloud" data-atropos-offset="6">
<span class="chip">Docker</span><span class="chip">Linux Kernel</span><span class="chip">Goroutines</span>
<span class="chip">Git / CI-CD</span><span class="chip">Vercel</span>
</div>
</div></div></div></div></div>
<div class="atropos reveal" id="atropos-sk3"><div class="atropos-scale"><div class="atropos-rotate"><div class="atropos-inner card-outer"><div class="card-inner">
<div class="skill-title" data-atropos-offset="3"><span class="skill-icon-badge"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></span> Web Architecture</div>
<div class="tag-cloud" data-atropos-offset="6">
<span class="chip">Node.js</span><span class="chip">React</span><span class="chip">Next.js</span>
<span class="chip">REST APIs</span><span class="chip">Three.js</span>
</div>
</div></div></div></div></div>
<div class="atropos reveal" id="atropos-sk4"><div class="atropos-scale"><div class="atropos-rotate"><div class="atropos-inner card-outer"><div class="card-inner">
<div class="skill-title" data-atropos-offset="3"><span class="skill-icon-badge"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96-.46 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 4.44-1.14"/><path d="M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96-.46 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-4.44-1.14"/></svg></span> Machine Learning</div>
<div class="tag-cloud" data-atropos-offset="6">
<span class="chip">PyTorch / Scikit</span><span class="chip">NLP / Transformers</span>
<span class="chip">LLM Integration</span><span class="chip">Pandas / NumPy</span>
</div>
</div></div></div></div></div>
</div>
</section>
<!-- ===== PROJECTS ===== -->
<section id="projects">
<div class="section-header">
<div class="section-label">Portfolio</div>
<h2 class="section-title">Featured Projects</h2>
</div>
<div class="projects-grid" id="projectsGrid"></div>
</section>
<!-- ===== CONTACT ===== -->
<section id="contact">
<div class="contact-wrap">
<div class="atropos reveal" id="atropos-contact"><div class="atropos-scale"><div class="atropos-rotate">
<div class="atropos-inner card-outer">
<div class="card-inner contact-core">
<div class="section-label" style="justify-content:center;" data-atropos-offset="3">Get In Touch</div>
<h2 class="section-title" style="margin-bottom:1rem;" data-atropos-offset="5">Let's build together.</h2>
<p style="color:var(--text-muted);max-width:500px;margin:0 auto 2rem;" data-atropos-offset="5">
Always open to engineering role inquiries, systems architecture discussions, and research collaborations.
</p>
<div class="contact-links" data-atropos-offset="8">
<a href="https://github.com/sujith0613" target="_blank" class="repo-link" style="padding:0.75rem 1.5rem;font-size:0.9rem;gap:0.6rem;">
<span class="icon icon-md"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.2c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.4 5.4 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65S9 17.44 9 18v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg></span>
github.com/sujith0613
</a>
<a href="https://www.linkedin.com/in/sujith0613" target="_blank" class="repo-link" style="padding:0.75rem 1.5rem;font-size:0.9rem;gap:0.6rem;">
<span class="icon icon-md"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"/><rect width="4" height="12" x="2" y="9"/><circle cx="4" cy="4" r="2"/></svg></span>
LinkedIn Profile
</a>
</div>
</div>
</div>
</div></div></div>
</div>
</section>
<footer>
<p>© 2026 Sujith.M — Systems & Software Engineer</p>
</footer>
<!-- ===== LIBRARIES ===== -->
<script src="https://cdn.jsdelivr.net/npm/atropos@2.0.2/atropos.min.js"></script>
<script>
/* ================================================================
UTIL: Perlin noise (used by Threads shader equivalent in canvas)
================================================================ */
(function() {
// Ken Perlin's improved permutation table
const P = new Uint8Array(512);
const perm = [151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180];
for (let i = 0; i < 256; i++) P[i] = P[i+256] = perm[i];
function fade(t) { return t*t*t*(t*(t*6-15)+10); }
function lerp(t,a,b) { return a+t*(b-a); }
function grad(hash, x, y) {
const h = hash & 3;
const u = h<2 ? x : y, v = h<2 ? y : x;
return ((h&1)?-u:u) + ((h&2)?-v:v);
}
window.perlin2 = function(x, y) {
const X = Math.floor(x)&255, Y = Math.floor(y)&255;
x -= Math.floor(x); y -= Math.floor(y);
const u = fade(x), v = fade(y);
const a=P[X]+Y, b=P[X+1]+Y;
return lerp(v, lerp(u,grad(P[a],x,y),grad(P[b],x-1,y)),
lerp(u,grad(P[a+1],x,y-1),grad(P[b+1],x-1,y-1)));
};
})();
/* ================================================================
1. AURORA — WebGL GLSL background (React Bits Aurora-inspired)
Simplex noise driven animated aurora borealis in cyan/blue/indigo
================================================================ */
(function initAurora() {
const canvas = document.getElementById('aurora-canvas');
const gl = canvas.getContext('webgl', { alpha: true, antialias: false });
if (!gl) return;
function resize() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
gl.viewport(0, 0, canvas.width, canvas.height);
}
resize();
window.addEventListener('resize', resize);
const vert = `
attribute vec2 position;
void main() { gl_Position = vec4(position, 0.0, 1.0); }
`;
const frag = `
precision mediump float;
uniform float uTime;
uniform vec2 uRes;
// Simplex 2D noise
vec3 permute(vec3 x) { return mod(((x*34.0)+1.0)*x, 289.0); }
float snoise(vec2 v) {
const vec4 C = vec4(0.211324865405187,0.366025403784439,-0.577350269189626,0.024390243902439);
vec2 i = floor(v + dot(v, C.yy));
vec2 x0 = v - i + dot(i, C.xx);
vec2 i1 = (x0.x > x0.y) ? vec2(1.,0.) : vec2(0.,1.);
vec4 x12 = x0.xyxy + C.xxzz; x12.xy -= i1;
i = mod(i, 289.0);
vec3 p = permute(permute(i.y + vec3(0.,i1.y,1.)) + i.x + vec3(0.,i1.x,1.));
vec3 m = max(0.5 - vec3(dot(x0,x0),dot(x12.xy,x12.xy),dot(x12.zw,x12.zw)), 0.0);
m = m*m; m = m*m;
vec3 x = 2.0*fract(p*C.www)-1.0;
vec3 h = abs(x)-0.5;
vec3 ox = floor(x+0.5);
vec3 a0 = x-ox;
m *= 1.79284291400159 - 0.85373472095314*(a0*a0+h*h);
vec3 g;
g.x = a0.x*x0.x + h.x*x0.y;
g.yz = a0.yz*x12.xz + h.yz*x12.yw;
return 130.0*dot(m,g);
}
void main() {
vec2 uv = gl_FragCoord.xy / uRes;
float t = uTime * 0.18;
// Three layered aurora bands
float n1 = snoise(vec2(uv.x * 2.5, uv.y * 1.2 + t * 0.6)) * 0.5 + 0.5;
float n2 = snoise(vec2(uv.x * 3.0 + 0.8, uv.y * 1.5 - t * 0.4)) * 0.5 + 0.5;
float n3 = snoise(vec2(uv.x * 1.8 - 0.3, uv.y * 2.0 + t * 0.3)) * 0.5 + 0.5;
// Aurora shape: bright near top, fade at bottom
float aurora_mask = smoothstep(0.0, 0.6, uv.y) * smoothstep(1.0, 0.4, uv.y);
// Band shapes
float band1 = exp(-pow((uv.y - (0.55 + n1*0.18)) * 8.0, 2.0));
float band2 = exp(-pow((uv.y - (0.42 + n2*0.14)) * 10.0, 2.0));
float band3 = exp(-pow((uv.y - (0.68 + n3*0.12)) * 7.0, 2.0));
// Colors: cyan, blue, indigo
vec3 c1 = vec3(0.024, 0.714, 0.831) * band1 * (0.5 + n1 * 0.5); // cyan
vec3 c2 = vec3(0.145, 0.388, 0.922) * band2 * (0.4 + n2 * 0.6); // blue
vec3 c3 = vec3(0.388, 0.400, 0.945) * band3 * (0.3 + n3 * 0.5); // indigo
vec3 col = (c1 + c2 + c3) * aurora_mask * 1.6;
// Subtle background haze
float haze = snoise(vec2(uv.x*1.5, uv.y*0.8 + t*0.15)) * 0.04;
col += vec3(0.01, 0.03, 0.08) + haze;
gl_FragColor = vec4(col, 0.88);
}
`;
function compile(type, src) {
const s = gl.createShader(type);
gl.shaderSource(s, src); gl.compileShader(s);
return s;
}
const prog = gl.createProgram();
gl.attachShader(prog, compile(gl.VERTEX_SHADER, vert));
gl.attachShader(prog, compile(gl.FRAGMENT_SHADER, frag));
gl.linkProgram(prog); gl.useProgram(prog);
const buf = gl.createBuffer();
gl.bindBuffer(gl.ARRAY_BUFFER, buf);
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1,-1,3,-1,-1,3]), gl.STATIC_DRAW);
const posLoc = gl.getAttribLocation(prog, 'position');
gl.enableVertexAttribArray(posLoc);
gl.vertexAttribPointer(posLoc, 2, gl.FLOAT, false, 0, 0);
const uTime = gl.getUniformLocation(prog, 'uTime');
const uRes = gl.getUniformLocation(prog, 'uRes');
gl.enable(gl.BLEND);
gl.blendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA);
let start = performance.now();
function draw() {
const t = (performance.now() - start) / 1000;
gl.uniform1f(uTime, t);
gl.uniform2f(uRes, canvas.width, canvas.height);
gl.drawArrays(gl.TRIANGLES, 0, 3);
requestAnimationFrame(draw);
}
draw();
})();
/* ================================================================
2. DOT GRID — Interactive React Bits DotGrid ported to vanilla JS
Dots light up & ripple on mouse proximity & speed
================================================================ */
(function initDotGrid() {
const canvas = document.getElementById('dotgrid-canvas');
const ctx = canvas.getContext('2d');
const DOT = 3;
const GAP = 30;
const CELL = DOT + GAP;
const BASE_COLOR = { r:37, g:99, b:235 }; // blue
const ACTIVE_COLOR= { r:6, g:182, b:212 }; // cyan
let dots = [], W, H, mx = -9999, my = -9999;
let lastMx = 0, lastMy = 0, speed = 0;
function build() {
W = canvas.width = window.innerWidth;
H = canvas.height = window.innerHeight;
dots = [];
const cols = Math.ceil(W / CELL);
const rows = Math.ceil(H / CELL);
for (let r = 0; r <= rows; r++)
for (let c = 0; c <= cols; c++)
dots.push({ x: c*CELL + CELL/2, y: r*CELL + CELL/2, lit: 0, shock: 0 });
}
build();
window.addEventListener('resize', build);
window.addEventListener('mousemove', e => {
const dx = e.clientX - lastMx, dy = e.clientY - lastMy;
speed = Math.min(Math.sqrt(dx*dx+dy*dy), 80);
lastMx = mx = e.clientX;
lastMy = my = e.clientY;
// Shock wave on fast movement
if (speed > 22) {
dots.forEach(d => {
const dist = Math.hypot(d.x - mx, d.y - my);
if (dist < 280) d.shock = Math.max(d.shock, (1 - dist/280) * (speed/80));
});
}
});
function render() {
ctx.clearRect(0, 0, W, H);
dots.forEach(d => {
const dist = Math.hypot(d.x - mx, d.y - my);
const prox = Math.max(0, 1 - dist / 160);
d.lit = Math.max(d.lit * 0.92, prox);
d.shock = Math.max(0, d.shock - 0.04);
const t = Math.min(1, d.lit + d.shock);
const r = Math.round(BASE_COLOR.r + (ACTIVE_COLOR.r - BASE_COLOR.r) * t);
const g = Math.round(BASE_COLOR.g + (ACTIVE_COLOR.g - BASE_COLOR.g) * t);
const b = Math.round(BASE_COLOR.b + (ACTIVE_COLOR.b - BASE_COLOR.b) * t);
const alpha = 0.15 + t * 0.65;
const radius = DOT/2 + d.shock * 1.8;
ctx.beginPath();
ctx.arc(d.x, d.y, radius, 0, Math.PI*2);
ctx.fillStyle = `rgba(${r},${g},${b},${alpha})`;
ctx.fill();
});
requestAnimationFrame(render);
}
render();
})();
/* ================================================================
3. SPOTLIGHT — Aceternity-style mouse-follow radial spotlight
================================================================ */
(function initSpotlight() {
const el = document.getElementById('spotlight');
document.addEventListener('mousemove', e => {
el.style.left = e.clientX + 'px';
el.style.top = e.clientY + 'px';
});
})();
/* ================================================================
4. THREADS — React Bits Threads-inspired Perlin noise flow lines
Flowing animated strands using canvas 2D + perlin2()
================================================================ */
(function initThreads() {
const canvas = document.getElementById('threads-canvas');
const ctx = canvas.getContext('2d');
const LINE_COUNT = 38;
const LINE_COLOR = [6, 182, 212]; // cyan
let W, H, t = 0;
let mouseX = 0.5, mouseY = 0.5;
function resize() {
W = canvas.width = window.innerWidth;
H = canvas.height = window.innerHeight;
}
resize();
window.addEventListener('resize', resize);
document.addEventListener('mousemove', e => {
mouseX = e.clientX / window.innerWidth;
mouseY = e.clientY / window.innerHeight;
});
function drawLine(i) {
const perc = i / (LINE_COUNT - 1);
const amplitude = 0.28 + (mouseY - 0.5) * 0.15;
const points = [];
const steps = 80;
for (let s = 0; s <= steps; s++) {