/* Base Styles */
:root {
    --primary-color: #8a2be2;
    --secondary-color: #ff69b4;
    --accent-color: #00bfff;
    --background-color: #f8f9ff;
    --text-color: #333;
    --light-color: #fff;
    --shadow-color: rgba(138, 43, 226, 0.2);
    --border-radius: 12px;
}

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

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

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

/* Typography */
h1, h2, h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tagline {
    text-align: center;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

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

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

/* Navigation */
nav {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

nav li {
    padding: 0;
}

nav a {
    display: block;
    color: var(--light-color);
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--light-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1.5px;
}

nav a:hover::after {
    width: 60%;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
    padding: 1rem 0;
}

.content-section {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

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

.section-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.text-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.text-content li {
    margin-bottom: 0.5rem;
}

.illustration {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.row.header {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.cell {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
}

.row:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Future Scenarios */
.future-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.scenario {
    background-color: rgba(138, 43, 226, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
}

.scenario:hover {
    transform: scale(1.05);
    background-color: rgba(138, 43, 226, 0.1);
}

.scenario-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Fun Facts */
.fun-facts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.fun-fact {
    background-color: rgba(255, 105, 180, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
}

.fun-fact:hover {
    transform: scale(1.05);
    background-color: rgba(255, 105, 180, 0.1);
}

.fact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    position: relative;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
}

.footer-robot {
    position: absolute;
    right: 20px;
    bottom: 20px;
}

/* Robot Styles */
.robot-head {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 40px 40px 30px 30px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.robot-body {
    width: 60px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 10px 10px 20px 20px;
    margin: -10px auto 0;
    position: relative;
    z-index: -1;
}

.eye {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 25px;
}

.eye.left {
    left: 15px;
}

.eye.right {
    right: 15px;
}

.eye::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 5px;
    animation: blink 4s infinite;
}

.mouth {
    width: 30px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.happy-mouth {
    width: 30px;
    height: 15px;
    border-radius: 0 0 15px 15px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.thinking-bubble {
    position: absolute;
    top: -30px;
    right: -20px;
    font-size: 24px;
    animation: pulse 2s infinite;
}

.smart-indicator {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 24px;
    animation: spin 3s linear infinite;
}

/* Robot Variations */
.robot-head.small {
    width: 50px;
    height: 50px;
    border-radius: 25px 25px 20px 20px;
}

.robot-head.large {
    width: 100px;
    height: 100px;
    border-radius: 50px 50px 40px 40px;
}

.eye.tiny {
    width: 12px;
    height: 12px;
    top: 15px;
}

.eye.tiny.left {
    left: 10px;
}

.eye.tiny.right {
    right: 10px;
}

.robot-head.mini {
    width: 30px;
    height: 30px;
    border-radius: 15px;
}

.eye.micro {
    width: 8px;
    height: 8px;
    top: 8px;
}

.eye.micro.left {
    left: 5px;
}

.eye.micro.right {
    right: 5px;
}

/* Comparison Robots */
.comparison-robots {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.narrow-robot, .general-robot {
    text-align: center;
}

.label {
    margin-top: 10px;
    font-weight: bold;
}

/* Future Robot */
.future-robot {
    position: relative;
}

.future-items {
    position: absolute;
    width: 100%;
    height: 100%;
}

.future-star {
    position: absolute;
    font-size: 20px;
    animation: twinkle 2s infinite;
}

.star1 {
    top: -20px;
    left: 0;
    animation-delay: 0s;
}

.star2 {
    top: 20px;
    right: -30px;
    animation-delay: 0.5s;
}

.star3 {
    bottom: 0;
    left: -30px;
    animation-delay: 1s;
}

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

@keyframes blink {
    0%, 45%, 55%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        padding: 0.8rem 1.2rem;
    }
    
    .section-content {
        flex-direction: column;
    }
    
    .illustration {
        order: -1;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .future-scenarios, .fun-facts-container {
        grid-template-columns: 1fr;
    }
}