Spaces:
Running
Running
Update index.html
Browse files12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867<!DOCTYPE html><html lang="it"><head><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /><title>Matteo Bergamelli | Innovation Lab Candidate</title><!-- Tailwind CSS --><script src="https://cdn.tailwindcss.com"></script><!-- Fonts (Manteniamo i tuoi font originali) --><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=Playfair+Display:wght@400;700&family=Fira+Code:wght@300;400;500;700&display=swap" rel="stylesheet"><!-- Three.js --><script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script><!-- A-Frame & MindAR --><script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script><script src="https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@1.1.5/dist/mindar-image.prod.js"></script><script src="https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@1.1.5/dist/mindar-image-aframe.prod.js"></script><style>/* --- STILE ORIGINALE --- */:root {--neon-green: #00ff41;--dark-bg: #050505;--glass: rgba(10, 10, 10, 0.8);}body {margin: 0;background-color: var(--dark-bg);color: #f5f5f5;font-family: 'Fira Code', monospace;overflow-x: hidden;-webkit-font-smoothing: antialiased;cursor: default;}/* Typography */.font-serif { font-family: 'Playfair Display', serif; }.font-mono { font-family: 'Fira Code', monospace; }/* Selection Style (Nerd touch) */::selection {background: var(--neon-green);color: #000;}/* Scrollbar */::-webkit-scrollbar { width: 8px; }::-webkit-scrollbar-track { background: #0a0a0a; }::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }::-webkit-scrollbar-thumb:hover { background: var(--neon-green); }/* --- FX: SCANLINES & CRT --- */.scanlines {background: linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,0) 50%,rgba(0,0,0,0.2) 50%,rgba(0,0,0,0.2));background-size: 100% 4px;position: fixed; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; z-index: 50;}/* --- FX: GLITCH TEXT --- */.glitch-wrapper { position: relative; display: inline-block; }.glitch { position: relative; color: inherit; }.glitch::before, .glitch::after {content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--dark-bg);}.glitch::before {left: 2px; text-shadow: -1px 0 var(--neon-green); clip: rect(24px, 550px, 90px, 0);animation: glitch-anim 3s infinite linear alternate-reverse;}.glitch::after {left: -2px; text-shadow: -1px 0 #ff00ff; clip: rect(85px, 550px, 140px, 0);animation: glitch-anim 2.5s infinite linear alternate-reverse;}@keyframes glitch-anim {0% { clip: rect(10px, 9999px, 30px, 0); }20% { clip: rect(80px, 9999px, 100px, 0); }40% { clip: rect(40px, 9999px, 60px, 0); }60% { clip: rect(20px, 9999px, 100px, 0); }80% { clip: rect(90px, 9999px, 5px, 0); }100% { clip: rect(10px, 9999px, 60px, 0); }}/* --- FX: RIPPLE CLICK --- */.ripple {position: absolute;border-radius: 50%;border: 1px solid var(--neon-green);transform: scale(0);animation: ripple-anim 0.6s linear;pointer-events: none;z-index: 999;}@keyframes ripple-anim {to { transform: scale(4); opacity: 0; }}/* --- FX: MATRIX RAIN (Easter Egg) --- */#matrix-canvas {position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 40;opacity: 0; pointer-events: none; transition: opacity 1s;}.matrix-active #matrix-canvas { opacity: 0.3; }/* --- ANIMATIONS --- */.reveal-on-scroll {opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out;}.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }.blink { animation: blink-anim 1s step-end infinite; }@keyframes blink-anim { 50% { opacity: 0; } }/* AR UI */#ar-container { display: none; }.mindar-ui-overlay { z-index: 1000 !important; }</style></head><body><!-- EASTER EGG: MATRIX RAIN CANVAS --><canvas id="matrix-canvas"></canvas><!-- 1. TERMINAL LOADER --><div id="terminal-loader" class="fixed inset-0 z-[100] flex items-center justify-center bg-black transition-opacity duration-500"><div class="w-full max-w-md p-6 font-mono text-sm md:text-base"><div id="terminal-lines"></div><div class="mt-2"><span class="text-[#00ff41]">></span> <span class="inline-block w-3 h-5 bg-[#00ff41] align-middle blink"></span></div></div></div><!-- 2. 3D BACKGROUND (Digital Fabric) --><div id="canvas-container" class="fixed inset-0 z-0 opacity-0 transition-opacity duration-1000"></div><!-- 3. SCANLINES --><div class="scanlines"></div><!-- STATUS BAR (Fixed Top) --><div id="status-bar" class="fixed top-0 w-full p-4 z-40 flex justify-between items-center pointer-events-none opacity-0 transition-opacity duration-1000 mix-blend-screen"><div class="text-[10px] text-[#00ff41] font-mono">SYS.STATUS: ONLINE</div><div class="text-[10px] text-[#00ff41] font-mono">JOB_ID: <span id="job-id-scramble">XXXXXXXXX</span></div></div><!-- 4. MAIN CONTENT --><div id="main-content" class="relative z-10 w-full h-full opacity-0 transition-opacity duration-1000"><!-- HERO SECTION --><section class="min-h-screen flex flex-col items-center justify-center px-6 py-20 relative"><div class="max-w-4xl mx-auto text-center z-10"><div class="mb-8 hover:scale-105 transition-transform duration-500 cursor-default"><div class="glitch-wrapper font-serif text-5xl md:text-7xl font-bold mb-2 text-white"><span class="glitch" data-text="Physical Touch,">Physical Touch,</span></div><br><div class="glitch-wrapper font-serif text-5xl md:text-7xl font-bold text-[#00ff41]"><span class="glitch" data-text="Digital Mind.">Digital Mind.</span></div></div><p class="text-base md:text-xl leading-relaxed mb-12 max-w-2xl mx-auto font-mono opacity-80 reveal-on-scroll border-l-2 border-[#00ff41] pl-4 text-left md:text-center md:border-l-0 md:pl-0">Ciao Innovation Lab. Hai appena trasformato un pezzo di stoffa in un flusso dati.Questo è il mio concetto di <span class="text-[#00ff41] font-bold relative group cursor-help">Omnichannel<span class="absolute bottom-full left-1/2 -translate-x-1/2 mb-2 w-48 bg-black border border-[#00ff41] text-[#00ff41] text-[10px] p-2 opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none">(Spoiler: È la mia specialità)</span></span>.</p><div class="flex flex-col items-center reveal-on-scroll group" style="transition-delay: 0.2s;"><!-- Initials with hidden click interaction --><div id="profile-pic" class="w-24 h-24 md:w-32 md:h-32 rounded-full border-2 border-[#00ff41] flex items-center justify-center bg-black/50 backdrop-blur-sm mb-4 shadow-[0_0_20px_rgba(0,255,65,0.3)] cursor-pointer transition-all hover:shadow-[0_0_40px_rgba(0,255,65,0.6)] active:scale-95"><span class="text-3xl font-bold text-[#00ff41] group-hover:animate-pulse">MB</span></div><h2 class="font-serif text-2xl md:text-3xl font-bold mb-1">Matteo Bergamelli</h2><p class="text-[#00ff41] text-xs md:text-sm font-mono tracking-wider mb-2">INNOVATION / AI DEVELOPER</p><span class="px-3 py-1 border border-[#00ff41]/50 rounded-full text-[10px] text-[#00ff41] bg-[#00ff41]/10">📍 Km0 - Padenghe s/G</span></div></div><!-- Scroll Indicator --><div class="absolute bottom-10 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 opacity-50 animate-bounce"><span class="text-[10px] font-mono tracking-[0.2em] text-[#00ff41]">SCROLL TO DECODE</span><div class="w-[1px] h-12 bg-gradient-to-b from-[#00ff41] to-transparent"></div></div></section><!-- FABRIC DECODER SECTION --><section class="px-6 py-24 relative z-10"><div class="max-w-5xl mx-auto"><div class="mb-16 text-center reveal-on-scroll"><h2 class="font-serif text-4xl md:text-5xl font-bold mb-4">The Fabric <span class="text-[#00ff41]">Decoder</span></h2><p class="font-mono text-sm opacity-60">// Tre tessuti. Tre layer tecnologici. Una sola persona.</p></div><div class="grid grid-cols-1 md:grid-cols-3 gap-8"><!-- CARD 1 --><div class="fabric-card relative p-8 rounded-xl overflow-hidden group transition-all duration-300 backdrop-blur-md bg-[#0f0f0f]/80 border border-[#333] hover:border-[#00ff41]/50 hover:-translate-y-2 reveal-on-scroll"><div class="absolute inset-0 bg-gradient-to-r from-transparent via-[#00ff41]/5 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000 ease-in-out pointer-events-none"></div><div class="mb-6 pt-1"><div class="p-3 bg-black/50 rounded-lg border border-[#333] group-hover:border-[#00ff41] transition-colors w-min"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#00ff41" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line></svg></div></div><h3 class="font-serif text-2xl font-bold mb-2 text-white">LEGACY STRUCTURE</h3><p class="text-xs text-[#00ff41] mb-4 font-mono tracking-widest">JEANS / RAW</p><p class="text-sm italic opacity-80 mb-6 font-serif border-l-2 border-[#333] pl-4 group-hover:border-[#00ff41] transition-colors">"Solido. Resistente. Il ferro del Retail."</p><ul class="space-y-3 mb-6 text-sm font-mono opacity-90"><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span><span class="text-[#00ff41] font-bold">13</span> anni di esperienza</span></li><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span>ERP <span class="text-[#00ff41] font-bold">Zucchetti</span> & <span class="text-[#00ff41] font-bold">SAP</span></span></li><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span>Hardware & PLC</span></li><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span><span class="text-[#00ff41] font-bold">SQL</span> Server Expert</span></li></ul></div><!-- CARD 2 --><div class="fabric-card relative p-8 rounded-xl overflow-hidden group transition-all duration-300 backdrop-blur-md bg-[#0f0f0f]/80 border border-[#333] hover:border-[#00ff41]/50 hover:-translate-y-2 reveal-on-scroll" style="transition-delay: 0.2s;"><div class="absolute inset-0 bg-gradient-to-r from-transparent via-[#00ff41]/5 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000 ease-in-out pointer-events-none"></div><div class="mb-6 pt-1"><div class="p-3 bg-black/50 rounded-lg border border-[#333] group-hover:border-[#00ff41] transition-colors w-min"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#00ff41" 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.44 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 1.98-3A2.5 2.5 0 0 1 9.5 2Z"></path><path d="M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 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-1.98-3A2.5 2.5 0 0 0 14.5 2Z"></path></svg></div></div><h3 class="font-serif text-2xl font-bold mb-2 text-white">GENERATIVE MESH</h3><p class="text-xs text-[#00ff41] mb-4 font-mono tracking-widest">NYLON / TECH</p><p class="text-sm italic opacity-80 mb-6 font-serif border-l-2 border-[#333] pl-4 group-hover:border-[#00ff41] transition-colors">"Flessibile. Sintetico. Il futuro."</p><ul class="space-y-3 mb-6 text-sm font-mono opacity-90"><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span><span class="text-[#00ff41] font-bold">Python</span> per AI & Auto</span></li><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span>Agents: <span class="text-[#00ff41] font-bold">OpenAI</span>, <span class="text-[#00ff41] font-bold">Gemini</span></span></li><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span><span class="text-[#00ff41] font-bold">RAG</span> su documenti</span></li><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span><span class="text-[#00ff41] font-bold">PDF-to-JSON</span></span></li></ul></div><!-- CARD 3 (Highlighted) --><div class="fabric-card relative p-8 rounded-xl overflow-hidden group transition-all duration-300 backdrop-blur-md bg-gradient-to-br from-[#1a1a1a]/90 to-[#0a0a0a]/90 border border-[#00ff41] hover:-translate-y-2 reveal-on-scroll" style="transition-delay: 0.4s;"><div class="absolute inset-0 bg-gradient-to-r from-transparent via-[#00ff41]/10 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000 ease-in-out pointer-events-none"></div><div class="mb-6 pt-1"><div class="p-3 bg-black/50 rounded-lg border border-[#00ff41] transition-colors w-min"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#00ff41" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line></svg></div></div><h3 class="font-serif text-2xl font-bold mb-2 text-[#00ff41]">THE OMNICHANNEL</h3><p class="text-xs text-[#00ff41] mb-4 font-mono tracking-widest">VELLUTO / NFC</p><p class="text-sm italic opacity-80 mb-6 font-serif border-l-2 border-[#333] pl-4 group-hover:border-[#00ff41] transition-colors">"L'integrazione perfetta."</p><ul class="space-y-3 mb-6 text-sm font-mono opacity-90"><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span>Middleware <span class="text-[#00ff41] font-bold">SAP-AI</span></span></li><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span>Graphic & <span class="text-[#00ff41] font-bold">Meta</span> AR</span></li><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span><span class="text-[#00ff41] font-bold">Magazziniere</span> to <span class="text-[#00ff41] font-bold">CTO</span></span></li><li class="flex gap-2"><span class="text-[#00ff41]">→</span> <span><span class="text-[#00ff41] font-bold">Physical</span> & <span class="text-[#00ff41] font-bold">Digital</span></span></li></ul><p class="text-xs mt-4 italic text-[#00ff41] font-bold">"Questo NFC che stai toccando? È solo l'inizio."</p></div></div></div></section><!-- UNLOCK AR LAYER --><section class="px-6 py-24 relative z-20 overflow-hidden"><div class="absolute inset-0 bg-gradient-to-b from-black via-[#0d0d0d] to-black opacity-90"></div><div class="absolute inset-0 opacity-20" style="background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22 opacity=%221%22/%3E%3C/svg%3E');"></div><div class="max-w-3xl mx-auto relative text-center reveal-on-scroll"><div class="mb-8"><h2 class="font-serif text-3xl md:text-4xl font-bold mb-4 text-white">The Hidden <span class="text-[#00ff41] animate-pulse">Layer</span></h2><p class="font-mono text-xs md:text-sm opacity-70 max-w-lg mx-auto">C'è un quarto livello di realtà nascosto in questo tessuto.Sblocca il protocollo AR per visualizzare i dati nascosti.</p></div><div class="py-8 flex justify-center"><!-- Slider Component --><div id="slider-container" class="relative w-full max-w-xs h-14 bg-black border border-[#333] rounded-full overflow-hidden backdrop-blur-sm shadow-[0_0_15px_rgba(0,0,0,0.5)] select-none touch-none"><div class="absolute -top-8 left-0 right-0 text-center"><div class="text-[10px] text-[#00ff41] font-mono tracking-widest uppercase animate-pulse">Secure Connection Available</div></div><!-- Background Fill --><div id="slider-fill" class="absolute inset-0 bg-[#00ff41] opacity-10 transition-opacity" style="width: 0%"></div><div class="absolute inset-0 opacity-20 bg-[linear-gradient(90deg,transparent_0%,rgba(0,255,65,0.2)_50%,transparent_100%)] bg-[length:200%_100%] animate-[shimmer_2s_infinite] pointer-events-none"></div><!-- Text --><div id="slider-text" class="absolute inset-0 flex items-center justify-center pointer-events-none transition-opacity duration-300"><span class="font-mono text-xs font-bold text-white tracking-[0.2em] uppercase flex items-center gap-2">Slide to Decode <span class="animate-bounce">→</span></span></div><!-- Handle --><div id="slider-handle" class="absolute top-1 left-1 bottom-1 w-12 bg-[#0d0d0d] rounded-full border border-[#00ff41] flex items-center justify-center cursor-grab z-20 shadow-[0_0_10px_rgba(0,255,65,0.3)] active:cursor-grabbing hover:scale-105 transition-transform"><svg id="icon-arrow" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="animate-pulse"><polyline points="9 18 15 12 9 6"></polyline></svg><svg id="icon-lock" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#00ff41" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="hidden"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg></div></div></div><p class="mt-8 text-[10px] text-[#00ff41]/60 font-mono">// REQUIRES CAMERA PERMISSION</p></div></section><!-- MISSING LINK SECTION & CODE BLOCK --><section class="px-6 py-24 relative z-10 bg-black/60 backdrop-blur-md border-y border-[#333]"><div class="max-w-3xl mx-auto reveal-on-scroll"><h2 class="font-serif text-3xl md:text-4xl font-bold text-center mb-12">The <span class="text-[#00ff41]">"Missing Link"</span></h2><!-- Code Block Component --><div class="relative rounded-lg overflow-hidden bg-[#0d0d0d] border border-[#00ff41] shadow-[0_0_15px_rgba(0,255,65,0.15)] max-w-xl mx-auto transition-transform hover:scale-[1.02] duration-500 group"><div class="flex items-center justify-between px-4 py-2 bg-[#1a1a1a] border-b border-[#333]"><div class="flex gap-2"><div class="w-3 h-3 rounded-full bg-red-500/50"></div><div class="w-3 h-3 rounded-full bg-yellow-500/50"></div><div class="w-3 h-3 rounded-full bg-green-500/50"></div></div><span class="text-[10px] text-[#00ff41] font-mono opacity-70">// middleware.js</span></div><div class="p-6 font-mono text-xs md:text-sm leading-relaxed overflow-x-auto text-left"><div class="text-gray-400"><span class="text-[#c678dd]">const</span> <span class="text-[#61afef]">checkCompatibility</span> = (<span class="text-[#d19a66]">system</span>) ={'>'} {'{'}</div><div class="pl-4"><span class="text-[#c678dd]">if</span> (<span class="text-[#e06c75]">Legacy_Systems</span> &&<span class="text-[#e06c75]">Future_AI</span>) {'{'}</div><div class="pl-8 text-[#98c379]">return <span class="text-[#e06c75]">"Matteo Bergamelli"</span>;</div><div class="pl-4">{'}'} <span class="text-[#c678dd]">else</span> {'{'}</div><div class="pl-8 text-[#98c379]">return <span class="text-red-400">"Gap Tecnologico"</span>;</div><div class="pl-4">{'}'}</div><div>{'}'};</div></div><!-- Blink Cursor --><div class="absolute bottom-6 right-6 w-2 h-4 bg-[#00ff41] animate-pulse"></div><!-- Easter Egg Copy --><button onclick="copyCodeEasterEgg()" class="absolute top-14 right-4 text-[10px] text-[#00ff41] bg-black/80 px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity border border-[#00ff41]">COPY</button></div><p class="text-center text-sm md:text-base leading-relaxed opacity-90 mt-8 font-mono">La vostra Job Description <span class="text-[#00ff41] font-bold">(ID 247442889)</span> cerca qualcuno che unisca questi mondi.<br /><span class="font-serif text-xl md:text-2xl font-bold mt-6 block text-white">Io sono quel connettore.</span></p><div class="mt-12 p-6 bg-[#0a0a0a]/80 rounded-lg border border-[#333] backdrop-blur-sm text-center"><p class="text-xs font-mono opacity-60 mb-4 text-[#00ff41]">// CURRENT STACK</p><div class="flex flex-wrap justify-center gap-2"><span class="px-3 py-1 bg-[#151515] border border-[#00ff41]/40 rounded text-xs font-mono text-[#00ff41] hover:bg-[#00ff41] hover:text-black transition-colors cursor-default">Python</span><span class="px-3 py-1 bg-[#151515] border border-[#00ff41]/40 rounded text-xs font-mono text-[#00ff41] hover:bg-[#00ff41] hover:text-black transition-colors cursor-default">SAP B1</span><span class="px-3 py-1 bg-[#151515] border border-[#00ff41]/40 rounded text-xs font-mono text-[#00ff41] hover:bg-[#00ff41] hover:text-black transition-colors cursor-default">SQL Server</span><span class="px-3 py-1 bg-[#151515] border border-[#00ff41]/40 rounded text-xs font-mono text-[#00ff41] hover:bg-[#00ff41] hover:text-black transition-colors cursor-default">LLM Agents</span><span class="px-3 py-1 bg-[#151515] border border-[#00ff41]/40 rounded text-xs font-mono text-[#00ff41] hover:bg-[#00ff41] hover:text-black transition-colors cursor-default">Spark AR</span><span class="px-3 py-1 bg-[#151515] border border-[#00ff41]/40 rounded text-xs font-mono text-[#00ff41] hover:bg-[#00ff41] hover:text-black transition-colors cursor-default">React</span></div></div></div></section><!-- FOOTER --><section class="px-6 py-20 bg-black relative z-10"><div class="max-w-2xl mx-auto text-center reveal-on-scroll"><h2 class="font-serif text-3xl md:text-4xl font-bold mb-12">Iniziamo a <span class="text-[#00ff41]">connettere</span>?</h2><div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-16"><a href="./CV.pdf" class="group flex items-center justify-center gap-2 px-6 py-4 bg-[#00ff41] text-black font-mono text-sm font-bold rounded hover:bg-transparent hover:text-[#00ff41] border border-[#00ff41] transition-all"><span class="group-hover:translate-x-1 transition-transform">📄 SCARICA CV TECNICO</span></a><a href="tel:+393428194066" class="flex items-center justify-center gap-2 px-6 py-4 bg-transparent text-[#f5f5f5] font-mono text-sm border border-[#333] rounded hover:border-[#00ff41] hover:text-[#00ff41] transition-all"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>Chiama Matteo</a><a href="mailto:matteo.bergamelli1989@gmail.com" class="flex items-center justify-center gap-2 px-6 py-4 bg-transparent text-[#f5f5f5] font-mono text-sm border border-[#333] rounded hover:border-[#00ff41] hover:text-[#00ff41] transition-all"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2"></rect><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path></svg></a></div><div class="pt-8 border-t border-[#333] text-left md:text-center"><p class="font-mono text-[10px] md:text-xs opacity-40 leading-relaxed uppercase tracking-widest">━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br/>ONIVERSE PHYGITAL EXPERIENCE<br/>━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br/><br/>Printed at: Padenghe s/G<br/>Cost: 0€<br/>Value: <span class="text-[#00ff41]">Infinite</span><br/><br/>Promotica S.p.A | Freelance AI Dev<br/>Made with ❤️ and <span class="text-[#00ff41]">Code</span><br/><br/>━━━━━━━━━━━━━━━━━━━━━━━━━━━━</p></div></div></section></div><script>/* ==========================================0. EASTER EGGS & NERD STUFF========================================== */// A) Console ASCII Art (First place devs look)console.log(`%c███╗ ███╗██████╗████╗ ████║██╔══██╗██╔████╔██║██████╔╝██║╚██╔╝██║██╔══██╗██║ ╚═╝ ██║██████╔╝╚═╝ ╚═╝╚═════╝%c> Ciao Dev di Oniverse.> Se stai leggendo questo, stiamo parlando la stessa lingua.> Stack: React, Python, AI, AR.> Status: Ready to deploy.`, "color: #00ff41; font-weight: bold; font-family: monospace;", "color: #f5f5f5; font-family: monospace;");// B) Konami Code (The classic) -> Triggers Matrix Rainlet konamiCode = ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'b', 'a'];let konamiIndex = 0;document.addEventListener('keydown', (e) => {if (e.key.toLowerCase() === konamiCode[konamiIndex].toLowerCase() || e.key === konamiCode[konamiIndex]) {konamiIndex++;if (konamiIndex === konamiCode.length) {activateMatrixMode();konamiIndex = 0;}} else {konamiIndex = 0;}});function activateMatrixMode() {alert("🔓 GOD MODE ACTIVATED: You found the secret!");startMatrixRain();}// C) Matrix Rain Canvas Logicfunction startMatrixRain() {const canvas = document.getElementById('matrix-canvas');const ctx = canvas.getContext('2d');canvas.width = window.innerWidth;canvas.height = window.innerHeight;canvas.classList.add('matrix-active');const chars = "01010101MATTEOBERGAMELLIONIVERSEINNOVATIONLAB";const fontSize = 14;const columns = canvas.width / fontSize;const drops = [];for(let x = 0; x < columns; x++) drops[x] = 1;function draw() {ctx.fillStyle = "rgba(0, 0, 0, 0.05)";ctx.fillRect(0, 0, canvas.width, canvas.height);ctx.fillStyle = "#00ff41";ctx.font = fontSize + "px monospace";for(let i = 0; i < drops.length; i++) {const text = chars.charAt(Math.floor(Math.random() * chars.length));ctx.fillText(text, i * fontSize, drops[i] * fontSize);if(drops[i] * fontSize > canvas.height && Math.random() > 0.975) drops[i] = 0;drops[i]++;}requestAnimationFrame(draw);}draw();}// D) Ripple Effect on Click (Physical Touch visual feedback)document.addEventListener('click', (e) => {// Don't trigger on interactive elements to avoid confusionif(e.target.closest('button') || e.target.closest('a') || e.target.closest('#slider-container')) return;const ripple = document.createElement('div');ripple.className = 'ripple';ripple.style.left = e.clientX + 'px';ripple.style.top = e.clientY + 'px';// Size based on viewportconst size = Math.max(window.innerWidth, window.innerHeight) / 10;ripple.style.width = ripple.style.height = size + 'px';ripple.style.marginTop = ripple.style.marginLeft = -(size/2) + 'px';document.body.appendChild(ripple);setTimeout(() => ripple.remove(), 600);});// E) Copy Code Easter Eggwindow.copyCodeEasterEgg = function() {navigator.clipboard.writeText("function bridgeLegacyAndAI() { return 'Matteo Bergamelli'; }");alert("📋 Copied to clipboard: A secret function just for you.");}/* ==========================================1. TERMINAL LOADER LOGIC========================================== */const terminalLines = ["> CONNECTING TO INNOVATION LAB...","> ANALYZING STACK: PYTHON, SAP, AI...","> DETECTING PHYSICAL & DIGITAL ASSETS...","> SYNCING NEURAL MESH...","> ACCESS GRANTED."];const terminalEl = document.getElementById('terminal-lines');let lineIndex = 0;function typeWriter() {if (lineIndex < terminalLines.length) {const div = document.createElement('div');div.className = "mb-2 text-[#00ff41] drop-shadow-[0_0_5px_rgba(0,255,65,0.8)] opacity-0 transition-opacity duration-300";div.textContent = terminalLines[lineIndex];terminalEl.appendChild(div);void div.offsetWidth; // Reflowdiv.style.opacity = "1";lineIndex++;setTimeout(typeWriter, 600);} else {// FinishedsetTimeout(() => {document.getElementById('terminal-loader').style.opacity = '0';document.getElementById('main-content').style.opacity = '1';document.getElementById('canvas-container').style.opacity = '1';document.getElementById('status-bar').style.opacity = '1';// Decrypt Job IDscrambleText(document.getElementById('job-id-scramble'), "247442889");setTimeout(() => {document.getElementById('terminal-loader').style.display = 'none';}, 500);}, 800);}}// Text Scrambler Functionfunction scrambleText(element, finalString) {let iterations = 0;const possible = "0123456789XYK@#%";const interval = setInterval(() => {element.innerText = finalString.split("").map((letter, index) => {if (index < iterations) return finalString[index];return possible[Math.floor(Math.random() * possible.length)];}).join("");if (iterations >= finalString.length) clearInterval(interval);iterations += 1/3;}, 30);}window.addEventListener('load', typeWriter);/* ==========================================2. THREE.JS BACKGROUND (Digital Fabric)========================================== */function initThreeJS() {const container = document.getElementById('canvas-container');const scene = new THREE.Scene();const camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 100);camera.position.set(0, 5, 10);camera.lookAt(0, 0, 0);const renderer = new THREE.WebGLRenderer({ antialias: false, alpha: true });renderer.setSize(window.innerWidth, window.innerHeight);renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));container.appendChild(renderer.domElement);// Create Particlesconst particleCount = 12000;const geometry = new THREE.BufferGeometry();const positions = new Float32Array(particleCount * 3);const size = 20;const gap = 0.2;const rows = Math.sqrt(particleCount);for (let i = 0; i < particleCount; i++) {const row = Math.floor(i / rows);const col = i % rows;const x = (col * gap) - (rows * gap) / 2;const z = (row * gap) - (rows * gap) / 2;positions[i * 3] = x;positions[i * 3 + 1] = 0;positions[i * 3 + 2] = z;}geometry.setAttribute('position', new THREE.BufferAttribute(positions, 3));const material = new THREE.PointsMaterial({size: 0.05,color: 0x00ff41,transparent: true,opacity: 0.5,sizeAttenuation: true,blending: THREE.AdditiveBlending});const points = new THREE.Points(geometry, material);scene.add(points);// Interactionlet mouseX = 0;let mouseY = 0;document.addEventListener('mousemove', (event) => {mouseX = (event.clientX / window.innerWidth) * 2 - 1;mouseY = -(event.clientY / window.innerHeight) * 2 + 1;});// Animation Loopconst clock = new THREE.Clock();function animate() {requestAnimationFrame(animate);const time = clock.getElapsedTime();const positions = points.geometry.attributes.position.array;for (let i = 0; i < particleCount; i++) {const x = positions[i * 3];const z = positions[i * 3 + 2];// Wave equation + Mouse Interaction influence// (Subtle distortion based on mouse position)const mouseDist = Math.sqrt((x - mouseX * 5)**2 + (z - mouseY * 5)**2);const interaction = Math.max(0, 3 - mouseDist) * 0.2;const y =Math.sin(x * 0.5 + time * 0.5) * 1.5 +Math.sin(z * 0.3 + time * 0.3) * 1.5 +Math.sin((x + z) * 0.2 + time) * 0.5 +Math.sin(time * 2 + mouseDist) * interaction; // Interactive ripplepositions[i * 3 + 1] = y;}points.geometry.attributes.position.needsUpdate = true;points.rotation.y = time * 0.05;renderer.render(scene, camera);}animate();window.addEventListener('resize', () => {camera.aspect = window.innerWidth / window.innerHeight;camera.updateProjectionMatrix();renderer.setSize(window.innerWidth, window.innerHeight);});}initThreeJS();/* ==========================================3. SCROLL REVEAL ANIMATIONS========================================== */const observer = new IntersectionObserver((entries) => {entries.forEach(entry => {if (entry.isIntersecting) {entry.target.classList.add('visible');}});}, { threshold: 0.1 });document.querySelectorAll('.reveal-on-scroll').forEach(el => observer.observe(el));/* ==========================================4. UNLOCK SLIDER LOGIC========================================== */const sliderHandle = document.getElementById('slider-handle');const sliderFill = document.getElementById('slider-fill');const sliderText = document.getElementById('slider-text');const iconArrow = document.getElementById('icon-arrow');const iconLock = document.getElementById('icon-lock');let isDragging = false;let startX = 0;let currentX = 0;const maxDrag = 260;function playClickSound() {// Very short oscillator beep using Web Audio API (no external file needed)const AudioContext = window.AudioContext || window.webkitAudioContext;if (AudioContext) {const audioCtx = new AudioContext();const oscillator = audioCtx.createOscillator();const gainNode = audioCtx.createGain();oscillator.connect(gainNode);gainNode.connect(audioCtx.destination);oscillator.type = 'sine';oscillator.frequency.value = 800;gainNode.gain.setValueAtTime(0.05, audioCtx.currentTime);gainNode.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 0.1);oscillator.start();oscillator.stop(audioCtx.currentTime + 0.1);}}sliderHandle.addEventListener('mousedown', startDrag);window.addEventListener('mousemove', drag);window.addEventListener('mouseup', endDrag);sliderHandle.addEventListener('touchstart', (e) => startDrag(e.touches[0]));window.addEventListener('touchmove', (e) => drag(e.touches[0]));window.addEventListener('touchend', endDrag);function startDrag(e) {isDragging = true;startX = e.clientX;sliderHandle.style.transition = 'none';sliderFill.style.transition = 'none';playClickSound();}function drag(e) {if (!isDragging) return;let x = e.clientX - startX;if (x < 0) x = 0;if (x > maxDrag) x = maxDrag;currentX = x;updateSliderUI(x);}function endDrag() {if (!isDragging) return;isDragging = false;if (currentX > maxDrag * 0.85) {updateSliderUI(maxDrag);unlockSuccess();} else {sliderHandle.style.transition = 'left 0.3s ease';sliderFill.style.transition = 'width 0.3s ease, opacity 0.3s ease';updateSliderUI(0);}}function updateSliderUI(x) {sliderHandle.style.left = `${x}px`;const percentage = (x / maxDrag);sliderFill.style.width = `${x + 40}px`;sliderFill.style.opacity = 0.1 + (percentage * 0.3);sliderText.style.opacity = 1 - (percentage * 1.5);}function unlockSuccess() {playClickSound();iconArrow.classList.add('hidden');iconLock.classList.remove('hidden');sliderHandle.style.borderColor = '#00ff41';sliderHandle.style.backgroundColor = '#00ff41';iconLock.style.stroke = 'black';// CHANGE: Redirect instead of starting ARsetTimeout(() => window.location.href = './index_old.html', 500);}/* ==========================================5. AR EXPERIENCE LOGIC========================================== */const arContainer = document.getElementById('ar-container');const closeArBtn = document.getElementById('close-ar-btn');const arStatusBox = document.getElementById('ar-status-box');function startAR() {arContainer.style.display = 'block';const arScene = document.querySelector('a-scene');if (arScene && arScene.systems['mindar-image-system']) {arScene.systems['mindar-image-system'].start();}const targetEl = document.getElementById('target-entity');const arVideo = document.getElementById('ar-video');if (targetEl) {targetEl.addEventListener('targetFound', () => {arStatusBox.innerHTML = `<span class="relative flex h-3 w-3"><span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-[#00ff41] opacity-75"></span><span class="relative inline-flex rounded-full h-3 w-3 bg-[#00ff41]"></span></span><span class="text-sm font-mono font-bold tracking-widest text-[#00ff41]">SIGNAL LOCKED</span>`;arStatusBox.classList.add('bg-[#00ff41]/10', 'border-[#00ff41]');arStatusBox.classList.remove('bg-black/60', 'text-white/60');if(arVideo) arVideo.play();});targetEl.addEventListener('targetLost', () => {arStatusBox.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="animate-pulse"><path d="M3 7V5a2 2 0 0 1 2-2h2"></path><path d="M17 3h2a2 2 0 0 1 2 2v2"></path><path d="M21 17v2a2 2 0 0 1-2 2h-2"></path><path d="M7 21H5a2 2 0 0 1-2-2v-2"></path></svg><span class="text-sm font-mono tracking-widest">SCANNING TARGET...</span>`;arStatusBox.classList.remove('bg-[#00ff41]/10', 'border-[#00ff41]');arStatusBox.classList.add('bg-black/60', 'text-white/60');if(arVideo) arVideo.pause();});}}closeArBtn.addEventListener('click', () => {arContainer.style.display = 'none';const arScene = document.querySelector('a-scene');if (arScene && arScene.systems['mindar-image-system']) {arScene.systems['mindar-image-system'].stop();}const videoFeed = document.querySelector('.mindar-ui-overlay');if (videoFeed) videoFeed.remove();// Reset sliderisDragging = false;currentX = 0;iconArrow.classList.remove('hidden');iconLock.classList.add('hidden');sliderHandle.style.backgroundColor = '#0d0d0d';sliderHandle.style.left = '0px';sliderFill.style.width = '0px';sliderFill.style.opacity = '0.1';sliderText.style.opacity = '1';});</script></body></html>
index.html+867-19