/* ENHANCED COGNITIVE AUGMENTATION - Sophisticated Neural Theme */

/* ===== NEURAL BACKGROUND SYSTEM ===== */
body {
    background: 
        radial-gradient(ellipse at top left, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 0, 245, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a0a2e 50%, #2e0a1a 100%);
    background-attachment: fixed;
}

/* ===== SOPHISTICATED NEURAL NETWORK ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    overflow: hidden;
}

.neural-node {
    position: absolute;
    width: clamp(3px, 0.5vw, 6px);
    height: clamp(3px, 0.5vw, 6px);
    background: radial-gradient(circle, rgba(0, 245, 255, 0.9) 0%, rgba(255, 0, 245, 0.3) 70%, transparent 100%);
    border-radius: 50%;
    animation: neuralPulse 3s ease-in-out infinite alternate;
    filter: blur(0.5px);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 245, 255, 0.2) 20%, 
        rgba(255, 0, 245, 0.6) 50%, 
        rgba(0, 245, 255, 0.2) 80%, 
        transparent 100%);
    animation: neuralFlow 4s ease-in-out infinite;
    filter: blur(0.5px);
}

@keyframes neuralPulse {
    0% { 
        opacity: 0.3; 
        transform: scale(1); 
        box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
    }
    100% { 
        opacity: 1; 
        transform: scale(1.8); 
        box-shadow: 0 0 30px rgba(0, 245, 255, 0.6);
    }
}

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

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


.hero-content {
    z-index: 10;
    max-width: min(900px, 95vw);
    margin: 0 auto;
    text-align: center; /* Add this */
    padding: 0 var(--space-lg); /* Add this */
}


.hero h1 {
    background: linear-gradient(135deg, #ffffff 0%, #00f5ff 30%, #ff00f5 70%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cognitiveGradient 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(0, 245, 255, 0.4));
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    max-width: min(900px, 90vw);
    line-height: 1.1;
}

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

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

/* ===== SOPHISTICATED BRAIN VISUALIZATION ===== */
.brain-viz {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(400px, 40vw, 600px);
    height: clamp(400px, 40vw, 600px);
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.brain-outline {
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    background: linear-gradient(45deg, rgba(0, 245, 255, 0.2), rgba(255, 0, 245, 0.2));
    background-clip: padding-box;
    border-image: linear-gradient(45deg, rgba(0, 245, 255, 0.4), rgba(255, 0, 245, 0.4)) 1;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: brainEnhancedPulse 6s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes brainEnhancedPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: blur(1px) drop-shadow(0 0 20px rgba(0, 245, 255, 0.3));
    }
    50% { 
        transform: scale(1.08) rotate(3deg); 
        filter: blur(1px) drop-shadow(0 0 40px rgba(255, 0, 245, 0.5));
    }
}

.synapse {
    position: absolute;
    width: clamp(4px, 0.8vw, 8px);
    height: clamp(4px, 0.8vw, 8px);
    background: radial-gradient(circle, rgba(0, 245, 255, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    animation: synapseEnhanced 2s ease-in-out infinite alternate;
    filter: blur(0.5px);
}

@keyframes synapseEnhanced {
    0% { 
        opacity: 0.4; 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
    }
    100% { 
        opacity: 1; 
        transform: scale(2);
        box-shadow: 0 0 30px rgba(0, 245, 255, 0.8);
    }
}

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

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

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem);
    transition: all 0.5s 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;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.6), transparent);
    animation: borderScan 4s linear infinite;
}

@keyframes borderScan {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(0); opacity: 1; }
}

.feature-card:hover {
    transform: translateY(-12px) rotateX(5deg) scale(1.02);
    box-shadow: 0 35px 70px rgba(0, 245, 255, 0.25);
    border-color: rgba(0, 245, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card:nth-child(odd):hover {
    box-shadow: 0 35px 70px rgba(0, 245, 255, 0.25);
}

.feature-card:nth-child(even):hover {
    box-shadow: 0 35px 70px rgba(255, 0, 245, 0.25);
}

.feature-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    background: linear-gradient(135deg, #00f5ff 0%, #ff00f5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    position: relative;
    animation: iconGlow 4s ease-in-out infinite alternate;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

@keyframes iconGlow {
    0% { 
        box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
        filter: brightness(1);
    }
    100% { 
        box-shadow: 0 15px 40px rgba(255, 0, 245, 0.4);
        filter: brightness(1.1);
    }
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 18px;
    z-index: -1;
}

.feature-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;
}

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

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #00f5ff 50%, #ff00f5 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(700px, 90vw);
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .brain-viz {
        display: none;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 4rem 0;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .neural-node, .neural-connection, .synapse {
        animation: none;
        opacity: 0.3;
    }
    
    .brain-outline {
        animation: none;
    }
    
    .feature-icon {
        animation: none;
    }
    
    .feature-card::before {
        animation: none;
    }
}

/* ===== COGNITIVE ENHANCEMENT INDICATORS ===== */
.enhancement-meter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    opacity: 0.8;
}

.meter-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f5ff, #ff00f5);
    border-radius: 6px;
    animation: meterPulse 3s ease-in-out infinite;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes meterPulse {
    0%, 100% { 
        opacity: 0.8; 
        box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
    }
    50% { 
        opacity: 1; 
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
    }
}

/* 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;
}