/* =========================================================
   SHEN STUDIOS — FEATURED PROJECT CAROUSEL
   FINAL CLEAN VERSION
========================================================= */


/* =========================================================
   SWIPE MESSAGE
========================================================= */

.shen-project-swipe {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    gap: 10px;

    margin: 10px auto 14px;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;

    color: rgba(255, 255, 255, 0.82);
}


/* =========================================================
   CAROUSEL WRAPPER
========================================================= */

.shen-project-carousel {
    position: relative;

    width: 100%;
    max-width: 100%;

    box-sizing: border-box;
}


/* =========================================================
   SCROLLING AREA
========================================================= */

.shen-project-viewport {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;

    gap: 12px;

    padding-left: 8vw;
    padding-right: 8vw;
    padding-top: 10px;
    padding-bottom: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scroll-padding-left: 8vw;
    scroll-padding-right: 8vw;

    -webkit-overflow-scrolling: touch;

    touch-action: pan-x pan-y;

    overscroll-behavior-inline: contain;

    cursor: grab;

    user-select: none;
    -webkit-user-select: none;

    scrollbar-width: none;

    box-sizing: border-box;
}


.shen-project-viewport::-webkit-scrollbar {
    display: none;
}


.shen-project-viewport.is-dragging {
    cursor: grabbing;

    scroll-snap-type: none;
    scroll-behavior: auto;
}


/* =========================================================
   BASE PROJECT CARD
========================================================= */

.shen-project-slide {
    position: relative;

    flex: 0 0 84vw;

    width: 84vw;
    max-width: 305px;

    scroll-snap-align: center;
    scroll-snap-stop: always;

    overflow: hidden;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, 0.16);

    background: rgba(25, 18, 15, 0.94);

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.25);

    box-sizing: border-box;

    transform: scale(0.89);

    opacity: 0.42;

    filter: none !important;

    transition:
        transform 0.28s ease,
        opacity 0.28s ease,
        box-shadow 0.28s ease;

    z-index: 1;
}


/* =========================================================
   ACTIVE / CENTER CARD
========================================================= */

.shen-project-slide.is-active {
    transform: scale(1) !important;

    opacity: 1 !important;

    filter: none !important;

    z-index: 10 !important;

    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.34);
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.shen-project-image {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #111;
}


.shen-project-image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    pointer-events: none;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}


/* =========================================================
   VIEW LIVE WEBSITE
========================================================= */

.shen-project-live {
    position: absolute;

    left: 12px;
    bottom: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 12px;

    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.22);

    background: rgba(15, 12, 10, 0.86);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: #fff;

    text-decoration: none;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 10px;
    font-weight: 500;
    line-height: 1;

    letter-spacing: 0.04em;

    z-index: 20;
}


/* =========================================================
   PROJECT INFO
========================================================= */

.shen-project-info {
    width: 100%;

    padding: 14px 15px 17px;

    box-sizing: border-box;
}


.shen-project-info>span {
    display: block;

    margin-bottom: 6px;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 9px;
    font-weight: 400;
    line-height: 1.3;

    letter-spacing: 0.12em;

    color: rgba(255, 255, 255, 0.62);
}


.shen-project-info h3 {
    margin: 0 0 8px;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 21px;

    /* SLIM, NOT HEAVY */
    font-weight: 400;

    line-height: 1.15;

    letter-spacing: -0.02em;

    color: #fff;
}


.shen-project-info p {
    margin: 0;

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.78);
}


/* =========================================================
   STATIC DOTS
========================================================= */

.shen-project-dots {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    gap: 8px;

    margin: 12px auto 8px;

    padding: 9px 14px;

    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    background: rgba(54, 40, 33, 0.76);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.20);

    z-index: 30;
}


/* DOT */

.shen-project-dot {
    appearance: none;
    -webkit-appearance: none;

    display: block;

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.32);

    cursor: pointer;

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        opacity 0.22s ease;
}


/* ACTIVE DOT */

.shen-project-dot.is-active {
    background: #ffffff;

    transform: scale(1.5);

    opacity: 1;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .shen-project-viewport {
        gap: 12px;

        padding-left: 8vw;
        padding-right: 8vw;

        scroll-padding-left: 8vw;
        scroll-padding-right: 8vw;
    }


    .shen-project-slide {
        flex: 0 0 84vw;

        width: 84vw;
        max-width: 305px;
    }


    .shen-project-slide.is-active {
        transform: scale(1) !important;
    }


    .shen-project-slide:not(.is-active) {
        transform: scale(0.88) !important;

        opacity: 0.38 !important;

        filter: none !important;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 601px) and (max-width: 1100px) {

    .shen-project-viewport {
        gap: 20px;

        padding-left: 15vw;
        padding-right: 15vw;

        scroll-padding-left: 15vw;
        scroll-padding-right: 15vw;
    }


    .shen-project-slide {
        flex: 0 0 70vw;

        width: 70vw;

        max-width: 610px;
    }

}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1101px) {

    .shen-project-viewport {
        gap: 24px;

        padding-left: 25vw;
        padding-right: 25vw;

        scroll-padding-left: 25vw;
        scroll-padding-right: 25vw;
    }


    .shen-project-slide {
        flex: 0 0 50vw;

        width: 50vw;

        max-width: 650px;
    }

}

/* =========================================================
   MOBILE — SPACE BELOW DOTS + BIGGER BOTTOM ACTIONS
========================================================= */

@media (max-width: 600px) {

    /* MORE SPACE BETWEEN DOTS AND BUTTONS */
    #portfolio .portfolio-bottom-actions {
        margin-top: 28px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        gap: 10px !important;

        width: 100% !important;
    }


    /* BOTH BUTTONS */
    #portfolio .portfolio-view-all,
    #portfolio .portfolio-start-project {
        width: 76% !important;
        max-width: 280px !important;

        min-height: 42px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding: 11px 16px !important;

        box-sizing: border-box !important;

        font-family:
            "Helvetica Neue",
            Helvetica,
            Arial,
            sans-serif !important;

        font-size: 11px !important;
        font-weight: 700 !important;

        letter-spacing: 0.08em !important;

        border-radius: 8px !important;

        text-align: center !important;
    }
}