/* public/assets/css/ai-chatbots.css */

:root {
    --bg-light: #ffffff;
    --bg-off-white: #f8f9fa;
    --text-dark: #000000; /* Dark almost black */
    --text-muted: #6b7280;
    --primary-blue: #000000; /* Dark Navy from your footer */
    --accent-ai: #000000; /* Professional Blue */
    --border-light: #e5e7eb;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: "Inter", sans-serif;
}

/* --- ANIMATIONS (The "Automated" Feel) --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* --- HERO SECTION --- */
.hero-wrapper {
    position: relative;
    padding: 120px 20px 80px;
    background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #ffffff 70%);
    text-align: center;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    background: #eff6ff;
    color: var(--accent-ai);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid #dbeafe;
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s forwards;
}

/* --- CHAT DEMO ANIMATION (The "Live" Element) --- */
.chat-demo-container {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
}

.chat-header {
    background: var(--primary-blue);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.ai-avatar-pulse {
    width: 12px;
    height: 12px;
    background: #4ade80; /* Green active dot */
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(74, 222, 128, 0.4);
    animation: pulse-ring 2s infinite;
}

.chat-body {
    padding: 20px;
    height: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9fafb;
}

.msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    max-width: 85%;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
}

.msg.ai {
    background: white;
    border: 1px solid var(--border-light);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg.user {
    background: var(--primary-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    animation-delay: 1s;
}

.msg.ai-2 {
    animation-delay: 2.5s; /* Delays response */
}

/* --- SECTIONS --- */
.content-section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}

/* --- FEATURE CARDS --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-ai);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #eff6ff;
    color: var(--accent-ai);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.feature-card li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-card li::before {
    content: "•";
    color: var(--accent-ai);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- TABLE SECTION --- */
.impact-table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.impact-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.impact-table th {
    background: var(--primary-blue);
    color: white;
    padding: 15px 25px;
    text-align: left;
    font-weight: 500;
}

.impact-table td {
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.impact-table tr:last-child td {
    border-bottom: none;
}

/* --- CTA SECTION --- */
.cta-box {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-radius: 0; /* Full width feel */
    position: relative;
    overflow: hidden;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 15px 40px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 30px;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .chat-demo-container {
        display: none; /* Hide complex animation on mobile if needed, or keep it */
    }
}

