/* ==========================================
   ORCHESTRATOR VERSION (V2) STYLING
   Industrial Automation & Orchestration Theme
   ========================================== */

/* Theme Variables */
:root {
    --cyber-bg: #030508; /* Darker background for depth */
    --cyber-card-bg: rgba(11, 16, 25, 0.85);
    --cyber-cyan: #00bfff;
    --cyber-green: #00ffaa;
    --cyber-dim-cyan: rgba(0, 191, 255, 0.2);
    --cyber-dim-green: rgba(0, 255, 170, 0.25);
    --cyber-border: rgba(0, 191, 255, 0.15);
    --depth-pipes: rgba(0, 255, 170, 0.015); /* Faint deep pipes */
    --depth-grid: rgba(0, 255, 170, 0.01); /* Deeper grid */
    --alert: #ff5555;
    --dark-card: #0c1015;
    --border: rgba(255, 255, 255, 0.04);
}

/* Projects Section Cyber Overrides */
.orchestrator-section {
    position: relative;
    background-color: var(--cyber-bg) !important;
    overflow: hidden;
    z-index: 2;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}

/* Automation Network Grid (Background Canvas) */
#automation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85; /* Blend with background */
}

.orchestrator-section .container {
    position: relative;
    z-index: 5; /* Sit above canvas */
}

/* Master Controller Hand Container */
.orchestrator-hand-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: -10px auto 40px auto;
    z-index: 10;
    aspect-ratio: 1376 / 768; /* Perfectly match the image aspect ratio */
}

.orchestrator-hand-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.25);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.15), inset 0 0 20px rgba(0, 191, 255, 0.1);
}

.orchestrator-hand-image {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Match SVG viewBox aspect ratio exactly 1:1 on all viewports */
    display: block;
    opacity: 0.9;
    filter: brightness(0.85) contrast(1.1);
}

/* cybernetic glowing overlay to blend the JPEG edges into the deep black page background */
.image-cyber-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 35%, rgba(3, 5, 8, 0.6) 70%, rgba(3, 5, 8, 0.95) 95%, #030508 100%);
    pointer-events: none;
}

/* Position the filter bar inside the hand wrapper, floating like a holographic control panel */
.orchestrator-hand-wrapper .project-filters {
    position: absolute;
    bottom: 18%; /* Raised higher, sits right below the 'Featured Projects' hologram */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    z-index: 25; /* Always on top of SVG overlay and image */
    background: rgba(11, 16, 25, 0.8) !important;
    border: 1px solid rgba(0, 191, 255, 0.3) !important;
    padding: 6px 16px;
    border-radius: 40px;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.25), inset 0 0 10px rgba(0, 191, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    gap: 0.8rem;
    width: auto;
    pointer-events: auto; /* Allow clicking the buttons */
}

/* Mobile responsive filters when nested in hand wrapper */
@media (max-width: 768px) {
    .orchestrator-hand-wrapper .project-filters {
        bottom: 12% !important; /* Raised higher on mobile to fit hand aspect ratio */
        padding: 4px 10px !important;
        gap: 0.3rem !important;
        width: 92% !important;
        justify-content: center !important;
    }
    
    .orchestrator-hand-wrapper .project-filters .filter-btn {
        padding: 3px 8px !important;
        font-size: 0.72rem !important;
        border-radius: 20px !important;
    }
}

#orchestrator-hand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    pointer-events: none;
}

/* Dynamic Hanging Fiber-optic Strings SVG Overlay */
#orchestrator-strings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 11;
    overflow: visible; /* Let curves render outside SVG boundaries if needed */
}

/* Hanging Strings (Data Flow Paths) */
.orchestrator-string {
    fill: none;
    stroke: var(--cyber-dim-cyan);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 6 6;
    stroke-dashoffset: 0;
    animation: pulseDataFlow 12s linear infinite;
    transition: stroke 0.4s ease, stroke-width 0.4s ease, filter 0.4s ease, stroke-dasharray 0.3s ease;
}

/* Data flow speed */
@keyframes pulseDataFlow {
    to {
        stroke-dashoffset: -120;
    }
}

/* Active String State (Card Hovered) */
.orchestrator-string.active {
    stroke: var(--cyber-green) !important;
    stroke-width: 3.5px !important;
    stroke-dasharray: none !important; /* Continuous laser beam on hover */
    filter: drop-shadow(0 0 8px rgba(0, 255, 170, 0.95)) !important;
}

/* Fingertips Node Styling and Transition */
.fingertip-glow {
    transition: stroke 0.4s ease, filter 0.4s ease;
}

.fingertip-core {
    transition: fill 0.4s ease;
}

.fingertip-group.active .fingertip-glow {
    stroke: var(--cyber-green) !important;
    filter: url(#glow-green) !important;
    animation: fingertipPulse 1.5s infinite alternate;
}

.fingertip-group.active .fingertip-core {
    fill: var(--cyber-green) !important;
}

@keyframes fingertipPulse {
    0% {
        r: 10px;
    }
    100% {
        r: 14px;
    }
}

/* Styled Subtitle */
.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 10px auto 0 auto;
    font-size: 1rem;
    font-family: 'Poppins', 'Cairo', sans-serif;
}
body.lang-ar .section-subtitle {
    font-family: 'Cairo', sans-serif;
}

/* Cyberpunk Project Cards overrides */
.orchestrator-section .project-card {
    background: var(--cyber-card-bg) !important;
    border: 1px solid var(--cyber-border) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease !important;
}

/* Cyber Card Hover */
.orchestrator-section .project-card:hover {
    transform: scale(1.03) translateY(-8px) !important;
    border-color: var(--cyber-green) !important;
    box-shadow: 0 12px 40px rgba(0, 255, 170, 0.25), 
                0 0 15px rgba(0, 191, 255, 0.15) !important;
}

.orchestrator-section .project-tag {
    color: var(--cyber-cyan) !important;
    background: rgba(0, 191, 255, 0.1) !important;
    border: 1px solid rgba(0, 191, 255, 0.2) !important;
    font-size: 0.75rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.orchestrator-section .project-card h3 {
    color: #fff !important;
    transition: color 0.3s ease;
}
.orchestrator-section .project-card:hover h3 {
    color: var(--cyber-green) !important;
}

.orchestrator-section .project-tech span {
    background: rgba(13, 20, 30, 0.9) !important;
    border: 1px solid rgba(0, 191, 255, 0.15) !important;
    color: #a0aec0 !important;
    transition: all 0.3s ease;
}
.orchestrator-section .project-card:hover .project-tech span {
    border-color: var(--cyber-dim-green) !important;
    color: var(--cyber-green) !important;
}

.orchestrator-section .project-icon i {
    color: var(--cyber-cyan) !important;
    filter: drop-shadow(0 0 5px rgba(0, 191, 255, 0.4)) !important;
    transition: color 0.3s ease, filter 0.3s ease;
}
.orchestrator-section .project-card:hover .project-icon i {
    color: var(--cyber-green) !important;
    filter: drop-shadow(0 0 8px rgba(0, 255, 170, 0.7)) !important;
}

/* Floating Glassmorphic Version Toggle Button */
.version-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(11, 16, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--cyber-cyan);
    padding: 12px 22px;
    border-radius: 50px;
    color: #ffffff;
    font-family: 'Poppins', 'Cairo', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 191, 255, 0.3);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.version-toggle-btn i {
    color: var(--cyber-cyan);
    font-size: 1.1rem;
    transition: transform 0.4s ease, color 0.4s ease;
}

.version-toggle-btn:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--cyber-green);
    background: var(--cyber-green);
    color: #07090e;
    box-shadow: 0 12px 40px rgba(0, 255, 170, 0.5), 0 0 20px rgba(0, 255, 170, 0.3);
}

.version-toggle-btn:hover i {
    color: #07090e;
    transform: rotate(180deg);
}

/* Arabic Specific Layouts */
body.lang-ar .version-toggle-btn {
    font-family: 'Cairo', sans-serif;
    right: auto;
    left: 30px;
    letter-spacing: 0;
}

body.lang-ar .orchestrator-section .project-tag {
    letter-spacing: 0 !important;
}

/* Media Query for mobile adjustments */
@media (max-width: 768px) {
    .orchestrator-hand-wrapper {
        margin-bottom: 20px;
    }
    #orchestrator-hand {
        max-height: 160px;
    }
    .version-toggle-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.75rem;
    }
    body.lang-ar .version-toggle-btn {
        left: 20px;
    }
}

/* ==========================================================
   DEEP PROCESS AUTOMATION INFRASTRUCTURE STYLES
   ========================================================== */

/* 1. Deep Grid Layer */
body.orchestrator-body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(var(--depth-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--depth-grid) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: deepGrid 40s linear infinite;
    z-index: -3;
    opacity: 0.8;
}
@keyframes deepGrid {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* 2. Deep Pipes Network Layer */
body.orchestrator-body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(90deg, var(--depth-pipes) 2px, transparent 2px),
        linear-gradient(var(--depth-pipes) 2px, transparent 2px);
    background-size: 150px 100%, 100% 150px;
    animation: deepPipesFlow 60s linear infinite;
    z-index: -2;
    opacity: 0.6;
}
@keyframes deepPipesFlow {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 100%, 100% 0; }
}

/* 3. Data Stream Particles Layer */
.data-stream-layer {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.data-particle {
    position: absolute;
    width: 3px; height: 3px;
    background: var(--cyber-green);
    border-radius: 50%;
    opacity: 0;
    animation: particleFlow 5s linear infinite;
}

/* Particle Positions & Delays */
.particle-1 { top: 10%; left: 20%; animation-delay: 0s; width: 4px; height: 4px; }
.particle-2 { top: 30%; left: 80%; animation-delay: 1s; }
.particle-3 { top: 70%; left: 40%; animation-delay: 2s; width: 5px; height: 5px; background: var(--cyber-cyan); }
.particle-4 { top: 50%; left: 60%; animation-delay: 3s; }
.particle-5 { top: 90%; left: 10%; animation-delay: 1.5s; background: var(--alert); }

@keyframes particleFlow {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.6; transform: translateY(80vh) scale(1); }
    80% { opacity: 0.6; transform: translateY(20vh) scale(1); }
    100% { transform: translateY(0) scale(0); opacity: 0; }
}

/* 4. Pulsing Glow Section Card Animation */
.orchestrator-section .project-card, .process-section {
    animation: cardGlowPulse 5s ease-in-out infinite;
}
@keyframes cardGlowPulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
    50% { box-shadow: 0 10px 40px rgba(0, 255, 170, 0.05); }
}

/* 5. Pipeline Connector Pipes */
.vertical-pipe {
    width: 4px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    z-index: 5;
}
.vertical-pipe::after {
    content: '';
    position: absolute;
    top: -60px; left: 0; width: 100%; height: 40px;
    background: linear-gradient(180deg, transparent, var(--cyber-green), transparent);
    animation: dropData 1.5s linear infinite;
}
@keyframes dropData {
    0% { top: -60px; }
    100% { top: 100%; }
}

/* 6. Pipeline Section Layout */
.pipeline-section {
    background-color: var(--cyber-bg) !important;
    position: relative;
    z-index: 2;
    padding-bottom: 80px;
}

.pipeline-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.process-section {
    width: 100%;
    background: var(--cyber-card-bg) !important;
    border: 1px solid var(--cyber-border) !important;
    border-radius: 16px;
    padding: 30px;
    margin: 10px 0;
    position: relative;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.section-tag {
    position: absolute;
    top: -12px;
    right: 30px;
    background: #0c1015;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--cyber-cyan);
    border: 1px solid var(--cyber-border);
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}
body.lang-ar .section-tag {
    right: auto;
    left: 30px;
    letter-spacing: 0;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --- Ingestion Tank --- */
.tank-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.tank {
    width: 80px; height: 120px;
    background: #10141a; border: 2px solid var(--cyber-border);
    border-radius: 8px; position: relative; overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}
.fluid {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, var(--cyber-green), rgba(0, 255, 170, 0.1));
    animation: fillCycles 8s ease-in-out infinite alternate;
    box-shadow: 0 0 20px var(--cyber-green);
}
@keyframes fillCycles {
    0% { height: 15%; } 100% { height: 85%; }
}

/* --- Logic Gate --- */
.logic-gate-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
    width: 100%;
}
.gate {
    padding: 12px 24px;
    background: #10141a;
    border: 1px dashed var(--cyber-cyan);
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    color: #fff;
    font-family: monospace;
}
.branch-line {
    flex-grow: 1; height: 2px;
    background: rgba(255,255,255,0.06);
    position: relative;
    max-width: 150px;
}
.branch-line::after {
    content: ''; position: absolute; top:0; left:0; height: 100%; width: 25px;
    background: var(--cyber-green);
    animation: pulseRoute 1.8s linear infinite;
}
@keyframes pulseRoute {
    0% { left: 0; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* --- Sync Hub --- */
.sync-hub {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}
.app-icon {
    width: 60px; height: 60px;
    background: #10141a; border: 1px solid var(--cyber-border);
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    font-size: 16px; color: var(--cyber-cyan);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.sync-wheel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
.sync-wheel {
    width: 70px; height: 70px;
    border: 3px dashed var(--cyber-green);
    border-radius: 50%;
    animation: spin 10s linear infinite;
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.2);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- Terminal Console --- */
.terminal {
    background: #020406;
    border: 1px solid var(--cyber-border);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: var(--cyber-green);
    height: 160px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
    width: 100%;
}
.terminal-scroll {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
}
.terminal-line {
    opacity: 0.9;
    line-height: 1.4;
    word-break: break-all;
}
.terminal-line.success { color: var(--cyber-green); }
.terminal-line.info { color: var(--cyber-cyan); }
.terminal-line.warn { color: #fbc02d; }

/* ==========================================================
   INTERACTIVE HOLOGRAPHIC NODE MAP STYLES
   ========================================================== */

.orchestrator-map-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    margin: 40px auto 0;
    overflow: visible;
    z-index: 15; /* Higher than hand wrapper (10) to let connections draw on top */
}

#orchestrator-connections-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 12; /* Draw on top of hand image, but behind project nodes */
    pointer-events: none;
    overflow: visible;
}

.orchestrator-map-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 13; /* Above connection lines */
    pointer-events: none;
}

/* Responsive Mobile Layout for Process Orchestration Map */
@media (max-width: 768px) {
    .orchestrator-map-wrapper {
        height: 400px; /* Snug height for smaller screens */
        margin: 20px auto 0;
    }

    .project-node {
        width: 48px !important;
        height: 48px !important;
        border-width: 1px !important;
        box-shadow: 0 0 10px rgba(0, 191, 255, 0.15) !important;
    }

    .project-node .node-icon {
        font-size: 14px !important;
    }

    .project-node .node-label {
        top: 54px !important;
        width: 90px !important;
        font-size: 8px !important;
        padding: 2px 4px !important;
        border-radius: 3px !important;
    }

    .project-node:hover {
        transform: scale(1.1) !important;
    }

    /* scale down fingertip indicators on mobile */
    .fingertip-group circle {
        r: 10px !important;
    }
}

/* Glowing Project Node */
.project-node {
    position: absolute;
    width: 65px; height: 65px;
    border-radius: 50%;
    background: rgba(10, 14, 20, 0.9);
    border: 1.5px solid rgba(0, 191, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.1), inset 0 0 10px rgba(0, 191, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.project-node::after {
    content: '';
    position: absolute;
    top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

/* Active Filter Fade State */
.project-node.faded {
    opacity: 0.15;
    pointer-events: none;
    filter: grayscale(80%) blur(1px);
}

.project-node.active-filter::after {
    opacity: 1;
    animation: nodePulse 2.5s infinite;
}

@keyframes nodePulse {
    0% { transform: scale(0.95); opacity: 0.6; border-color: rgba(0, 191, 255, 0.4); }
    50% { border-color: rgba(0, 255, 170, 0.4); }
    100% { transform: scale(1.35); opacity: 0; }
}

.project-node:hover {
    transform: scale(1.15);
    border-color: var(--cyber-green);
    box-shadow: 0 0 25px rgba(0, 255, 170, 0.5), inset 0 0 12px rgba(0, 255, 170, 0.2);
    z-index: 10;
}

.project-node .node-icon {
    font-size: 20px;
    color: var(--cyber-cyan);
    transition: all 0.4s ease;
}

.project-node:hover .node-icon {
    color: var(--cyber-green);
    transform: rotate(10deg);
}

/* Node Text Label underneath */
.project-node .node-label {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    transition: all 0.3s ease;
    line-height: 1.3;
    background: rgba(3, 5, 8, 0.8);
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.project-node:hover .node-label {
    color: #fff;
    background: rgba(12, 16, 21, 0.95);
    border-color: rgba(0, 255, 170, 0.15);
}

/* Floating Tooltip/Popup Card */
.project-tooltip-popup {
    position: absolute;
    width: 320px;
    padding: 20px;
    background: rgba(8, 12, 16, 0.92);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.85), inset 0 0 15px rgba(0, 191, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                visibility 0.3s;
    z-index: 100;
}

.project-tooltip-popup.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.tooltip-tag {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--cyber-green);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-tooltip-popup h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #fff;
    line-height: 1.3;
}

.project-tooltip-popup p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.tooltip-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.tooltip-tech span {
    font-size: 9px;
    padding: 3px 8px;
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.15);
    border-radius: 4px;
    color: var(--cyber-cyan);
}

/* ==========================================
   STATIC PROJECT CARDS GRID
   Always-visible fallback for the interactive
   hand/node map above (crawlable, accessible,
   readable without hovering).
   ========================================== */
.project-cards-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.project-card {
    background: var(--cyber-card-bg);
    border: 1px solid var(--cyber-border);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
    border-color: var(--cyber-cyan);
    transform: translateY(-3px);
}

.project-card.hidden {
    display: none;
}

.project-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 191, 255, 0.08);
    color: var(--cyber-cyan);
    font-size: 16px;
}

.project-card-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--cyber-green);
}

.project-card-title {
    margin: 0;
    font-size: 15px;
    color: #fff;
    line-height: 1.3;
}

.project-card-desc {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    flex-grow: 1;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.project-card-tech span {
    font-size: 9.5px;
    padding: 3px 8px;
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.15);
    border-radius: 4px;
    color: var(--cyber-cyan);
}

@media (max-width: 768px) {
    .project-cards-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
}

