/* Sumysan — 3D Effects (Green & White) */
.scene-3d {
    perspective: 1400px;
    transform-style: preserve-3d;
}

[data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Network backbone visual (ecosystem graphic) */
.network-3d {
    position: relative;
    width: 280px;
    height: 280px;
    transform-style: preserve-3d;
    animation: networkSpin 24s linear infinite;
}

.network-node {
    position: absolute;
    border-radius: 10px;
    background: linear-gradient(145deg, #22C55E, #14532D);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}

.network-node.cube-lg {
    width: 52px; height: 52px;
    top: 40%; left: 38%;
    border-radius: 12px;
}

.network-node.cube-md {
    width: 36px; height: 36px;
    top: 18%; left: 55%;
}

.network-node.cube-sm {
    width: 24px; height: 24px;
    top: 62%; left: 22%;
}

.network-node.sphere {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #16A34A;
}

.network-node.s1 { top: 12%; left: 30%; }
.network-node.s2 { top: 28%; left: 72%; }
.network-node.s3 { top: 70%; left: 58%; }
.network-node.s4 { top: 48%; left: 12%; }
.network-node.s5 { top: 78%; left: 40%; }

.network-lines {
    position: absolute;
    inset: 0;
    opacity: 0.45;
}

.network-lines line {
    stroke: #16A34A;
    stroke-width: 1.2;
}

@keyframes networkSpin {
    from { transform: rotateY(0deg) rotateX(8deg); }
    to { transform: rotateY(360deg) rotateX(8deg); }
}

/* Cube stack */
.cube-stack {
    position: relative;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    animation: cubeSpin 14s linear infinite;
}

.cube {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(22, 163, 74, 0.45);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(22, 163, 74, 0.05));
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.15);
}

.cube-a { transform: translateZ(28px) rotateX(18deg) rotateY(-18deg); top: 8px; left: 26px; }
.cube-b { transform: translateZ(0) rotateX(8deg) rotateY(12deg); top: 30px; left: 8px; opacity: 0.75; width: 40px; height: 40px; }
.cube-c { transform: translateZ(-22px) rotateX(-8deg) rotateY(24deg); top: 42px; left: 38px; opacity: 0.5; width: 32px; height: 32px; }

@keyframes cubeSpin {
    from { transform: rotateY(0deg) rotateX(10deg); }
    to { transform: rotateY(360deg) rotateX(10deg); }
}

/* Ring orbit */
.ring-orbit {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(22, 163, 74, 0.4);
    animation: ringPulse 4s ease-in-out infinite;
}

.ring-1 { width: 110px; height: 110px; transform: rotateX(70deg); }
.ring-2 {
    width: 78px; height: 78px;
    border-color: rgba(20, 83, 45, 0.35);
    transform: rotateX(70deg) rotateZ(45deg);
    animation-delay: -2s;
}

.orbit-core {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22C55E, #14532D);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 0 28px rgba(22, 163, 74, 0.4);
    z-index: 2;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.5; transform: rotateX(70deg) scale(1); }
    50% { opacity: 1; transform: rotateX(70deg) scale(1.06); }
}

/* DNA */
.dna-visual {
    position: relative;
    width: 180px;
    height: 260px;
    transform-style: preserve-3d;
    animation: dnaRotate 20s linear infinite;
}

.dna-bar {
    position: absolute;
    left: 50%;
    width: 110px;
    height: 3px;
    margin-left: -55px;
    background: linear-gradient(90deg, #16A34A, transparent, #14532D);
    border-radius: 4px;
}

.dna-bar::before,
.dna-bar::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    top: -3.5px;
}

.dna-bar::before { left: 0; background: #16A34A; box-shadow: 0 0 10px #16A34A; }
.dna-bar::after { right: 0; background: #14532D; box-shadow: 0 0 10px #14532D; }

@keyframes dnaRotate {
    from { transform: rotateY(0); }
    to { transform: rotateY(360deg); }
}

/* Venture detail */
.venture-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0 4rem;
    border-bottom: 1px solid var(--border);
}

.venture-detail:last-of-type { border-bottom: none; padding-bottom: 5rem; }

.venture-detail.reverse { direction: rtl; }
.venture-detail.reverse > * { direction: ltr; }

.venture-detail h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    margin-bottom: 0.85rem;
}

.venture-detail p {
    color: var(--text-muted);
    margin-bottom: 1.35rem;
    font-size: 1.05rem;
}

.feature-list { margin-bottom: 1.75rem; }

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.feature-list i {
    color: var(--green);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.detail-visual {
    height: 300px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(22,163,74,0.1), transparent 60%);
}

.layer-stack {
    position: relative;
    width: 150px;
    height: 150px;
    transform-style: preserve-3d;
    animation: layerFloat 8s ease-in-out infinite;
}

.layer {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 1.5px solid rgba(22, 163, 74, 0.35);
    background: rgba(22, 163, 74, 0.08);
}

.layer:nth-child(1) { transform: translateZ(0) rotateX(55deg); }
.layer:nth-child(2) { transform: translateZ(28px) rotateX(55deg); opacity: 0.7; }
.layer:nth-child(3) { transform: translateZ(56px) rotateX(55deg); opacity: 0.4; }

@keyframes layerFloat {
    0%, 100% { transform: rotateY(-12deg) translateY(0); }
    50% { transform: rotateY(12deg) translateY(-10px); }
}

.ai-brain {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #22C55E, #14532D);
    display: grid;
    place-items: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 0 40px rgba(22, 163, 74, 0.35);
    animation: brainPulse 3s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(22, 163, 74, 0.3); }
    50% { transform: scale(1.06); box-shadow: 0 0 50px rgba(22, 163, 74, 0.5); }
}

@media (max-width: 900px) {
    .venture-detail,
    .venture-detail.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .ecosystem-visual { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    .cube-stack, .ring, .dna-visual, .layer-stack,
    .floating-platform, .space-orb, .network-3d, .ai-brain {
        animation: none !important;
    }
}
