/* High Tech Ecosystem Animation - Palantir Style */

:root {
    --eco-bg-dark: #051f3d;
    --eco-accent-blue: #3d5886;
    --eco-accent-green: #3cb371;
    --eco-accent-gold: #f0c646;
    --eco-glow-blue: rgba(61, 88, 134, 0.6);
    --eco-glow-green: rgba(60, 179, 113, 0.6);
    --eco-border: rgba(255, 255, 255, 0.15);
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: transparent !important;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 700px;
    background-color: transparent !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Circles - Glassmorphism & Glow */
.circle {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--eco-border);
    transition: all 0.5s ease;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.circle-A {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(61, 88, 134, 0.2) 0%, rgba(5, 31, 61, 0.6) 100%);
    border: 1px solid rgba(60, 179, 113, 0.3);
    box-shadow: 0 0 40px rgba(60, 179, 113, 0.15), inset 0 0 20px rgba(60, 179, 113, 0.1);
    animation: pulse-core 4s infinite ease-in-out;
}

@keyframes pulse-core {
    0% { box-shadow: 0 0 40px rgba(60, 179, 113, 0.15), inset 0 0 20px rgba(60, 179, 113, 0.1); border-color: rgba(60, 179, 113, 0.3); }
    50% { box-shadow: 0 0 60px rgba(60, 179, 113, 0.3), inset 0 0 30px rgba(60, 179, 113, 0.2); border-color: rgba(60, 179, 113, 0.6); }
    100% { box-shadow: 0 0 40px rgba(60, 179, 113, 0.15), inset 0 0 20px rgba(60, 179, 113, 0.1); border-color: rgba(60, 179, 113, 0.3); }
}

.circle-B {
    width: 650px;
    height: 650px;
    border: 1px solid rgba(61, 88, 134, 0.3);
    box-shadow: 0 0 60px rgba(61, 88, 134, 0.1);
    animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.circle-C {
    background-color: transparent;
    position: absolute;
    width: 850px;
    height: 850px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    animation: rotate-reverse-slow 120s linear infinite;
}

@keyframes rotate-reverse-slow {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Orbit Animations */
.internal-protection {
    animation: orbitA 20s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg) translateX(175px) rotate(0deg);
}

.internal-protection:nth-child(3) { animation-delay: -4s; }
.internal-protection:nth-child(4) { animation-delay: -8s; }
.internal-protection:nth-child(5) { animation-delay: -12s; }
.internal-protection:nth-child(6) { animation-delay: -16s; }
.internal-protection:nth-child(7) { animation-delay: -20s; }

@keyframes orbitA {
    from { transform: translate(-50%, -50%) rotate(0deg) translateX(175px) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg) translateX(175px) rotate(-360deg); }
}

.external-protection {
    animation: orbitB 30s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg) translateX(325px) rotate(0deg);
}

.external-protection:nth-child(1) { animation-delay: 0s; }
.external-protection:nth-child(2) { animation-delay: -10s; }
.external-protection:nth-child(3) { animation-delay: -20s; }

@keyframes orbitB {
    from { transform: translate(-50%, -50%) rotate(0deg) translateX(325px); }
    to { transform: translate(-50%, -50%) rotate(360deg) translateX(325px) rotate(-360deg); }
}

/* Meteors / Data Packets */
.good-meteor {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent; /* Hide icons inside meteors for cleaner look */
    box-shadow: 0 0 10px #fff, 0 0 20px var(--eco-accent-green);
    animation: orbitC 15s linear infinite;
    transform-origin: center calc(100% + 425px);
}

.good-meteor i { display: none; } /* Hide icons */

.good-meteor-1 { animation-delay: 0s; }
.good-meteor-2 { animation-delay: -2s; }
.good-meteor-3 { animation-delay: -4s; }
.good-meteor-4 { animation-delay: -6s; }
.good-meteor-5 { animation-delay: -8s; }
.good-meteor-6 { animation-delay: -10s; }
.good-meteor-7 { animation-delay: -12s; }
.good-meteor-8 { animation-delay: -14s; }

@keyframes orbitC {
    from { transform: rotate(0deg) translateX(425px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(425px) rotate(-360deg); }
}

/* Platform Icons */
.platform-1, .internal-protection, .external-protection {
    width: 60px;
    height: 60px;
    background: rgba(10, 35, 65, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: absolute;
    z-index: 100;
    font-size: 24px;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.platform-1:hover, .internal-protection:hover, .external-protection:hover {
    transform: scale(1.1);
    border-color: var(--eco-accent-green);
    box-shadow: 0 0 20px var(--eco-glow-green);
    color: var(--eco-accent-green);
}

/* Titles */
.platform-title, .internal-platform-title, .external-platform-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    z-index: 99;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.platform-title { top: calc(50% + 60px); color: #fff; font-weight: 700; }
.internal-platform-title { top: calc(50% + 200px); }
.external-platform-title { top: calc(50% + 340px); }

/* Tooltips */
[data-title] { cursor: pointer; }

[data-title]::before {
    content: attr(data-title);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(5, 31, 61, 0.95);
    border: 1px solid var(--eco-accent-green);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

[data-title]:hover::before { opacity: 1; bottom: 150%; }

/* Corner Icons - Status Indicators */
.corner-icons {
    border-radius: 50%;
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}
.corner-icons:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.corner-icons.top-left { top: 20px; left: 20px; }
.corner-icons.top-right { top: 20px; right: 20px; }
.corner-icons.bottom-left { bottom: 20px; left: 20px; }
.corner-icons.bottom-right { bottom: 20px; right: 20px; }
.corner-icons i { font-size: 18px; }

/* Responsive */
@media (max-width: 1760px) {
    .circle-C { width: 740px; height: 740px; }
    .circle-B { width: 520px; height: 520px; }
    .circle-A { width: 330px; height: 330px; }
    @keyframes orbitC {
        from { transform: rotate(0deg) translateX(370px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(370px) rotate(-360deg); }
    }
    @keyframes orbitB {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(260px); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(260px) rotate(-360deg); }
    }
    @keyframes orbitA {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(165px); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(165px) rotate(-360deg); }
    }
}

@media (max-width: 768px) {
    .main-container { height: 500px; }
    .circle-C { display: none; } /* Hide outer ring on mobile */
    .circle-B { width: 350px; height: 350px; }
    .circle-A { width: 200px; height: 200px; }
    .platform-1, .internal-protection, .external-protection { width: 40px; height: 40px; font-size: 16px; }
    
    @keyframes orbitA {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(100px); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(100px) rotate(-360deg); }
    }
    @keyframes orbitB {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(175px); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(175px) rotate(-360deg); }
    }
    
    .platform-title { top: calc(50% + 40px); font-size: 0.8rem; }
    .internal-platform-title { top: calc(50% + 120px); font-size: 0.8rem; }
    .external-platform-title { display: none; }
}
