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

:root {
    --nav-height: 80px;
    --mobile-nav-height: 100px;
    --small-mobile-nav-height: 85px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
    cursor: pointer;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    position: relative;
}

.taube-text {
    font-size: 4rem;
    font-weight: 700;
    color: #64b5f6;
    letter-spacing: 0.5rem;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.8);
    transition: all 0.5s ease;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 20px rgba(100, 181, 246, 0.8);
    }
    to {
        text-shadow: 0 0 30px rgba(100, 181, 246, 1), 0 0 40px rgba(100, 181, 246, 0.6);
    }
}

.taube-text.split {
    letter-spacing: 2rem;
    transform: scale(1.2);
}

.taube-text .letter {
    display: inline-block;
    transition: all 0.3s ease;
}

.taube-text .letter.with-dot::after {
    content: '.';
    color: #ff6b6b;
    animation: dotAppear 0.5s ease-in-out;
}

@keyframes dotAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.full-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
    margin-top: 2rem;
}

.full-text.show {
    opacity: 1;
    transform: translateY(0);
}

.german-text {
    font-size: 1.5rem;
    color: #64b5f6;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.english-text {
    font-size: 1.2rem;
    color: #b0bec5;
    font-weight: 300;
    font-style: italic;
}

.intro-instruction {
    position: absolute;
    bottom: 2rem;
    text-align: center;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

.intro-instruction p {
    font-size: 1rem;
    color: #ffffff;
}

.spacebar, .click-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: monospace;
    font-weight: 600;
}

.click-text {
    font-family: 'Inter', sans-serif;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Hide main content during intro */
.intro-overlay:not(.fade-out) ~ * {
    visibility: hidden;
}

/* Responsive design for intro */
@media (max-width: 768px) {
    .intro-overlay {
        height: 100vh;
        height: 100dvh;
    }
    
    .taube-text {
        font-size: 2.2rem;
        letter-spacing: 0.3rem;
    }
    
    .taube-text.split {
        letter-spacing: 1.2rem;
    }
    
    .german-text {
        font-size: 1.1rem;
    }
    
    .english-text {
        font-size: 0.95rem;
    }
    
    .intro-instruction {
        bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
    }
    
    .intro-instruction p {
        font-size: 0.85rem;
    }
}

/* Flying Taube Animation */
.flying-taube {
    position: fixed;
    top: 50px;
    left: -100px;
    font-size: 2rem;
    color: #64b5f6;
    z-index: 1000;
    animation: flyAcross 15s linear infinite;
    pointer-events: none;
}

.flying-taube i {
    filter: drop-shadow(0 0 10px rgba(100, 181, 246, 0.5));
}

@keyframes flyAcross {
    0% {
        transform: translateX(-100px) translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateX(50vw) translateY(-50px) rotate(5deg);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0px) rotate(0deg);
        opacity: 0;
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #64b5f6;
}

.nav-logo i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    background: none;
    border: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
}

.nav-link.active {
    background: #64b5f6;
    color: #1a1a2e;
    font-weight: 600;
}

/* Presentation Container */
.presentation-container {
    margin-top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

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

.slide.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.slide.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.slide-content {
    max-width: 1200px;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 100px;
}

.slide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #64b5f6, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(100, 181, 246, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(255, 107, 107, 0.5));
    }
}

.subtitle {
    font-size: 1.3rem;
    color: #b0bec5;
    font-weight: 300;
}

.slide-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #64b5f6;
    margin-bottom: 1rem;
}

.slide-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Content */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h2 {
    font-size: 2rem;
    color: #64b5f6;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #b0bec5;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(100, 181, 246, 0.3);
    transition: transform 0.3s ease;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0bec5;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pigeon-surveillance {
    position: relative;
    font-size: 8rem;
    color: #64b5f6;
    animation: surveillancePulse 2s ease-in-out infinite;
}

@keyframes surveillancePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(100, 181, 246, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(100, 181, 246, 0.8));
    }
}

.surveillance-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: scanLines 3s linear infinite;
}

@keyframes scanLines {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0.3;
    }
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 12px;
    border-left: 4px solid #64b5f6;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-date {
    font-weight: 700;
    color: #ff6b6b;
    min-width: 120px;
    text-align: center;
}

.timeline-content h3 {
    color: #64b5f6;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #b0bec5;
    line-height: 1.5;
}

/* Evidence Grid */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.evidence-card {
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.evidence-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 181, 246, 0.2);
}

.evidence-icon {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.evidence-card h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.evidence-card p {
    color: #b0bec5;
    line-height: 1.5;
}

/* Movement Content */
.movement-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.movement-text h3 {
    color: #64b5f6;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.movement-text p {
    color: #b0bec5;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.evidence-list {
    list-style: none;
    margin-bottom: 2rem;
}

.evidence-list li {
    color: #b0bec5;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.evidence-list li::before {
    content: "🕵️";
    position: absolute;
    left: 0;
}

.quote-box {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
    padding: 1.5rem;
    border-radius: 8px;
}

.quote-box blockquote {
    font-style: italic;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.quote-box cite {
    color: #b0bec5;
    font-size: 0.9rem;
}

.movement-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.drone-bird {
    position: relative;
    font-size: 6rem;
    color: #64b5f6;
    animation: droneHover 3s ease-in-out infinite;
}

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

.drone-components {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.camera-lens {
    position: absolute;
    top: 20%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: cameraBlink 2s ease-in-out infinite;
}

@keyframes cameraBlink {
    0%, 90%, 100% {
        opacity: 1;
    }
    95% {
        opacity: 0;
    }
}

.antenna {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #ff6b6b;
    transform: translateX(-50%);
}

.propeller {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 40px;
    height: 2px;
    background: #ff6b6b;
    transform: translateX(-50%);
    animation: propellerSpin 0.5s linear infinite;
}

@keyframes propellerSpin {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* Bourgeoisie Content */
.bourgeoisie-content {
    max-width: 900px;
    margin: 0 auto;
}

.bourgeoisie-text h3 {
    color: #64b5f6;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.bourgeoisie-text p {
    color: #b0bec5;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.class-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.class-card {
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid;
}

.class-card.capitalist {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

.class-card.proletariat {
    background: rgba(100, 181, 246, 0.1);
    border-color: #64b5f6;
}

.class-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.class-card.capitalist h4 {
    color: #ff6b6b;
}

.class-card.proletariat h4 {
    color: #64b5f6;
}

.class-card ul {
    list-style: none;
}

.class-card li {
    color: #b0bec5;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.class-card.capitalist li::before {
    content: "💰";
    position: absolute;
    left: 0;
}

.class-card.proletariat li::before {
    content: "✊";
    position: absolute;
    left: 0;
}

.revolutionary-call {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    border: 2px solid #ff6b6b;
}

.revolutionary-call h4 {
    color: #ff6b6b;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.revolutionary-call p {
    color: #b0bec5;
    font-size: 1.1rem;
}

/* Counter Arguments */
.counter-arguments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.argument-card {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.argument-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
}

.argument-card h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.argument-card p {
    color: #b0bec5;
    line-height: 1.5;
}

/* Conclusion Content */
.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.conclusion-text h3 {
    color: #64b5f6;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.conclusion-text p {
    color: #b0bec5;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.action-items {
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.action-items h4 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.action-items ul {
    list-style: none;
    text-align: left;
}

.action-items li {
    color: #b0bec5;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.action-items li::before {
    content: "🕵️";
    position: absolute;
    left: 0;
}

.final-warning {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    padding: 2rem;
}

.final-warning h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.final-warning p {
    color: #b0bec5;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.warning-sign {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b6b;
    animation: warningPulse 1s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Navigation Controls */
.nav-controls {
    position: fixed;
    bottom: max(2rem, env(safe-area-inset-bottom, 0px) + 1rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-btn {
    background: none;
    border: none;
    color: #64b5f6;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(100, 181, 246, 0.2);
    transform: scale(1.1);
}

.slide-indicator {
    color: #b0bec5;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Keyboard Info */
.keyboard-info {
    position: fixed;
    bottom: 1rem;
    right: 2rem;
    color: #b0bec5;
    font-size: 0.9rem;
    z-index: 100;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 0.5rem 0;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
        position: relative;
    }
    
    .nav-links {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.5rem;
        padding: 0.25rem 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    .nav-links::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.5), transparent);
        border-radius: 1px;
        opacity: 0.7;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
    }
    
    .presentation-container {
        margin-top: var(--mobile-nav-height);
        height: calc(100vh - var(--mobile-nav-height));
        height: calc(100dvh - var(--mobile-nav-height));
        overflow-y: auto;
    }
    
    .main-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .slide {
        padding: 1rem 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .slide-content {
        padding-bottom: 120px;
        justify-content: flex-start;
    }
    
    .slide-header {
        margin-bottom: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .timeline-date {
        min-width: auto;
    }
    
    .evidence-grid {
        grid-template-columns: 1fr;
    }
    
    .movement-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .class-analysis {
        grid-template-columns: 1fr;
    }
    
    .counter-arguments {
        grid-template-columns: 1fr;
    }
    
    .nav-controls {
        bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
        padding: 0.4rem 0.8rem;
        gap: 0.8rem;
        transform: translateX(-50%) scale(0.9);
    }
    
    .keyboard-info {
        display: none;
    }
}

/* Medium mobile devices */
@media (max-width: 640px) and (min-width: 481px) {
    .nav-link {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .presentation-container {
        margin-top: var(--mobile-nav-height);
        height: calc(100vh - var(--mobile-nav-height));
        height: calc(100dvh - var(--mobile-nav-height));
        overflow-y: auto;
    }
    
    .nav-controls {
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px) + 0.25rem);
        padding: 0.35rem 0.7rem;
        gap: 0.7rem;
        transform: translateX(-50%) scale(0.85);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .nav {
        padding: 0.4rem 0;
    }
    
    .nav-content {
        gap: 0.4rem;
        padding: 0 0.5rem;
    }
    
    .nav-logo {
        font-size: 0.9rem;
    }
    
    .nav-logo i {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 0.4rem;
        padding: 0.2rem 0;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .presentation-container {
        margin-top: var(--small-mobile-nav-height);
        height: calc(100vh - var(--small-mobile-nav-height));
        height: calc(100dvh - var(--small-mobile-nav-height));
        overflow-y: auto;
    }
    
    .main-title {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .slide {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .slide-content {
        padding-bottom: 100px;
        justify-content: flex-start;
    }
    
    .slide-header {
        margin-bottom: 1rem;
    }
    
    .slide-header h2 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-text p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .stat {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .nav-controls {
        bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
        padding: 0.3rem 0.6rem;
        gap: 0.6rem;
        transform: translateX(-50%) scale(0.8);
    }
    
    .nav-btn {
        font-size: 1rem;
        padding: 0.25rem;
    }
    
    .slide-indicator {
        min-width: 45px;
        font-size: 0.8rem;
    }
}

/* Afterword Slide Styles */
.afterword-content {
    padding: 2rem 0;
}

.thank-you-section {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.header-decoration {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    opacity: 0.6;
}

.header-decoration i {
    font-size: 1.2rem;
    color: #64b5f6;
    animation: fly 3s ease-in-out infinite;
}

.header-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.header-decoration i:nth-child(3) {
    animation-delay: 1s;
}

.thank-you-section h3 {
    font-size: 2.5rem;
    color: #64b5f6;
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.thank-you-section h3 i {
    font-size: 2rem;
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.thanks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.thank-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.thank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(100, 181, 246, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.thank-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.thank-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 181, 246, 0.3);
    border-color: rgba(100, 181, 246, 0.5);
}

.thank-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #64b5f6;
    position: relative;
    z-index: 1;
}

.thank-card:nth-child(1) .thank-icon {
    color: #ff6b6b;
}

.thank-card:nth-child(2) .thank-icon {
    color: #4ecdc4;
}

.thank-card:nth-child(3) .thank-icon {
    color: #ffe66d;
}

.thank-card h4 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.role-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.2) 0%, rgba(100, 181, 246, 0.1) 100%);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    color: #64b5f6;
    font-weight: 500;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.thank-card:nth-child(1) .role-badge {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.thank-card:nth-child(2) .role-badge {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(78, 205, 196, 0.1) 100%);
    border-color: rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
}

.thank-card:nth-child(3) .role-badge {
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.2) 0%, rgba(255, 230, 109, 0.1) 100%);
    border-color: rgba(255, 230, 109, 0.3);
    color: #ffe66d;
}

.thank-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #b0bec5;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.appreciation-meter {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #ffe66d, #64b5f6);
    border-radius: 4px;
    animation: fillMeter 2s ease-out;
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: meterShine 2s infinite;
}

@keyframes fillMeter {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes meterShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.final-message {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1) 0%, rgba(100, 181, 246, 0.05) 100%);
    border: 2px solid rgba(100, 181, 246, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.final-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #64b5f6;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.message-header i {
    color: #ff6b6b;
    animation: pulse 2s ease-in-out infinite;
}

.final-message p {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.credits-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(100, 181, 246, 0.2);
    position: relative;
    z-index: 1;
}

.credits-note small {
    color: #90a4ae;
    font-style: italic;
    font-size: 0.9rem;
}

.signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: #64b5f6;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.signature i {
    font-size: 1.5rem;
    animation: fly 2s ease-in-out infinite;
}

@keyframes fly {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(5px) rotate(-5deg);
    }
}

/* Responsive design for afterword */
@media (max-width: 768px) {
    .header-decoration {
        gap: 0.8rem;
    }
    
    .header-decoration i {
        font-size: 1rem;
    }
    
    .thank-you-section h3 {
        font-size: 2rem;
        margin-bottom: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .thank-you-section h3 i {
        font-size: 1.5rem;
    }
    
    .thanks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .thank-card {
        padding: 1.5rem;
    }
    
    .thank-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .thank-card h4 {
        font-size: 1.5rem;
    }
    
    .role-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    .thank-card p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .message-header {
        font-size: 1.3rem;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .final-message {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .final-message p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .signature {
        font-size: 1.1rem;
    }
    
    .credits-note small {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .afterword-content {
        padding: 1rem 0;
    }
    
    .header-decoration {
        gap: 0.6rem;
        margin-top: 0.5rem;
    }
    
    .header-decoration i {
        font-size: 0.9rem;
    }
    
    .thank-you-section h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .thank-you-section h3 i {
        font-size: 1.3rem;
    }
    
    .thank-card {
        padding: 1.2rem;
    }
    
    .thank-icon {
        font-size: 2rem;
    }
    
    .thank-card h4 {
        font-size: 1.3rem;
    }
    
    .role-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .thank-card p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .message-header {
        font-size: 1.1rem;
        gap: 0.6rem;
        margin-bottom: 1rem;
        flex-direction: column;
    }
    
    .final-message {
        padding: 1.5rem;
    }
    
    .final-message p {
        font-size: 1rem;
    }
    
    .signature {
        font-size: 1rem;
        gap: 0.8rem;
    }
    
    .credits-note {
        margin-top: 1rem;
        padding-top: 0.8rem;
    }
    
    .credits-note small {
        font-size: 0.75rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide.active .slide-content {
    animation: fadeIn 0.5s ease-out;
} 