/* References Section */
.sb-references-section {
    padding: 100px 0;
    background: #fff;
    position: relative;
}

/* Section Header */
.sb-section-header {
    text-align: center;
    margin-bottom: 70px;
    animation: sb-fadeInDown 1s ease-out;
}

@keyframes sb-fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sb-section-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
}

.sb-section-title {
    font-size: 42px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.3;
}

.sb-section-description {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.8;
}

/* Stats Bar */
.sb-stats-bar {
    margin-bottom: 60px;
    animation: sb-fadeInUp 1s ease-out 0.2s both;
}
.sb-stats-bar .owl-stage-outer,
.sb-stats-bar .owl-stage,
.sb-stats-bar .owl-item {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}
.sb-stats-bar.owl-carousel .owl-stage-outer {
    padding: 10px 0;
}

@keyframes sb-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sb-stat-item {
    text-align: center;
    padding: 35px 25px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    margin: 10px;
}

.sb-stat-item:hover {
    background: linear-gradient(135deg, #505050 0%, #2a2a2a 100%);
    border-color: #2a2a2a;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.sb-stat-item:hover .sb-stat-icon,
.sb-stat-item:hover .sb-stat-number,
.sb-stat-item:hover .sb-stat-label {
    color: #fff;
}

.sb-stat-icon {
    font-size: 32px;
    color: #505050;
    margin-bottom: 15px;
}

.sb-stat-icon i,
.sb-stat-icon svg {
    transition: color 0.3s ease;
}

.sb-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.sb-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* References Grid */
.sb-references-grid {
    position: relative;
    animation: sb-fadeInUp 1s ease-out 0.4s both;
}

.sb-references-slider.owl-carousel {
    position: relative;
}

.sb-references-slider .owl-stage-outer {
    padding: 20px 0;
}

.sb-reference-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    margin: 10px;
    height: 150px;
}

.sb-reference-item:hover {
    border-color: transparent;
    transform: translateY(0);
    box-shadow: none;
}

.sb-reference-logo {
    width: 100%;
    height: auto;
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.sb-reference-item:hover .sb-reference-logo {
    transform: scale(1.1);
}

/* CTA Section */
.sb-references-cta {
    text-align: center;
    padding-top: 20px;
    animation: sb-fadeInUp 1s ease-out 0.6s both;
}

.sb-cta-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.sb-cta-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sb-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #505050 0%, #2a2a2a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(80, 80, 80, 0.4);
    position: relative;
    overflow: hidden;
}

.sb-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.sb-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.sb-cta-button:hover {
    box-shadow: 0 15px 40px rgba(80, 80, 80, 0.6);
    transform: translateY(-3px);
}

.sb-cta-button span {
    position: relative;
    z-index: 1;
}

.sb-cta-button i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.sb-cta-button:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sb-section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .sb-references-section {
        padding: 60px 0;
    }

    .sb-section-header {
        margin-bottom: 50px;
    }

    .sb-section-title {
        font-size: 32px;
    }

    .sb-section-description {
        font-size: 16px;
    }

    .sb-stat-item {
        padding: 30px 20px;
    }

    .sb-stat-number {
        font-size: 32px;
    }

    .sb-reference-item {
        padding: 5px;
        height: 130px;
    }

    .sb-reference-logo {
        max-width: 100px;
        max-height: 60px;
    }

    .sb-references-cta {
        margin-top: 50px;
        padding-top: 40px;
    }

    .sb-cta-title {
        font-size: 24px;
    }

    .sb-cta-description {
        font-size: 15px;
    }

    .sb-cta-button {
        padding: 14px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sb-section-title {
        font-size: 28px;
    }

    .sb-reference-item {
        padding: 5px;
        height: 140px;
    }

    .sb-reference-logo {
        max-width: 120px;
    }
}
