.section-project {
    margin-top: 100px;
}

.project-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 450px;
    border-radius: 10px;
}

.project-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card-title {
    border-color: black;
    background-color: #ffffff;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.card-title h3 {
    font-size: 1.3rem;
    text-align: center;
    margin: 10px 0 5px 10px;
}
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.7) 50%,
        rgba(0,0,0,0.95) 100%
    );
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.project-image:hover .project-overlay {
    opacity: 1;
}

.project-content {
    width: 100%;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.project-card:hover img {
    transform: scale(1.05);
}


.project-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-category {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}


.btn-detail,
.btn-preview  {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-buttons {
    display: flex;
    gap: 10px;
}

.btn-detail:hover {
    background-color: #0d78a8;
    color: white;
    transform: translateY(-2px);
}

.btn-detail {
    background-color: #1197D6;
    color: white;
    border: none;
    text-decoration: none;
}

.btn-preview {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
}

.btn-preview:hover {
    background-color: white;
    color: #1197D6;
    transform: translateY(-2px);
}

.preview-modal .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    border: none;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    z-index: 1050;
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
}

.btn-close {
    background-color: white;
    opacity: 1;
    padding: 0.5rem;
    margin: 0;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .project-overlay {
        opacity: 1;
        padding: 20px;
    }

    .project-content {
        transform: translateY(0);
    }

    .preview-modal .modal-dialog {
        margin: 10px;
    }

    .preview-modal .modal-body {
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .preview-image {
        max-height: 70vh;
    }

    .modal {
        width: 70%;
        margin: 0 auto;
        left: revert-layer;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .modal-body img {
        max-height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .preview-modal .card-title h3 {
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 991px) {

    .modal-body img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 991px) {
    .project-overlay {
        opacity: 1;
    }

    .project-content {
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .project-overlay {
        opacity: 0;
    }

    .project-content {
        transform: translateY(30px);
    }

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .project-title {
        font-size: 1.1rem;
    }

    .btn-detail,
    .btn-preview {
        padding: 4px 8px;
    }

    .btn-detail span {
        font-size: 0.7rem;
    }

    .btn-preview span {
        font-size: 0.7rem;
    }
}


@media (max-width: 767px) {
    .title-section h1 {
        text-align: center;
    }

}

.section-detail-project {
    margin-top: 100px;
}

.kategori-galery {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.kategori-galery .row {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 15px;
    padding-bottom: 15px;
}

.kategori-galery .col-12.col-md-3 {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
}

.galery-kategori {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.galery-kategori:hover {
    background-color: #EFEFEF;
}
.galery-kategori.active {
    background-color: #EFEFEF;
}

.icon-galery {
    background-color: #f5efe5;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 50px;
    height: 50px;
}

.bg-technical {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 60vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.technical-data {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
        rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
}

.technical-data:hover {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 20px 25px -5px,
        rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
    transform: scale(1.02);
    background-color: rgba(255, 255, 255, 0.1);
}

.section-detail-produk {
    margin-top: 100px;
}