/* Base Styles */
:root {
    --primary-color: #6A5ACD; /* Slate blue */
    --secondary-color: #FF6B6B; /* Coral */
    --accent-color: #4ECDC4; /* Turquoise */
    --highlight-color: #FFE66D; /* Light yellow */
    --dark-color: #292F36; /* Dark slate */
    --light-color: #F7F9F9; /* Off white */
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
}

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

h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    padding: 2rem 0;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
    position: relative;
}

.robot {
    position: relative;
    width: 100%;
    height: 100%;
}

.robot-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 15px 15px 5px 5px;
    box-shadow: var(--shadow);
}

.eyes {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
}

.eye {
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    position: relative;
}

.eye::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--dark-color);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.2s ease;
}

.antenna {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 15px;
    background-color: var(--secondary-color);
}

.antenna::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--highlight-color);
    border-radius: 50%;
}

.robot-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 5px 5px 15px 15px;
    box-shadow: var(--shadow);
}

.buttons {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
}

.button {
    width: 10px;
    height: 10px;
    background-color: var(--highlight-color);
    border-radius: 50%;
}

.tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-style: italic;
}

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

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
}

.puzzle-grid {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 10px;
}

.puzzle-row {
    display: flex;
    height: calc(100% / 3);
}

.puzzle-cell {
    flex: 1;
    margin: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.puzzle-cell:hover {
    transform: scale(1.05);
}

.thinking-bubble {
    position: absolute;
    top: -30px;
    right: 20px;
    background-color: white;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.thinking-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.cta-button {
    margin-top: 1.5rem;
}

.cta-button a {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: #f0f3f5;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.feature-cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.puzzle-icon {
    background-color: var(--secondary-color);
    position: relative;
}

.puzzle-icon::before {
    content: '🧩';
    font-size: 2.5rem;
}

.efficiency-icon {
    background-color: var(--accent-color);
    position: relative;
}

.efficiency-icon::before {
    content: '⚡';
    font-size: 2.5rem;
}

.human-icon {
    background-color: var(--highlight-color);
    position: relative;
}

.human-icon::before {
    content: '🧠';
    font-size: 2.5rem;
}

/* Comparison Section */
.comparison {
    padding: 4rem 0;
}

.comparison-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.comparison-item {
    flex: 1;
    max-width: 300px;
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-5px);
}

.human {
    background-color: #e3f2fd;
    border: 2px solid var(--accent-color);
}

.ai {
    background-color: #fce4ec;
    border: 2px solid var(--secondary-color);
}

.score {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.human .score {
    color: var(--accent-color);
}

.ai .score {
    color: var(--secondary-color);
}

.character {
    width: 100px;
    height: 120px;
    margin: 1.5rem auto 0;
    position: relative;
}

.human-character .head {
    width: 50px;
    height: 50px;
    background-color: #ffccbc;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.human-character .body {
    width: 60px;
    height: 70px;
    background-color: var(--accent-color);
    border-radius: 20px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.human-character .arms {
    width: 90px;
    height: 20px;
    background-color: #ffccbc;
    border-radius: 10px;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.ai-character .head {
    width: 50px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.ai-character .body {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
    border-radius: 15px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ai-character .lights {
    display: flex;
    justify-content: space-around;
    width: 50px;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
}

.ai-character .lights::before,
.ai-character .lights::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--highlight-color);
    border-radius: 50%;
    animation: blink 2s infinite alternate;
}

@keyframes blink {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.comparison-note {
    text-align: center;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* Timeline Section */
.timeline {
    padding: 4rem 0;
    background-color: #f0f3f5;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-date {
    min-width: 120px;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 5%;
}

/* Try It Section */
.try-it {
    padding: 4rem 0;
    text-align: center;
}

.puzzle-example {
    max-width: 700px;
    margin: 2rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.puzzle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.puzzle-arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

.puzzle-grid {
    position: relative;
}

.puzzle-grid h4 {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
}

.puzzle-hint {
    text-align: center;
}

.hint-button {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.hint-button:hover {
    background-color: var(--primary-color);
}

.solution {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f0f3f5;
    border-radius: var(--border-radius);
    display: none;
}

.solution.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fun Facts Section */
.fun-facts {
    padding: 4rem 0;
}

.facts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.fact {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.fact-icon {
    min-width: 50px;
    height: 50px;
    background-color: var(--highlight-color);
    border-radius: 50%;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.fact-icon::before {
    content: '💡';
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    color: white;
    text-align: left;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #aaa;
}

.footer-links h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
    }
    
    .comparison-container {
        flex-direction: column;
        align-items: center;
    }
    
    .comparison-item {
        width: 100%;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start;
        padding-left: 80px;
    }
    
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
    }
    
    .timeline-date {
        left: 30px;
        transform: none;
        width: 100px;
    }
    
    .timeline-content {
        width: 100%;
        margin: 2rem 0 0 0 !important;
    }
    
    .puzzle-container {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .feature-cards {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
}