/* Main styles for AI presentation */
:root {
    --primary-color: #3a7ca5;
    --secondary-color: #2f6690;
    --accent-color: #16425b;
    --light-color: #d9e5d6;
    --dark-color: #2d3142;
    --background-color: #f5f5f5;
    --text-color: #333;
    --slide-transition: 0.6s ease;
}

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

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

.presentation {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Slide styling */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform var(--slide-transition), opacity var(--slide-transition);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.previous {
    transform: translateX(-100%);
}

.content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Headings */
h1 {
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

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

h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Layout components */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.application-card {
    background: linear-gradient(135deg, var(--light-color), white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Intro animation */
.ai-animation {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background-image: url('https://via.placeholder.com/300x300.png?text=AI+Concept');
    background-size: cover;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(58, 124, 165, 0.6);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 30px rgba(58, 124, 165, 0.6); }
    50% { box-shadow: 0 0 50px rgba(58, 124, 165, 0.8); }
    100% { box-shadow: 0 0 30px rgba(58, 124, 165, 0.6); }
}

/* AI Diagram */
.ai-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagram-container {
    width: 100%;
    text-align: center;
}

.diagram-node {
    display: inline-block;
    padding: 10px 15px;
    margin: 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.diagram-node:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.diagram-node.main {
    background-color: var(--accent-color);
    font-size: 1.2em;
    font-weight: bold;
}

.diagram-branches {
    margin-top: 30px;
    position: relative;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.diagram-branches::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: var(--accent-color);
}

/* Turing Test Animation */
.turing-test {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.turing-animation {
    width: 100%;
    height: 250px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.turing-human, .turing-judge, .turing-machine {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    position: relative;
}

.turing-human {
    background-color: var(--primary-color);
}

.turing-judge {
    background-color: var(--accent-color);
}

.turing-machine {
    background-color: var(--secondary-color);
}

/* ELIZA Terminal */
.terminal {
    background-color: #222;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.terminal-header {
    background-color: #444;
    color: white;
    padding: 10px;
    text-align: center;
    font-family: monospace;
}

.terminal-content {
    padding: 15px;
    color: #33ff33;
    font-family: monospace;
    line-height: 1.4;
}

.terminal-content p {
    margin: 10px 0;
}

.terminal-content .response {
    color: #ffffff;
}

/* Neural Network Animation */
.neural-network-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.neural-network {
    width: 400px;
    height: 300px;
    background-color: #f0f0f0;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

/* Future Technology Icons */
.future-tech {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tech-item {
    width: 250px;
    text-align: center;
    margin: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.tech-icon.quantum {
    background-color: #5643fa;
}

.tech-icon.edge {
    background-color: #ff7730;
}

.tech-icon.creative {
    background-color: #28b485;
}

/* Ethics Balance Scale */
.ethics-balance {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.balance-scale {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.scale-left, .scale-right {
    width: 45%;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.scale-center {
    width: 5%;
    height: 200px;
    background-color: var(--accent-color);
    position: relative;
}

.scale-center::before, .scale-center::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 5px;
    background-color: var(--accent-color);
    top: 50px;
}

.scale-center::before {
    left: -150px;
    transform: rotate(15deg);
}

.scale-center::after {
    right: -150px;
    transform: rotate(-15deg);
}

/* Predictions Timeline */
.predictions-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.predictions-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.prediction {
    margin-left: 30px;
    padding: 1rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.prediction::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid white;
}

.prediction h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Conclusion */
.conclusion {
    text-align: center;
    margin-top: 2rem;
}

.highlight {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 2rem 0;
    font-weight: bold;
}

.final-image {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.human-ai-handshake {
    width: 200px;
    height: 200px;
    background-color: var(--light-color);
    border-radius: 50%;
}

.thank-you {
    margin-top: 3rem;
    text-align: center;
}

/* Controls */
.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.controls button:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

#slideCounter {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .content {
        padding: 1rem;
    }
}
