/* Emily OS Brand Theme */

/* Indigenous Art Background */
.indigenous-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.18;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 30s ease-in-out;
}

.indigenous-background.art1 {
    background-image: url('../assets/IndigenousArt1.jpeg');
}

.indigenous-background.art2 {
    background-image: url('../assets/IndigenousArt2.jpeg');
}

/* Subtle overlay to ensure text readability */
.indigenous-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.6) 0%,
        rgba(26, 26, 26, 0.7) 50%,
        rgba(10, 10, 10, 0.6) 100%
    );
}

:root {
    /* Brand Colors */
    --robson-green: #a6d027;
    --robson-green-dark: #7fb020;
    --robson-green-light: #c5e550;
    --dark-slate: #2f4f4f;

    /* Background Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(166, 208, 39, 0.1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(166, 208, 39, 0.4);
}

/* Slide 1 - Opening Vision */
.subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.tagline {
    font-size: 1.2rem;
    color: var(--robson-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Slide 2 - Paradigm Shift */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.comparison-side {
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.comparison-side.traditional {
    border-color: rgba(239, 68, 68, 0.3);
}

.comparison-side.emily {
    border-color: var(--robson-green);
    box-shadow: var(--shadow-glow);
}

.vs-divider {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-tertiary);
}

.ai-box {
    height: 150px;
    margin: 1.5rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
}

.memory-bubble {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.memory-bubble.persistent {
    background: rgba(166, 208, 39, 0.1);
    border-color: var(--robson-green);
}

ul.limitations, ul.capabilities {
    list-style: none;
    margin-top: 1rem;
}

ul.limitations li, ul.capabilities li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

ul.limitations li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
}

ul.capabilities li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--robson-green);
}

/* Slide Content Z-Index */
.slide-content {
    position: relative;
    z-index: 5;
}

.slide-content h2 {
    position: relative;
    z-index: 10;
}

/* Slide 3 - Architecture */
.architecture-viz {
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.memory-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 15;
}

.tier {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
}

.tier:hover {
    transform: translateY(-5px);
    border-color: var(--robson-green);
    box-shadow: var(--shadow-glow);
}

.tier h3 {
    font-size: 1.1rem;
    color: var(--robson-green);
    margin-bottom: 1rem;
}

.tier-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tier-details span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.speed {
    color: #60a5fa !important;
}

.capacity {
    color: #a78bfa !important;
}

/* Slide 4 - Cognitive Pipeline */
.pipeline-visualization {
    margin-top: 3rem;
}

.phase-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.phase {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.phase:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--robson-green);
    background: var(--glass-hover);
}

.phase-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.phase h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.phase p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.flow-arrow {
    color: var(--robson-green);
    font-size: 1.5rem;
    opacity: 0.6;
}

.phase-detail {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* Slide 5 - Memory Evolution */
.memory-evolution {
    margin-top: 2rem;
}

#memoryCanvas {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin: 0 auto;
    display: block;
}

.memory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--robson-green);
    margin: 1rem 0;
}

/* Slide 6 - Demo */
.demo-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.chat-interface {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chat-header {
    background: rgba(166, 208, 39, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.emily-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--robson-green);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.message.emily {
    border-left: 3px solid var(--robson-green);
}

.memory-indicator {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-input {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.chat-input input {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.chat-input button {
    padding: 1rem 2rem;
    background: var(--robson-green);
    color: var(--bg-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-input button:hover {
    background: var(--robson-green-dark);
    transform: scale(1.05);
}

.demo-insights {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.insight-feed {
    margin-top: 1rem;
}

.insight {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--glass-bg);
    border-left: 3px solid var(--robson-green);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Slide 7 - Technical Poetry */
.tech-poetry {
    margin-top: 2rem;
}

.code-viz {
    margin-bottom: 2rem;
}

.code-block {
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.swarm-viz {
    margin: 2rem 0;
    position: relative;
    height: 300px;
}

.agent-swarm {
    position: relative;
    width: 100%;
    height: 250px;
}

.tech-caption {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.realtime-stream {
    margin-top: 2rem;
}

/* Slide 6 - Agent Control Center */
.sdk-highlight {
    background: linear-gradient(135deg, rgba(166, 208, 39, 0.1), rgba(166, 208, 39, 0.05));
    border: 1px solid rgba(166, 208, 39, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.level-progression {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progression-step {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.progression-step.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.progression-step.current {
    background: rgba(166, 208, 39, 0.3);
    color: var(--robson-green);
    border: 1px solid var(--robson-green);
    box-shadow: 0 0 15px rgba(166, 208, 39, 0.4);
}

.progression-step:not(.completed):not(.current) {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid #ffffff;
}

.progression-arrow {
    color: var(--robson-green);
    font-size: 1.2rem;
    font-weight: bold;
}

.sdk-description {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.highlight-text {
    color: var(--robson-green);
    font-weight: 600;
    background: rgba(166, 208, 39, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.agent-control-center {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.agent-panel {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    min-height: 400px;
}

.agent-panel:hover {
    border-color: var(--robson-green);
    box-shadow: var(--shadow-glow);
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.agent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--glass-border);
}

.analyst-avatar {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.creative-avatar {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.memory-avatar {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.agent-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.agent-status {
    font-size: 0.8rem;
    font-weight: 600;
}

.agent-status.online {
    color: #22c55e;
}

.agent-status.active {
    color: var(--robson-green);
}

.agent-status.standby {
    color: #6b7280;
}

.control-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--glass-border);
    outline: none;
    transition: all 0.3s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--robson-green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(166, 208, 39, 0.5);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--robson-green);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(166, 208, 39, 0.5);
}

.value {
    font-size: 0.8rem;
    color: var(--robson-green);
    font-weight: 600;
    align-self: flex-end;
}

.dropdown {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s;
}

.dropdown:focus {
    border-color: var(--robson-green);
    box-shadow: 0 0 0 2px rgba(166, 208, 39, 0.2);
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: var(--glass-border);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-secondary);
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}

.toggle-switch.active {
    background: var(--robson-green);
}

.toggle-switch.active::before {
    left: 22px;
    background: #ffffff;
}

.json-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.json-blur {
    filter: blur(1px);
    opacity: 0.7;
    transition: all 0.3s;
}

.agent-panel:hover .json-blur,
.agent-panel.auto-focus .json-blur,
.agent-panel.timer-focus .json-blur {
    filter: blur(0px);
    opacity: 1;
}

.agent-panel:hover,
.agent-panel.auto-focus,
.agent-panel.timer-focus {
    border-color: var(--robson-green);
    box-shadow: var(--shadow-glow);
}

/* App card timer focus effects */
.app-card:hover,
.app-card.timer-focus {
    transform: translateY(-10px);
    border-color: var(--robson-green);
    box-shadow: var(--shadow-glow);
}

.json-key {
    color: #60a5fa;
}

.json-value {
    color: #34d399;
}

/* Slide 8 - Applications */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.app-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.app-card:hover {
    transform: translateY(-10px);
    border-color: var(--robson-green);
    box-shadow: var(--shadow-glow);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.impact-metric {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(166, 208, 39, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--robson-green);
    font-weight: 600;
}

.impact-statement {
    margin-top: 3rem;
    text-align: center;
    font-size: 1.5rem;
    color: var(--robson-green);
    font-weight: 600;
}

/* Slide 9 - Journey */
.roadmap-container {
    margin-top: 2rem;
}

.vision-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.timeline-item.current {
    opacity: 1;
}

.timeline-item:hover {
    opacity: 1;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--glass-bg);
    border: 3px solid var(--robson-green);
    border-radius: 50%;
}

.timeline-item.current .timeline-marker {
    background: var(--robson-green);
    box-shadow: var(--shadow-glow);
}

.ethical-framework {
    margin-top: 3rem;
    text-align: center;
}

.principles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.principle {
    padding: 1rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

/* Slide 10 - CTA */
.cta-container {
    margin-top: 2rem;
}

.vision-statement {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.join-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.join-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.join-card:hover {
    transform: scale(1.05);
    border-color: var(--robson-green);
    background: var(--glass-hover);
}

.contact-section {
    margin: 3rem 0;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

.contact-link {
    color: var(--robson-green);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.contact-link:hover {
    color: var(--robson-green-light);
    transform: scale(1.1);
}

.final-message {
    margin-top: 3rem;
    text-align: center;
}

.emily-final {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 3px solid var(--robson-green);
    margin-bottom: 1rem;
}

.emily-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
}

.indigenous-acknowledgment {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.indigenous-acknowledgment p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-style: italic;
    opacity: 0.8;
}