/* ===== PRODUCT SHOWCASE 3D CAROUSEL ===== */
/* Converted from SCSS to CSS and adapted for WordPress ACF */

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

:root {
    --showcase-card-width: 420px;
    --showcase-card-height: 900px;
    --showcase-card-transition-duration: 800ms;
    --showcase-card-transition-easing: ease;
}

/* ========================================== */
/* PRODUCT SHOWCASE SECTION BASE */
/* ========================================== */

.product-showcase-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    padding: 20px 0;
}

/* ========================================== */
/* BACKGROUND IMAGE WITH BLUR */
/* ========================================== */

.showcase-app-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.showcase-app-bg::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2;
    opacity: 0.8;
}

.showcase-bg-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(var(--image-translate-offset, 0));
    width: 180%;
    height: 180%;
    transition: transform 1000ms ease, opacity 1000ms ease;
    overflow: hidden;
}

.showcase-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-bg-image.current--image {
    opacity: 1;
    --image-translate-offset: 0;
}

.showcase-bg-image.previous--image,
.showcase-bg-image.next--image {
    opacity: 0;
}

.showcase-bg-image.previous--image {
    --image-translate-offset: -25%;
}

.showcase-bg-image.next--image {
    --image-translate-offset: 25%;
}

/* ========================================== */
/* CARD LIST CONTAINER */
/* ========================================== */

.showcase-cardList {
    position: relative;
    width: calc(3 * var(--showcase-card-width));
    height: auto;
    z-index: 10;
}

/* Navigation Buttons */
.showcase-cardList-btn {
    --btn-size: 50px;
    width: var(--btn-size);
    height: var(--btn-size);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.showcase-cardList-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.showcase-cardList-btn:focus {
    outline: none;
    border: none;
}

.showcase-cardList-btn.btn--left {
    left: -10%;
}

.showcase-cardList-btn.btn--right {
    right: -10%;
}

.showcase-cardList-btn .icon {
    width: 24px;
    height: 24px;
}

.showcase-cardList-btn .icon svg {
    width: 100%;
    height: 100%;
}

/* Cards Wrapper */
.showcase-cards-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

/* ========================================== */
/* INDIVIDUAL CARDS */
/* ========================================== */

.showcase-card {
    --card-translateY-offset: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) 
               translateX(var(--card-translateX-offset))
               translateY(var(--card-translateY-offset)) 
               rotateY(var(--card-rotation-offset))
               scale(var(--card-scale-offset));
    display: inline-block;
    width: var(--showcase-card-width);
    height: var(--showcase-card-height);
    transition: transform var(--showcase-card-transition-duration) var(--showcase-card-transition-easing);
    user-select: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.showcase-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
    transition: opacity var(--showcase-card-transition-duration) var(--showcase-card-transition-easing);
    opacity: calc(1 - var(--opacity));
}

.showcase-card-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.showcase-card-image img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay at bottom of card for better product image visibility */
.showcase-card-image::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.4) 40%, 
        rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Remove gradient overlay on current card */
.showcase-card.current--card .showcase-card-image::after {
    display: none;
}

/* Remove dark overlay on current card */
.showcase-card.current--card::before {
    opacity: 0;
}

/* Product Image at bottom of card */
.showcase-card-product-image {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 130px;
    z-index: 10;
    opacity: 0;
    transition: opacity var(--showcase-card-transition-duration) var(--showcase-card-transition-easing),
                transform var(--showcase-card-transition-duration) var(--showcase-card-transition-easing);
    filter: none;
}

.showcase-card-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Show product image on current card - full opacity */
.showcase-card.current--card .showcase-card-product-image {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Show product image on previous card - reduced opacity */
.showcase-card.previous--card .showcase-card-product-image {
    opacity: 0.3;
    transform: translateX(-50%) translateY(0);
}

/* Show product image on next card - reduced opacity */
.showcase-card.next--card .showcase-card-product-image {
    opacity: 0.3;
    transform: translateX(-50%) translateY(0);
}

/* Current Card - Center */
.showcase-card.current--card {
    --current-card-rotation-offset: 0;
    --card-translateX-offset: 0;
    --card-rotation-offset: var(--current-card-rotation-offset);
    --card-scale-offset: 1.2;
    --opacity: 0.8;
    z-index: 3;
}

/* Previous Card - Left */
.showcase-card.previous--card {
    --card-translateX-offset: calc(-1 * var(--showcase-card-width) * 1.1);
    --card-rotation-offset: 25deg;
    --card-scale-offset: 0.9;
    --opacity: 0.4;
    z-index: 2;
}

/* Next Card - Right */
.showcase-card.next--card {
    --card-translateX-offset: calc(var(--showcase-card-width) * 1.1);
    --card-rotation-offset: -25deg;
    --card-scale-offset: 0.9;
    --opacity: 0.4;
    z-index: 2;
}

/* ========================================== */
/* INFO LIST - PRODUCT DETAILS */
/* ========================================== */

.showcase-infoList {
    position: absolute;
    left: 11%;
    top: 50%;
    transform: translateY(-50%);
    width: 410px;
    height: auto;
    pointer-events: none;
    z-index: 15;
}

.showcase-info-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    perspective: 1000px;
}

.showcase-info {
    transition: transform var(--showcase-card-transition-duration) var(--showcase-card-transition-easing),
                opacity var(--showcase-card-transition-duration) var(--showcase-card-transition-easing);
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-info.current--info {
    opacity: 1;
    display: block;
    pointer-events: auto;
}

.showcase-info.previous--info,
.showcase-info.next--info {
    opacity: 0;
    display: none;
}

.showcase-info .text {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.showcase-info .name,
.showcase-info .location {
    text-transform: uppercase;
}

.showcase-info .name {
    font-weight: 800;
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.showcase-info .location {
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 10px;
    padding-left: 50px;
    position: relative;
}

.showcase-info .location::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 3px;
    background: #fff;
}

.showcase-info .description {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 100%;
}

/* ========================================== */
/* LOADING SCREEN */
/* ========================================== */

.showcase-loading-wrapper {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 200;
    transition: opacity 0.8s ease;
}

.showcase-loading-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}

.showcase-loader-text {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-bottom: 1.4rem;
    font-size: 18px;
}

.showcase-loader {
    position: relative;
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
}

.showcase-loader span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #325D53;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* ========================================== */
/* SVG ICONS */
/* ========================================== */

.showcase-icons {
    display: none;
}

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */

/* Hide Product Info on smaller screens */
@media only screen and (max-width: 1270px) {
    .showcase-infoList {
        display: none !important;
    }
}

/* Large Desktop */
@media only screen and (min-width: 1400px) {
    :root {
        --showcase-card-width: 400px;
        --showcase-card-height: 810px;
    }
    
    .showcase-cardList-btn {
        --btn-size: 60px;
    }
    
    .showcase-cardList-btn .icon {
        width: 28px;
        height: 28px;
    }
    
    .showcase-info .name {
        font-size: 46px;
    }
    
    .showcase-info .location {
        font-size: 26px;
    }
    
    .showcase-card-product-image {
        width: 260px;
        height: 150px;
        bottom: 30px;
    }
}

/* Desktop */
@media only screen and (min-width: 800px) and (max-width: 1399px) {
    :root {
        --showcase-card-width: 350px;
        --showcase-card-height: 680px;
    }
    
    .showcase-info .name {
        font-size: 44px;
    }
    
    .showcase-info .location {
        font-size: 22px;
    }
    
    .showcase-card-product-image {
        width: 200px;
        height: 120px;
        bottom: 20px;
    }
}

/* Tablet */
@media only screen and (max-width: 1024px) {
    :root {
        --showcase-card-width: 300px;
        --showcase-card-height: 650px;
    }
    
    .showcase-cardList {
        width: calc(3 * var(--showcase-card-width));
    }
    
    .showcase-cardList-btn {
        --btn-size: 45px;
    }
    
    .showcase-infoList {
        width: 380px;
    }
    
    .showcase-info {
        padding: 25px;
    }
    
    .showcase-info .name {
        font-size: 38px;
    }
    
    .showcase-info .location {
        font-size: 20px;
    }
    
    .showcase-info .description {
        font-size: 15px;
    }
    
    .showcase-card-product-image {
        width: 180px;
        height: 100px;
        bottom: 15px;
    }
}

/* Mobile - Hide Product Info */
@media only screen and (max-width: 768px) {
    :root {
        --showcase-card-width: 280px;
        --showcase-card-height: 600px;
    }
    
    .product-showcase-section {
        height: 100vh;
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .showcase-cardList {
        width: calc(3 * var(--showcase-card-width));
    }
    
    .showcase-cardList-btn {
        --btn-size: 40px;
    }
    
    .showcase-cardList-btn .icon {
        width: 20px;
        height: 20px;
    }
    
    .showcase-cardList-btn.btn--left {
        left: 5%;
    }
    
    .showcase-cardList-btn.btn--right {
        right: 5%;
    }
    
    /* Hide Product Info on Mobile */
    .showcase-infoList {
        display: none !important;
    }
    
    .showcase-loader {
        width: 150px;
    }
    
    .showcase-loader-text {
        font-size: 16px;
    }
    
    .showcase-card-product-image {
        width: 160px;
        height: 90px;
        bottom: 15px;
    }
}

/* Small Mobile */
@media only screen and (max-width: 480px) {
    :root {
        --showcase-card-width: 240px;
        --showcase-card-height: 500px;
    }
    
    .product-showcase-section {
        height: 100vh;
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .showcase-cardList-btn {
        --btn-size: 35px;
    }
    
    .showcase-cardList-btn .icon {
        width: 18px;
        height: 18px;
    }
    
    .showcase-cardList-btn.btn--left {
        left: 2%;
    }
    
    .showcase-cardList-btn.btn--right {
        right: 2%;
    }
    
    .showcase-loader {
        width: 120px;
    }
    
    .showcase-loader-text {
        font-size: 14px;
    }
    
    .showcase-card-product-image {
        width: 140px;
        height: 80px;
        bottom: 10px;
    }
}

/* Extra Small Mobile */
@media only screen and (max-width: 400px) {
    :root {
        --showcase-card-width: 240px;
        --showcase-card-height: 440px;
    }
    
    .product-showcase-section {
        height: 100vh;
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .showcase-card-product-image {
        width: 120px;
        height: 70px;
        bottom: 8px;
    }
}