/* --- TECH SCHEME SECTION: Holographic PCB --- */

.tech-scheme-section {
    position: relative;
    padding: clamp(6rem, 10vh, 10rem) 0;
    background: var(--bg);
    overflow: hidden;
    color: var(--text);
}

.mono-font { font-family: 'JetBrains Mono', var(--font-mono, monospace); letter-spacing: -0.05em; }

/* --- AMBIENT --- */
.ts-ambient { position: absolute; inset: 0; pointer-events: none; }
.ts-glow-orb {
    position: absolute; top: 50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 20%, transparent) 0%, transparent 70%);
    filter: blur(100px); opacity: 0.6;
}
.ts-grid-mesh {
    position: absolute; inset: 0;
    background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

.ts-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    position: relative; z-index: 2;
}

/* --- GRID LAYOUT --- */
.ts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

/* --- LEFT: INTERFACE --- */
.ts-interface { display: flex; flex-direction: column; gap: 4rem; }

.ts-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.03em;
}
.ts-gradient-text {
    background: linear-gradient(135deg, var(--text) 30%, var(--brand));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.ts-header p {
    font-size: 1.125rem; color: var(--text-muted); line-height: 1.6;
}

.ts-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 100px;
    background: color-mix(in srgb, var(--elev-1) 50%, transparent); border: 1px solid var(--stroke);
    font-size: 0.7rem; color: var(--brand);
    margin-bottom: 2rem;
}
.ts-pulse-dot {
    width: 6px; height: 6px; background: var(--ok);
    border-radius: 50%; box-shadow: 0 0 8px var(--ok);
    animation: tsBlink 2s infinite;
}

/* Selector List */
.ts-selector { display: flex; flex-direction: column; gap: 1rem; }

.ts-item {
    display: flex; gap: 1.5rem; text-align: left;
    background: transparent; border: none; padding: 1.5rem 0;
    cursor: pointer; color: var(--text-muted);
    transition: all 0.4s ease;
    position: relative;
}
.ts-item::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px; background: var(--stroke); opacity: 0.5;
}

.ts-item:hover { color: var(--text); }

.ts-progress {
    width: 4px; border-radius: 4px; background: var(--stroke);
    position: relative; overflow: hidden; flex-shrink: 0;
}
.ts-bar {
    position: absolute; top: 0; left: 0; width: 100%; height: 0%;
    background: var(--brand); transition: height 0.4s ease;
}

.ts-item.active { color: var(--text); }
.ts-item.active .ts-bar { height: 100%; }

.ts-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem; width: 100%;
}
.ts-top h4 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.ts-top span { font-size: 0.75rem; opacity: 0.6; }
.ts-content p { 
    font-size: 0.95rem; margin: 0; line-height: 1.5; 
    opacity: 0; max-height: 0; transition: 0.4s ease; 
    transform: translateY(-10px); 
}

.ts-item.active .ts-content p { opacity: 0.8; max-height: 60px; transform: translateY(0); }

/* --- RIGHT: VISUALIZER --- */
.ts-visualizer {
    display: flex; justify-content: center; align-items: center;
    perspective: 1000px;
}

.ts-card {
    position: relative;
    width: 100%; aspect-ratio: 1/1; max-width: 500px;
    background: color-mix(in srgb, var(--elev-1) 50%, transparent);
    border-radius: 32px;
    border: 1px solid var(--stroke);
    box-shadow: 
        0 40px 80px -20px rgba(0,0,0,0.3),
        inset 0 0 0 1px var(--glass-highlight);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform 0.1s linear; /* Smooth mouse follow */
}

.ts-glass-layer {
    position: absolute; inset: 0; border-radius: 32px;
    background: linear-gradient(135deg, var(--glass-highlight) 0%, transparent 100%);
    pointer-events: none; z-index: 10;
}

.ts-board {
    position: relative; width: 80%; height: 80%;
}

/* SVG STYLING */
.ts-svg { width: 100%; height: 100%; overflow: visible; }

/* Base */
.ts-base { 
    stroke: var(--stroke); stroke-width: 2; fill: color-mix(in srgb, var(--bg) 50%, transparent); 
}
.ts-grid-lines { stroke: var(--stroke); stroke-width: 1; opacity: 0.3; }

/* Layer Groups (Opacity controlled by JS) */
.ts-layer { transition: opacity 0.5s ease, filter 0.5s ease; opacity: 0.2; filter: grayscale(100%); }
.ts-layer.active { opacity: 1; filter: grayscale(0%); }

/* Core */
.cpu-socket { stroke: var(--stroke); stroke-width: 2; fill: var(--bg); }
.cpu-die { stroke: var(--brand); stroke-width: 2; fill: color-mix(in srgb, var(--brand) 20%, transparent); }
.cpu-traces { stroke: var(--text-muted); stroke-width: 1.5; }
.cpu-light { fill: var(--brand); opacity: 0; }
.active .cpu-light { animation: tsPulse 2s infinite; opacity: 1; }

/* Comms */
.ant-trace { stroke: var(--text-muted); stroke-width: 1.5; fill: none; }
.ant-node { fill: var(--bg); stroke: var(--text-muted); stroke-width: 2; }
.active .ant-node { stroke: var(--brand); fill: var(--brand); }
.ts-wave { stroke: var(--brand); fill: none; stroke-width: 1; opacity: 0; }
.active .ts-wave { animation: tsRipple 2s infinite; }

/* Power */
.pwr-cell { stroke: var(--text-muted); fill: none; stroke-width: 2; }
.active .pwr-cell { stroke: var(--brand); fill: color-mix(in srgb, var(--brand) 20%, transparent); }
.pwr-line { stroke: var(--text-muted); stroke-width: 2; fill: none; }
.active .pwr-line { stroke: var(--brand); }
.ts-pulse { opacity: 0; }
.active .ts-pulse { opacity: 1; }

/* Labels */
.ts-labels { position: absolute; inset: 0; pointer-events: none; }
.ts-tag {
    position: absolute; display: flex; align-items: center; gap: 8px;
    opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}
.active-label .ts-tag { opacity: 1; transform: translateY(0); }

.ts-line { width: 30px; height: 1px; background: var(--brand); }
.ts-tag-txt {
    background: var(--bg); border: 1px solid var(--brand);
    color: var(--brand); padding: 4px 8px; border-radius: 4px;
    font-size: 0.7rem; font-family: var(--font-mono);
}

/* Label Positions */
.t-core { top: 40%; right: -10%; }
.t-comms { top: 15%; right: -5%; }
.t-power { bottom: 15%; right: -5%; }

/* ANIMATIONS */
@keyframes tsBlink { 50% { opacity: 0.5; } }
@keyframes tsPulse { 0% { opacity: 0.5; } 50% { opacity: 1; filter: drop-shadow(0 0 5px var(--ts-accent)); } 100% { opacity: 0.5; } }
@keyframes tsRipple { 0% { r: 5; opacity: 1; } 100% { r: 25; opacity: 0; } }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .ts-grid { grid-template-columns: 1fr; gap: 4rem; }
    .ts-visualizer { order: -1; }
    .ts-card { transform: none !important; } /* Disable tilt on mobile */
}