/* Base Styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #a777e3;
    --bot-color: #4a6cf7;
    --human-color: #e91e63;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --bg-color: #e6e2dc;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 20px;
}

/* Header */
.header {
    grid-column: span 12;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.animated-robot {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.2;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* History Card */
.history {
    grid-column: span 3;
    background: linear-gradient(135deg, #f8f4e5, #ffffff);
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.timeline-item {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.timeline-circle {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--primary-color);
}

/* Working Card */
.working {
    grid-column: span 6;
    background: linear-gradient(135deg, #e8f4f8, #ffffff);
}

.workflow-diagram {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.workflow-step {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.step-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(74, 108, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    flex: 1;
}

.step-arrow {
    color: var(--text-light);
    margin: 0 15px;
}

/* Types Card */
.types {
    grid-column: span 3;
    background: linear-gradient(135deg, #f0e8f8, #ffffff);
}

.type-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.type-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.type-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.type-card ul {
    list-style: none;
}

.type-card li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.type-card li i {
    color: var(--success-color);
}

/* Architecture Card */
.architecture {
    grid-column: span 4;
    background: linear-gradient(135deg, #e8f8f0, #ffffff);
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.arch-layer {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.layer-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(74, 108, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arch-arrow {
    color: var(--text-light);
    margin: 10px 0;
    font-size: 1.2rem;
}

/* Tools Card */
.tools {
    grid-column: span 4;
    background: linear-gradient(135deg, #f8e8e8, #ffffff);
}

.tool-categories {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.tool-category {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tool-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.tool-category ul {
    list-style: none;
}

.tool-category li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-category li i {
    color: var(--primary-color);
}

/* Comparison Card */
.comparison {
    grid-column: span 6;
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

.comparison-columns {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.comparison-column {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bot-col .column-header {
    color: var(--bot-color);
}

.human-col .column-header {
    color: var(--human-color);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.column-header i {
    font-size: 1.8rem;
}

.comparison-column ul {
    list-style: none;
}

.comparison-column li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-col li i {
    color: var(--bot-color);
}

.human-col li i {
    color: var(--human-color);
}

/* Benefits Card */
.benefits {
    grid-column: span 3;
    background: linear-gradient(135deg, #e8f8f8, #ffffff);
}

.benefits-list {
    list-style: none;
    margin-bottom: 20px;
}

.benefits-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-list li i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.case-study {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.case-study h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat {
    padding: 10px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Limitations Card */
.limitations {
    grid-column: span 3;
    background: linear-gradient(135deg, #f8e8e8, #ffffff);
}

.limitations-list {
    list-style: none;
}

.limitations-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.limitations-list li i {
    color: var(--danger-color);
    font-size: 1.2rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(10px); }
    100% { transform: translateY(-50%) translateX(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .card {
        grid-column: span 1 !important;
    }
    
    .tool-categories, .comparison-columns {
        flex-direction: column;
    }
    
    .timeline {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        margin-bottom: 30px;
    }
    
    .workflow-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* AOS animations */
[data-aos] {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-aos="fade-up"] {
    transform: translateY(20px);
    opacity: 0;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-20px);
    opacity: 0;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(20px);
    opacity: 0;
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.95);
    opacity: 0;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}