/* AI Brain Hero Animation - Like Portfolio Site */

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.ai-animation-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central AI Brain - Vibrant Purple/Pink Gradient */
.ai-brain {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.6),
                0 0 100px rgba(236, 72, 153, 0.4),
                inset 0 0 30px rgba(255, 255, 255, 0.2);
    animation: brainPulse 3s ease-in-out infinite;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.ai-brain i {
    font-size: 3rem;
    color: var(--text-white);
    animation: brainRotate 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

@keyframes brainPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.6),
                    0 0 100px rgba(236, 72, 153, 0.4),
                    inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 80px rgba(139, 92, 246, 0.8),
                    0 0 120px rgba(236, 72, 153, 0.6),
                    0 0 160px rgba(245, 158, 11, 0.3),
                    inset 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes brainRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-5deg) scale(1.05);
    }
    75% {
        transform: rotate(5deg) scale(1.05);
    }
}

/* Orbit Ring */
.orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Orbit Items - Colorful Cards */
.orbit-item {
    position: absolute;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.orbit-item:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.3);
}

.orbit-item i {
    font-size: 1.5rem;
    color: var(--text-white);
    animation: iconBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.orbit-item span {
    font-size: 0.75rem;
    color: var(--text-white);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: counterRotate 20s linear infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes counterRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

/* Position orbit items with unique colors */
.orbit-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4);
    border-color: rgba(16, 185, 129, 0.6);
}

.orbit-2 {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.2));
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.6);
}

.orbit-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.2));
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
    border-color: rgba(245, 158, 11, 0.6);
}

.orbit-4 {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(219, 39, 119, 0.2));
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.4);
    border-color: rgba(236, 72, 153, 0.6);
}

/* Connection Lines SVG */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.pulse-circle {
    fill: none;
    stroke: rgba(139, 92, 246, 0.4);
    stroke-width: 2;
    animation: pulse 3s ease-in-out infinite;
}

.pulse-circle:nth-child(2) {
    animation-delay: 1s;
    stroke: rgba(236, 72, 153, 0.4);
}

.pulse-circle:nth-child(3) {
    animation-delay: 2s;
    stroke: rgba(245, 158, 11, 0.4);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        stroke-width: 2;
    }
    50% {
        opacity: 0.7;
        stroke-width: 3;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.scroll-indicator span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ai-animation-container {
        width: 300px;
        height: 300px;
    }
    
    .ai-brain {
        width: 90px;
        height: 90px;
    }
    
    .ai-brain i {
        font-size: 2rem;
    }
    
    .orbit-item {
        width: 70px;
        height: 70px;
    }
    
    .orbit-item i {
        font-size: 1.2rem;
    }
    
    .orbit-item span {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        min-height: 300px;
    }
    
    .ai-animation-container {
        width: 250px;
        height: 250px;
    }
    
    .orbit-item {
        width: 60px;
        height: 60px;
    }
}
