/* --- VISION PAGE STYLES v2.0 (Cyber-Enhanced) --- */

:root {
    --neon-vis: #00f3ff;
    --bg-card: rgba(10, 12, 18, 0.7);
}

.vision-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    color: #fff;
    animation: fadePageIn 0.8s ease-out;
}
@keyframes fadePageIn { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

/* HEADER & GLITCH */
.page-header { text-align: center; margin-bottom: 80px; position: relative; }
.neon-title { 
    font-family: 'Rajdhani', sans-serif; font-size: 4.5rem; margin: 0; 
    letter-spacing: 6px; color: #ffffff; text-transform: uppercase;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.5); display: inline-block;
    position: relative;
}
.header-line { 
    width: 150px; height: 3px; background: var(--neon-vis); 
    margin: 20px auto; box-shadow: 0 0 25px var(--neon-vis);
    position: relative; overflow: hidden;
}
.header-line::after {
    content:''; position:absolute; top:0; left:-100%; width:100%; height:100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: scanLine 3s infinite linear;
}
@keyframes scanLine { 0% { left:-100%; } 100% { left:100%; } }
.subtitle { color: #aaa; font-family: 'JetBrains Mono', monospace; font-size: 1rem; letter-spacing: 4px; text-transform: uppercase; }

/* MANIFESTO BOX (Effetto Monitor) */
.manifesto-box {
    background: linear-gradient(180deg, rgba(0,243,255,0.05) 0%, rgba(0,0,0,0.8) 100%);
    border: 1px solid var(--neon-vis);
    padding: 60px 50px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 100px;
    box-shadow: 0 0 60px rgba(0,243,255,0.1);
    position: relative; overflow: hidden;
    backdrop-filter: blur(10px);
}
/* Linea di scansione che scende */
.scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 15px var(--neon-vis);
    animation: scanner 4s infinite linear;
    opacity: 0.5; pointer-events: none;
}
@keyframes scanner { 0% { top: -10%; } 100% { top: 110%; } }

.manif-icon { 
    color: var(--neon-vis); margin-bottom: 25px; 
    filter: drop-shadow(0 0 10px var(--neon-vis)); 
}
.manif-icon svg { width: 60px; height: 60px; animation: pulseIcon 3s infinite alternate; }

.manifesto-box h2 { 
    font-family: 'Rajdhani'; font-size: 2.5rem; margin-bottom: 25px; 
    color: #fff; text-transform: uppercase; letter-spacing: 3px;
}
.typing-text { 
    font-size: 1.3rem; line-height: 1.8; color: #ddd; max-width: 900px; margin: 0 auto;
    border-left: 2px solid var(--neon-vis); padding-left: 20px; text-align: left;
}

/* VALUES GRID */
.values-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-bottom: 120px;
}
.value-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px 30px; border-radius: 12px;
    text-align: center; transition: 0.3s;
    position: relative; overflow: hidden;
}
.value-card:hover {
    border-color: var(--neon-vis);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,243,255,0.15);
}
.val-icon { 
    margin-bottom: 20px; color: var(--neon-vis);
    display: flex; justify-content: center;
}
.val-icon svg { width: 50px; height: 50px; transition: 0.3s; }
.value-card:hover .val-icon svg { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--neon-vis)); }

.value-card h3 { 
    font-family: 'Rajdhani'; color: #fff; margin-bottom: 15px; font-size: 1.5rem; 
    text-transform: uppercase; letter-spacing: 1px;
}
.value-card p { color: #aaa; font-size: 1rem; line-height: 1.6; }

/* ARCHITECTURE SECTION */
.arch-section {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px;
    background: rgba(255,255,255,0.02); border-radius: 20px;
    padding: 50px; margin-bottom: 120px;
    align-items: center; border: 1px solid rgba(255,255,255,0.05);
}
.arch-content h2 { 
    font-family: 'Rajdhani'; font-size: 2.5rem; color: var(--neon-vis); margin-bottom: 20px; text-transform: uppercase; 
}
.arch-content p { font-size: 1.1rem; color: #ccc; line-height: 1.7; margin-bottom: 20px; }
.highlight-text { color: #fff; border-left: 3px solid var(--neon-vis); padding-left: 15px; font-style: italic; }

/* Server Visual */
.server-rack {
    width: 100%; height: 200px;
    background: #0a0a0a; border: 2px solid #333;
    border-radius: 8px; padding: 20px;
    display: flex; flex-direction: column; gap: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.server-unit {
    height: 10px; width: 100%; background: #222; border-radius: 4px;
    position: relative;
}
.server-unit::after {
    content:''; position: absolute; right: 10px; top: 2px;
    width: 6px; height: 6px; border-radius: 50%;
    background: #00ff88; box-shadow: 0 0 5px #00ff88;
}
/* Luci server lampeggianti */
.blink-1::after { animation: blink 0.5s infinite alternate; }
.blink-2::after { animation: blink 1.2s infinite alternate; }
.blink-3::after { animation: blink 0.8s infinite alternate; }

/* TIMELINE */
.evolution-section { text-align: center; margin-bottom: 100px; }
.section-title { font-family: 'Rajdhani'; font-size: 2.5rem; margin-bottom: 60px; color: white; text-transform: uppercase; }

.timeline {
    position: relative; max-width: 700px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 70px;
}
.timeline-line {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, #333 0%, var(--neon-vis) 100%);
    transform: translateX(-50%); z-index: 0;
}

.time-step {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 40px;
}
.time-dot {
    width: 16px; height: 16px; background: #111; border: 2px solid #555;
    border-radius: 50%; position: absolute; left: 50%; transform: translateX(-50%);
}
.time-date {
    width: 45%; text-align: right; font-family: 'JetBrains Mono'; color: #666; font-size: 1.4rem;
}
.time-label {
    width: 45%; text-align: left; font-family: 'Rajdhani'; color: #666; font-size: 1.4rem; font-weight: bold;
}

/* Highlight */
.time-step.current .time-dot {
    background: var(--neon-vis); border-color: #fff;
    box-shadow: 0 0 20px var(--neon-vis);
    width: 24px; height: 24px;
}
.time-step.current .time-date { color: var(--neon-vis); font-weight: bold; }
.time-step.current .time-label { color: #fff; font-size: 1.8rem; text-shadow: 0 0 15px var(--neon-vis); }

/* ANIMATIONS */
.pulse { animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(0,243,255,0.7); } 70% { box-shadow: 0 0 0 15px rgba(0,243,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,243,255,0); } }
@keyframes blink { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes pulseIcon { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.1); opacity: 1; } }

/* QUOTE */
.vision-quote {
    font-family: 'Rajdhani'; font-size: 2.2rem; font-weight: 800;
    text-align: center; color: #fff; font-style: italic;
    opacity: 0.9; letter-spacing: 2px; margin-top: 80px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .neon-title { font-size: 3rem; }
    .arch-section { grid-template-columns: 1fr; text-align: center; }
    .highlight-text { border-left: none; border-top: 3px solid var(--neon-vis); padding-top: 15px; padding-left: 0; }
    .timeline { gap: 50px; }
    .time-date, .time-label { font-size: 1rem; }
    .time-step.current .time-label { font-size: 1.3rem; }
}