:root {
    --bg-dark: #030712;
    --grid-color: rgba(0, 242, 255, 0.05);
    --cyan: #00f2ff;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

body, html {
    margin: 0; padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace; /* Monospace blend for tech vibe */
    overflow-x: hidden;
}

/* The Wormhole Catcher */
#entrance-flash {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #ffffff; z-index: 9999;
    pointer-events: none; /* Allows clicking once it fades */
}

/* Animated Blueprint Grid */
.digital-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    /* Slow pan to make it feel alive */
    animation: gridPan 20s linear infinite; 
}
@keyframes gridPan {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Navigation */
.top-nav { padding: 30px 5%; }
.back-btn {
    color: var(--cyan); text-decoration: none; font-family: monospace;
    font-size: 0.9rem; letter-spacing: 2px; transition: text-shadow 0.3s;
}
.back-btn:hover { text-shadow: 0 0 10px var(--cyan); }

/* Layout Grid */
.blueprint-container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.project-hero { margin: 10vh 0 15vh 0; }
.sys-code { color: var(--cyan); font-family: monospace; letter-spacing: 2px; margin-bottom: 10px; }
.neon-text { 
    font-size: clamp(3rem, 8vw, 6rem); margin: 0; line-height: 1; font-weight: 900;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3); letter-spacing: -2px; font-family: 'Cormorant Garamond', serif;
}
.subtitle { font-size: 1.5rem; color: var(--text-muted); max-width: 600px; margin-top: 20px; }

/* 2-Column Split */
.content-split { display: grid; grid-template-columns: 300px 1fr; gap: 80px; align-items: start; padding-bottom: 15vh;}
@media (max-width: 900px) {
    .content-split { grid-template-columns: 1fr; gap: 40px; }
}

/* Sticky Sidebar */
.sticky-wrapper {
    position: sticky; top: 100px; /* Sticks as you scroll */
    background: #0a0f1a;
    border: 1px solid rgba(0, 242, 255, 0.2); border-radius: 12px; padding: 30px;
}
.sticky-wrapper h3 { margin-top: 0; color: var(--cyan); font-family: monospace; font-size: 1.2rem; }
.mt-spacing { margin-top: 40px !important; }
.tag-list { list-style: none; padding: 0; margin: 0; }
.tag-list li { margin-bottom: 10px; color: var(--text-main); font-size: 1rem; }
.tag-list li::before { content: "/> "; color: var(--text-muted); }
.scope-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.live-link {
    display: inline-block; margin-top: 20px; color: #000; background: var(--cyan);
    padding: 12px 24px; text-decoration: none; font-weight: bold; border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.live-link:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3); }

/* Detail Blocks */
.detail-block { margin-bottom: 15vh; }
.detail-block h2 { font-size: 2.5rem; margin-bottom: 20px; font-family: 'Cormorant Garamond', serif;}
.detail-block p { font-size: 1.2rem; color: var(--text-muted); max-width: 800px; line-height: 1.8; margin-bottom: 40px; }

/* Interactive 3D Mockup Box */
.tilt-wrapper { perspective: 1000px; width: 100%; }
.tilt-image {
    width: 100%; height: 500px; background: #0a0f1e;
    border: 1px solid rgba(0, 242, 255, 0.3); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.1s ease; /* Smooth out the JS tilt */
    will-change: transform; color: var(--text-muted);
}
@media (max-width: 768px) { .tilt-image { height: 300px; } }

/* ==========================================
   AMBIENT DATA PARTICLES (FOREGROUND OVERLAY)
   ========================================== */
#ambient-particles {
    position: fixed; 
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999; /* Absolute top layer */
    pointer-events: none; /* Let mouse clicks pass through to the text/links below */
    overflow: hidden;
    mix-blend-mode: screen; /* Forces the cyan glow to pop over dark backgrounds */
}

.ambient-particle {
    position: absolute;
    background: #00f2ff; /* Hardcoded cyan to ensure color rendering */
    border-radius: 50%;
    box-shadow: 0 0 12px 2px rgba(0, 242, 255, 1); /* Maximum glow intensity */
    will-change: transform, opacity;
}