/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4F46E5;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4F46E5;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4F46E5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4F46E5;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 2rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-button {
    background: #fbbf24;
    color: #1f2937;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* AI Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.neural-network {
    position: relative;
    width: 200px;
    height: 200px;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fbbf24;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.node:nth-child(1) { top: 20px; left: 90px; animation-delay: 0s; }
.node:nth-child(2) { top: 90px; left: 20px; animation-delay: 0.5s; }
.node:nth-child(3) { top: 90px; left: 90px; animation-delay: 1s; }
.node:nth-child(4) { top: 90px; left: 160px; animation-delay: 1.5s; }

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

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section.bg-white {
    background: white;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* Learning Path */
.learning-path {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.path-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.path-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4F46E5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.path-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.path-content p {
    margin-bottom: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.learn-btn {
    background: #4F46E5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.learn-btn:hover {
    background: #3730a3;
    transform: translateY(-1px);
}

/* Concepts Grid */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.concept-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.concept-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.concept-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.concept-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Concept Visualizations */
.concept-visual {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.autonomy-demo {
    position: relative;
}

.agent-bubble {
    background: #4F46E5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.goal-path {
    display: flex;
    gap: 10px;
}

.checkpoint {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.checkpoint.active {
    background: #4F46E5;
    transform: scale(1.2);
}

.learning-curve {
    width: 100px;
    height: 40px;
}

.chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bubble {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    max-width: 150px;
}

.bubble.user {
    background: #e5e7eb;
    align-self: flex-end;
}

.bubble.agent {
    background: #4F46E5;
    color: white;
    align-self: flex-start;
}

/* Examples Container */
.examples-container {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.example-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.example-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.example-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.example-demo {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.conditions {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.conditions label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 500;
}

.conditions select,
.conditions input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: white;
}

.run-btn, .reset-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.run-btn {
    background: #4F46E5;
    color: white;
}

.run-btn:hover {
    background: #3730a3;
}

.reset-btn {
    background: #6b7280;
    color: white;
}

.reset-btn:hover {
    background: #4b5563;
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.result.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.result.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.result.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Learning Demo */
.learning-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.stat-label {
    font-weight: 500;
    color: #6b7280;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #7c3aed);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Quiz Styles */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.quiz-progress {
    font-weight: 500;
    color: #6b7280;
}

.quiz-score {
    font-weight: 600;
    color: #4F46E5;
}

.quiz-question {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quiz-options {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.quiz-option:hover {
    border-color: #4F46E5;
    background: #f8fafc;
}

.quiz-option.selected {
    border-color: #4F46E5;
    background: #eef2ff;
}

.quiz-option.correct {
    border-color: #10b981;
    background: #dcfce7;
}

.quiz-option.incorrect {
    border-color: #ef4444;
    background: #fee2e2;
}

.quiz-feedback {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.quiz-feedback.correct {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.quiz-feedback.incorrect {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.quiz-actions {
    text-align: center;
}

.next-btn {
    background: #4F46E5;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn:hover:not(:disabled) {
    background: #3730a3;
}

.next-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.quiz-results {
    text-align: center;
    padding: 2rem;
}

.final-score {
    font-size: 2rem;
    font-weight: 700;
    color: #4F46E5;
    margin: 1rem 0;
}

.score-breakdown {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.score-item {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.restart-btn {
    background: #4F46E5;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background: #3730a3;
}

/* Progress Dashboard */
.progress-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.progress-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.progress-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.circular-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.progress-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #4F46E5;
}

.module-progress {
    display: grid;
    gap: 1rem;
}

.module-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.module-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.module-fill {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #7c3aed);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.achievement:hover {
    background: #eef2ff;
    transform: translateY(-2px);
}

.achievement i {
    font-size: 1.5rem;
    color: #4F46E5;
}

.achievement span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

.achievement.unlocked {
    background: linear-gradient(135deg, #4F46E5, #7c3aed);
    color: white;
}

.achievement.unlocked i,
.achievement.unlocked span {
    color: white;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
}

.modal-content {
    padding: 2rem;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.close:hover {
    color: #374151;
}

.modal h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.modal h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #4F46E5;
}

.modal p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #6b7280;
}

.modal ul,
.modal ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .path-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .path-icon {
        margin: 0 auto;
    }
    
    .concepts-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-dashboard {
        grid-template-columns: 1fr;
    }
    
    .conditions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #111827;
        color: #f3f4f6;
    }
    
    .navbar {
        background: rgba(17, 24, 39, 0.95);
        border-bottom-color: #374151;
    }
    
    .path-item,
    .concept-card,
    .example-card,
    .quiz-card,
    .progress-card {
        background: #1f2937;
        color: #f3f4f6;
    }
    
    .path-content h3,
    .concept-card h3,
    .example-card h3,
    .section-title {
        color: #f3f4f6;
    }
    
    .path-content p,
    .concept-card p,
    .example-card p {
        color: #9ca3af;
    }
    
    .example-demo,
    .quiz-option {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }
    
    .conditions select,
    .conditions input {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.cta-button:focus,
.learn-btn:focus,
.run-btn:focus,
.reset-btn:focus,
.quiz-option:focus,
.next-btn:focus,
.restart-btn:focus {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
}