/* --- Stack Slider CSS --- */
#iso-stack-wrapper {
    --iso-card-width: 300px;
    --iso-card-height: 420px;
    --iso-transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    position: relative;
    width: 100%;
    height: 700px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    margin: 40px 0;
    font-family: Inter, Arial
}

@media (min-width: 768px) {
    #iso-stack-wrapper {
        --iso-card-width: 380px;
        --iso-card-height: 420px;
    }
}

.iso-card {
    position: absolute;
    width: var(--iso-card-width);
    height: var(--iso-card-height);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: transform var(--iso-transition), opacity var(--iso-transition), filter var(--iso-transition), z-index 0s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transform: translate3d(0, 0, -200px) scale(0);
    z-index: 0;
    pointer-events: none; 
}

.iso-mockup-wrapper {
    margin-top: 40px;
    width: 75%;
    height: auto;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
    border: none !important; 
}

.iso-mockup-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    max-width: 100%; 
}

.iso-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
    text-align: center;
}

.iso-card h2 {
    color: #fff !important; 
    margin: 0 0 8px 0 !important;
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.iso-card p {
    color: rgba(255,255,255,0.85) !important; 
    margin: 0 !important;
    font-size: 0.95rem !important;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

/* States */
.iso-card.iso-active {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    filter: brightness(1);
}
.iso-card.iso-active h2,
.iso-card.iso-active p {
    transform: translateY(0);
    opacity: 1;
}
.iso-card.iso-active .iso-mockup-wrapper {
    transform: scale(1.05) translateY(-10px);
}
.iso-card.iso-prev {
    transform: translate3d(-60%, 0, -100px) scale(0.85) rotateY(15deg);
    opacity: 0.8;
    z-index: 5;
    pointer-events: auto;
    filter: brightness(0.7);
}
.iso-card.iso-next {
    transform: translate3d(60%, 0, -100px) scale(0.85) rotateY(-15deg);
    opacity: 0.8;
    z-index: 5;
    pointer-events: auto;
    filter: brightness(0.7);
}
.iso-card.iso-unknown {
    transform: scale(0.5);
    opacity: 0;
    z-index: 0;
}

/* Hover */
@media (hover: hover) {
    .iso-card.iso-prev:hover {
        transform: translate3d(-70%, 0, -80px) scale(0.9) rotateY(10deg);
        opacity: 1;
        filter: brightness(0.9);
        z-index: 6;
    }
    .iso-card.iso-next:hover {
        transform: translate3d(70%, 0, -80px) scale(0.9) rotateY(-10deg);
        opacity: 1;
        filter: brightness(0.9);
        z-index: 6;
    }
}

/* Dots */
.iso-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}
.iso-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.4);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.iso-dot.iso-active {
    background: #333; 
    transform: scale(1.4);
}