/* AI Team Section */
.ai-team {
    padding: 100px 20px;
    text-align: center;
}

.ai-team-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.ai-team-header {
    margin-bottom: 80px;
}

.ai-team-title {
    font-size: 3.5em;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.2;
}

.ai-team-title .highlight {
    color: #993ab3;
}

/* Main Grid - Zigzag Layout */
.ai-features-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Feature Cards - Zigzag Layout */
.ai-feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: linear-gradient(45deg, #e8f4fd 0%, #f0e6ff 100%);
    border-radius: 25px;
    border: white 5px solid;
    padding: 60px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Reverse layout for even cards (2nd, 4th, etc.) */
.ai-feature-card:nth-child(even) {
    direction: rtl;
}

.ai-feature-card:nth-child(even) .ai-feature-content-title,
.ai-feature-card:nth-child(even) .feature-media {
    direction: ltr;
}

/* Left Content */
.ai-feature-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-feature-content-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.ai-feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    background: transparent;
    color: white;
    flex-shrink: 0;
}

.ai-feature-title {
    width: 80%;
    font-size: 2.8em;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    text-align: left;
}

.feature-separator {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d0e0fb, #d9bcf4);
    border-radius: 2px;
}

.ai-feature-description {
    font-size: 1.2em;
    color: #59626b;
    line-height: 1.6;
    max-width: 500px;
}

/* Right Content - Media */
.feature-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Chat Interface Mockup */
.chat-interface {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.chat-header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 25px;
}

.chat-header-icon {
    width: 15px;
    height: 15px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 12px;
}

.chat-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #374151;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-avatar {
    background: #10b981;
}

.ai-avatar {
    background: #993ab3;
}

.message-content {
    background: #f9fafb;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 1em;
    color: #374151;
    line-height: 1.5;
    max-width: 80%;
    border: 1px solid #e5e7eb;
}

.ai-message .message-content {
    background: rgba(153, 58, 179, 0.08);
    border: 1px solid rgba(153, 58, 179, 0.2);
}

.typing-indicator {
    color: #6b7280;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #993ab3;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Analytics Dashboard Mockup */
.analytics-dashboard {
    background: white;
    border-radius: 20px;
    padding: 35px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    position: relative;
}

.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.dashboard-subtitle {
    font-size: 0.95em;
    color: #6b7280;
    line-height: 1.4;
}

.analytics-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1em;
}

.stats-list li:last-child {
    border-bottom: none;
}

.stat-label {
    color: #374151;
    font-weight: 600;
}

.stat-value {
    color: #6b7280;
    font-weight: 500;
}

.chart-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chart-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#993ab3 0deg 250deg, #e5e7eb 250deg 360deg);
    position: relative;
}

.chart-circle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
}

.blue-tooltip {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 500;
    max-width: 200px;
    line-height: 1.3;
}

.blue-tooltip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #3b82f6;
}

.ask-input {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ask-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9em;
    background: #f9fafb;
}

.ask-input input::placeholder {
    color: #9ca3af;
}

.ask-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ask-button:hover {
    background: #2563eb;
}

/* Phone Mockup */
.phone-mockup {
    width: 220px;
    height: 450px;
    background: #000;
    border-radius: 30px;
    padding: 12px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #000;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.phone-content {
    padding: 30px 15px 15px 15px;
    height: 100%;
    overflow-y: auto;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .ai-features-grid {
        width: 80%;
    }
    .ai-feature-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 40px;
    }

    .ai-feature-card:nth-child(even) {
        direction: ltr;
    }

    .ai-feature-content {
        text-align: center;
        width: 75%;
        justify-self: center;
    }

    .ai-feature-title {
        font-size: 1.5em;
    }

    .ai-feature-description {
        font-size: 1em;
        font-weight: 300;
        line-height: 1.5em;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .ai-team {
        padding: 80px 15px;
    }

    .ai-team-title {
        font-size: 2.5em;
    }

    .ai-features-grid {
        gap: 60px;
    }

    .ai-feature-card {
        padding: 40px 30px;
    }

    .ai-feature-title {
        font-size: 1.6em;
    }

    .analytics-content {
        gap: 20px;
    }

    .chat-interface,
    .analytics-dashboard {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .ai-team-title {
        font-size: 1.8em;
    }

    .ai-feature-card {
        padding: 30px 20px;
    }

    .ai-feature-title {
        font-size: 1.4em;
    }

    .ai-feature-description {
        font-size: 0.8em;
    }

    .chat-interface,
    .analytics-dashboard {
        padding: 20px;
    }
}
