/* SLIDER */
.slider {
    position: absolute;
    top: 64px;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
}

/* MOTIVATION BOX (SHELL) */
.motivation-box {
    max-width: 720px;
    width: 97%;
    max-height: calc(100svh - 110px);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    position: relative;
    overflow: hidden;

    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* SCROLLABLE CONTENT */
.motivation-content {
    max-height: calc(100svh - 110px);
    padding: clamp(18px, 4vw, 42px);
    overflow-y: auto;
    overscroll-behavior: contain;

    font-size: clamp(1.15rem, 3.6vw, 1.6rem);
    line-height: 1.6;
    letter-spacing: 0.6px;
    text-align: center;
    word-wrap: break-word;

    position: relative;
    z-index: 1;
}

/* SHINING BORDER */
.motivation-box::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 7px;
    border-radius: inherit;

    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0.08) 15%,
            rgba(255, 255, 255, 0.9) 35%,
            rgba(200, 200, 255, 0.7) 50%,
            rgba(255, 255, 255, 0.9) 65%,
            rgba(255, 255, 255, 0.08) 85%);
    background-size: 350% 350%;
    animation: shine 8s ease-in-out infinite;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
    z-index: 2;
}

/* SOFT GLOW */
.motivation-box::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    box-shadow:
        0 0 18px rgba(200, 200, 255, 0.35),
        0 0 36px rgba(180, 180, 255, 0.25);
    pointer-events: none;
    z-index: 0;
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.motivation-box.active {
    opacity: 1;
    transform: translateY(0);
}

/* SCROLLBAR */
.motivation-content::-webkit-scrollbar {
    width: 6px;
}

.motivation-content::-webkit-scrollbar-thumb {
    background: rgba(220, 225, 255, 0.35);
    border-radius: 4px;
}

/* MOBILE */
@media (max-width: 576px) {
    .motivation-box {
        border-radius: 16px;
    }
}

/* Floating Categories Carousel */
.categories-carousel {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.categories-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* SMALL OFFSET — NOT FULL SCREEN */
    transform: translateY(0);
    animation: scrollUp 120s linear infinite;
    will-change: transform;
}

.category-item {
    margin: 6px 0;
    font-size: 1.2rem;
    font-weight: 600;
    writing-mode: vertical-lr;
    text-orientation: upright;
    color: rgba(255, 255, 255, 0.12);
    text-align: center;
    border-radius: 10px; 
    padding: 10px;
    text-transform: uppercase;line-height: 1.4;
}


@keyframes scrollUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}