#project {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fcf8 0%, #f0f7f0 100%);
}

.stack-wrapper {
    position: relative;
    height: 250vh;
}

.stack-card {
    position: sticky;
    top: 100px;
    height: 520px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--radius, 12px);
    background-color: var(--white, #ffffff);
    border: 1px solid rgba(29, 72, 41, 0.1);
    box-shadow: 0 15px 35px rgba(29, 72, 41, 0.08);
    overflow: hidden;
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.6s ease;
    z-index: var(--i);
}

.stack-card:hover {
    box-shadow: 0 20px 45px rgba(29, 72, 41, 0.12);
}

.stack-card.inactive {
    transform: scale(0.92) translateY(30px);
    opacity: 0.5;
}

/* Image side */
.project-img-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

/* Content side */
.project-content {
    flex: 1.2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, var(--white), #f9fcf9);
}

.project-title {
    color: var(--primary-brown);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
}

.project-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-brown);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.stack-card:hover .project-title::after {
    width: 80px;
}

.project-subtitle {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Feature icons - Diperbarui untuk layanan */
.feature-icon-list p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0.5rem 0;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(29, 72, 41, 0.03);
}

.feature-icon-list p:hover {
    transform: translateX(5px);
    background: rgba(212, 175, 55, 0.1);
}

.feature-icon-list i {
    color: var(--secondary-brown);
    background: rgba(212, 175, 55, 0.1);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Detail tags - Diubah menjadi fitur layanan */
.detail-tag {
    display: inline-block;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.1),
        rgba(29, 72, 41, 0.05)
    );
    color: var(--primary-brown);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 6px 8px 0 0;
    box-shadow: 0 4px 6px rgba(29, 72, 41, 0.08);
    border: 1px solid rgba(29, 72, 41, 0.1);
    transition: all 0.3s ease;
}

.detail-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(29, 72, 41, 0.12);
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.15),
        rgba(29, 72, 41, 0.08)
    );
}

/* Label untuk judul bagian */
.font-bold.text-gray-800 {
    color: var(--primary-brown);
    font-size: 1.1rem;
    position: relative;
    padding-left: 12px;
}

.font-bold.text-gray-800::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--secondary-brown);
    border-radius: 2px;
}

/* ===== CSS TOMBOL BARU ===== */
.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(29, 72, 41, 0.1);
}

.btn-service-link,
.btn-service-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: fit-content;
    justify-content: center;
    text-align: center;
}

.btn-service-link {
    background: linear-gradient(
        135deg,
        rgba(29, 72, 41, 0.1),
        rgba(29, 72, 41, 0.05)
    );
    color: var(--primary-brown);
    border: 1px solid rgba(29, 72, 41, 0.2);
}

.btn-service-link:hover {
    background: linear-gradient(
        135deg,
        rgba(29, 72, 41, 0.15),
        rgba(29, 72, 41, 0.1)
    );
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 72, 41, 0.1);
    color: var(--primary-brown);
}

.btn-service-cta {
    background: linear-gradient(135deg, var(--primary-brown), #2a5c3a);
    color: white;
    border: 1px solid var(--primary-brown);
}

.btn-service-cta:hover {
    background: linear-gradient(135deg, #2a5c3a, var(--primary-brown));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 72, 41, 0.2);
    color: white;
}

.project-card:hover .card-actions {
    border-top-color: rgba(212, 175, 55, 0.3);
}

.project-card:hover .btn-service-link {
    border-color: rgba(212, 175, 55, 0.4);
}

.project-card:hover .btn-service-cta {
    border-color: var(--secondary-brown);
}
/* ===== AKHIR CSS TOMBOL ===== */

/* Responsive */
@media (max-width: 1024px) {
    .stack-card {
        height: 480px;
    }
}

@media (max-width: 768px) {
    .stack-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .stack-card {
        position: static;
        height: auto;
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .project-img-wrapper {
        height: 250px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .feature-icon-list p {
        padding: 6px 10px;
    }

    /* Responsive untuk tombol */
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-service-link,
    .btn-service-cta {
        width: 100%;
        padding: 12px 20px;
    }

    .btn-service-link {
        order: 2;
    }

    .btn-service-cta {
        order: 1;
    }
}

@media (max-width: 480px) {
    #project {
        padding: 70px 0;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-content {
        padding: 1.25rem;
    }

    .detail-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 4px 6px 0 0;
    }

    .card-actions {
        gap: 8px;
    }

    .btn-service-link,
    .btn-service-cta {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
