/* ============================================
   ABSTRACT/ON — Master Stylesheet
   ============================================ */

:root {
    --bg-dark: #020408;
    --bg-deep: #050a14;
    --accent: #90caf9;
    --accent-glow: rgba(144, 202, 249, 0.5);
    --text-primary: #e0f2fe;
    --text-dim: rgba(224, 242, 254, 0.5);
    --font: 'Outfit', sans-serif;
}

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

body {
    background-color: #000;
    color: #fff;
    font-family: var(--font);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ============================================
   Storm Container & Particles
   ============================================ */

#storm-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-deep), #000);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 0;
    animation: fade-in 3s ease-out 1s forwards;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 3;
}


/* ============================================
   Title Screen (Slide 0)
   ============================================ */

.content-wrapper {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 98vw;
    max-width: 100vw;
    margin-top: -5vh;
    transition: opacity 2s ease-in-out;
}

#main-title {
    font-size: clamp(3rem, 7vw, 10rem);
    width: 100%;
    font-weight: 200;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1.5vw;
    color: var(--text-primary);
    text-shadow:
        0 0 10px rgba(144, 202, 249, 0.8),
        0 0 30px rgba(144, 202, 249, 0.6),
        0 0 60px rgba(100, 150, 255, 0.4);
    user-select: none;
    pointer-events: auto;
    cursor: default;
    margin-bottom: 2.5rem;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: fade-in 3s ease-out 0s forwards;
}

#main-image {
    width: 240px;
    height: auto;
    opacity: 0;
    box-shadow: none;
    border: none;
    mix-blend-mode: lighten;
    user-select: none;
    pointer-events: auto;
    animation: fade-in 3s ease-out 2s forwards;
}


/* ============================================
   Presentation Layer (Slides 1+)
   ============================================ */

#pres-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#pres-layer.active {
    opacity: 1;
    pointer-events: auto;
}


/* --- Slide: Intro Text --- */

.intro-text {
    font-size: clamp(2rem, 5vw, 7rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1vw;
    color: var(--text-primary);
    text-shadow:
        0 0 10px rgba(144, 202, 249, 0.6),
        0 0 30px rgba(144, 202, 249, 0.3);
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    padding: 0 5vw;
    line-height: 1.3;
}

.intro-text.visible {
    opacity: 1;
}


/* --- Slide: Book Title --- */

.slide-book-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    text-align: center;
    padding: 0 5vw;
}

.slide-book-title .book-name {
    font-size: clamp(2.5rem, 6vw, 8rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.8vw;
    color: var(--text-primary);
    text-shadow:
        0 0 10px rgba(144, 202, 249, 0.6),
        0 0 40px rgba(144, 202, 249, 0.3);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide-book-title .book-name.visible { opacity: 1; }

.slide-book-title .presenter-line {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 200;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    transition: opacity 1.5s ease-in-out 0.5s;
}

.slide-book-title .presenter-line.visible { opacity: 1; }

.slide-book-title .author-line {
    font-size: clamp(0.8rem, 1.5vw, 1.4rem);
    font-weight: 200;
    letter-spacing: 3px;
    color: var(--text-dim);
    opacity: 0;
    transition: opacity 1.5s ease-in-out 1s;
}

.slide-book-title .author-line.visible { opacity: 1; }


/* --- Slide: Book Content --- */

.slide-book-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    width: 90%;
    max-width: 1400px;
    height: 80vh;
    align-items: start;
    padding-top: 5vh;
}

.content-left {
    display: flex;
    flex-direction: column;
    gap: 3vh;
}

.content-right {
    display: flex;
    flex-direction: column;
    gap: 3vh;
}

.theme-connection {
    font-size: clamp(1rem, 1.6vw, 1.5rem);
    font-weight: 200;
    line-height: 1.8;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    border-left: 2px solid var(--accent);
    padding-left: 2vw;
}

.theme-connection.visible { opacity: 1; }

.content-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.6;
    margin-bottom: 1vh;
}

.quote-container {
    display: flex;
    flex-direction: column;
    gap: 2.5vh;
    opacity: 0;
    transition: opacity 1.5s ease-in-out 0.3s;
}

.quote-container.visible { opacity: 1; }

.quote-block {
    border-left: 2px solid rgba(144, 202, 249, 0.3);
    padding-left: 1.5vw;
}

.quote-text {
    font-size: clamp(0.85rem, 1.2vw, 1.15rem);
    font-weight: 200;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 0.8vh;
}

.quote-analysis {
    font-size: clamp(0.7rem, 0.9vw, 0.9rem);
    font-weight: 400;
    color: var(--accent);
    opacity: 0.7;
    line-height: 1.4;
}

.motif-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1vh;
    opacity: 0;
    transition: opacity 1.5s ease-in-out 0.6s;
}

.motif-list.visible { opacity: 1; }

.motif-item {
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 200;
    color: var(--text-primary);
    padding-left: 1.5vw;
    position: relative;
}

.motif-item::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.6em;
    top: 0.3em;
}

/* Presenter bar at bottom */
.presenter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(2, 4, 8, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(144, 202, 249, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3vw;
    z-index: 20;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.presenter-bar.visible { opacity: 1; }

.presenter-bar .bar-left {
    display: flex;
    align-items: center;
    gap: 1.5vw;
}

.presenter-bar .bar-presenter {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.presenter-bar .bar-book {
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-style: italic;
}

.presenter-bar .bar-right {
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(144, 202, 249, 0.3);
}


/* --- Slide: USSR --- */

.slide-ussr-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2vh;
    text-align: center;
}

.slide-ussr-title .ussr-main {
    font-size: clamp(2.5rem, 6vw, 8rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.8vw;
    color: var(--text-primary);
    text-shadow:
        0 0 10px rgba(144, 202, 249, 0.6),
        0 0 40px rgba(144, 202, 249, 0.3);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide-ussr-title .ussr-main.visible { opacity: 1; }

.slide-ussr-title .ussr-sub {
    font-size: clamp(0.9rem, 1.8vw, 1.6rem);
    font-weight: 200;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    transition: opacity 1.5s ease-in-out 0.5s;
}

.slide-ussr-title .ussr-sub.visible { opacity: 1; }

.slide-ussr-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vh;
    width: 80%;
    max-width: 1000px;
    text-align: center;
}

.ussr-quote {
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: 200;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-primary);
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    padding: 3vh 3vw;
    text-align: left;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.ussr-quote.visible { opacity: 1; }

.ussr-source {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
    opacity: 0.5;
}

.ussr-analysis {
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    font-weight: 200;
    line-height: 1.7;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 1.5s ease-in-out 0.5s;
    max-width: 800px;
}

.ussr-analysis.visible { opacity: 1; }


/* --- Slide: Theme Summary Table --- */

.slide-theme-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vh;
    width: 90%;
    max-width: 1200px;
}

.summary-title {
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.5vw;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(144, 202, 249, 0.4);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.summary-title.visible { opacity: 1; }

.summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out 0.5s;
}

.summary-table.visible { opacity: 1; }

.summary-table th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 1.5vh 1.5vw;
    text-align: left;
    border-bottom: 1px solid rgba(144, 202, 249, 0.3);
}

.summary-table td {
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 200;
    color: var(--text-primary);
    padding: 1.5vh 1.5vw;
    border-bottom: 1px solid rgba(144, 202, 249, 0.08);
}

.summary-table tr:last-child td {
    border-bottom: none;
}

.summary-table td:first-child {
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}


/* --- Slide: Works Cited --- */

.slide-works-cited {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vh;
    width: 80%;
    max-width: 900px;
}

.works-title {
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.5vw;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(144, 202, 249, 0.4);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.works-title.visible { opacity: 1; }

.citations-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2vh;
    opacity: 0;
    transition: opacity 1.5s ease-in-out 0.5s;
}

.citations-list.visible { opacity: 1; }

.citation-item {
    font-size: clamp(0.8rem, 1.1vw, 1.05rem);
    font-weight: 200;
    line-height: 1.6;
    color: var(--text-primary);
    padding-left: 2vw;
    text-indent: -2vw;
}


/* ============================================
   Storm Fly-Through Transition
   ============================================ */

#storm-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

#storm-transition.active {
    opacity: 1;
}

.storm-cloud {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes cloud-rush {
    0% {
        transform: translate(-50%, -50%) scale(0.05);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(12);
        opacity: 0;
    }
}


/* ============================================
   Slide Counter
   ============================================ */

#slide-counter {
    position: fixed;
    bottom: 15px;
    right: 20px;
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 3px;
    color: rgba(144, 202, 249, 0.25);
    z-index: 100;
}


/* ============================================
   Client Monitor
   ============================================ */

#client-monitor {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font);
}


/* ============================================
   Animations
   ============================================ */

@keyframes fade-in {
    from { opacity: 0; filter: blur(5px); }
    to { opacity: 1; filter: blur(0); }
}

@keyframes title-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
        filter: blur(0px);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
        filter: blur(2px);
    }
}

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


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    #main-title {
        font-size: 4rem;
        letter-spacing: 0.5rem;
    }

    .slide-book-content {
        grid-template-columns: 1fr;
        padding-top: 3vh;
        height: auto;
    }

    .presenter-bar {
        height: 50px;
    }
}
