/* ==========================================================================
   AI CIRCLE COMPONENT - DANIEL WOŹNIAK
   ========================================================================== */

/* AI Circle Section */
.ai-circle {
    padding: 4rem 0;
    background: var(--primary-dark);
    margin: 2rem 0;
    position: relative;
}

.ai-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,122,204,0.5), transparent);
}

/* JARV Interactive Element */
.jarv-interactive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
    align-items: flex-start;
}

.jarv-avatar-section {
    text-align: center;
    padding: 2rem;
}

.jarv-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,122,204,0.3);
}

.jarv-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0,122,204,0.5);
}

.jarv-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    animation: pulse 2s infinite;
    opacity: 0.7;
}

.jarv-face {
    color: white;
    font-size: 2rem;
}

.jarv-eyes {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.jarv-eye {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes blink {
    0%, 95% { height: 8px; }
    96%, 99% { height: 2px; }
    100% { height: 8px; }
}

.jarv-mouth {
    width: 20px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
}

.jarv-chat-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.jarv-chat-btn:hover {
    background: var(--accent-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,122,204,0.3);
}

.jarv-chat-section {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,122,204,0.3);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.jarv-chat-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chat-header h3 {
    color: var(--text-primary-light);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
}

.jarv-message {
    align-items: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.message-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.message-content p + p {
    margin-top: 0.5rem;
}

.chat-input-section {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

#chatInput {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--white);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#chatInput::placeholder {
    color: rgba(255,255,255,0.5);
}

#chatInput:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255,255,255,0.15);
}

#chatSend {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#chatSend:hover {
    background: var(--accent-blue-light);
}

.quick-questions {
    margin-top: 1rem;
}

.quick-questions p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.quick-question {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    margin: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-question:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-blue);
    color: var(--white);
}

/* AI Agents Grid */
.ai-agents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.agent-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
}

.agent-card:hover::before {
    left: 100%;
    transition-delay: 0.1s;
}

.agent-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,122,204,0.2);
}

.agent-number {
    font-family: var(--font-family-mono);
    font-size: 0.875rem;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.agent-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.agent-role {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agent-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jarv-interactive {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .jarv-chat-section {
        padding: 1.5rem;
    }

    .ai-agents {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .agent-card {
        padding: 1.5rem;
    }

    .jarv-avatar {
        width: 100px;
        height: 100px;
    }

    .chat-input-section {
        flex-direction: column;
    }

    .quick-questions {
        text-align: center;
    }

    .quick-question {
        display: block;
        margin: 0 0 0.5rem 0;
        width: 100%;
    }
}