-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1962 lines (1853 loc) · 123 KB
/
index.html
File metadata and controls
1962 lines (1853 loc) · 123 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="pt">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Eduardo Bessa — Engenheiro Full-Stack e multimédia. Portfolio EdOS: experiência, projetos e terminal interativo.">
<meta name="keywords" content="Eduardo Bessa, Full-Stack, Laravel, Vue, Python, Portugal, portfolio, desenvolvimento web">
<meta name="author" content="Eduardo Bessa">
<meta name="robots" content="index, follow">
<meta name="theme-color" content="#0d1117">
<link rel="canonical" href="https://eduardobessa.dev/">
<meta property="og:type" content="website">
<meta property="og:title" content="Eduardo Bessa | Senior Full-Stack Engineer | EdOS">
<meta property="og:description" content="Portfolio interativo EdOS — Full-Stack, multimédia e soluções escaláveis.">
<meta property="og:locale" content="pt_PT">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Eduardo Bessa | EdOS Portfolio">
<meta name="twitter:description" content="Engenheiro Full-Stack — portfolio terminal e projetos.">
<title>Eduardo Bessa | Senior Full-Stack Engineer | EdOS</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Fira+Code:wght@400;500&display=swap');
@keyframes progress { from { width: 0%; } to { width: 100%; } }
:root { --accent: #58a6ff; --bg-dark: #0d1117; --bg-light: #f0f4fa; --hero-mesh-1: rgba(88, 166, 255, 0.22); --hero-mesh-2: rgba(255, 255, 255, 0.08); }
body { font-family: 'Inter', sans-serif; scroll-behavior: smooth; overflow-x: hidden; transition: background-color 0.45s ease, color 0.45s ease; }
body.dark-mode { background-color: var(--bg-dark); color: #c9d1d9; }
body.light-mode { background-color: var(--bg-light); color: #334155; }
body.light-mode #main-content main { background: var(--bg-light); }
body.light-mode header { border-color: rgba(51, 65, 85, 0.12); }
body.light-mode header nav a { color: #475569; }
body.light-mode header nav a:hover { color: #0f172a; }
body.light-mode #about { border-top-color: rgba(51, 65, 85, 0.12) !important; }
body.light-mode #projects { border-top-color: rgba(51, 65, 85, 0.12) !important; }
body.light-mode #experience { background: rgba(226, 232, 240, 0.55) !important; }
body.light-mode #terminal-section { background: rgba(241, 245, 249, 0.9) !important; }
body.light-mode .text-white:not(.text-blue-400):not(.filter-btn.active) { color: #0f172a !important; }
body.light-mode .text-gray-300 { color: #475569 !important; }
body.light-mode .text-gray-400 { color: #64748b !important; }
body.light-mode .text-gray-500 { color: #64748b !important; }
body.light-mode .text-gray-600 { color: #64748b !important; }
body.light-mode #term-output { background: rgba(255, 255, 255, 0.92) !important; color: #334155 !important; border-color: rgba(51, 65, 85, 0.08); }
body.light-mode #term-output .text-gray-400 { color: #475569 !important; }
body.light-mode .bg-black\/40, body.light-mode .bg-black\/60, body.light-mode .bg-black\/80 { background-color: rgba(255, 255, 255, 0.85) !important; }
body.light-mode .lang-switcher { background: rgba(255, 255, 255, 0.9); border-color: rgba(51, 65, 85, 0.1); }
body.light-mode .theme-toggle-btn { background: rgba(255, 255, 255, 0.9); border-color: rgba(51, 65, 85, 0.12); color: #0f172a; }
body.light-mode .theme-toggle-btn:hover { background: rgba(241, 245, 249, 1); }
body.light-mode .custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; }
.hero-wrap { position: relative; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg-base {
position: absolute; inset: 0;
background:
radial-gradient(ellipse 100% 70% at 50% -15%, var(--hero-mesh-1), transparent 55%),
radial-gradient(ellipse 60% 50% at 100% 20%, rgba(255, 255, 255, 0.06), transparent 50%),
radial-gradient(ellipse 50% 40% at 0% 80%, rgba(88, 166, 255, 0.12), transparent 55%),
linear-gradient(180deg, #0a0e14 0%, #0d1117 45%, #0d1117 100%);
}
body.light-mode .hero-bg-base {
background:
radial-gradient(ellipse 100% 75% at 50% -10%, rgba(59, 130, 246, 0.2), transparent 58%),
radial-gradient(ellipse 55% 45% at 95% 15%, rgba(255, 255, 255, 0.95), transparent 50%),
radial-gradient(ellipse 45% 35% at 5% 85%, rgba(147, 197, 253, 0.35), transparent 55%),
linear-gradient(180deg, #e8f0fc 0%, #f0f4fa 50%, #f4f7fb 100%);
}
@keyframes hero-orb-a {
0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
33% { transform: translate(4%, -3%) scale(1.08); opacity: 0.75; }
66% { transform: translate(-2%, 4%) scale(0.96); opacity: 0.6; }
}
@keyframes hero-orb-b {
0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
50% { transform: translate(-5%, 5%) scale(1.12); opacity: 0.65; }
}
@keyframes hero-shimmer {
0% { transform: translateX(-30%) rotate(8deg); opacity: 0.15; }
50% { opacity: 0.35; }
100% { transform: translateX(30%) rotate(8deg); opacity: 0.12; }
}
@keyframes hero-grid-move {
0% { background-position: 0 0; }
100% { background-position: 64px 64px; }
}
.hero-orb {
position: absolute; border-radius: 50%; filter: blur(60px);
will-change: transform;
}
.hero-orb-1 {
width: min(85vw, 720px); height: min(85vw, 720px);
top: -25%; left: -15%;
background: radial-gradient(circle, rgba(88, 166, 255, 0.35) 0%, rgba(88, 166, 255, 0.05) 45%, transparent 70%);
animation: hero-orb-a 22s ease-in-out infinite;
}
.hero-orb-2 {
width: min(70vw, 560px); height: min(70vw, 560px);
bottom: -20%; right: -20%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(147, 197, 253, 0.15) 40%, transparent 68%);
animation: hero-orb-b 28s ease-in-out infinite;
}
body.light-mode .hero-orb-2 {
background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(191, 219, 254, 0.45) 45%, transparent 70%);
}
.hero-orb-3 {
width: 40vmax; height: 40vmax;
top: 35%; left: 50%; transform: translateX(-50%);
background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
animation: hero-orb-a 18s ease-in-out infinite reverse;
opacity: 0.7;
}
body.light-mode .hero-orb-3 {
background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
opacity: 0.5;
}
.hero-grid-layer {
position: absolute; inset: -20%;
background-image:
linear-gradient(rgba(88, 166, 255, 0.07) 1px, transparent 1px),
linear-gradient(90deg, rgba(88, 166, 255, 0.07) 1px, transparent 1px);
background-size: 56px 56px;
mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 0%, transparent 72%);
animation: hero-grid-move 48s linear infinite;
opacity: 0.85;
}
body.light-mode .hero-grid-layer {
background-image:
linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
opacity: 0.6;
}
.hero-shine {
position: absolute; inset: 0;
background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 52%, transparent 60%);
animation: hero-shimmer 14s ease-in-out infinite;
}
body.light-mode .hero-shine {
background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.5) 52%, transparent 65%);
opacity: 0.4;
}
body.light-mode #hero h1 { color: #0f172a !important; }
body.light-mode #hero .hero-subtitle { color: #64748b !important; }
body.light-mode #hero .hero-accent { color: #2563eb !important; }
body.light-mode .bg-blue-600, body.light-mode .bg-blue-500 { color: #ffffff !important; }
body.light-mode .text-blue-400 { color: #2563eb !important; }
body.light-mode .text-blue-500 { color: #2563eb !important; }
.font-mono { font-family: 'Fira Code Nerd', 'Fira Code', 'Fire Code Nerd', 'Cascadia Code', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-variant-ligatures: contextual; font-feature-settings: 'calt' 1, 'liga' 1; }
#term-output { font-family: 'Fira Code Nerd', 'Fira Code', 'Fire Code Nerd', 'Cascadia Code', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; font-variant-ligatures: contextual; font-feature-settings: 'calt' 1, 'liga' 1; }
.custom-scrollbar::-webkit-scrollbar { height: 4px; width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #30363d; border-radius: 10px; }
#loader { position: fixed; inset: 0; z-index: 10000; background: #0d1117; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.glass { background: rgba(22, 27, 34, 0.8); backdrop-filter: blur(12px); border: 1px solid rgba(88, 166, 255, 0.1); transition: background-color 0.4s ease, border-color 0.4s ease; }
body.light-mode .glass { background: rgba(255, 255, 255, 0.82) !important; border-color: rgba(100, 116, 139, 0.18) !important; }
body.light-mode .filter-btn:not(.active) { border-color: rgba(51, 65, 85, 0.15) !important; color: #64748b !important; }
body.light-mode #projects-loading { background: rgba(240, 244, 250, 0.95) !important; border-color: rgba(51, 65, 85, 0.1) !important; }
.project-item { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
#main-content.invisible { opacity: 0; pointer-events: none; }
#term-suggest { max-height: 200px; }
#term-suggest button.active { background: rgba(88, 166, 255, 0.2); }
#chat-panel { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.chat-msg-user { align-self: flex-end; background: rgba(88, 166, 255, 0.15); border: 1px solid rgba(88, 166, 255, 0.25); }
.chat-msg-bot { align-self: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
@keyframes chat-typing-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.typing-dot { animation: chat-typing-dot 1.2s ease-in-out infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
#projects-stage { min-height: 280px; }
#projects-loading { pointer-events: none; }
#projects-loading.is-active { pointer-events: auto; opacity: 1; }
#chat-fab { box-shadow: 0 10px 40px rgba(88, 166, 255, 0.25); }
.timeline-vline { background: linear-gradient(180deg, rgba(88,166,255,0.45) 0%, rgba(88,166,255,0.12) 50%, rgba(88,166,255,0.05) 100%); }
.timeline-card { transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
.timeline-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px rgba(88, 166, 255, 0.15); border-color: rgba(88, 166, 255, 0.35); }
.timeline-card .timeline-img { transition: transform 0.6s ease, filter 0.4s ease; }
.timeline-card:hover .timeline-img { transform: scale(1.04); filter: grayscale(0); }
.timeline-node { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.timeline-item:hover .timeline-node { transform: scale(1.15); box-shadow: 0 0 20px rgba(88, 166, 255, 0.4); }
</style>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Person",
"name": "Eduardo Bessa",
"jobTitle": "Full-Stack Engineer",
"url": "https://eduardobessa.dev/",
"email": "eduubessa@gmail.com",
"knowsAbout": ["Laravel", "Vue.js", "Python", "Full-Stack Development"]
}
</script>
</head>
<body class="dark-mode" data-theme="dark">
<noscript>
<style>#edos-root{display:none!important}</style>
<div id="noscript-boot" class="fixed inset-0 z-[2147483647] bg-[#0d1117] text-[#c9d1d9] font-mono text-sm p-6 md:p-12 overflow-auto leading-relaxed">
<div class="max-w-2xl mx-auto border border-red-500/30 rounded-xl p-8 bg-black/40">
<h1 class="text-red-400 text-lg font-bold mb-2 tracking-tight">EdOS — arranque do sistema falhou</h1>
<p class="text-gray-500 text-xs mb-8 uppercase tracking-widest">POST diagnostics / modo sem JavaScript</p>
<p class="text-gray-400 mb-6">O kernel não conseguiu concluir a sequência de boot. Diagnóstico de hardware e software:</p>
<div class="space-y-6 text-left">
<div>
<h2 class="text-blue-400 text-xs uppercase tracking-[0.2em] mb-3">Hardware detectado</h2>
<ul class="text-gray-400 space-y-1 text-xs border-l-2 border-blue-500/30 pl-4">
<li>CPU …………………… desconhecido (runtime indisponível)</li>
<li>Memória ……………… não alocada</li>
<li>Armazenamento ……… não montado</li>
<li>Display ……………… modo texto / HTML estático</li>
<li>Rede ………………… camada de aplicação inativa</li>
</ul>
</div>
<div>
<h2 class="text-blue-400 text-xs uppercase tracking-[0.2em] mb-3">Software / runtime</h2>
<ul class="text-gray-400 space-y-1 text-xs border-l-2 border-blue-500/30 pl-4">
<li>Kernel EdOS ………… não carregado</li>
<li>Motor de UI ………… inexistente (JS desativado)</li>
<li>Terminal / Chat ……… indisponíveis</li>
<li>i18n dinâmico ……… não aplicável</li>
</ul>
</div>
</div>
<div class="mt-10 pt-6 border-t-2 border-red-600 text-red-500 font-bold text-sm">
ERRO CRÍTICO: JavaScript desativado ou bloqueado — necessário para iniciar o EdOS neste domínio.
</div>
<p class="mt-6 text-gray-600 text-xs">Ativa JavaScript no browser e recarrega a página para continuar.</p>
</div>
</div>
</noscript>
<div id="edos-root">
<div id="loader">
<div class="text-center">
<div class="font-mono text-blue-400 mb-4 tracking-widest text-xs uppercase">Loading_All_System_Resources...</div>
<div class="w-64 h-1 bg-gray-800 rounded-full overflow-hidden"><div class="h-full bg-blue-500" style="animation: progress 2s forwards;"></div></div>
</div>
</div>
<div id="age-gate" class="fixed inset-0 z-[9999] flex items-center justify-center bg-[#0d1117] transition-all duration-700 hidden">
<div class="max-w-xl w-full p-10 glass rounded-3xl text-center mx-4 border border-blue-500/20 shadow-2xl">
<i data-lucide="shield-check" class="w-16 h-16 mx-auto text-blue-400 mb-6"></i>
<h2 class="text-2xl font-bold text-white mb-6 font-mono" data-i18n="gate.title"></h2>
<div class="flex flex-col sm:flex-row gap-4 justify-center">
<button id="btn-confirm" type="button" class="bg-blue-600 hover:bg-blue-500 text-white font-bold py-4 px-10 rounded-xl transition-all font-mono text-sm" data-i18n="gate.confirm"></button>
<button id="btn-exit" type="button" class="bg-transparent border border-white/10 hover:bg-white/5 text-gray-400 font-bold py-4 px-10 rounded-xl transition-all font-mono text-sm" data-i18n="gate.exit">EXIT_SYSTEM</button>
</div>
</div>
</div>
<div id="cookie-banner" class="fixed bottom-6 left-6 right-6 z-[9998] transform translate-y-40 transition-all duration-700 md:left-auto md:max-w-md">
<div class="glass p-6 rounded-2xl border border-blue-500/20 shadow-2xl">
<div class="flex items-start gap-4">
<i data-lucide="cookie" class="w-6 h-6 text-blue-400 shrink-0"></i>
<div>
<p class="text-[11px] text-gray-300 font-mono leading-relaxed mb-4">
SYSTEM_NOTICE: This terminal uses cookies to optimize performance. By continuing to navigate EdOS, you acknowledge and accept our data protocols.
</p>
<div class="flex gap-3">
<button id="cookie-accept" class="text-[10px] font-mono bg-blue-600/20 hover:bg-blue-600/40 text-blue-400 border border-blue-500/30 px-4 py-2 rounded-lg transition-all uppercase tracking-widest">Accept_All</button>
<button id="cookie-settings" class="text-[10px] font-mono bg-white/5 hover:bg-white/10 text-gray-400 border border-white/10 px-4 py-2 rounded-lg transition-all uppercase tracking-widest">Settings</button>
</div>
</div>
</div>
</div>
</div>
<div id="main-content" class="invisible transition-opacity duration-1000">
<header class="fixed top-0 w-full z-50 glass py-5 px-6 md:px-20 flex justify-between items-center gap-4 border-b border-white/5">
<div class="flex-1 flex justify-start">
<a href="#hero" class="font-mono font-bold text-blue-400 text-2xl tracking-tighter shrink-0" aria-label="Eduardo Bessa — início">EB::BESSA</a>
</div>
<nav class="hidden lg:flex flex-none gap-8 font-mono text-[10px] uppercase tracking-[0.2em] text-inherit" aria-label="Principal">
<a href="#hero" data-i18n="nav.home" class="hover:text-blue-400 transition-colors"></a>
<a href="#about" data-i18n="nav.about" class="hover:text-blue-400 transition-colors"></a>
<a href="#experience" data-i18n="nav.exp" class="hover:text-blue-400 transition-colors"></a>
<a href="#projects" data-i18n="nav.projects" class="hover:text-blue-400 transition-colors"></a>
<a href="#terminal-section" data-i18n="nav.terminal" class="hover:text-blue-400 transition-colors"></a>
<a href="#contact" data-i18n="nav.contact" class="hover:text-blue-400 transition-colors"></a>
</nav>
<div class="flex-1 flex items-center gap-2 md:gap-3 shrink-0 justify-end">
<div class="lang-switcher flex rounded-full p-1 border border-white/5 font-mono text-[10px] bg-black/40" role="group" aria-label="Idioma">
<button type="button" class="lang-btn px-3 py-1 rounded-full" data-lang="pt">PT</button>
<button type="button" class="lang-btn px-3 py-1 rounded-full" data-lang="en">EN</button>
</div>
<button type="button" id="theme-toggle" class="theme-toggle-btn flex h-10 w-10 items-center justify-center rounded-full border border-white/10 bg-black/40 text-gray-300 transition hover:bg-white/10 hover:text-white" aria-pressed="true">
<i data-lucide="sun" class="theme-icon-sun h-5 w-5 hidden" aria-hidden="true"></i>
<i data-lucide="moon" class="theme-icon-moon h-5 w-5" aria-hidden="true"></i>
</button>
</div>
</header>
<main>
<section id="hero" class="hero-wrap relative min-h-screen flex flex-col justify-center px-6 md:px-20 overflow-hidden" aria-labelledby="hero-title">
<div class="hero-bg" aria-hidden="true">
<div class="hero-bg-base"></div>
<div class="hero-orb hero-orb-1"></div>
<div class="hero-orb hero-orb-2"></div>
<div class="hero-orb hero-orb-3"></div>
<div class="hero-grid-layer"></div>
<div class="hero-shine"></div>
</div>
<div class="relative z-10 reveal max-w-6xl">
<h1 id="hero-title" class="text-7xl md:text-9xl font-bold text-white mb-6 tracking-tighter drop-shadow-sm">Eduardo Bessa<span class="hero-accent text-blue-500">.</span></h1>
<p class="hero-subtitle text-2xl md:text-5xl font-medium text-gray-500" data-i18n="hero.subtitle"></p>
</div>
</section>
<section id="about" class="py-40 px-6 md:px-20 border-t border-white/5">
<div class="max-w-6xl mx-auto">
<h2 class="text-3xl font-bold text-white mb-16 flex items-center gap-6 reveal">
<span class="text-blue-500 font-mono text-xl">01.</span> <span data-i18n="nav.about"></span>
</h2>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-16 items-start">
<div class="reveal">
<p class="text-xl text-gray-300 leading-relaxed mb-8" data-i18n="about.text1"></p>
<p class="text-gray-400 leading-relaxed mb-10" data-i18n="about.text2"></p>
</div>
<div class="reveal glass p-8 rounded-3xl border border-blue-500/10 font-mono text-xs">
<h3 class="text-blue-400 uppercase tracking-[0.3em] mb-6">System_Specs</h3>
<ul class="space-y-4">
<li class="flex items-center gap-3 text-gray-300"><i data-lucide="code-2" class="w-4 h-4 text-blue-500" aria-hidden="true"></i> Full-Stack Engineering</li>
<li class="flex items-center gap-3 text-gray-300"><i data-lucide="camera" class="w-4 h-4 text-blue-500" aria-hidden="true"></i> Multimedia & Design</li>
<li class="flex items-center gap-3 text-gray-300"><i data-lucide="database" class="w-4 h-4 text-blue-500" aria-hidden="true"></i> Data Automation</li>
</ul>
</div>
</div>
</div>
</section>
<section id="experience" class="py-40 px-6 md:px-20 bg-[#0a0d12]/40">
<div class="max-w-5xl mx-auto">
<h2 class="text-3xl font-bold text-white mb-16 md:mb-24 flex items-center gap-6 reveal">
<span class="text-blue-500 font-mono text-xl">02.</span> <span data-i18n="nav.exp"></span>
</h2>
<div class="relative">
<div class="hidden md:block absolute left-1/2 top-0 bottom-0 w-px timeline-vline -translate-x-1/2 pointer-events-none z-0" aria-hidden="true"></div>
<div id="timeline-content" class="relative z-[1]"></div>
</div>
</div>
</section>
<section id="projects" class="py-40 px-6 md:px-20 border-t border-white/5">
<div class="max-w-6xl mx-auto">
<h2 class="text-3xl font-bold text-white mb-10 flex items-center gap-6 reveal">
<span class="text-blue-500 font-mono text-xl">03.</span> <span data-i18n="nav.projects"></span>
</h2>
<div class="flex flex-wrap gap-4 mb-12 font-mono text-[10px] reveal" role="tablist">
<button type="button" class="filter-btn active px-6 py-2 border border-white/10 rounded-full transition-all" data-filter="all">ALL_FILES</button>
<button type="button" class="filter-btn px-6 py-2 border border-white/10 rounded-full transition-all" data-filter="dev">DEVELOPMENT</button>
<button type="button" class="filter-btn px-6 py-2 border border-white/10 rounded-full transition-all" data-filter="design">DESIGN</button>
<button type="button" class="filter-btn px-6 py-2 border border-white/10 rounded-full transition-all" data-filter="photo">PHOTOGRAPHY</button>
</div>
<div id="projects-stage" class="relative reveal">
<div id="projects-loading" class="absolute inset-0 z-20 flex flex-col items-center justify-center rounded-2xl bg-[#0d1117]/92 backdrop-blur-sm border border-white/5 opacity-0 transition-opacity duration-300" aria-hidden="true" aria-busy="false">
<div class="text-center px-6">
<div class="font-mono text-blue-400 mb-3 tracking-widest text-[10px] uppercase" data-i18n="projects.loadingLabel"></div>
<div class="w-48 h-1 bg-gray-800 rounded-full overflow-hidden mx-auto">
<div id="projects-loading-bar" class="h-full bg-blue-500 w-0 transition-[width] duration-700 ease-out"></div>
</div>
</div>
</div>
<div id="projects-grid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"></div>
<div id="pagination" class="flex justify-center gap-4 mt-16 font-mono"></div>
</div>
</div>
</section>
<section id="terminal-section" class="py-40 px-6 md:px-20 bg-black/20">
<div class="max-w-5xl mx-auto reveal">
<h2 class="text-3xl font-bold text-white mb-16 flex items-center gap-6">
<span class="text-blue-500 font-mono text-xl">04.</span> <span data-i18n="nav.terminal"></span>
</h2>
<div class="w-full glass rounded-2xl border border-white/10 overflow-hidden shadow-2xl font-mono relative">
<div class="bg-white/5 p-4 flex gap-2 border-b border-white/5" aria-hidden="true">
<div class="w-3 h-3 rounded-full bg-red-500/40"></div>
<div class="w-3 h-3 rounded-full bg-yellow-500/40"></div>
<div class="w-3 h-3 rounded-full bg-green-500/40"></div>
</div>
<div id="term-output" class="h-[400px] overflow-y-auto p-8 text-[12px] leading-relaxed bg-black/60 text-gray-300 custom-scrollbar" role="log" aria-live="polite"></div>
<div class="relative border-t border-white/5">
<div id="term-suggest" class="hidden absolute bottom-full left-0 right-0 mx-4 mb-1 glass rounded-lg border border-white/10 overflow-y-auto custom-scrollbar z-10 text-left"></div>
<div class="p-4 bg-black/80 flex gap-3 items-center">
<span id="term-prompt-label" class="text-green-500 font-bold text-xs shrink-0">guest@edos:~$</span>
<input type="text" id="term-input" class="w-full bg-transparent outline-none text-white text-xs min-w-0" spellcheck="false" autocomplete="off" aria-label="Terminal" autocapitalize="off" autocorrect="off">
</div>
</div>
</div>
</div>
</section>
<section id="contact" class="py-40 px-6 md:px-20">
<div class="max-w-4xl mx-auto glass p-20 rounded-[3rem] text-center reveal border-dashed border-2 border-white/5">
<div id="vault-locked">
<i data-lucide="lock" class="w-12 h-12 mx-auto text-blue-500 mb-6 animate-pulse" aria-hidden="true"></i>
<h3 class="text-white font-bold text-3xl mb-3 font-mono" data-i18n="vault.title"></h3>
<p class="text-blue-400 font-mono text-xs uppercase tracking-[0.25em] mb-2" data-i18n="vault.challenge"></p>
<p class="text-gray-400 text-sm mb-2 max-w-lg mx-auto" data-i18n="vault.sub"></p>
<p id="vault-date" class="text-gray-500 text-xs font-mono mb-6"></p>
<p class="text-gray-600 text-[11px] mb-6 max-w-md mx-auto leading-relaxed" data-i18n="vault.hint"></p>
<div class="flex flex-col sm:flex-row gap-4 max-w-md mx-auto items-stretch sm:items-center">
<label for="input-pass" class="sr-only" data-i18n="vault.inputLabel"></label>
<input type="text" id="input-pass" maxlength="12" inputmode="text" autocapitalize="characters" spellcheck="false" autocomplete="off" data-i18n-placeholder="vault.placeholder" class="w-full bg-black/40 border border-gray-800 p-4 rounded-xl text-white text-center outline-none font-mono text-sm tracking-[0.2em] uppercase transition-colors">
<button type="button" id="btn-unlock" class="bg-blue-600 px-8 py-4 rounded-xl hover:bg-blue-500 text-white shrink-0" data-i18n-aria="vault.unlockAria"><i data-lucide="key" class="w-5 h-5 mx-auto"></i></button>
</div>
<p id="vault-error" class="hidden text-red-400 text-sm mt-4 font-mono" role="alert"></p>
</div>
<div id="vault-unlocked" class="hidden">
<div class="grid grid-cols-1 md:grid-cols-2 gap-10 text-left max-w-md mx-auto text-white">
<div><span class="text-blue-400 font-mono text-[10px] block">EMAIL</span>eduubessa@gmail.com</div>
<div><span class="text-blue-400 font-mono text-[10px] block">PHONE</span>+351 913 946 525</div>
</div>
</div>
</div>
</section>
</main>
</div>
<button type="button" id="chat-fab" class="hidden fixed z-[10000] bottom-6 right-6 md:bottom-8 md:right-8 w-14 h-14 rounded-full bg-blue-600 hover:bg-blue-500 text-white flex items-center justify-center border border-blue-400/30 transition-transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 focus:ring-offset-[#0d1117]" aria-haspopup="dialog" aria-expanded="false" aria-controls="chat-panel" data-i18n-aria="chat.fabLabel">
<i data-lucide="message-circle" class="w-7 h-7" aria-hidden="true"></i>
</button>
<div id="chat-backdrop" class="fixed inset-0 z-[10001] bg-black/60 backdrop-blur-sm hidden opacity-0 transition-opacity duration-300" aria-hidden="true"></div>
<div id="chat-panel" class="fixed z-[10002] bottom-6 right-6 w-[min(100%-2rem,400px)] max-h-[min(85vh,560px)] flex flex-col glass rounded-2xl border border-blue-500/20 hidden font-mono text-xs scale-95 opacity-0 transition-all duration-300" role="dialog" aria-modal="true" aria-labelledby="chat-title">
<div class="flex items-center justify-between p-4 border-b border-white/10 bg-black/40 rounded-t-2xl">
<div class="flex items-center gap-2">
<span class="relative flex h-2 w-2">
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"></span>
<span class="relative inline-flex rounded-full h-2 w-2 bg-green-500"></span>
</span>
<h2 id="chat-title" class="text-white font-bold text-sm" data-i18n="chat.title"></h2>
</div>
<button type="button" id="chat-close" class="text-gray-400 hover:text-white p-1 rounded" aria-label="Fechar chat"><i data-lucide="x" class="w-5 h-5"></i></button>
</div>
<div id="chat-messages" class="flex-1 overflow-y-auto p-4 flex flex-col gap-3 min-h-[200px] max-h-[360px] custom-scrollbar text-[11px] leading-relaxed"></div>
<div id="chat-typing" class="hidden px-4 pb-2 text-gray-500 flex items-center gap-1">
<span class="typing-dot inline-block w-1.5 h-1.5 rounded-full bg-gray-500"></span>
<span class="typing-dot inline-block w-1.5 h-1.5 rounded-full bg-gray-500"></span>
<span class="typing-dot inline-block w-1.5 h-1.5 rounded-full bg-gray-500"></span>
</div>
<div class="p-3 border-t border-white/10 bg-black/50 rounded-b-2xl">
<label for="chat-input" class="sr-only" data-i18n="chat.inputLabel"></label>
<input type="text" id="chat-input" class="w-full bg-black/40 border border-white/10 rounded-lg px-3 py-2 text-white outline-none focus:border-blue-500/50" data-i18n-placeholder="chat.placeholder" autocomplete="off">
</div>
</div>
</div>
<script>
const DATA = {
experiences: [
{
year: "2026",
company: "Pharoll",
loc: "Santarém, Portugal",
role: "Senior Full-Stack Engineer",
img: "https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=400",
pt: "Liderança técnica no desenvolvimento de plataformas de streaming de alta disponibilidade e integração de fluxos FFMPEG.",
en: "Technical leadership in developing high-availability streaming platforms and FFMPEG workflow integration."
},
{
year: "2025-present",
company: "MUBE",
loc: ", PT",
role: "Senior Full-Stack Engineer",
img: "https://media.licdn.com/dms/image/v2/D4D2DAQFDpm3P0Ty73A/profile-treasury-image-shrink_1280_1280/B4DZbZuPprHsAY-/0/1747409501679?e=1775314800&v=beta&t=NhlieUdOOIf7p6596KtNAIwRyb1oLx4X-zHekxhsUdk",
pt: "Como referência técnica na MUBE, impulsiono a eficiência operacional e o crescimento do negócio através da criação de arquiteturas escaláveis, automação de dados complexos e garantia de excelência em todo o ciclo de vida de desenvolvimento.",
en: "As a technical lead at MUBE, I drive operational efficiency and business growth by architecting scalable systems, automating complex data pipelines, and ensuring engineering excellence across the entire development lifecycle."
},
{
year: "2024",
company: "Generis",
loc: "Lisboa, Portugal",
role: "Software Developer",
img: "https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=400",
pt: "Execução de arquiteturas escaláveis, automação de pipelines de vídeo e dados, e desenvolvimento de sistemas enterprise com foco rigoroso em rastreabilidade e performance.",
en: "Execution of scalable architectures, video and data pipeline automation, and enterprise system development with a strict focus on traceability and performance."
},
{
year: "2023",
company: "Oxy.Agency",
loc: "Hybrid, PT",
role: "Full-Stack Developer",
img: "https://images.unsplash.com/photo-1454165833767-027ffea9e78b?q=80&w=400",
pt: "Construção de landing pages e funcionalidades de e-commerce com Livewire e AlpineJS, aliada à gestão de ambientes contentorizados com Docker e pipelines CI/CD.",
en: "Construction of landing pages and e-commerce features with Livewire and AlpineJS, combined with Docker container management and CI/CD pipelines."
},
{
year: "2020",
company: "Urbiwise",
loc: "Remote, PT",
role: "Backend Specialist",
img: "https://media.licdn.com/dms/image/v2/D4D2DAQH94a2SY85JBw/profile-treasury-image-shrink_800_800/B4DZfmJjaCH4Ak-/0/1751912953863?e=1775314800&v=beta&t=4izkkjSnEQeYMpj_8aNFI0y7jyZCatF5f2aeZdPV3HU",
pt: "Engenharia de plataformas cloud em AWS/Azure, automação de pipelines de dados com Selenium e desenho de arquiteturas de bases de dados para alto tráfego.",
en: "Engineering of cloud platforms on AWS/Azure, data pipeline automation with Selenium, and design of database architectures for high-traffic environments."
},
],
projects: [
{ title: "Helpdesk AI", cat: "dev", img: "https://instagram.flis5-3.fna.fbcdn.net/v/t51.82787-15/639871171_18565080391036956_2336185583034315601_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=110&ig_cache_key=MjA5MDU4MDczOTg3NjQ2MTIzMw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6InhwaWRzLjEwODB4ODMzLnNkci5DMyJ9&_nc_ohc=XOEtBdnhD2IQ7kNvwHOKlnZ&_nc_oc=AdrbPqAgZ3bkJtCmh3OFJYGNFbRqnNVuDPfgMdA1_SMAgpggO6XkN9R1DWCI1xcOEvmdbwau55H_E6trN6WFhw3a&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=instagram.flis5-3.fna&_nc_gid=iD4H31jjjowpwnbdfTomig&_nc_ss=7a32e&oh=00_AfyRF0Fzt6Zu_FRng_g3GpzJexG_8ssT1c4GZg_C0nG1Kw&oe=69CDC9F9" },
{ title: "CCDR Content Management System", cat: "dev", img: "https://instagram.flis5-3.fna.fbcdn.net/v/t51.82787-15/652130781_18386137189086795_5958093422789381996_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=104&ig_cache_key=MTc3NTcyOTQwNTE5ODg1NjYwOA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6InhwaWRzLjEwODB4MTA4MC5zZHIuQzMifQ%3D%3D&_nc_ohc=lCInGozY6X0Q7kNvwEDN9XH&_nc_oc=Ado0UGilqrnQ4ZL-bNk3ibT72nWL9doL0X6CBAud4zfMCqkQGWiuGvhJh2drhaSpIaK2QWN5cFUPuOs7ZVQpnfSN&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=instagram.flis5-3.fna&_nc_gid=t-4q3BwhpzfM2HbkC1pcjw&_nc_ss=7a32e&oh=00_AfyHT-M5yZklrKj176-YNwtGW_a7gjFdzbnvItDBqb0mSg&oe=69CDBA0A" },
{ title: "Eduardo Bessa Blog", cat: "dev", img: "https://instagram.flis5-3.fna.fbcdn.net/v/t51.82787-15/622133250_18337754896212662_6973636359912328188_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=104&ig_cache_key=MTcyNzI3MDg5Mjc0Nzg5Nzc0OQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6InhwaWRzLjEwODB4NzIwLnNkci5DMyJ9&_nc_ohc=iU0_PsuEKk8Q7kNvwGP0Ev8&_nc_oc=AdrbuLX2ZHjS0hUULjYYKXQJPdNZ27fFRIaGRCVX8XuYYR6ediI63wM3KDFPr348AKnQydK5xa7Un3VU3e_Z4tz6&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=instagram.flis5-3.fna&_nc_gid=t-4q3BwhpzfM2HbkC1pcjw&_nc_ss=7a32e&oh=00_Afwcfe8wCMw8slqA2xRkHLThYFlYaVzbswhOmUR-7n9-AA&oe=69CDC87F" },
{ title: "Photoshoot Júlio", cat: "photo", img: "https://instagram.flis5-3.fna.fbcdn.net/v/t51.82787-15/620559595_18186403576361816_4658257047976808007_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=104&ig_cache_key=MTk4Njk0NzQwNTAzNjkxNjc4Nw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6InhwaWRzLjEwODB4MTA4MC5zZHIuQzMifQ%3D%3D&_nc_ohc=TYrslQrKap8Q7kNvwElt2mF&_nc_oc=AdoUIoYyfngQIj3HE7px4EAGuDBU-VlijEyYwhHI2nKfbT05PswUdcqc5R3eMpXVUW8dQB_3NFTgELrz0wwL7VoX&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=instagram.flis5-3.fna&_nc_gid=iD4H31jjjowpwnbdfTomig&_nc_ss=7a32e&oh=00_AfycIfL1TK-QnjsqRIHChpnndxme_sHxJjFofzOpJ6Zcjg&oe=69CDA73E" },
{ title: "Orange Photography @ 2024", cat: "photo", img: "https://instagram.flis5-3.fna.fbcdn.net/v/t51.82787-15/623060709_17986738937948291_1831330993234771078_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=101&ig_cache_key=MzU0MTcwNTM1MDY1MTY1NjA2MQ%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6InhwaWRzLjE0NDB4MTQ0MC5zZHIuQzMifQ%3D%3D&_nc_ohc=hWuurrAWo_8Q7kNvwH8MYRB&_nc_oc=AdqRYSaIe1evX1h_t4l9uHkDc_OlOIzGfZW8Lh137fqKoOqWItPSESnoMcCKFJYQmIfeJqiv1K5t9eEVMTTapl5t&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=instagram.flis5-3.fna&_nc_gid=VNuoyTdvvjP88iGt9zSGFA&_nc_ss=7a32e&oh=00_Afz9LQIJAMMdPL_ohDCciPthvsaMg4ODwYhrsfzsOz23zQ&oe=69CDD659" },
{ title: "Landscape Photo", cat: "photo", img: "https://instagram.flis5-4.fna.fbcdn.net/v/t51.82787-15/624587882_18303833728274323_6142605369779051173_n.jpg?stp=dst-jpg_e35_tt6&_nc_cat=109&ig_cache_key=MTkwMDc5Njc1MjI5MjU4MDY5Mw%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6InhwaWRzLjY2N3g2Njcuc2RyLkMzIn0%3D&_nc_ohc=1ODHCOGi0jkQ7kNvwFtFXEf&_nc_oc=Adp0FFxVDX_83u96jQs13sQDVLKksd1KKoXoFVOVeiI0J_6SFM9IuQTehZePzYTJ5X6ILlkgXpGL6qjkkbVfLN4E&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=instagram.flis5-4.fna&_nc_gid=AgHEUgTf9gGQzdV7keQdkA&_nc_ss=7a32e&oh=00_AfwwZ7ogeBApCFK4x3o53Yqzz8X1Y1JoqtqPjdk1dnX7Pg&oe=69CDA793" },
{ title: "Casamento - Júlio & Maria", cat: "photo", img: "/u/eduubessa/dev/p-photo-1.jpg" },
{ title: "Sessão - Miriam & Daniel", cat: "photo", img: "/u/eduubessa/dev/p-photo-2.jpg" },
{ title: "Grant's Triple Wood", cat: "photo", img: "/u/eduubessa/dev/p-photo-3.jpg" },
{ title: "KuriakosTV StreamingPlataform", cat: "dev", img: "https://media.licdn.com/dms/image/v2/D4D2DAQHvhtMC3dSL_Q/profile-treasury-image-shrink_1280_1280/B4DZbZudDBGwAU-/0/1747409556640?e=1775314800&v=beta&t=oAsj4evbB_-ZMXAqPATwrnGWLhXZX3VTZ059aJYRk6E" },
{ title: "MUBE Branding", cat: "design", img: "https://scontent.flis5-4.fna.fbcdn.net/v/t39.30808-6/481481665_122102420708788270_8657217368174768092_n.jpg?_nc_cat=107&ccb=1-7&_nc_sid=1d70fc&_nc_ohc=igcA5TV0_koQ7kNvwEC6ZW4&_nc_oc=Adpb0BgP1RzG9t3faX5At_7eFHxLEVshyQ7IM1uSnjeW3oZu3bWdfOOqX6oN_3FX4HLLSx7vJfb_4U7l7J1ksjHk&_nc_zt=23&_nc_ht=scontent.flis5-4.fna&_nc_gid=0QiED3cHg0Yx_PfBKJyzXg&_nc_ss=7a32e&oh=00_AfzZvL0LOM99b8n3BXr4HkpphgJ_s2ALQ6-P74Da0r8DUw&oe=69CDA931"},
{ title: "Social Media", cat: "design", img: "https://scontent.flis5-3.fna.fbcdn.net/v/t39.30808-6/498234791_122129168324788270_3014656468936217955_n.jpg?_nc_cat=102&ccb=1-7&_nc_sid=13d280&_nc_ohc=vS_8aF9nrVEQ7kNvwEkhjyB&_nc_oc=AdoXE7dRgHdLcACMUnZSSxNgJx482khtsCqLbmew1YYt9MFmvQTqd87WNG636_xu-04vmtugTP4EDtUj-EBGaOkm&_nc_zt=23&_nc_ht=scontent.flis5-3.fna&_nc_gid=ve4vCmez6nnTF_dVTTkxpw&_nc_ss=7a32e&oh=00_AfxcSWyoAY0nh2NyBzN2bbjgsQxaWXLfSlYNfn870gP7OA&oe=69CDDA89"},
{ title: "MUBE Social Media", cat: "design", img: "https://scontent.flis5-4.fna.fbcdn.net/v/t39.30808-6/497514955_122129155850788270_2096264749950894024_n.jpg?_nc_cat=100&ccb=1-7&_nc_sid=13d280&_nc_ohc=MeZVMrS1lOUQ7kNvwE6pNU9&_nc_oc=Ado5JH6cooeKyCVtWxvbWohfYSADMi6ksF0HJ0LwNmm_dPa-VzMvvP5zfO1sfufO-KudRE0P4biYtXcAZ0rouE0Y&_nc_zt=23&_nc_ht=scontent.flis5-4.fna&_nc_gid=ZmwfckkRoyBEeYXRKWXjQg&_nc_ss=7a32e&oh=00_AfzgFLKVKf4K-N4YYyFA3XQbmdJVgFhL3tj7goK1_sqpkA&oe=69CDD13B"}
],
tips: {
pt: {
dev: [
"Sempre escreve código legível: nomeia variáveis e funções de forma descritiva.",
"Testa o teu código frequentemente para evitar bugs maiores.",
"Usa controlo de versões (Git) para rastrear mudanças.",
"Aprende uma nova linguagem ou framework todos os anos.",
"Documenta o teu código com comentários claros.",
"Refatora código duplicado para manter a manutenção fácil.",
"Prioriza a segurança: valida inputs e usa HTTPS.",
"Colabora em projetos open-source para aprender com outros.",
"Mantém-te atualizado com as últimas tendências tecnológicas.",
"Escreve testes automatizados para garantir qualidade."
],
design: [
"Foca na hierarquia visual para guiar o olho do utilizador.",
"Usa uma paleta de cores consistente em todo o projeto.",
"Mantém o design simples e evita sobrecarga visual.",
"Testa o design em diferentes dispositivos e tamanhos de ecrã.",
"Incorpora espaço em branco para melhorar a legibilidade.",
"Usa tipografia adequada: escolhe fontes legíveis e hierárquicas.",
"Inspira-te em designs existentes, mas cria algo único.",
"Considera a acessibilidade: contrates altos e textos alternativos.",
"Itera baseado em feedback dos utilizadores.",
"Aprende princípios de design como proximidade e alinhamento."
],
photo: [
"A regra dos terços ajuda a compor imagens equilibradas.",
"A luz natural é a melhor para fotografias realistas.",
"Experimenta diferentes ângulos para capturar perspetivas únicas.",
"Usa o modo manual para controlo total sobre exposição.",
"Edita fotos com moderação para manter a autenticidade.",
"Fotografa em RAW para mais flexibilidade na edição.",
"Estuda a obra de fotógrafos famosos para inspiração.",
"Pratica diariamente para melhorar as tuas habilidades.",
"Limpa a lente antes de fotografar para evitar manchas.",
"Conta uma história com as tuas imagens."
]
},
en: {
dev: [
"Always write readable code: name variables and functions descriptively.",
"Test your code frequently to avoid major bugs.",
"Use version control (Git) to track changes.",
"Learn a new language or framework every year.",
"Document your code with clear comments.",
"Refactor duplicate code to keep maintenance easy.",
"Prioritize security: validate inputs and use HTTPS.",
"Contribute to open-source projects to learn from others.",
"Stay updated with the latest tech trends.",
"Write automated tests to ensure quality."
],
design: [
"Focus on visual hierarchy to guide the user's eye.",
"Use a consistent color palette throughout the project.",
"Keep the design simple and avoid visual overload.",
"Test the design on different devices and screen sizes.",
"Incorporate white space to improve readability.",
"Use appropriate typography: choose legible and hierarchical fonts.",
"Get inspired by existing designs, but create something unique.",
"Consider accessibility: high contrasts and alternative texts.",
"Iterate based on user feedback.",
"Learn design principles like proximity and alignment."
],
photo: [
"The rule of thirds helps compose balanced images.",
"Natural light is best for realistic photographs.",
"Experiment with different angles to capture unique perspectives.",
"Use manual mode for full control over exposure.",
"Edit photos moderately to maintain authenticity.",
"Photograph in RAW for more editing flexibility.",
"Study the work of famous photographers for inspiration.",
"Practice daily to improve your skills.",
"Clean the lens before photographing to avoid spots.",
"Tell a story with your images."
]
}
},
translations: {
pt: {
gate: { title: "CONTROLO DE ACESSO", confirm: "Confirmar Acesso" },
theme: { useLight: "Ativar tema claro", useDark: "Ativar tema escuro" },
nav: { home: "Início", about: "Perfil", exp: "Timeline", projects: "Projetos", terminal: "Terminal", contact: "Contacto" },
hero: { subtitle: "Multimedia & Full-Stack Engineer" },
about: { text1: "Arquiteto de soluções digitais focado em ecossistemas escaláveis, automação de dados e streaming.", text2: "Especialista em Laravel, Vue, Python, CI/CD e infraestrutura cloud (AWS/Azure)." },
terminal: {
welcome: "EdOS Kernel 6.2.0-v7+\nPronto para comandos. Escreve / para comandos ou help.",
prompt: "guest@edos:~$",
unknown: "Comando desconhecido: ",
helpHeader: "Comandos disponíveis:",
helpCommands: [
"help, ?, ls — esta lista",
"clear, cls — limpar ecrã",
"about — sobre o perfil",
"skills — competências detalhadas",
"exp — experiência",
"ipconfig — rede (browser + IP público)",
"socials — redes sociais",
"weather — previsão do tempo",
"quote — citação aleatória",
"joke — piada aleatória",
"fact — fato aleatório",
"cat — imagem de gato aleatória",
"dog — imagem de cão aleatória",
"echo — ecoar texto",
"date — data e hora atuais",
"tip-dev — dica aleatória de desenvolvimento",
"tip-design — dica aleatória de design",
"tip-photo — dica aleatória de fotografia",
"tip-random — dica aleatória de qualquer categoria",
"ping — testar conectividade HTTP",
"code — como calcular o código diário",
"whoami — identidade do shell",
"version — versão do kernel",
"chat | talk — abrir chat (ou /chat, /talk)",
"/ — lista filtrada ao escrever após /"
],
chatOpened: "Chat em tempo real ativo. Usa /chat ou /talk para voltar a abrir.",
weatherUsage: "Uso: /weather --location=Evora (ou /weather Evora)",
weatherFetch: "A obter previsão para",
weatherNoLocation: "Localização não encontrada.",
weatherError: "Erro a obter dados meteorológicos.",
weatherHeader: "DATA DIA MÍN/MÁX VENTO TEMPO",
weatherTemperature: "Temp (min/max)",
weatherWind: "Vento",
ipconfigHdr: "Configuração IP do browser (dados reais quando disponíveis):",
skillsInfo: "Full-Stack · Laravel · Vue · Python · FFmpeg · APIs · Automação de dados · DevOps · Cloud",
socialsInfo: "💼 LinkedIn: https://linkedin.com/in/eduardobessa\n🐙 GitHub: https://github.com/eduubessa\n📸 Instagram: https://instagram.com/eduubessa",
codeHintIntro: "O código diário é gerado com base na data local + valor secreto armazenado no VAULT_SECRET.",
codeHintMethod: "Algoritmo: SHA-256(data + segredo) → bytes → seleciona 8 caracteres de um alfabeto seguro (sem 0, O, I, L) .",
codeHintExtra: "Usa /vault para verificar o valor atual e /code para entender a fórmula.",
whoamiInfo: "guest (EdOS shell)",
versionInfo: "EdOS Kernel 6.2.0-v7+ (browser shell)",
aboutDetails: "Sou Eduardo Bessa, engenheiro full-stack e multimédia com foco em soluções escaláveis, streaming, e infra e automação de dados.",
quoteFetch: "Buscando citação aleatória...",
quoteError: "Erro ao buscar citação. Tenta novamente.",
jokeFetch: "Buscando piada aleatória...",
jokeError: "Erro ao buscar piada. Tenta novamente.",
factFetch: "Buscando fato aleatório...",
factError: "Erro ao buscar fato. Tenta novamente.",
catFetch: "Buscando imagem de gato aleatória...",
catError: "Erro ao buscar imagem de gato. Tenta novamente.",
dogFetch: "Buscando imagem de cão aleatória...",
dogError: "Erro ao buscar imagem de cão. Tenta novamente.",
echoUsage: "Uso: /echo <texto>",
dateInfo: "Data e hora atuais:",
tipDev: "💻 Dica de desenvolvimento:",
tipDesign: "🎨 Dica de design:",
tipPhoto: "📸 Dica de fotografia:",
tipRandom: "🎲 Dica aleatória:",
tipNoTips: "Nenhuma dica disponível.",
pingUsage: "Uso: /ping [url] (padrão: google.com)",
pingTesting: "Testando conectividade para",
pingSuccess: "Sucesso! Tempo de resposta:",
pingError: "Erro ao conectar."
},
projects: { loadingLabel: "A_Carregar_Projetos..." },
vault: {
title: "VAULT_LOCKED",
challenge: "Desafio diário",
sub: "Introduz o código de hoje (letras e números) para acederes aos contactos.",
hint: "O código é gerado de forma única por dia e renova à meia-noite, hora do teu dispositivo. Obtém o código do dia nas tuas redes ou pelo teu canal privado.",
placeholder: "CÓDIGO",
inputLabel: "Código do desafio diário",
unlockAria: "Validar código e desbloquear",
wrong: "Código inválido. Verifica o desafio de hoje."
},
chat: {
title: "EdOS · Chat",
fabLabel: "Abrir assistente do visitante",
placeholder: "Mensagem…",
inputLabel: "Mensagem no chat",
welcome: "Olá! Sou o assistente EdOS. Em que posso ajudar?",
replies: [
"Percebo. O Eduardo trabalha sobretudo com Laravel, Vue e Python.",
"Boa pergunta — podes usar o terminal com / para ver todos os comandos.",
"O portfolio inclui timeline de experiência e grelha de projetos.",
"Para contacto direto, resolve o desafio diário do vault na secção de contacto.",
"Estou aqui em modo demo com respostas rápidas. Obrigado por testares o EdOS!"
]
}
},
en: {
gate: { title: "ACCESS CONTROL", confirm: "Confirm Access" },
theme: { useLight: "Switch to light theme", useDark: "Switch to dark theme" },
nav: { home: "Home", about: "Profile", exp: "Timeline", projects: "Projects", terminal: "Terminal", contact: "Contact" },
hero: { subtitle: "Multimedia & Full-Stack Engineer" },
about: { text1: "Digital solutions architect focused on scalable ecosystems, data automation, and streaming.", text2: "Specialist in Laravel, Vue, Python, CI/CD and cloud infrastructure (AWS/Azure)." },
terminal: {
welcome: "EdOS Kernel 6.2.0-v7+\nReady for commands. Type / for commands or help.",
prompt: "guest@edos:~$",
unknown: "Unknown command: ",
helpHeader: "Available commands:",
helpCommands: [
"help, ?, ls — this list",
"clear, cls — clear screen",
"about — profile info",
"skills — detailed skills",
"exp — experience",
"ipconfig — network (browser + public IP)",
"socials — social links",
"weather — weather forecast",
"quote — random quote",
"joke — random joke",
"fact — random fact",
"cat — random cat image",
"dog — random dog image",
"echo — echo text",
"date — current date and time",
"tip-dev — random dev tip",
"tip-design — random design tip",
"tip-photo — random photo tip",
"tip-random — random tip from any category",
"ping — test HTTP connectivity",
"code — how daily code is computed",
"whoami — shell identity",
"version — kernel version",
"chat | talk — open chat (or /chat, /talk)",
"/ — filtered list when typing after /"
],
chatOpened: "Realtime chat open. Use /chat or /talk to open again.",
weatherUsage: "Usage: /weather --location=Evora (or /weather Evora)",
weatherFetch: "Fetching forecast for",
weatherNoLocation: "Location not found.",
weatherError: "Error fetching weather data.",
weatherHeader: "DATE DAY MIN/MAX WIND WEATHER",
weatherTemperature: "Temp (min/max)",
weatherWind: "Wind",
ipconfigHdr: "Browser network info (real data when available):",
skillsInfo: "Full-Stack · Laravel · Vue · Python · FFmpeg · APIs · Data automation · DevOps · Cloud",
socialsInfo: "💼 LinkedIn: https://linkedin.com/in/eduardobessa\n🐙 GitHub: https://github.com/eduubessa\n📸 Instagram: https://instagram.com/eduubessa",
codeHintIntro: "Daily code is generated from local date + secret value in VAULT_SECRET.",
codeHintMethod: "Algorithm: SHA-256(date + secret) → bytes → pick 8 chars from safe alphabet (no 0/O/I/L).",
codeHintExtra: "Use /vault to check today and /code for the formula.",
whoamiInfo: "guest (EdOS shell)",
versionInfo: "EdOS Kernel 6.2.0-v7+ (browser shell)",
aboutDetails: "I'm Eduardo Bessa, a full-stack and multimedia engineer focused on scalable solutions, streaming, and data automation/infra.",
quoteFetch: "Fetching random quote...",
quoteError: "Error fetching quote. Try again.",
jokeFetch: "Fetching random joke...",
jokeError: "Error fetching joke. Try again.",
factFetch: "Fetching random fact...",
factError: "Error fetching fact. Try again.",
catFetch: "Fetching random cat image...",
catError: "Error fetching cat image. Try again.",
dogFetch: "Fetching random dog image...",
dogError: "Error fetching dog image. Try again.",
echoUsage: "Usage: /echo <text>",
dateInfo: "Current date and time:",
tipDev: "💻 Dev tip:",
tipDesign: "🎨 Design tip:",
tipPhoto: "📸 Photo tip:",
tipRandom: "🎲 Random tip:",
tipNoTips: "No tips available.",
pingUsage: "Usage: /ping [url] (default: google.com)",
pingTesting: "Testing connectivity to",
pingSuccess: "Success! Response time:",
pingError: "Connection error."
},
projects: { loadingLabel: "Loading_Projects..." },
vault: {
title: "VAULT_LOCKED",
challenge: "Daily challenge",
sub: "Enter today's code (letters and numbers) to access contact details.",
hint: "The code is unique per day and resets at midnight on your device. Get today's code from my social posts or private channel.",
placeholder: "CODE",
inputLabel: "Daily challenge code",
unlockAria: "Validate code and unlock",
wrong: "Invalid code. Check today's challenge."
},
chat: {
title: "EdOS · Chat",
fabLabel: "Open visitor assistant",
placeholder: "Message…",
inputLabel: "Chat message",
welcome: "Hi! I'm the EdOS assistant. How can I help?",
replies: [
"Got it. Eduardo mainly works with Laravel, Vue, and Python.",
"Good question — type / in the terminal to list all commands.",
"The portfolio includes an experience timeline and a project grid.",
"For direct contact, complete the daily vault challenge in the contact section.",
"I'm running in demo mode with quick replies. Thanks for trying EdOS!"
]
}
}
}
};
/**
* Personaliza este segredo: o código diário = f(data local + VAULT_SECRET).
* Quem tiver o ficheiro pode recalcular; usa isto como “cadeado social”, não segurança forte.
*/
const VAULT_SECRET = 'EdOS-EB-2026-altera-isto';
function getLocalDateKey() {
const d = new Date();
return d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0');
}
function vaultHashFallbackBytes(str, len) {
const out = new Uint8Array(len);
let seed = 2166136261;
for (let i = 0; i < str.length; i++) {
seed ^= str.charCodeAt(i);
seed = Math.imul(seed, 16777619) >>> 0;
}
for (let i = 0; i < len; i++) {
seed = (Math.imul(seed, 1103515245) + 12345) >>> 0;
out[i] = seed & 255;
}
return out;
}
async function getDailyVaultCode() {
const dateKey = getLocalDateKey();
const payload = 'EdOS-vault|' + dateKey + '|' + VAULT_SECRET;
let bytes;
if (window.crypto?.subtle) {
const buf = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(payload));
bytes = new Uint8Array(buf);
} else {
bytes = vaultHashFallbackBytes(payload, 32);
}
const alphabet = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789';
let code = '';
for (let i = 0; i < 8; i++) code += alphabet[bytes[i] % alphabet.length];
return code;
}
window.getDailyVaultCode = getDailyVaultCode;
const CHAT_FAQ = [
{ keys: ['olá', 'ola', 'hi', 'hello', 'hey', 'bom dia', 'boa tarde', 'boa noite', 'good morning'], replyPt: 'Olá! Bem-vindo ao portfolio do Eduardo. Pergunta sobre projetos, skills ou como contactar.', replyEn: "Hi! Welcome to Eduardo's portfolio. Ask about projects, skills, or how to get in touch." },
{ keys: ['portfolio', 'site', 'website', 'página', 'pagina'], replyPt: 'Este site é o EdOS: timeline, projetos filtráveis, terminal e vault de contacto.', replyEn: 'This is EdOS: timeline, filterable projects, a terminal, and a contact vault.' },
{ keys: ['projeto', 'projetos', 'project', 'projects', 'trabalho', 'work'], replyPt: 'Na secção Projetos encontras dev, design e fotografia. Usa os filtros ALL / DEVELOPMENT / DESIGN / PHOTOGRAPHY.', replyEn: 'The Projects section lists dev, design, and photography. Use ALL / DEVELOPMENT / DESIGN / PHOTOGRAPHY filters.' },
{ keys: ['skill', 'skills', 'stack', 'tecnologia', 'laravel', 'vue', 'python'], replyPt: 'Stack principal: Laravel, Vue, Python, APIs, FFmpeg e automação de dados.', replyEn: 'Main stack: Laravel, Vue, Python, APIs, FFmpeg, and data automation.' },
{ keys: ['contacto', 'contato', 'email', 'telefone', 'phone', 'contratar', 'hire', 'job'], replyPt: 'Contacto está na secção final: usa o código diário do vault (desafio que muda à meia-noite).', replyEn: 'Contact is at the bottom: use the daily vault code (it resets at midnight local time).' },
{ keys: ['obrigado', 'thanks', 'thank you', 'valeu'], replyPt: 'Disponha! Se precisares de mais alguma coisa, escreve aqui.', replyEn: "You're welcome! Message again anytime." },
{ keys: ['terminal', 'comando', 'command', 'slash'], replyPt: 'No terminal podes usar help ou / para ver comandos; /chat abre este assistente.', replyEn: 'In the terminal, use help or / for commands; /chat opens this assistant.' },
{ keys: ['quem', 'who', 'eduardo', 'bessa', 'about'], replyPt: 'O Eduardo é engenheiro full-stack e multimédia, focado em soluções escaláveis.', replyEn: 'Eduardo is a full-stack and multimedia engineer focused on scalable solutions.' }
];
const SLASH_COMMANDS = [
{ cmd: '/help', descPt: 'Ajuda', descEn: 'Help' },
{ cmd: '/chat', descPt: 'Abrir chat em tempo real', descEn: 'Open realtime chat' },
{ cmd: '/talk', descPt: 'Abrir chat (alias)', descEn: 'Open chat (alias)' },
{ cmd: '/clear', descPt: 'Limpar terminal', descEn: 'Clear terminal' },
{ cmd: '/ipconfig', descPt: 'Info de rede (browser)', descEn: 'Network info (browser)' },
{ cmd: '/about', descPt: 'Sobre o sistema', descEn: 'About system' },
{ cmd: '/skills', descPt: 'Competências', descEn: 'Skills' },
{ cmd: '/socials', descPt: 'Redes sociais', descEn: 'Social links' },
{ cmd: '/weather', descPt: 'Previsão do tempo', descEn: 'Weather forecast' },
{ cmd: '/quote', descPt: 'Citação aleatória', descEn: 'Random quote' },
{ cmd: '/joke', descPt: 'Piada aleatória', descEn: 'Random joke' },
{ cmd: '/fact', descPt: 'Fato aleatório', descEn: 'Random fact' },
{ cmd: '/cat', descPt: 'Imagem aleatória de gato', descEn: 'Random cat image' },
{ cmd: '/dog', descPt: 'Imagem aleatória de cão', descEn: 'Random dog image' },
{ cmd: '/echo', descPt: 'Ecoar texto', descEn: 'Echo text' },
{ cmd: '/date', descPt: 'Data e hora atuais', descEn: 'Current date and time' },
{ cmd: '/tip-dev', descPt: 'Dica aleatória de desenvolvimento', descEn: 'Random dev tip' },
{ cmd: '/tip-design', descPt: 'Dica aleatória de design', descEn: 'Random design tip' },
{ cmd: '/tip-photo', descPt: 'Dica aleatória de fotografia', descEn: 'Random photo tip' },
{ cmd: '/tip-random', descPt: 'Dica aleatória de qualquer categoria', descEn: 'Random tip from any category' },
{ cmd: '/ping', descPt: 'Testar conectividade HTTP', descEn: 'Test HTTP connectivity' },
{ cmd: '/exp', descPt: 'Experiência', descEn: 'Experience' }
];
class EdOSEngine {
constructor() {
this.lang = localStorage.getItem('edos_lang') || 'en';
this.currentFilter = 'all';
this.currentPage = 1;
this.projectsPerPage = 6;
this.termHistory = [];
this.historyIndex = -1;
this.suggestIndex = 0;
this.chatReplyIndex = 0;
this.chatMessages = [];
this.theme = localStorage.getItem('edos_theme') || 'dark';
this.init();
}
t(path) {
const parts = path.split('.');
let o = DATA.translations[this.lang];
for (const p of parts) o = o?.[p];
return o ?? '';
}
init() {
this.setupLoader();
this.bindEvents();
this.installDevToolsGuards();
this.applyTheme();
this.updateUI();
lucide.createIcons();
}
applyTheme() {
const dark = this.theme === 'dark';
document.body.classList.toggle('dark-mode', dark);
document.body.classList.toggle('light-mode', !dark);
document.body.dataset.theme = dark ? 'dark' : 'light';
document.querySelector('meta[name="theme-color"]')?.setAttribute('content', dark ? '#0d1117' : '#f0f4fa');
const btn = document.getElementById('theme-toggle');
if (btn) {
btn.setAttribute('aria-pressed', dark ? 'true' : 'false');
btn.setAttribute('aria-label', dark ? this.t('theme.useLight') : this.t('theme.useDark'));
}
document.querySelector('.theme-icon-moon')?.classList.toggle('hidden', dark);
document.querySelector('.theme-icon-sun')?.classList.toggle('hidden', !dark);
lucide.createIcons();
}
setupLoader() {
setTimeout(() => {
const loader = document.getElementById('loader');
loader.style.opacity = '0';
setTimeout(() => {
loader.style.display = 'none';
this.checkGate();
}, 600);
}, 1500);
}
checkGate() {
if (localStorage.getItem('gate_passed')) this.unlockSite();
else document.getElementById('age-gate').classList.remove('hidden');
}
unlockSite() {
document.getElementById('age-gate').style.display = 'none';
document.getElementById('main-content').classList.remove('invisible');
document.body.style.overflowY = 'auto';
this.initReveal();
this.printTerminal(DATA.translations[this.lang].terminal.welcome, 'text-green-500');
const fab = document.getElementById('chat-fab');
if (fab) fab.classList.remove('hidden');
lucide.createIcons();
const ti = document.getElementById('term-input');
if (ti) ti.focus();
this.refreshVaultUi();
}
refreshVaultUi() {
const dateKey = getLocalDateKey();
const locked = document.getElementById('vault-locked');
const unlocked = document.getElementById('vault-unlocked');
const err = document.getElementById('vault-error');
const dateEl = document.getElementById('vault-date');
if (dateEl) {
const d = new Date();
const loc = this.lang === 'pt' ? 'pt-PT' : 'en-GB';
dateEl.textContent = d.toLocaleDateString(loc, { weekday: 'long', day: 'numeric', month: 'long', year: 'numeric' });
}
const sessKey = 'vault_ok_' + dateKey;
if (localStorage.getItem(sessKey) === '1') {
locked?.classList.add('hidden');
unlocked?.classList.remove('hidden');
err?.classList.add('hidden');
} else {
locked?.classList.remove('hidden');
unlocked?.classList.add('hidden');
}
lucide.createIcons();
}
async tryUnlockVault() {
const input = document.getElementById('input-pass');
const err = document.getElementById('vault-error');
const val = (input?.value || '').trim().toUpperCase().replace(/[^A-Z0-9]/g, '');
const code = await getDailyVaultCode();
if (val === code) {
localStorage.setItem('vault_ok_' + getLocalDateKey(), '1');
document.getElementById('vault-locked').classList.add('hidden');
document.getElementById('vault-unlocked').classList.remove('hidden');
err?.classList.add('hidden');
if (input) input.value = '';
lucide.createIcons();
} else {
if (err) {
err.textContent = this.t('vault.wrong');
err.classList.remove('hidden');
}
input?.classList.add('border-red-500');