/* SBB Projects Carousel Styles */

.sbb-projects-carousel-section {
    padding: 80px 0 120px 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    background: #ffffff url('../images/background-pelanggan-dan-proyek.png') center bottom / 100% 450px no-repeat;
}

.sbb-projects-carousel-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #bbd448;
    z-index: 1;
}

.sbb-projects-header {
    max-width: 1440px;
    margin: 0 auto 60px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.sbb-projects-title {
    font-size: 42px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.sbb-projects-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sbb-projects-prev,
.sbb-projects-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: none;
    background: #f5f5f5;
    color: #333333;
}

.sbb-projects-prev:hover,
.sbb-projects-next:hover {
    background: #e8e8e8;
    transform: scale(1.1);
    box-shadow: none;
}

.sbb-projects-view-all {
    background: #777654;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    z-index: 0;
}

.sbb-projects-view-all::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent #070707 transparent transparent;
    z-index: -1;
    pointer-events: none;
}

.sbb-projects-view-all:hover {
    background: #65644a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(119, 118, 84, 0.4);
    color: #ffffff;
}

.sbb-projects-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    overflow: visible;
    z-index: 2;
}

.sbb-projects-wrapper {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 40px 0 120px 0;
    position: relative;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    will-change: scroll-position;
    box-sizing: border-box;
}

.sbb-projects-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.sbb-project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.sbb-project-card-link:hover {
    opacity: 0.95;
}

.sbb-project-card {
    min-width: 613px;
    max-width: 613px;
    min-height: 600px;
    background: transparent;
    overflow: visible;
    box-shadow: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.sbb-project-card.active {
    box-shadow: none;
}

.sbb-project-image {
    width: 613px;
    height: 495px;
    overflow: visible;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: transparent !important;
    background-color: transparent !important;
}

.sbb-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    border-radius: 0;
}

.sbb-project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

.sbb-project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    background-color: transparent !important;
    color: #999;
}

.sbb-project-placeholder svg {
    margin-bottom: 10px;
}

.sbb-project-placeholder p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

    .sbb-project-card:hover .sbb-project-image img {
        transform: scale(1.05);
    }
    
    /* Disable hover effect di mobile */
    @media (max-width: 768px) {
        .sbb-project-card:hover .sbb-project-image img {
            transform: none;
        }
    }

.sbb-project-number {
    font-size: 110px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    position: absolute;
    bottom: -40px;
    left: 30px;
    z-index: 3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sbb-project-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: absolute;
    top: 495px;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    z-index: 4;
    margin-top: 20px;
    text-align: left;
}

.sbb-project-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-align: left;
}

.sbb-project-description {
    font-size: 16px;
    color: #ffffff;
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

/* Responsive */
@media (max-width: 1024px) {
    .sbb-project-card {
        min-width: 490px;
        max-width: 490px;
    }
    
    .sbb-project-image {
        width: 490px;
        height: 395px;
        overflow: visible;
        background: transparent !important;
        background-color: transparent !important;
    }
    
    .sbb-project-overlay {
        height: 110px;
        background: transparent;
    }
    
    .sbb-project-content {
        width: 100%;
        top: 395px;
        left: 0;
        margin-top: 20px;
    }
    
    .sbb-project-number {
        font-size: 90px;
        bottom: -35px;
        left: 25px;
    }
    
    .sbb-projects-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .sbb-projects-carousel-section {
        padding: 40px 0 80px 0;
        overflow-x: hidden;
        overflow-y: visible;
        background: #ffffff;
        background-image: none;
    }
    
    .sbb-projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    .sbb-projects-title {
        font-size: 24px;
        line-height: 1.3;
        width: 100%;
    }
    
    .sbb-projects-nav {
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
        align-items: center;
    }
    
    .sbb-projects-container {
        padding: 0;
        overflow: visible;
    }
    
    .sbb-projects-wrapper {
        padding: 0 0 60px 0;
        padding-left: 20px;
        padding-right: 20px;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile: Layout berbeda - card vertikal sederhana */
    .sbb-project-card {
        min-width: calc(100% - 0px);
        max-width: calc(100% - 0px);
        width: calc(100% - 0px);
        min-height: auto;
        box-sizing: border-box;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        overflow: visible;
        background: transparent;
    }
    
    .sbb-project-card-link:first-child .sbb-project-card {
        scroll-margin-left: 20px;
    }
    
    .sbb-project-card-link:last-child .sbb-project-card {
        scroll-margin-right: 20px;
    }
    
    /* Mobile: Image dengan border radius */
    .sbb-project-image {
        width: 100%;
        height: 280px;
        overflow: hidden;
        background: transparent !important;
        background-color: transparent !important;
        position: relative;
        border-radius: 8px;
        margin-bottom: 0;
    }
    
    .sbb-project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    /* Mobile: Overlay untuk nomor di dalam gambar */
    .sbb-project-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
        z-index: 2;
        pointer-events: none;
        border-radius: 0 0 8px 8px;
    }
    
    /* Mobile: Nomor lebih kecil dan di dalam gambar */
    .sbb-project-number {
        font-size: 48px;
        font-weight: 300;
        position: absolute;
        bottom: 10px;
        left: 15px;
        z-index: 3;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        color: #ffffff;
        margin: 0;
    }
    
    /* Mobile: Content di bawah gambar dengan background */
    .sbb-project-content {
        max-width: 100%;
        width: 100%;
        padding: 20px 0 0 0;
        position: relative;
        top: auto;
        right: auto;
        margin-top: 0;
        box-sizing: border-box;
        background: transparent;
    }
    
    .sbb-project-title {
        font-size: 20px;
        margin-bottom: 10px;
        color: #333333;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-weight: 700;
    }
    
    .sbb-project-description {
        font-size: 14px;
        line-height: 1.6;
        color: #666666;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin: 0;
    }
    
    .sbb-projects-prev,
    .sbb-projects-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .sbb-projects-view-all {
        padding: 10px 18px;
        font-size: 13px;
        clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
        white-space: nowrap;
    }
    
    .sbb-projects-view-all::after {
        border-width: 0 12px 12px 0;
    }
}

@media (max-width: 480px) {
    .sbb-projects-carousel-section {
        padding: 30px 0 70px 0;
        overflow-x: hidden;
        overflow-y: visible;
        background: #ffffff;
        background-image: none;
    }
    
    .sbb-projects-header {
        gap: 15px;
        margin-bottom: 25px;
        padding: 0 15px;
    }
    
    .sbb-projects-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .sbb-projects-nav {
        width: 100%;
        gap: 10px;
        justify-content: space-between;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .sbb-projects-container {
        padding: 0;
        overflow: visible;
    }
    
    .sbb-projects-wrapper {
        padding: 0 0 50px 0;
        padding-left: 15px;
        padding-right: 15px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile kecil: Layout vertikal yang lebih compact */
    .sbb-project-card {
        min-width: calc(100% - 0px);
        max-width: calc(100% - 0px);
        width: calc(100% - 0px);
        min-height: auto;
        box-sizing: border-box;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        overflow: visible;
        background: transparent;
    }
    
    .sbb-project-card-link:first-child .sbb-project-card {
        scroll-margin-left: 15px;
    }
    
    .sbb-project-card-link:last-child .sbb-project-card {
        scroll-margin-right: 15px;
    }
    
    .sbb-project-image {
        width: 100%;
        height: 240px;
        overflow: hidden;
        background: transparent !important;
        background-color: transparent !important;
        position: relative;
        border-radius: 8px;
        margin-bottom: 0;
    }
    
    .sbb-project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .sbb-project-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 90px;
        background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
        z-index: 2;
        pointer-events: none;
        border-radius: 0 0 8px 8px;
    }
    
    .sbb-project-number {
        font-size: 42px;
        font-weight: 300;
        position: absolute;
        bottom: 8px;
        left: 12px;
        z-index: 3;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        color: #ffffff;
        margin: 0;
    }
    
    .sbb-project-content {
        max-width: 100%;
        width: 100%;
        padding: 18px 0 0 0;
        position: relative;
        top: auto;
        right: auto;
        margin-top: 0;
        box-sizing: border-box;
        background: transparent;
    }
    
    .sbb-project-title {
        font-size: 18px;
        margin-bottom: 8px;
        color: #333333;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-weight: 700;
    }
    
    .sbb-project-description {
        font-size: 13px;
        line-height: 1.5;
        color: #666666;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin: 0;
    }
    
    .sbb-projects-prev,
    .sbb-projects-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .sbb-projects-view-all {
        padding: 8px 16px;
        font-size: 12px;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
        white-space: nowrap;
    }
    
    .sbb-projects-view-all::after {
        border-width: 0 10px 10px 0;
    }
}

