/* senggack.net - Sci-Fi HUD Network Graph */
/* Palette: #080c14 #0d1420 #00d4ff #00ffa3 #c4d4e0 #6b7f94 #1a3050 */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #080c14;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #c4d4e0;
    background-color: #080c14;
    overflow-x: hidden;
}

/* ===== The Network ===== */
#network {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#graph-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    perspective: 1200px;
}

#network-svg {
    width: 100%;
    height: auto;
    transform: rotateX(15deg) rotateZ(-5deg);
    transform-style: preserve-3d;
}

/* ===== SVG Styles ===== */
.conn {
    stroke: #00d4ff;
    stroke-width: 1;
    stroke-opacity: 0;
    transition: stroke-opacity 0.15s ease;
}

.conn.lit {
    stroke-opacity: 0.4;
}

.synth-conn {
    stroke: #00ffa3;
    stroke-width: 1;
    stroke-opacity: 0;
    transition: stroke-opacity 0.4s ease;
}

.synth-conn.lit {
    stroke-opacity: 0.5;
}

.hex-shape {
    fill: transparent;
    stroke: #1a3050;
    stroke-width: 2;
    opacity: 0;
    transition: opacity 0.4s ease, stroke 0.3s ease;
}

.hex-node.visible .hex-shape {
    opacity: 1;
}

.center-node .hex-shape {
    stroke: #00d4ff;
}

.hex-node:hover .hex-shape {
    stroke: #00d4ff;
}

.node-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 10px;
    fill: #00d4ff;
    text-anchor: middle;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hex-node.visible .node-label {
    opacity: 1;
}

.node-label-sm {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 7px;
    fill: #6b7f94;
    text-anchor: middle;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hex-node.visible .node-label-sm {
    opacity: 0.7;
}

/* ===== HUD Labels ===== */
.hud-label {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #00d4ff;
    opacity: 0.5;
}

.hud-tl {
    top: 16px;
    left: 16px;
}

.hud-br {
    bottom: 16px;
    right: 16px;
}

.hud-text {
    letter-spacing: 0.08em;
}

/* ===== Thought Node Sections ===== */
.thought-node-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5vw;
}

.hex-panel {
    max-width: 600px;
    width: 90%;
    background: #0d1420;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    padding: 80px 60px;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.thought-node-section.visible .hex-panel {
    opacity: 1;
    transform: scale(1);
}

.hex-content {
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}

.thought-node-section.visible .hex-content {
    opacity: 1;
}

.node-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.node-body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #c4d4e0;
    margin-bottom: 24px;
}

.node-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #00d4ff;
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* ===== Synthesis ===== */
#synthesis {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#synthesis-content {
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#synthesis.visible #synthesis-content {
    opacity: 1;
}

#synthesis-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #00d4ff;
    margin: 0 auto 32px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
}

#synthesis-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #00ffa3;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

#synthesis-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #6b7f94;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .hex-shape {
        opacity: 1;
        transition: none;
    }

    .conn { stroke-opacity: 0.4; transition: none; }
    .node-label, .node-label-sm { opacity: 1; transition: none; }

    .hex-panel {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hex-content {
        opacity: 1;
        transition: none;
    }

    #synthesis-content {
        opacity: 1;
        transition: none;
    }

    #synthesis-pulse {
        animation: none;
    }

    .synth-conn { stroke-opacity: 0.5; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hex-panel {
        padding: 60px 30px;
        clip-path: polygon(50% 2%, 98% 25%, 98% 75%, 50% 98%, 2% 75%, 2% 25%);
    }

    .node-title {
        font-size: 24px;
    }

    #synthesis-title {
        font-size: 24px;
    }

    #network-svg {
        transform: rotateX(8deg) rotateZ(-2deg);
    }
}
