/* ── alice-page wrapper ──────────────────────────────────────────────────────
   Normal flex column — heading sits above the section card in document flow.
   ─────────────────────────────────────────────────────────────────────────── */
#alice-page {
    width: clamp(280px, 90vw, 880px);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    isolation: isolate;   /* establishes a stacking context — z-indexes of all
                             children are compared within this container only,
                             so z-index: 50 on frame-section definitively wins
                             over z-index: 2 on the sections above and below. */
}

/* Prevent negative margin on heading from creating a horizontal scrollbar */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* ── "HI, I'M ALICE" heading ─────────────────────────────────────────────────
   In normal document flow — scrolls up and out of view naturally.
   Right-aligned so "ALICE" sits flush with the right edge of the wrapper.
   ─────────────────────────────────────────────────────────────────────────── */
#hi-im-alice {
    align-self: flex-end;
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    text-align: right;
    line-height: 1;
    margin-bottom: 28px;
    margin-right: -5vw;
    padding-top: 8px;

    text-shadow:
        0 0 40px rgba(0, 200, 255, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.70);
}

/* ── Container for the outline copies ───────────────────────────────────────
   Fixed to the viewport — JS drives each copy's translateY.
   z-index: 1 keeps copies behind the section card (z-index 2) but above
   the body background blobs (z-index 0).
   ─────────────────────────────────────────────────────────────────────────── */
#alice-copies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* ── Individual outline copies ───────────────────────────────────────────────
   Initial top / right set by JS to match the heading's screen position.
   ─────────────────────────────────────────────────────────────────────────── */
.alice-copy {
    position: absolute;
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    user-select: none;

    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
    text-stroke:         2px rgba(255, 255, 255, 0.5);

    will-change: transform;
}

/* ── Section card sits above the copies ─────────────────────────────────── */
#about_me {
    position: relative;
    z-index: 2;
    aspect-ratio: unset;
    height: auto;
    text-align: center;
    gap: 12px;
}

#about_me h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 20px;
    opacity: 1;
}

#about_me p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 1;
    max-width: 100%;
    margin: 0 auto;
}

#about_me a {
    color: rgb(70, 255, 255);
}

/* ── Frame animation — no card styling, bare canvas only ─────────────────── */
#frame-section {
    position: relative;
    z-index: 5;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
    margin-top: -80px !important;

    /* Strip all .section card styles */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#frame-section::before,
#frame-section::after {
    display: none !important;
}

/* centered animation for large screens */

@media (min-width: 900px) {
    #frame-section {
        margin-left: calc(50% - 30vw);
    }
}

#frame-canvas {
    width: 100%;
    height: auto;   /* natural image ratio, no stretching */
    display: block;
}

#hearts {
    align-self: center;
    margin-left: 8vw;
    margin-top: -13vw;
    margin-bottom: 12vw; 
    z-index: 4;

    font-size: 5vw;
    font-weight: 700;
    white-space: nowrap;

    color: #ffffff;
    background: linear-gradient(
        90deg,
        #020d2e 0%,
        #1a0550 30%,
        #6600cc 60%,
        #ff6ac8 100%
    );
    padding: 2vw 8vw;

    /* Fade the left edge into the page background */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 18%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 18%
    );
}

@media (min-width: 900px) {
    #hearts {
        margin-left: 20vw;
    }
}

#image-slider {
    width: 100vw;
    position: relative;
    z-index: 3;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-arrow {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    user-select: none;
    z-index: 4;
}

.slider-arrow:hover {
    opacity: 1;
}

.slider-arrow:disabled {
    opacity: 0.15;
    cursor: default;
}

#slider-viewport {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    cursor: grab;
    -webkit-overflow-scrolling: touch;

    /* hide scrollbar across browsers */
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* fade edges */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

#slider-viewport::-webkit-scrollbar {
    display: none;
}

#slider-viewport.grabbing {
    cursor: grabbing;
}

#slider-track {
    display: flex;
    gap: 28px;
    padding: 10px 6vw;
    width: max-content;
}

.slider-item {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10vh;  /* reserves space for the caption */
}

.slider-item img {
    height: 260px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    pointer-events: none;
    user-select: none;
}

.slider-item p {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    font-size: 1rem;
    line-height: 1.3;
    opacity: 1;
    text-align: center;
    margin: 0;
    white-space: normal;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 4px 24px rgba(0, 0, 0, 0.85);
}

