/* ===============================================
   OBSIDIAN GLASS - THE CORE AESTHETIC ENGINE
   =============================================== */

:root {
    --bg-void: #020202;
    --red-glow: #e61d2b;
    --red-deep: #8a0c16;
    --cyan-glow: #00e5ff;
    --cyan-deep: #00768c;
    --text-primary: #f0f0f5;
    --text-muted: #8b8b99;
    --glass-bg: rgba(15, 15, 20, 0.45);
    --glass-border: rgba(230, 29, 43, 0.25); 
    --glass-border-cyan: rgba(0, 229, 255, 0.25);
    --glass-blur: blur(20px);
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    overflow: hidden; /* Overlay hides ugly scrollbars, content scrolls inside main */
    -webkit-font-smoothing: antialiased;
}

/* Background Layers */
#background-image {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: url('../dark_macro_2.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -2;
    filter: blur(8px) contrast(1.2) brightness(0.6);
    transition: background-image 0.8s ease-in-out;
}

#ambient-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(138, 12, 22, 0.12) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(0, 118, 140, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* UI Structure */
nav#neural-nav {
    width: 250px;
    height: 100vh;
    border-right: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    background: var(--glass-bg);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    box-sizing: border-box;
    z-index: 100;
    flex-shrink: 0;
}

.nav-brand {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: 2px;
}
.nav-brand .sub {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    padding: 0; margin: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    border-left: 2px solid var(--red-glow);
    text-shadow: 0 0 12px var(--red-glow);
}
.nav-link[data-target="terminal"].active, .nav-link[data-target="chat"].active, .nav-link[data-target="roadmap"].active {
    border-left: 2px solid var(--cyan-glow);
    text-shadow: 0 0 12px var(--cyan-glow);
}

/* Glow States */
.red-glow { color: var(--red-glow); text-shadow: 0 0 10px rgba(230, 29, 43, 0.7); }
.cyan-glow { color: var(--cyan-glow); text-shadow: 0 0 10px rgba(0, 229, 255, 0.7); }

/* Main Content Area */
#content-core {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 80px 10%;
    box-sizing: border-box;
    scroll-behavior: smooth;
    position: relative;
}
#content-core::-webkit-scrollbar { width: 6px; }
#content-core::-webkit-scrollbar-track { background: transparent; }
#content-core::-webkit-scrollbar-thumb { background: rgba(230,29,43,0.3); border-radius: 10px; }

/* Content sections */
.content-section {
    display: none;
    animation: digitalFade 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.content-section.active {
    display: block;
}

@keyframes digitalFade {
    0% { opacity: 0; transform: scale(0.98) translateY(10px); filter: blur(4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }
}

/* Hero Section */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 70vh;
}
.subtitle_top {
    font-family: 'Fira Code', monospace;
    color: var(--red-glow);
    font-size: 0.9rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
}
h1.glitch {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 5vw, 6rem);
    margin: 0;
    line-height: 1.1;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
    letter-spacing: -2px;
}
.subtitle {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-top: 15px;
    font-weight: 500;
}
.hero-stats {
    width: fit-content;
    margin-top: 40px;
}
.hero-stats p { margin: 5px 0; font-family: 'Fira Code', monospace; font-size: 0.95rem; color: #b0b0c0; }

/* Glass Architecture - The Core Component */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 6px;
    padding: 25px 35px;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.6), 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-panel::before {
    content: ''; position: absolute; top:0; left:0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 29, 43, 0.5), transparent);
}
.glass-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 29, 43, 0.5);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.grid-layout .glass-panel h3 {
    margin-top: 0; font-size: 1.4rem; color: #fff;
}
.grid-layout .glass-panel p {
    color: var(--text-muted); line-height: 1.6;
}

.section-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border-cyan);
    padding-bottom: 15px;
    display: inline-block;
}

/* Gallery / RL Visionen */
.img-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}
.img-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    filter: saturate(0) brightness(0.6) contrast(1.2);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
}
.img-gallery img:hover {
    filter: saturate(1.2) brightness(1.1) contrast(1);
    box-shadow: 0 0 30px rgba(230, 29, 43, 0.3);
    border-color: rgba(230, 29, 43, 0.5);
    transform: scale(1.02);
}

/* Lifecycle Monitors (Nav Bottom) */
.nav-footer { margin-top: auto; }
.status-indicator { display: flex; align-items: center; font-family: 'Fira Code', monospace; font-size: 0.8rem; color: var(--cyan-glow); }
.pulse-dot { width: 8px; height: 8px; background: var(--cyan-glow); border-radius: 50%; margin-right: 12px; box-shadow: 0 0 10px var(--cyan-glow); animation: heartbeat 2s infinite; }

@keyframes heartbeat { 
    0% { transform: scale(1); opacity: 0.8; } 
    15% { transform: scale(1.6); opacity: 1; box-shadow: 0 0 20px var(--cyan-glow); } 
    30% { transform: scale(1); opacity: 0.8; }
    45% { transform: scale(1.6); opacity: 1; box-shadow: 0 0 20px var(--cyan-glow); } 
    100% { transform: scale(1); opacity: 0.8; }
}

/* Localization Switcher */
body.locale-de .en { display: none !important; }
body.locale-en .de { display: none !important; }

#lang-switch-container {
    position: fixed;
    top: 25px;
    right: 35px;
    z-index: 1000;
}

#lang-btn {
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid var(--red-glow);
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#lang-btn:hover {
    background: rgba(230, 29, 43, 0.2);
    box-shadow: 0 0 15px rgba(230, 29, 43, 0.4);
}

/* Additions for Embodiment & Links */
.cyber-button {
    display: inline-block;
    background: rgba(230, 29, 43, 0.1);
    border: 1px solid var(--red-glow);
    color: var(--text-primary);
    padding: 12px 25px;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(230, 29, 43, 0.2), 0 0 15px rgba(230, 29, 43, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.cyber-button:hover {
    background: rgba(230, 29, 43, 0.3);
    box-shadow: inset 0 0 20px rgba(230, 29, 43, 0.5), 0 0 25px rgba(230, 29, 43, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

.support-btn {
    color: var(--cyan-glow);
    border: 1px dashed var(--cyan-glow);
    padding: 10px;
    text-align: center;
    border-left: none;
    font-size: 0.9rem;
    margin-bottom: 0;
    background: rgba(0, 229, 255, 0.05);
}
.support-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border: 1px dashed var(--cyan-glow) !important;
    text-shadow: 0 0 15px var(--cyan-glow) !important;
}

/* --- BOOT SEQUENCE OVERLAY --- */
#boot-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #020202;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#boot-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.boot-btn {
    background: transparent;
    border: 1px solid var(--red-glow);
    color: var(--red-glow);
    font-family: 'Syncopate', sans-serif;
    padding: 15px 40px;
    font-size: 1.2rem;
    letter-spacing: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(230,29,43,0.2);
}

.boot-btn:hover {
    background: rgba(230,29,43,0.1);
    box-shadow: 0 0 30px rgba(230,29,43,0.6);
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

.boot-text {
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}