
/* Digital Ecosystem Visualization */
#ecosystem-visual {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    perspective: 1000px;
}

.eco-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.eco-orbit-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    transform-style: preserve-3d;
    animation: eco-float 6s ease-in-out infinite;
}

/* Core Node (The Business) */
.eco-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 50px rgba(252, 211, 77, 0.1); /* Gold glow */
}

.eco-core::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px dashed rgba(252, 211, 77, 0.2);
    border-radius: 50%;
    animation: eco-spin 20s linear infinite;
}

/* Satellite Nodes */
.eco-satellite {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.eco-satellite:hover {
    transform: scale(1.1);
    border-color: rgba(252, 211, 77, 0.5);
    background: rgba(30, 41, 59, 0.9);
}

/* Positions */
.sat-1 { top: 0; left: 50%; transform: translate(-50%, -50%); } /* Traffic/Ads */
.sat-2 { bottom: 20%; left: 0; transform: translate(-50%, 50%); } /* Web */
.sat-3 { bottom: 20%; right: 0; transform: translate(50%, 50%); } /* AI */

/* Connecting Lines */
.eco-connection {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.3), transparent);
    transform-origin: left center;
    z-index: 1;
}

.conn-1 { transform: rotate(-90deg); width: 220px; } /* To Top */
.conn-2 { transform: rotate(150deg); width: 220px; } /* To Bottom Left */
.conn-3 { transform: rotate(30deg); width: 220px; } /* To Bottom Right */

/* Particle Flow */
.eco-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fcd34d;
    border-radius: 50%;
    filter: blur(2px);
    box-shadow: 0 0 10px #fcd34d;
    top: 50%;
    left: 50%;
    z-index: 2;
}

.flow-1 { animation: eco-flow-1 3s infinite linear; }
.flow-2 { animation: eco-flow-2 3s infinite linear 1s; }
.flow-3 { animation: eco-flow-3 3s infinite linear 2s; }

/* Keyframes */
@keyframes eco-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@keyframes eco-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes eco-flow-1 {
    0% { transform: rotate(-90deg) translateX(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: rotate(-90deg) translateX(220px); opacity: 0; } /* Matches sat-1 dist */
}
@keyframes eco-flow-2 {
    0% { transform: rotate(150deg) translateX(220px); opacity: 0; } /* Start at sat-2 */
    100% { transform: rotate(150deg) translateX(0); opacity: 1; } /* Flow TO core */
}
@keyframes eco-flow-3 {
    0% { transform: rotate(30deg) translateX(0); opacity: 0; }
    100% { transform: rotate(30deg) translateX(220px); opacity: 0; } /* Flow OUT to sat-3 */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .eco-orbit-container {
        width: 300px;
        height: 300px;
    }
    .eco-core { width: 100px; height: 100px; }
    .eco-satellite { width: 80px; height: 80px; font-size: 0.8rem; }
    .conn-1, .conn-2, .conn-3 { width: 110px; }
    @keyframes eco-flow-1 {
        100% { transform: rotate(-90deg) translateX(110px); opacity: 0; }
    }
    @keyframes eco-flow-2 {
        0% { transform: rotate(150deg) translateX(110px); opacity: 0; }
        100% { transform: rotate(150deg) translateX(0); opacity: 1; }
    }
    @keyframes eco-flow-3 {
        100% { transform: rotate(30deg) translateX(110px); opacity: 0; }
    }
}
