/* Presentation Styles - Shared across all week files */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.presentation {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide {
    background: white;
    width: 100vw;
    height: 100vh;
    padding: 70px 80px 60px 80px;
    display: none;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}

.slide.active {
    display: flex;
    animation: slideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.slide-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

/* Home button */
.home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.home-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Week navigation - centered at top */
.week-nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 1000;
}

.week-nav a {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.week-nav a:hover {
    background: white;
    transform: scale(1.15);
}

.week-nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

/* Side swipe indicators */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border: none;
    border-radius: 25px;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.nav-arrow:hover {
    opacity: 1;
    background: rgba(102, 126, 234, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.nav-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.nav-arrow.prev {
    left: 15px;
}

.nav-arrow.next {
    right: 15px;
}

/* Typography */
h1 {
    color: #667eea;
    font-size: 64px;
    margin-bottom: 20px;
    text-align: center;
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

h2 {
    color: #764ba2;
    font-size: 42px;
    margin-bottom: 30px;
    border-bottom: 4px solid #667eea;
    padding-bottom: 15px;
}

h3 {
    color: #667eea;
    font-size: 32px;
    margin: 20px 0 15px 0;
}

p, li {
    font-size: 22px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.content {
    flex: 1;
}

/* Tables */
.truth-table {
    margin: 20px auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
}

.truth-table th {
    background: #667eea;
    color: white;
    padding: 18px 30px;
    font-size: 22px;
    font-weight: bold;
}

.truth-table td {
    padding: 15px 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 22px;
    font-weight: bold;
}

.truth-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Boxes */
.example-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border-left: 6px solid #667eea;
    padding: 25px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.key-point {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 6px solid #28a745;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.highlight {
    background: linear-gradient(120deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.formula {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 3px solid #667eea;
    padding: 20px;
    border-radius: 10px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* Code blocks */
.code-block {
    background: #282c34;
    color: #abb2bf;
    padding: 25px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.8;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.code-comment { color: #5c6370; }
.code-keyword { color: #c678dd; }
.code-string { color: #98c379; }
.code-function { color: #61afef; }

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 20px 0;
}

/* Cards */
.card {
    background: white;
    border: 3px solid #667eea;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
    border-color: #764ba2;
}

ul { margin-left: 30px; }

.icon {
    font-size: 80px;
    margin: 20px;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    box-shadow: 0 -2px 10px rgba(102, 126, 234, 0.5);
    z-index: 1000;
}

/* Animations */
.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(118, 75, 162, 0.6); }
}

.zoom-in {
    animation: zoomIn 0.6s ease-out both;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.slide-up {
    animation: slideUp 0.6s ease-out both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

.flip {
    animation: flip 0.6s ease-out both;
}

@keyframes flip {
    from { transform: perspective(400px) rotateY(90deg); opacity: 0; }
    to { transform: perspective(400px) rotateY(0deg); opacity: 1; }
}

.swing {
    animation: swing 1s ease-in-out both;
}

@keyframes swing {
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* Gate SVG */
.gate-svg {
    width: 180px;
    height: 140px;
    margin: 10px;
    transition: transform 0.3s ease;
}

.gate-svg:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Responsive */
@media (max-width: 768px) {
    .slide {
        padding: 70px 20px 30px 20px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 28px; }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .week-nav {
        top: 10px;
        gap: 4px;
    }

    .week-nav a {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .nav-arrow {
        width: 40px;
        height: 60px;
        font-size: 18px;
    }

    .nav-arrow.prev {
        left: 5px;
    }

    .nav-arrow.next {
        right: 5px;
    }
}

/* Scrollbar */
.slide::-webkit-scrollbar {
    width: 8px;
}

.slide::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.slide::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.slide::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
