@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.ps-showcase,
.ps-showcase * {
    box-sizing: border-box;
}

.ps-showcase {
    --ps-bg: #050505;
    --ps-text: #ffffff;
    --ps-muted: rgba(255, 255, 255, 0.72);
    --ps-faint: rgba(255, 255, 255, 0.50);
    --ps-accent: #d97c17;
    --ps-scroll-height: 370vh;
    --ps-sticky-top: 0px;
    position: relative;
    overflow: clip;
    min-height: 680px;
    padding: clamp(56px, 6vw, 96px) clamp(18px, 4vw, 64px);
    background:
        radial-gradient(circle at 52% 40%, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #080808 0%, #0d0d0d 34%, #030303 100%);
    color: var(--ps-text);
    isolation: isolate;
}

.ps-showcase::before,
.ps-showcase::after {
    content: "";
    position: absolute;
    inset: auto auto -18% -7%;
    width: 45%;
    height: 70%;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), transparent);
    transform: skewY(17deg);
    opacity: 0.52;
    z-index: -2;
}

.ps-showcase::after {
    inset: auto -7% -11% auto;
    transform: skewY(-12deg);
    background: linear-gradient(270deg, rgba(255,255,255,0.06), transparent);
}

.ps-bg-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(20deg, transparent 0 48%, rgba(255,255,255,.08) 48.2% 48.6%, transparent 49% 100%),
        linear-gradient(-11deg, transparent 0 58%, rgba(255,255,255,.05) 58.3% 58.7%, transparent 59% 100%);
    opacity: .34;
}

.ps-shell {
    width: min(1320px, 100%);
    margin: 0 auto;
    position: relative;
}

.ps-heading-wrap {
    position: relative;
    z-index: 4;
    width: min(650px, 100%);
    margin-bottom: clamp(28px, 4vw, 58px);
}

.ps-heading {
    margin: 0;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: clamp(42px, 6vw, 94px);
    line-height: 0.94;
    letter-spacing: -0.055em;
    font-weight: 500;
    color: #fff;
}

.ps-stage {
    display: grid;
    grid-template-columns: minmax(190px, 270px) minmax(420px, 1fr) minmax(74px, 100px);
    align-items: center;
    gap: clamp(22px, 4vw, 58px);
    min-height: 410px;
    position: relative;
    outline: none;
}

.ps-info-area {
    min-height: 360px;
    position: relative;
    z-index: 4;
}

.ps-info {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    opacity: 0;
    transform: translateY(18px);
    visibility: hidden;
    transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
}

.ps-info.is-active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.ps-client-logo {
    display: block;
    width: min(132px, 75%);
    max-height: 86px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 22px;
    filter: brightness(0) invert(1);
}

.ps-client-text {
    display: inline-flex;
    max-width: 240px;
    margin-bottom: 18px;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    color: #fff;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.03em;
    text-transform: uppercase;
}

.ps-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.68);
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.ps-meta span {
    display: block;
    font-weight: 500;
}

.ps-project-title {
    margin: 0 0 12px;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    color: #fff;
    font-size: clamp(16px, 1.3vw, 21px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -.025em;
}

.ps-description {
    margin: 0 0 26px;
    color: var(--ps-muted);
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.45;
    max-width: 270px;
}

.ps-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1;
    padding-bottom: 9px;
    border-bottom: 1px solid #fff;
    transition: color .25s ease, border-color .25s ease, transform .25s ease;
}

.ps-link:hover,
.ps-link:focus {
    color: var(--ps-accent);
    border-color: var(--ps-accent);
    transform: translateX(4px);
}

.ps-media-area {
    position: relative;
    z-index: 3;
    perspective: 1300px;
}

.ps-main-frame {
    position: relative;
    width: min(760px, 100%);
    aspect-ratio: 16 / 8.3;
    margin: 0 auto;
    transform: rotateX(1.5deg) rotateY(-4.5deg) rotateZ(3.5deg);
    transform-origin: center;
    background: #161616;
    border: 7px solid #050505;
    box-shadow:
        0 34px 70px rgba(0, 0, 0, .62),
        0 0 0 1px rgba(255, 255, 255, .09);
    overflow: hidden;
}

.ps-main-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255,255,255,.08), transparent 35%, rgba(0,0,0,.2) 100%);
}

.ps-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .72s ease, transform 1s ease;
}

.ps-main-image.is-active {
    opacity: 1;
    transform: scale(1);
}

.ps-thumbs {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.ps-thumb {
    width: 70px;
    height: 70px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    cursor: pointer;
    opacity: .44;
    overflow: hidden;
    transition: opacity .28s ease, transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.ps-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-thumb:hover,
.ps-thumb:focus {
    opacity: .86;
    transform: translateX(-5px);
}

.ps-thumb.is-active {
    opacity: 1;
    border-color: #fff;
    box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 15px 32px rgba(0,0,0,.55);
    transform: translateX(-9px) scale(1.04);
}

.ps-controls {
    display: flex;
    gap: 12px;
    position: absolute;
    right: clamp(86px, 7vw, 116px);
    bottom: -52px;
    z-index: 8;
}

.ps-prev,
.ps-next {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    line-height: 38px;
    display: grid;
    place-items: center;
    transition: background .25s ease, transform .25s ease, border-color .25s ease;
}

.ps-prev:hover,
.ps-next:hover,
.ps-prev:focus,
.ps-next:focus {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.46);
    transform: translateY(-2px);
}

/* Window scroll mode */
.ps-showcase.ps-scroll-mode {
    height: var(--ps-scroll-height, 370vh);
    min-height: var(--ps-scroll-height, 370vh);
    padding-top: 0;
    padding-bottom: 0;
    overflow: visible;
}

.ps-showcase.ps-scroll-mode .ps-shell {
    position: sticky;
    top: var(--ps-sticky-top, 0px);
    min-height: calc(100vh - var(--ps-sticky-top, 0px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(48px, 5vw, 76px);
    padding-bottom: clamp(48px, 5vw, 76px);
}

.ps-showcase.ps-scroll-mode .ps-controls {
    display: none;
}

@media (max-width: 1100px) {
    .ps-stage {
        grid-template-columns: minmax(180px, 245px) minmax(390px, 1fr) minmax(72px, 90px);
        gap: 28px;
    }
}

@media (max-width: 980px) {
    .ps-showcase {
        min-height: auto;
        padding-top: 52px;
        padding-bottom: 70px;
    }

    .ps-heading-wrap {
        margin-bottom: 32px;
    }

    .ps-stage {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: 0;
    }

    .ps-info-area {
        min-height: 315px;
        order: 2;
    }

    .ps-media-area {
        order: 1;
    }

    .ps-thumbs {
        order: 3;
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 4px 0 10px;
    }

    .ps-thumb,
    .ps-thumb.is-active,
    .ps-thumb:hover,
    .ps-thumb:focus {
        transform: none;
        min-width: 68px;
    }

    .ps-main-frame {
        width: 94%;
        transform: rotateX(0deg) rotateY(-2deg) rotateZ(2deg);
    }

    .ps-controls {
        right: 20px;
        bottom: -48px;
    }
}

@media (max-width: 767px) {
    .ps-showcase.ps-scroll-mode {
        height: auto;
        min-height: auto;
        padding-top: 52px;
        padding-bottom: 70px;
    }

    .ps-showcase.ps-scroll-mode .ps-shell {
        position: relative;
        top: auto;
        min-height: auto;
        display: block;
        padding-top: 0;
        padding-bottom: 0;
    }

    .ps-showcase.ps-scroll-mode .ps-controls {
        display: flex;
    }
}

@media (max-width: 640px) {
    .ps-showcase {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ps-heading {
        font-size: clamp(38px, 14vw, 60px);
    }

    .ps-main-frame {
        width: 100%;
        border-width: 4px;
        transform: none;
        aspect-ratio: 16 / 10;
    }

    .ps-description {
        max-width: none;
    }
}


/* Project details popup: added without changing the original showcase layout. */
body.ps-modal-open {
    overflow: hidden !important;
}

button.ps-link {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #fff;
    border-radius: 0;
    cursor: pointer;
    padding: 0 0 9px;
    text-align: left;
}


.ps-project-modal,
.ps-project-modal * {
    box-sizing: border-box;
}

.ps-project-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
    font-family: Poppins, Arial, Helvetica, sans-serif;
}

.ps-project-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.ps-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(4px);
}

.ps-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1320px, calc(100vw - 40px));
    height: min(860px, calc(100vh - 40px));
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #351a08 0%, #1a0c03 100%);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .72);
}

.ps-modal-close {
    position: absolute;
    top: 34px;
    right: 36px;
    z-index: 6;
    min-width: 96px;
    height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .8);
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ps-modal-close:hover,
.ps-modal-close:focus {
    background: #fff;
    color: #1a0c03;
}

.ps-modal-project {
    display: none;
    height: 100%;
    padding: 34px 40px 28px;
}

.ps-modal-project.is-active {
    display: flex;
    flex-direction: column;
}

.ps-modal-title {
    flex: 0 0 auto;
    margin: 0 150px 30px 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 400;
}

.ps-modal-layout {
    display: grid;
    grid-template-columns: minmax(320px, 385px) minmax(0, 1fr);
    gap: 42px;
    flex: 1 1 auto;
    min-height: 0;
}

.ps-modal-details {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.55) rgba(255,255,255,.12);
}

.ps-modal-details::-webkit-scrollbar {
    width: 7px;
}

.ps-modal-details::-webkit-scrollbar-track {
    background: rgba(255,255,255,.12);
}

.ps-modal-details::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.58);
}

.ps-modal-detail-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    font-size: 15px;
    line-height: 1.48;
}

.ps-modal-detail-row:first-child {
    padding-top: 0;
}

.ps-modal-detail-label {
    color: rgba(255, 255, 255, .9);
}

.ps-modal-detail-value {
    min-width: 0;
    color: #fff;
}

.ps-modal-description-content p:first-child {
    margin-top: 0;
}

.ps-modal-description-content p:last-child {
    margin-bottom: 0;
}

.ps-modal-description-content a {
    color: #fff;
}

.ps-modal-gallery {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.ps-modal-main-image-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 360px;
    overflow: hidden;
    background: #120a05;
}

.ps-modal-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity .35s ease, transform .5s ease;
}

.ps-modal-main-image.is-active {
    opacity: 1;
    transform: scale(1);
}

.ps-modal-gallery-footer {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 82px;
    padding-top: 16px;
}

.ps-modal-counter {
    color: #f08a00;
    font-size: 30px;
    line-height: 1;
    font-weight: 400;
}

.ps-modal-thumbs {
    display: flex;
    gap: 9px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 0 7px;
}

.ps-modal-thumb {
    flex: 0 0 74px;
    width: 74px;
    height: 48px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    background: #19110c;
    opacity: .72;
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.ps-modal-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-modal-thumb:hover,
.ps-modal-thumb:focus,
.ps-modal-thumb.is-active {
    opacity: 1;
    border-color: #f08a00;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .ps-project-modal {
        padding: 10px;
    }

    .ps-modal-dialog {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        min-height: 0;
        overflow-y: auto;
    }

    .ps-modal-project {
        height: auto;
        min-height: 100%;
        padding: 26px 22px 22px;
    }

    .ps-modal-close {
        top: 20px;
        right: 20px;
        min-width: 78px;
        height: 40px;
    }

    .ps-modal-title {
        margin: 4px 100px 26px 0;
        font-size: clamp(30px, 8vw, 44px);
    }

    .ps-modal-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ps-modal-details {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .ps-modal-gallery {
        min-height: 440px;
    }
}

@media (max-width: 560px) {
    .ps-modal-detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 17px 0;
    }

    .ps-modal-main-image-wrap {
        min-height: 260px;
    }

    .ps-modal-gallery {
        min-height: 360px;
    }

    .ps-modal-gallery-footer {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .ps-modal-counter {
        font-size: 24px;
    }

    .ps-modal-thumb {
        flex-basis: 62px;
        width: 62px;
        height: 42px;
    }
}

/* Optional per-project homepage gallery. */
.ps-main-project {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06);
    transition: opacity .72s ease, transform 1s ease, visibility .72s ease;
}

.ps-main-project.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.ps-main-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity .48s ease, transform .75s ease;
}

.ps-main-gallery-image.is-gallery-active {
    opacity: 1;
    transform: scale(1);
}

.ps-main-gallery-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(8px);
    transform: translateX(-50%);
}

.ps-main-gallery-arrow,
.ps-main-gallery-dot {
    appearance: none;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.ps-main-gallery-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-size: 22px;
    line-height: 1;
    transition: background .2s ease, transform .2s ease;
}

.ps-main-gallery-arrow:hover,
.ps-main-gallery-arrow:focus-visible {
    background: var(--ps-accent);
    transform: scale(1.06);
}

.ps-main-gallery-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ps-main-gallery-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .42);
    transition: width .2s ease, background .2s ease;
}

.ps-main-gallery-dot.is-active {
    width: 20px;
    border-radius: 999px;
    background: #fff;
}

@media (max-width: 767px) {
    .ps-main-gallery-controls {
        bottom: 10px;
        gap: 8px;
        padding: 5px 8px;
    }

    .ps-main-gallery-arrow {
        width: 25px;
        height: 25px;
        font-size: 19px;
    }
}
