/* Global Styles */
:root {
    --primary-color: #6200ea;
    --secondary-color: #03dac6;
    --text-color: #333;
    --light-text: #fff;
    --background-color: #f9f9f9;
    --card-bg: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #6200ea 0%, #b388ff 100%);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

section {
    padding: 5rem 2rem;
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Navigation */
header {
    background: var(--gradient);
    color: var(--light-text);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Mobile menu for responsive design */
.nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--gradient);
    padding: 1rem 0;
    z-index: 100;
}

.nav-links.show li {
    margin: 0.5rem 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    padding: 4rem 2rem 6rem;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    text-align: left;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bot-image {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

.bot-image i {
    font-size: 8rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-primary, .cta-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-primary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.cta-secondary {
    background-color: transparent;
    border: 2px solid var(--light-text);
    color: var(--light-text);
}

.cta-primary:hover {
    background-color: #02c2b0;
    transform: translateY(-3px);
}

.cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Features Section */
.features {
    background-color: var(--background-color);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* APIs Section */
.apis {
    background-color: #f0f0f0;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.api-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.api-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.api-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Demo Section */
.demo {
    background-color: var(--background-color);
}

.demo-scenarios {
    max-width: 800px;
    margin: 0 auto;
}

.scenario {
    margin-bottom: 2.5rem;
}

.scenario-message {
    padding: 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.scenario-message.user {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
}

.scenario-message.bot {
    background-color: #f9f0ff;
    border-left: 4px solid var(--primary-color);
}

/* Chatbot Section */
.chatbot-section {
    background-color: #f0f0f0;
    padding: 5rem 2rem;
}

.chatbot-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-message {
    display: flex;
    gap: 1rem;
    max-width: 80%;
}

.chat-message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.chat-message.bot .chat-avatar {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.chat-message.user .chat-avatar {
    background-color: #1890ff;
    color: var(--light-text);
}

.chat-bubble {
    background-color: #f9f0ff;
    padding: 1rem;
    border-radius: 1rem;
    border-bottom-left-radius: 0;
    position: relative;
}

.chat-message.user .chat-bubble {
    background-color: #e6f7ff;
    border-radius: 1rem;
    border-bottom-right-radius: 0;
}

.chat-bubble p {
    margin-bottom: 0.8rem;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.chat-bubble ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.chat-bubble li {
    margin-bottom: 0.5rem;
}

.chat-bubble img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.chatbot-input {
    display: flex;
    padding: 1rem;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
}

.chatbot-input input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
}

.chatbot-input input:focus {
    border-color: var(--primary-color);
}

.chatbot-input button {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: var(--border-radius);
    padding: 0 1.5rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chatbot-input button:hover {
    background-color: #5000d2;
}

.loading-indicator {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    animation: pulse 1.5s infinite ease-in-out;
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Extensions Section */
.extensions {
    background-color: #f0f0f0;
}

.extension-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.extension {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.extension i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Differentiators Section */
.differentiators {
    background-color: var(--background-color);
}

.differentiator-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.differentiator {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.differentiator h3 {
    color: var(--primary-color);
}

/* Tech Stack Section */
.tech-stack {
    background-color: #f0f0f0;
    text-align: center;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    background-color: var(--card-bg);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Footer */
footer {
    background-color: #333;
    color: var(--light-text);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--light-text);
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-content h2 {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
}

@media (max-width: 600px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .bot-image {
        width: 200px;
        height: 200px;
    }
    
    .bot-image i {
        font-size: 5rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

.mobile-menu-button {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
} 