/* Ongoing Project Section */
.container.my-4 h2 {
    color: navy;
    font-weight: bold;
    text-align: center;
    padding-top: 45px;
    padding-bottom: 15px;
    font-size: 40px;
}

/* Project Card Styling */
.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 95%;
    border: 1px solid #ddd;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #000061;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 20px;
}

.project-card h5 {
    color: white;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

.project-card h6 {
    color: white;
    margin-bottom: 15px;
}

.project-card .project-description {
    color: white;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
    flex-grow: 1;
}

/* Container untuk progress bar */
.progress-container {
    width: 100%;
    height: 35px; /* Tinggi diperbesar */
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
}

/* Progress bar */
.progress-bar {
    height: 100%;
    width: 0; /* Awalnya 0, akan diubah oleh JavaScript */
    background-color: red; /* Warna merah */
    border-radius: 15px;
    transition: width 0.5s ease-in-out; /* Animasi halus */
    position: relative;
}

/* Teks persentase */
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Animasi cahaya */
@keyframes lightEffect {
    0% {
        left: -100%; /* Mulai dari luar kiri */
    }
    100% {
        left: 100%; /* Berakhir di luar kanan */
    }
}

/* Efek cahaya */
.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%; /* Lebar cahaya */
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: lightEffect 2s infinite; /* Animasi cahaya */
    opacity: 0; /* Awalnya tidak terlihat */
}

/* Aktifkan efek cahaya setelah progress selesai */
.progress-bar.completed::after {
    opacity: 1; /* Tampilkan efek cahaya */
}

@media (max-width: 767.98px) { 
    .container.my-4 h2 {
        font-size: 30px;
        margin-top: -30px;
        margin-bottom: -25px;
        padding-left: 35px; /* Padding kiri lebih dekat ke layar */
        padding-right: 35px; /* Padding kanan lebih dekat ke layar */
    }
}