/* Apple-style UI Theme - PPT Mode */
:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --accent-hover: #0077ed;
    --border-color: #d2d2d7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden; /* Disable scroll */
    width: 100vw;
    height: 100vh;
}

/* Slide Container */
.slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth ease */
}

/* Individual Slide */
.slide {
    min-width: 100vw;
    height: 100vh;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center;
    overflow: hidden; /* Hide overflow */
    position: relative;
    background: var(--bg-color);
}

.slide-content {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 40px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto; /* Allow internal scroll if absolutely necessary */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Typography */
h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    width: 100%;
    text-align: center;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-primary);
    width: 100%;
    text-align: left;
}

p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
    width: 100%;
    text-align: justify;
}

/* --- Interactive Elements --- */

/* 1. Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

/* Make images clickable */
.slide-content img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.slide-content img:hover {
    transform: scale(1.02);
}

/* 2. Tabs */
.tab-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 12px;
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #fff;
    color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* 3. Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-content > * {
    opacity: 0; /* Hidden by default */
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When slide is active, trigger animation */
.slide.active .slide-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
.slide.active .slide-content > *:nth-child(1) { transition-delay: 0.1s; }
.slide.active .slide-content > *:nth-child(2) { transition-delay: 0.2s; }
.slide.active .slide-content > *:nth-child(3) { transition-delay: 0.3s; }
.slide.active .slide-content > *:nth-child(4) { transition-delay: 0.4s; }
.slide.active .slide-content > *:nth-child(5) { transition-delay: 0.5s; }

.subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
}

/* Images */
img {
    max-width: 100%;
    max-height: 50vh; /* Limit image height */
    object-fit: contain;
    border-radius: 12px;
    margin: 10px 0;
}

.caption {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: center;
    width: 100%;
}

/* Grid Layouts for Images */
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    justify-items: center;
}

/* Navigation Controls */
.nav-control {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-control:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Progress Bar */
.progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0,0,0,0.05);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Slide Counter */
.slide-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
}
th, td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}
th {
    background-color: #f8f9fa;
    color: var(--accent-color);
}
