/* Negative_Color Slide System
   Full-bleed slides with positioned text boxes
   Typeface: JetBrains Mono
*/

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

:root {
    --bg: #000;
    --fg: #fff;
    --muted: #666;
    --accent: #fff;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
}

/* ===========================================
   FIXED UI - Navigation elements
   =========================================== */

.ui-nav {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #222;
    border-radius: 100px;
    z-index: 1000;
}

.ui-nav__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ui-nav__dot:hover {
    border-color: var(--fg);
}

.ui-nav__dot.active {
    background: var(--fg);
    border-color: var(--fg);
    transform: scale(1.3);
}

.ui-counter {
    position: fixed;
    bottom: 12px;
    right: 40px;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--muted);
    z-index: 1000;
}

.ui-counter span {
    color: var(--fg);
}

.ui-link {
    position: fixed;
    bottom: 12px;
    left: 40px;
    z-index: 1000;
}

.ui-link a {
    display: block;
    background: #000;
    color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ui-link a:hover {
    opacity: 0.7;
}

.ui-scroll {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: opacity 0.3s;
}

.ui-scroll.hidden {
    opacity: 0;
    pointer-events: none;
}

.ui-scroll__line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--fg), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.ui-scroll__text {
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

@keyframes scrollPulse {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.4; }
}

/* ===========================================
   SLIDE BASE
   =========================================== */

.slide {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    scroll-snap-align: start;
}

/* For solid color backgrounds */
.slide[data-bg^="#"],
.slide[data-bg^="rgb"] {
    background-color: attr(data-bg);
}

/* ===========================================
   TEXT BOX - The black box with white text
   =========================================== */

.text-box {
    position: absolute;
    background: #000;
    color: #fff;
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.text-box h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

.text-box p {
    margin: 0;
}

.text-box p + p {
    margin-top: 1rem;
}

.text-box .label {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #fff;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
}

.text-box .specs {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* ===========================================
   POSITIONS - 9 grid positions
   =========================================== */

/* Top row - positioned below nav bar */
.pos-top-left {
    top: 4.5rem;
    left: 3rem;
}

.pos-top-center {
    top: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.pos-top-right {
    top: 4.5rem;
    right: 3rem;
}

/* Center row */
.pos-center-left {
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
}

.pos-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pos-center-right {
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
}

/* Bottom row - positioned above footer */
.pos-bottom-left {
    bottom: 4rem;
    left: 3rem;
}

.pos-bottom-center {
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
}

.pos-bottom-right {
    bottom: 4rem;
    right: 3rem;
}

/* ===========================================
   WIDTHS
   =========================================== */

.width-fit {
    /* Natural width based on content */
    max-width: 90vw;
}

.width-full {
    width: calc(100vw - 6rem);
    left: 3rem !important;
    right: 3rem !important;
    transform: none !important;
}

.width-full.pos-bottom-center,
.width-full.pos-top-center,
.width-full.pos-center {
    transform: none !important;
}

.width-full.pos-center {
    top: 50%;
    transform: translateY(-50%) !important;
}

/* Percentage widths */
.width-30 { width: 30vw; max-width: 30vw; }
.width-40 { width: 40vw; max-width: 40vw; }
.width-45 { width: 45vw; max-width: 45vw; }
.width-50 { width: 50vw; max-width: 50vw; }
.width-60 { width: 60vw; max-width: 60vw; }
.width-70 { width: 70vw; max-width: 70vw; }
.width-80 { width: 80vw; max-width: 80vw; }

/* ===========================================
   SLIDE-SPECIFIC BACKGROUNDS
   These would be set inline or via JS
   =========================================== */

/* For slides with image backgrounds,
   the background is set via data-bg attribute and JS */

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 1200px) {
    .text-box {
        font-size: 1.25rem;
        padding: 0.6rem 0.85rem;
    }

    .text-box h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .text-box {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        line-height: 1.5;
    }

    .text-box h1 {
        font-size: 1.75rem;
    }

    .pos-top-left,
    .pos-top-right {
        top: 1.5rem;
        left: 1.5rem;
        right: auto;
    }

    .pos-top-right {
        left: auto;
        right: 1.5rem;
    }

    .pos-bottom-left,
    .pos-bottom-right,
    .pos-bottom-center {
        bottom: 3.5rem;
        left: 1.5rem;
        right: 1.5rem;
    }

    .pos-center-left,
    .pos-center-right {
        left: 1.5rem;
        right: 1.5rem;
    }

    .width-30,
    .width-40,
    .width-45,
    .width-50,
    .width-60,
    .width-70,
    .width-80 {
        width: calc(100vw - 3rem);
        max-width: calc(100vw - 3rem);
    }

    .width-full {
        width: calc(100vw - 3rem);
        left: 1.5rem !important;
        right: 1.5rem !important;
    }

    /* Hide dot nav on mobile, keep counter and link */
    .ui-nav {
        display: none;
    }

    .ui-counter {
        right: 1.5rem;
        bottom: 0.75rem;
        font-size: 11px;
    }

    .ui-link {
        left: 1.5rem;
        bottom: 0.75rem;
    }

    .ui-link a {
        font-size: 10px;
        padding: 0.4rem 0.6rem;
    }

    .ui-scroll {
        bottom: 1.5rem;
    }
}

/* ===========================================
   NAVIGATION (optional - for presentation mode)
   =========================================== */

.slide-nav {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
}

.slide-nav button {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid #fff;
    padding: 0.5rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.slide-nav button:hover {
    background: #fff;
    color: #000;
}

/* Progress indicator (legacy - kept for compatibility) */
.slide-progress {
    display: none;
}

/* ===========================================
   BIO SLIDE
   =========================================== */

.bio-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.bio-photo {
    width: 100%;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
}

.bio-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.bio-content .name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.bio-content p {
    margin-bottom: 1rem;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bio-photo {
        width: 80px;
        height: 80px;
    }

    .bio-content {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .bio-content .name {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .bio-content p {
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 768px) {
    .bio-grid {
        gap: 0.75rem;
        max-height: calc(100dvh - 6rem);
        overflow-y: auto;
    }

    .bio-photo {
        width: 60px;
        height: 60px;
    }

    .bio-content {
        font-size: 0.75rem;
        line-height: 1.45;
    }

    .bio-content .name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .bio-content p {
        margin-bottom: 0.5rem;
    }
}

/* ===========================================
   PRINT / EXPORT STYLES
   =========================================== */

@media print {
    .slide {
        page-break-after: always;
        height: 100vh;
        width: 100vw;
    }

    .slide-nav,
    .slide-progress {
        display: none;
    }
}
