/* ============================================================
   PRESENTATION MODE — PPT-style slide navigation
   ============================================================ */

/* ---- Lock scroll & viewport ---- */
html.pres-mode {
    scroll-behavior: auto;       /* JS handles slide navigation */
    overflow: hidden;
}

html.pres-mode body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ---- Each section = one slide ---- */
html.pres-mode .pres-slide {
    flex: 0 0 100vw;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    cursor: default;
    overscroll-behavior: contain;
    pointer-events: none;
}

html.pres-mode .pres-slide.pres-slide--active {
    pointer-events: auto;
}

/* All interactive elements keep pointer cursor */
html.pres-mode .pres-slide a,
html.pres-mode .pres-slide button,
html.pres-mode .pres-slide [role="button"] {
    cursor: pointer;
}

/* All slides allow internal scroll via mouse wheel */
html.pres-mode .pres-slide {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}
html.pres-mode .pres-slide::-webkit-scrollbar {
    width: 4px;
}
html.pres-mode .pres-slide::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.3);
    border-radius: 2px;
}

/* ---- Slide wrapper (horizontal translateX) ---- */
.pres-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: auto;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    will-change: transform;
    transition: transform 0.7s cubic-bezier(.77,0,.18,1);
    cursor: default;
    z-index: 1;
}

.pres-wrapper.pres-wrapper--instant {
    transition: none;
}

/* ---- Navbar adjustments ---- */
html.pres-mode .landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform .35s ease;
}
html.pres-mode .landing-nav.pres-nav-visible {
    transform: translateY(0);
}
html.pres-mode .pres-nav-trigger {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 30px;
    z-index: 9998;
}

/* ============================================================
   NAVIGATION ARROWS
   ============================================================ */
.pres-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9990;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, transform .25s, opacity .35s;
    opacity: 0.7;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.pres-arrow:hover {
    background: rgba(242,22,81,.85);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.pres-arrow:active {
    transform: translateY(-50%) scale(.95);
}
.pres-arrow svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
.pres-arrow--prev {
    left: 24px;
}
.pres-arrow--next {
    right: 24px;
}
.pres-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   SLIDE COUNTER
   ============================================================ */
.pres-counter {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 40px;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    user-select: none;
}
.pres-counter__current {
    font-weight: 700;
    font-size: 18px;
    color: #F21651;
    min-width: 20px;
    text-align: center;
}
.pres-counter__sep {
    opacity: .5;
}
.pres-counter__total {
    opacity: .7;
}

/* ---- Dot indicators ---- */
.pres-dots {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9989;
    display: none;              /* hidden — arrows are primary */
}

/* ============================================================
   SLIDE PROGRESS BAR
   ============================================================ */
.pres-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    z-index: 9991;
    background: rgba(255,255,255,.08);
}
.pres-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #F21651, #ff6b8a);
    transition: width .7s cubic-bezier(.77,0,.18,1);
    border-radius: 0 2px 2px 0;
}

/* ============================================================
   LASER POINTER
   ============================================================ */
.pres-laser-pointer,
.pres-laser-dot {
    position: fixed;
    left: 0;
    top: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .18s ease;
}

.pres-laser-pointer {
    width: 16px;
    height: 16px;
    z-index: 10002;
    background:
        radial-gradient(circle, rgba(255,255,255,.95) 0 16%, #F21651 17% 45%, rgba(242,22,81,.38) 58%, transparent 72%);
    box-shadow:
        0 0 10px rgba(242,22,81,.9),
        0 0 26px rgba(242,22,81,.45),
        0 0 42px rgba(242,22,81,.24);
    mix-blend-mode: screen;
}

.pres-laser-dot {
    width: 4px;
    height: 4px;
    z-index: 10003;
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,.9);
}

html.pres-mode.pres-laser-visible .pres-laser-pointer,
html.pres-mode.pres-laser-visible .pres-laser-dot {
    opacity: 1;
}

@media (pointer: coarse) {
    .pres-laser-pointer,
    .pres-laser-dot {
        display: none;
    }
}

/* ============================================================
   TRANSITION OVERLAY  (curtain wipe effect)
   ============================================================ */
.pres-transition-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 9995;
    pointer-events: none;
    overflow: hidden;
}
.pres-transition-overlay__curtain {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 100%);
    transform: translateX(-101%);
    will-change: transform;
}

/* Transition animation classes */
.pres-transition-overlay.pres-transition--active .pres-transition-overlay__curtain {
    animation: curtainWipe .65s cubic-bezier(.77,0,.18,1) forwards;
}

@keyframes curtainWipe {
    0%   { transform: translateX(-101%); }
    45%  { transform: translateX(0%); }
    55%  { transform: translateX(0%); }
    100% { transform: translateX(101%); }
}

/* Reverse direction */
.pres-transition-overlay.pres-transition--reverse .pres-transition-overlay__curtain {
    animation: curtainWipeReverse .65s cubic-bezier(.77,0,.18,1) forwards;
}

@keyframes curtainWipeReverse {
    0%   { transform: translateX(101%); }
    45%  { transform: translateX(0%); }
    55%  { transform: translateX(0%); }
    100% { transform: translateX(-101%); }
}

/* ============================================================
   SLIDE VISIBILITY (only active slide is visible)
   ============================================================
   NOTE: We do NOT set opacity:0 on containers because GSAP
   ScrollTrigger animations already handle per-element reveals.
   Setting opacity:0 here would fight with GSAP and cause blank slides.
   ============================================================ */

/* ============================================================
   KEYBOARD HINT (shown briefly on load)
   ============================================================ */
.pres-keyboard-hint {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    padding: 10px 22px;
    border-radius: 10px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,.8);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
    white-space: nowrap;
}
.pres-keyboard-hint.visible {
    opacity: 1;
}
.pres-keyboard-hint kbd {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    font-family: inherit;
    font-size: 12px;
    margin: 0 2px;
}

/* ============================================================
   FOOTER AS LAST SLIDE
   ============================================================ */
html.pres-mode .main-footer.pres-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .pres-arrow {
        width: 42px;
        height: 42px;
    }
    .pres-arrow svg {
        width: 20px;
        height: 20px;
    }
    .pres-arrow--prev { left: 10px; }
    .pres-arrow--next { right: 10px; }
    .pres-counter {
        bottom: 16px;
        padding: 6px 14px;
        font-size: 12px;
    }
}
