/* ========================================
   Prism 3D Slider
   Futuristic cube rotation effect
   ======================================== */

/* Section Container */
.slider-prism-section {
    width: 100%;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(135deg,
            rgba(248, 250, 252, 1) 0%,
            rgba(241, 245, 249, 1) 50%,
            rgba(248, 250, 252, 1) 100%);
    position: relative;
}

/* Decorative Elements */
.slider-prism-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 137, 123, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 150, 136, 0.03) 0%, transparent 40%);
    animation: slowRotate 60s linear infinite;
    pointer-events: none;
}

@keyframes slowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Floating Shapes */
.prism-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 137, 123, 0.08) 0%, rgba(0, 150, 136, 0.04) 100%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.prism-shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation: floatShape 15s ease-in-out infinite;
}

.prism-shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 10%;
    animation: floatShape 18s ease-in-out infinite reverse;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Header */
.slider-prism-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.slider-prism-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.slider-prism-header h2 span {
    background: linear-gradient(135deg, #00897b 0%, #26a69a 50%, #4db6ac 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-prism-header p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Slider Wrapper */
.slider-prism-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
    z-index: 10;
}

/* Prism Container */
.slider-prism-container {
    position: relative;
    width: 100%;
    height: 550px;
    perspective: 2000px;
    perspective-origin: 50% 50%;
}

/* Prism Stage */
.slider-prism-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual Prism Faces */
.prism-face {
    position: absolute;
    width: 380px;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.prism-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Face States */
.prism-face.active {
    z-index: 100;
    transform: translateZ(150px) scale(1);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 137, 123, 0.1),
        0 0 80px rgba(0, 137, 123, 0.1);
}

.prism-face.active:hover img {
    transform: scale(1.05);
}

.prism-face.left-1 {
    z-index: 50;
    transform: translateX(-400px) translateZ(50px) rotateY(35deg) scale(0.85);
    filter: brightness(0.9);
}

.prism-face.right-1 {
    z-index: 50;
    transform: translateX(400px) translateZ(50px) rotateY(-35deg) scale(0.85);
    filter: brightness(0.9);
}

.prism-face.left-2 {
    z-index: 25;
    transform: translateX(-680px) translateZ(-50px) rotateY(50deg) scale(0.7);
    filter: brightness(0.75);
    opacity: 0.7;
}

.prism-face.right-2 {
    z-index: 25;
    transform: translateX(680px) translateZ(-50px) rotateY(-50deg) scale(0.7);
    filter: brightness(0.75);
    opacity: 0.7;
}

.prism-face.hidden {
    z-index: 0;
    transform: translateZ(-200px) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

/* Face Overlay */
.prism-face::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 50%,
            rgba(0, 50, 50, 0.7) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.prism-face.active::before {
    opacity: 1;
}

/* Reflection Effect */
.prism-face::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-20deg);
    transition: left 0.8s ease;
    z-index: 2;
}

.prism-face.active:hover::after {
    left: 150%;
}

/* Face Content */
.face-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px;
    z-index: 3;
    transform: translateY(100%);
    transition: transform 0.6s ease;
}

.prism-face.active .face-content {
    transform: translateY(0);
}

.face-content .tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 137, 123, 0.9);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.face-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.face-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Navigation */
.slider-prism-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 137, 123, 0.1);
    color: #00897b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 50;
}

.slider-prism-nav:hover {
    background: #00897b;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow:
        0 15px 50px rgba(0, 137, 123, 0.3),
        0 0 0 4px rgba(0, 137, 123, 0.1);
}

.slider-prism-nav.prev {
    left: 20px;
}

.slider-prism-nav.next {
    right: 20px;
}

.slider-prism-nav svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.3s ease;
}

.slider-prism-nav:hover.prev svg {
    transform: translateX(-3px);
}

.slider-prism-nav:hover.next svg {
    transform: translateX(3px);
}

/* Progress Indicators */
.slider-prism-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
    position: relative;
    z-index: 5;
}

.indicator-line {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 137, 123, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.indicator-line:hover {
    background: rgba(0, 137, 123, 0.3);
}

.indicator-line.active {
    width: 60px;
    background: rgba(0, 137, 123, 0.2);
}

.indicator-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00897b, #26a69a);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.indicator-line.active::after {
    width: 100%;
}

/* Info Display */
.slider-prism-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 5;
}

.info-counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
}

.info-counter .current {
    font-size: 2.5rem;
    color: #00897b;
    line-height: 1;
}

.info-counter .separator {
    color: #94a3b8;
    font-size: 1.2rem;
}

.info-counter .total {
    font-size: 1.2rem;
    color: #94a3b8;
}

.info-title {
    font-size: 1.1rem;
    color: #475569;
    font-weight: 500;
    padding-left: 30px;
    border-left: 2px solid rgba(0, 137, 123, 0.3);
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1200px) {
    .slider-prism-wrapper {
        padding: 0 80px;
    }

    .prism-face {
        width: 340px;
        height: 430px;
    }

    .prism-face.left-1 {
        transform: translateX(-350px) translateZ(40px) rotateY(32deg) scale(0.82);
    }

    .prism-face.right-1 {
        transform: translateX(350px) translateZ(40px) rotateY(-32deg) scale(0.82);
    }

    .prism-face.left-2 {
        transform: translateX(-600px) translateZ(-60px) rotateY(45deg) scale(0.65);
    }

    .prism-face.right-2 {
        transform: translateX(600px) translateZ(-60px) rotateY(-45deg) scale(0.65);
    }
}

@media (max-width: 992px) {
    .slider-prism-section {
        padding: 70px 0;
    }

    .slider-prism-container {
        height: 480px;
    }

    .prism-face {
        width: 300px;
        height: 380px;
    }

    .prism-face.left-1 {
        transform: translateX(-280px) translateZ(30px) rotateY(28deg) scale(0.8);
    }

    .prism-face.right-1 {
        transform: translateX(280px) translateZ(30px) rotateY(-28deg) scale(0.8);
    }

    .prism-face.left-2,
    .prism-face.right-2 {
        opacity: 0;
        pointer-events: none;
    }

    .slider-prism-nav {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 768px) {
    .slider-prism-section {
        padding: 50px 0;
    }

    .slider-prism-header {
        margin-bottom: 50px;
    }

    .slider-prism-wrapper {
        padding: 0 55px;
    }

    .slider-prism-container {
        height: 420px;
    }

    .prism-face {
        width: 260px;
        height: 340px;
        border-radius: 18px;
    }

    .prism-face.active {
        transform: translateZ(80px) scale(1);
    }

    .prism-face.left-1 {
        transform: translateX(-200px) rotateY(22deg) scale(0.75);
        opacity: 0.6;
    }

    .prism-face.right-1 {
        transform: translateX(200px) rotateY(-22deg) scale(0.75);
        opacity: 0.6;
    }

    .slider-prism-nav {
        width: 48px;
        height: 48px;
    }

    .slider-prism-nav svg {
        width: 22px;
        height: 22px;
    }

    .slider-prism-indicators {
        margin-top: 40px;
        gap: 10px;
    }

    .indicator-line {
        width: 30px;
    }

    .indicator-line.active {
        width: 45px;
    }

    .slider-prism-info {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
    }

    .info-title {
        padding-left: 0;
        border-left: none;
    }
}

@media (max-width: 520px) {
    .slider-prism-section {
        padding: 40px 0;
    }

    .slider-prism-wrapper {
        padding: 0 45px;
    }

    .slider-prism-container {
        height: 360px;
    }

    .prism-face {
        width: 220px;
        height: 290px;
        border-radius: 14px;
    }

    .prism-face.left-1,
    .prism-face.right-1 {
        transform: translateX(-150px) scale(0.7);
        opacity: 0.4;
    }

    .prism-face.right-1 {
        transform: translateX(150px) scale(0.7);
    }

    .slider-prism-nav {
        width: 42px;
        height: 42px;
    }

    .slider-prism-nav.prev {
        left: 5px;
    }

    .slider-prism-nav.next {
        right: 5px;
    }

    .face-content {
        padding: 20px;
    }

    .face-content h3 {
        font-size: 1.1rem;
    }

    .info-counter .current {
        font-size: 2rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .prism-face,
    .slider-prism-nav,
    .indicator-line {
        transition: none;
    }

    .slider-prism-section::before,
    .prism-shape {
        animation: none;
    }
}