/* Interactive Case Study Styles */

/* Before/After Slider */
.ba-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-medium);
    user-select: none;
}

.ba-before, .ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-before img, .ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid #fff;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    cursor: ew-resize;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-handle::before, .ba-handle::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.ba-handle::before {
    border-right: 8px solid var(--primary);
    margin-right: 4px;
}

.ba-handle::after {
    border-left: 8px solid var(--primary);
    margin-left: 4px;
}

.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 4;
}

.ba-label.before { left: 20px; }
.ba-label.after { right: 20px; }

/* Process Steps */
.process-timeline {
    margin: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.process-step-item {
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.process-trigger {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--bg-surface);
}

.process-trigger h4 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.process-trigger h4 span {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.process-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--surface);
}

.process-step-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-medium);
}

.process-step-item.active .process-content {
    max-height: 1000px; /* Adjust as needed */
    padding: 32px;
}

.process-step-item.active .process-trigger {
    background: var(--primary);
}

.process-step-item.active .process-trigger h4,
.process-step-item.active .process-trigger h4 span {
    color: #fff;
}

.process-step-item.active .process-trigger h4 span {
    background: #fff;
    color: var(--primary);
}

/* Micro-animations */
.hover-micro {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-micro:hover {
    transform: scale(1.02) translateY(-5px);
}
