/* AI Ecosystem Component */

.ai-ecosystem {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    animation: fadeInScroll 1.5s ease-out forwards;
}

@keyframes fadeInScroll {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Background Lines */
.ecosystem-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.eco-line {
    fill: none;
    stroke: rgba(59, 130, 246, 0.15); /* Light blue */
    stroke-width: 1px; /* Thinner */
    filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.2));
}

/* Static Flattened Orbit Rings */
.orb-ring {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg); /* Ellipse perspective */
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.2); /* Blue */
    z-index: 2;
    pointer-events: none;
}
.ring-1 { width: 450px; height: 450px; }
.ring-2 { width: 750px; height: 750px; border-color: rgba(59, 130, 246, 0.15); }
.ring-3 { width: 1100px; height: 1100px; border-color: rgba(59, 130, 246, 0.1); }

/* Center Orb */
.center-orb {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.orb-core {
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Standard dark background color */
    border: 1px solid rgba(59, 130, 246, 0.4); /* Softer blue border */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.3); /* Softer blue shadows */
    z-index: 2;
}

.orb-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); /* Softer icon glow */
}

.orb-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%); /* Blue glow */
    border-radius: 50%;
    z-index: 1;
    animation: orb-pulse 4s ease-in-out infinite alternate;
}

@keyframes orb-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; } /* Softer pulse */
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.3; }
}

/* Single Main Cluster */
.main-cluster {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 5;
}

.tech-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Individual Tech Nodes */
.tech-node {
    position: relative;
    width: 55px;
    height: 55px;
    background: rgba(15, 23, 42, 0.8); /* Dark background matching reference */
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-node:hover {
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.6); /* Soft blue border */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); /* Soft blue glow */
    z-index: 10;
}

.tech-node img,
.tech-node svg {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* Tooltips */
.tech-node::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
    pointer-events: none;
}
.tech-node:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .ai-ecosystem { height: 500px; }
    .tech-row { gap: 1rem; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .ai-ecosystem { height: 500px; }
    .center-orb { bottom: 50px; }
    .orb-ring { transform: translateX(-50%) rotateX(60deg); bottom: -100px; }
    .main-cluster { top: 50px; }
}

@media (max-width: 550px) {
    .ai-ecosystem { min-height: 500px; padding-top: 2rem; }
    .tech-row { gap: 0.8rem; }
    .tech-node { width: 45px; height: 45px; font-size: 1.5rem; }
    .tech-node img, .tech-node svg { width: 22px; height: 22px; }
}
