/* ==========================================================================
   ACMEZ GROUP - INTERACTIVE ECOSYSTEM VISUALIZATION
   ========================================================================== */

.ecosystem-visual-section {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.ecosystem-diagram-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.06) 0%, rgba(10, 14, 23, 0.95) 75%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    box-shadow: var(--shadow-lg);
}

.ecosystem-canvas-wrap {
    position: relative;
    width: 100%;
    height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Connection Lines Background */
.ecosystem-svg-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.network-line {
    stroke: var(--color-border);
    stroke-width: 2;
    stroke-dasharray: 6 6;
    animation: dashStream 30s linear infinite;
    transition: stroke 300ms ease, stroke-width 300ms ease;
}
.network-line.active {
    stroke: var(--active-line-color, var(--color-primary));
    stroke-width: 2.5;
    stroke-dasharray: none;
    filter: drop-shadow(0 0 6px var(--active-line-color, var(--color-primary)));
}

/* Central Hub: Acmez Group */
.ecosystem-hub-node {
    position: absolute;
    z-index: 10;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background-color: var(--color-bg-deep);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 35px rgba(0, 102, 255, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    cursor: default;
    animation: hubPulse 4s ease-in-out infinite alternate;
}
.hub-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hub-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hub-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.04em;
    line-height: 1.2;
}
.hub-caption {
    font-size: 0.68rem;
    color: var(--color-accent-azure);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Orbiting Entity Nodes */
.orbital-node {
    position: absolute;
    width: 180px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    z-index: 5;
    text-decoration: none;
}
.orbital-node:hover,
.orbital-node.active {
    transform: scale(1.06);
    border-color: var(--node-color, var(--color-primary));
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 18px var(--node-color, var(--color-primary));
    z-index: 20;
}

.node-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--node-color, var(--color-primary));
}
.node-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}
.node-role {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

/* Conceptual Flow Ribbon below visualization */
.ecosystem-flow-container {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--color-border);
}
.flow-title {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.ecosystem-flow-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.flow-step-item {
    flex: 1;
    min-width: 140px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-align: center;
}
.flow-step-stage {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent-azure);
    display: block;
}
.flow-step-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 4px;
}
.flow-step-role {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}
.flow-arrow {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
}

/* Animations */
@keyframes hubPulse {
    0% { box-shadow: 0 0 25px rgba(0, 102, 255, 0.25); }
    100% { box-shadow: 0 0 45px rgba(0, 102, 255, 0.5); }
}

@keyframes dashStream {
    to { stroke-dashoffset: -1000; }
}

/* Responsive Visualization Fallback */
@media (max-width: 850px) {
    .ecosystem-canvas-wrap {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .ecosystem-svg-network {
        display: none;
    }
    .ecosystem-hub-node {
        position: static;
        width: 100%;
        height: auto;
        border-radius: var(--radius-md);
        padding: 20px;
        margin-bottom: 12px;
    }
    .orbital-node {
        position: static !important;
        width: 100%;
    }
    .ecosystem-flow-track {
        flex-direction: column;
        align-items: stretch;
    }
    .flow-arrow {
        justify-content: center;
        transform: rotate(90deg);
        margin: 4px 0;
    }
}
