/* Case Studies & Horizontal Slider Styles */

.horizontal-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--color-bg-primary);
    z-index: 1;
}

.horizontal-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.horizontal-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

/* Slide Content Types */
.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: slideContentFadeIn 0.6s ease-out;
    position: relative;
}

@keyframes slideContentFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Overview Slide */
.slide-overview {
    max-width: 900px;
    padding: 60px;
    z-index: 10;
    text-align: center;
}

.slide-title {
    font-size: 88px;
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.slide-overview .slide-description {
    font-size: 24px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
    text-align: center;
}

/* Image Slide */
.slide-image {
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slide-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-primary);
}

.slide-image-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 24px;
    z-index: 10;
    max-width: 80%;
}

/* Video Slide */
.slide-video {
    align-items: center;
}

.slide-video-container {
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--color-bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.slide-video-element {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
}

/* Text Slide (for About, etc.) */
.slide-text {
    max-width: 900px;
    padding: 60px;
    text-align: center;
}

.slide-text .slide-title {
    font-size: 88px;
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.slide-text-content {
    font-size: 24px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
    text-align: center;
}

/* Mockup Slide */
.slide-mockup {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Controls */
.horizontal-slider-controls {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    pointer-events: auto;
}

.slider-nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-nav:hover:not(:disabled) {
    background: var(--color-border);
    transform: scale(1.1);
    color: var(--color-text-primary);
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider-indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.slider-indicator:hover {
    opacity: 0.9;
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.6);
}

.slider-indicator.active {
    width: 24px;
    border-radius: 4px;
    background: var(--color-primary);
    opacity: 1;
}

/* Swipe Hint - Hidden */
.horizontal-slider-hint {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .horizontal-slide {
        padding: 0;
    }

    .slide-overview {
        padding: 40px 32px;
    }

    .slide-title {
        font-size: 48px;
    }

    .slide-overview .slide-description {
        font-size: 18px;
    }

    .slide-text-content {
        font-size: 18px;
    }

    .slide-caption {
        bottom: 100px;
        font-size: 14px;
        padding: 10px 20px;
        max-width: 90%;
    }

    .horizontal-slider-controls {
        bottom: 24px;
        padding: 12px 20px;
        gap: 16px;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .horizontal-slider-hint {
        bottom: 90px;
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Dark Mode */
[data-theme="dark"] .slide-image-container {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .horizontal-slider-controls,
[data-theme="dark"] .horizontal-slider-hint {
    background: rgba(28, 28, 30, 0.8);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .horizontal-slider-track {
        transition: none;
    }

    .slide-hint i,
    .horizontal-slider-hint i {
        animation: none;
    }

    @keyframes slideContentFadeIn {
        from, to {
            opacity: 1;
            transform: none;
        }
    }
}

