/* ENHANCED DIGITAL SYMBIOSIS - Sophisticated Partnership Theme */

/* ===== SYMBIOTIC BACKGROUND SYSTEM ===== */
body {
    background: 
        radial-gradient(ellipse at top right, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(0, 136, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(0, 255, 136, 0.03) 0%, transparent 70%),
        linear-gradient(135deg, #0a0a0a 0%, #0a1a0a 50%, #0a0a1a 100%);
    background-attachment: fixed;
}

/* ===== SOPHISTICATED PARTICLE SYSTEM ===== */
.particle-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.5;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.8) 0%, rgba(0, 136, 255, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    filter: blur(1px);
    animation: symbioticFloat 8s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 136, 0.2) 20%, 
        rgba(0, 136, 255, 0.6) 50%, 
        rgba(0, 255, 136, 0.2) 80%, 
        transparent 100%);
    animation: connectionPulse 6s ease-in-out infinite;
    border-radius: 2px;
    filter: blur(0.5px);
}

@keyframes symbioticFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1) rotate(0deg); 
        opacity: 0.6; 
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% { 
        transform: translateY(-30px) scale(1.2) rotate(180deg); 
        opacity: 1; 
        box-shadow: 0 0 40px rgba(0, 136, 255, 0.5);
    }
}

@keyframes connectionPulse {
    0%, 100% { 
        opacity: 0; 
        transform: scaleX(0.3);
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1);
    }
}

/* ===== ENHANCED HERO WITH SYMBIOSIS VISUALIZATION ===== */
.hero {
    background: 
        radial-gradient(ellipse at center, rgba(0, 255, 136, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 136, 255, 0.06) 0%, transparent 60%);
    position: relative;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: min(900px, 95vw);
    margin: 0 auto;
}

.hero h1 {
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 25%, #0088ff 75%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: symbiosisGradient 8s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(0, 255, 136, 0.4));
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

@keyframes symbiosisGradient {
    0%, 100% { 
        background-position: 0% 50%; 
        filter: drop-shadow(0 0 40px rgba(0, 255, 136, 0.4));
    }
    50% { 
        background-position: 100% 50%; 
        filter: drop-shadow(0 0 50px rgba(0, 136, 255, 0.5));
    }
}

.hero p {
    text-align: center;
    max-width: min(750px, 90vw);
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* ===== SOPHISTICATED SYMBIOSIS VISUALIZATION ===== */
.symbiosis-viz {
    position: absolute;
    right: -3%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(400px, 35vw, 550px);
    height: clamp(400px, 35vw, 550px);
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}

.orbit-system {
    width: 100%;
    height: 100%;
    position: relative;
    animation: systemEnhancedRotate 25s linear infinite;
}

.orbit {
    position: absolute;
    border: 2px solid transparent;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.2), rgba(0, 136, 255, 0.2));
    background-clip: padding-box;
    border-image: linear-gradient(45deg, rgba(0, 255, 136, 0.4), rgba(0, 136, 255, 0.4)) 1;
    border-radius: 50%;
    animation: orbitEnhancedSpin 20s linear infinite reverse;
    filter: blur(1px);
}

.orbit-1 { 
    width: 60%; 
    height: 60%; 
    top: 20%; 
    left: 20%; 
    animation-duration: 25s;
}

.orbit-2 { 
    width: 80%; 
    height: 80%; 
    top: 10%; 
    left: 10%; 
    animation-duration: 35s;
}

.orbit-3 { 
    width: 40%; 
    height: 40%; 
    top: 30%; 
    left: 30%; 
    animation-duration: 15s;
}

@keyframes systemEnhancedRotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

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

.node {
    position: absolute;
    width: clamp(8px, 1.5vw, 16px);
    height: clamp(8px, 1.5vw, 16px);
    background: radial-gradient(circle, rgba(0, 255, 136, 0.9) 0%, rgba(0, 136, 255, 0.6) 70%, transparent 100%);
    border-radius: 50%;
    animation: nodeEnhancedGlow 3s ease-in-out infinite alternate;
    filter: blur(0.5px);
}

.human-node {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.ai-node {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1.5s;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.6);
}

@keyframes nodeEnhancedGlow {
    0% { 
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
        transform: translateX(-50%) scale(1);
    }
    100% { 
        box-shadow: 0 0 40px rgba(0, 136, 255, 0.8);
        transform: translateX(-50%) scale(1.3);
    }
}

/* ===== ENHANCED COLLABORATION SECTION ===== */
.collaboration {
    padding: clamp(6rem, 10vw, 10rem) 0;
    background: 
        radial-gradient(ellipse at top, rgba(0, 255, 136, 0.04) 0%, transparent 70%),
        linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.02), transparent);
    position: relative;
}

.collaboration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.003) 50%, transparent 70%);
    pointer-events: none;
}

.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-top: clamp(3rem, 6vw, 5rem);
}

.collab-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    text-align: center;
}

.collab-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.3), rgba(0, 136, 255, 0.3), rgba(0, 255, 136, 0.3));
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.collab-card:hover::before {
    opacity: 1;
}

.collab-card:hover {
    transform: translateY(-15px) rotateX(8deg) scale(1.03);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 136, 0.4);
}

.collab-card:nth-child(odd):hover {
    box-shadow: 0 40px 80px rgba(0, 255, 136, 0.25);
}

.collab-card:nth-child(even):hover {
    box-shadow: 0 40px 80px rgba(0, 136, 255, 0.25);
}

.collab-icon {
    width: clamp(70px, 10vw, 90px);
    height: clamp(70px, 10vw, 90px);
    background: linear-gradient(135deg, #00ff88 0%, #0088ff 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
    position: relative;
    animation: symbioticGlow 5s ease-in-out infinite alternate;
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
}

@keyframes symbioticGlow {
    0% { 
        box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
        filter: brightness(1);
    }
    100% { 
        box-shadow: 0 20px 50px rgba(0, 136, 255, 0.4);
        filter: brightness(1.15);
    }
}

.collab-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(10, 10, 10, 0.85);
    border-radius: 19px;
    z-index: -1;
}

.collab-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-align: center;
}

.collab-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    text-align: center;
}

.strength-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 25px;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    color: #00ff88;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

/* ===== ENHANCED DEMO SECTION ===== */
.demo-section {
    padding: clamp(6rem, 10vw, 10rem) 0;
    background: 
        radial-gradient(ellipse at center, rgba(0, 255, 136, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 136, 255, 0.06) 0%, transparent 60%);
    position: relative;
}

.demo-container {
    max-width: min(900px, 95vw);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    border-radius: 30px;
    padding: clamp(2.5rem, 5vw, 4rem);
    border: 1px solid rgba(0, 255, 136, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.demo-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.demo-btn {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.25rem, 3vw, 2rem);
    background: rgba(0, 255, 136, 0.08);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 30px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    letter-spacing: 0.02em;
}

.demo-btn:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-3px);
}

.demo-btn.active {
    background: linear-gradient(135deg, #00ff88, #0088ff);
    color: #000000;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.demo-content {
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.demo-visual {
    width: clamp(250px, 40vw, 350px);
    height: clamp(120px, 20vw, 180px);
    background: linear-gradient(45deg, 
        rgba(0, 255, 136, 0.15) 0%, 
        rgba(0, 136, 255, 0.15) 50%,
        rgba(0, 255, 136, 0.15) 100%);
    border-radius: 20px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3rem, 8vw, 4rem);
    animation: demoEnhancedFloat 4s ease-in-out infinite;
    border: 1px solid rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(20px);
}

@keyframes demoEnhancedFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    }
    50% { 
        transform: translateY(-15px) scale(1.02); 
        box-shadow: 0 20px 40px rgba(0, 136, 255, 0.3);
    }
}

.demo-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

.demo-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    max-width: 600px;
    text-align: center;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 50%, #0088ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    animation: gradientShift 8s ease-in-out infinite;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    max-width: min(750px, 90vw);
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .symbiosis-viz {
        display: none;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .collab-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .demo-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .collaboration {
        padding: 4rem 0;
    }
    
    .demo-section {
        padding: 4rem 0;
    }
    
    .demo-container {
        padding: 2rem 1.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .particle, .connection-line {
        animation: none;
        opacity: 0.3;
    }
    
    .orbit-system, .orbit {
        animation: none;
    }
    
    .node {
        animation: none;
    }
    
    .collab-icon {
        animation: none;
    }
    
    .demo-visual {
        animation: none;
    }
}

/* Add to the existing CSS files */

/* Ensure card consistency */
.feature-card,
.collab-card,
.dimension-card {
    text-align: center;
}

.feature-card h3,
.collab-card h3,
.dimension-card h3 {
    text-align: center;
    line-height: 1.3;
}

.feature-card p,
.collab-card p,
.dimension-card p {
    text-align: center;
    line-height: 1.6;
}