/* ** Reference Slider Styles ** */
.reference-slider-container {
    position: relative;
    overflow: hidden;
    padding: 30px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

@media (max-width: 768px) {
    .reference-slider-container {
        padding: 15px 0;
        margin: 0 -30px;
        width: calc(100% + 60px);
        margin-left: -30px;
    }
}

.reference-slider-wrapper {
    overflow: visible;
    position: relative;
}

.reference-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}

.reference-slide {
    flex: 0 0 248px;
    padding: 0 10px;
    transition: all 0.5s ease;
}

@media (min-width: 1400px) {
    .reference-slide {
        flex: 0 0 220px;
        padding: 0 8px;
    }
}

@media (max-width: 768px) {
    .reference-slider-container {
        padding: 20px 0;
    }
    
    .reference-slide {
        flex: 0 0 31.7vw;
        padding: 0 4px;
    }
}

@media (max-width: 576px) {
    .reference-slide {
        flex: 0 0 34.6vw;
        padding: 0 3px;
    }
}

.reference-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 308px;
    transform: scale(0.85);
    opacity: 0.5;
    filter: grayscale(50%);
}

.reference-slide.active .reference-card {
    transform: scale(1.1);
    opacity: 1;
    filter: grayscale(0%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 8px 40px rgba(0,0,0,0.08);
    z-index: 10;
    position: relative;
}

@media (min-width: 1400px) {
    .reference-card {
        height: 286px;
        border-radius: 10px;
    }
    
    .reference-slide.active .reference-card {
        transform: scale(1.15);
    }
}

@media (max-width: 768px) {
    .reference-card {
        height: 220px;
        transform: scale(0.9);
        border-radius: 10px;
    }
    
    .reference-slide.active .reference-card {
        transform: scale(1.05);
    }
}

@media (max-width: 576px) {
    .reference-card {
        height: 190px;
        transform: scale(0.95);
        opacity: 0.7;
        border-radius: 8px;
    }
    
    .reference-slide.active .reference-card {
        transform: scale(1.05);
        opacity: 1;
    }
}

.reference-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
}

.reference-slide.active .reference-image img {
    animation: zoomIn 8s ease-out forwards;
    animation-delay: 0s;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

.reference-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0) 100%);
    padding: 14px 12px 12px;
    transition: all 0.5s ease;
}

.reference-content {
    color: #fff;
}

.reference-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.reference-content p {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 7px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Story dots indicator */
.story-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}

.story-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(21, 55, 69, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #153745;
}

/* Slider Touch Area */
.reference-slider {
    cursor: grab;
}

.reference-slider:active {
    cursor: grabbing;
}

.reference-slide {
    cursor: pointer;
}

/* Reference Link */
.reference-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #153745;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
}

.reference-link:hover {
    color: #0d2832;
    border-bottom-color: #153745;
}

.reference-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.reference-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .reference-overlay {
        padding: 12px 10px 10px;
    }
    
    .reference-content h4 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .reference-content p {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

@media (max-width: 576px) {
    .reference-overlay {
        padding: 10px 8px 8px;
    }
    
    .reference-content h4 {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .reference-content p {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .story-dots {
        margin-top: 20px;
        gap: 4px;
    }
    
    .story-dot {
        width: 6px;
        height: 6px;
    }
    
    .story-dot.active {
        width: 20px;
    }
} 