* {
    padding: 0;
    margin: 0;
}

/* Hilangkan efek biru saat tap di HP */
a,
button,
input,
textarea,
select,
label {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

a:focus,
a:active,
button:focus,
button:active,
input:focus,
textarea:focus,
label:focus {
    outline: none;
    box-shadow: none;
}

body {
    background: #0e0f12;
}

.kembali {
    display: flex;
    justify-content: end;
    padding: 0 160px;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.kembali a {
    color: white;
    text-decoration: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.kembali ion-icon {
    color: white;
}

.container-projek {
    display: grid;
    grid-template-columns: repeat(3, 250px);
    gap: 70px;
    margin: 20px;
    justify-content: center;
    animation: fade 0.5s forwards;
}

.card-sertifikat {
    border-radius: 20px;
    background-color: #1a1919;
    border: 1px solid #2b2b2b;
    padding: 8px;
    width: 290px;
}

.card-sertifikat img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}

.text-projek {
    padding: 20px 0;
}

.text-projek h3 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
    font-size: 16px;
    padding-bottom: 5px;
}

.text-projek p {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #697565;
    font-size: 11px;
}

.text-projek-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2px;
}

.text-projek-container p {
    color: #3a3a3a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 13px;
}

.btn-show button {
    border-radius: 18px;
    border: none;
    background-color: #3a3a3a;
    padding: 8px;
    color: white;
    cursor: pointer;
}


.btn-details {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid #303030;
    border-radius: 10px;
    background: #222;
    color: #ddd;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.btn-details ion-icon {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.btn-details:hover {
    background: #2b2b2b;
    border-color: #444;
    color: white;
}

.btn-details:hover ion-icon {
    transform: translateX(3px);
}



/* ========================================
   UNIVERSAL DETAIL MODAL
======================================== */

.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.detail-modal.active {
    opacity: 1;
    visibility: visible;
}


/* ========================================
   MODAL BOX
======================================== */

.detail-modal-box {
    position: relative;
    width: min(780px, 100%);
    max-height: 90vh;
    display: grid;
    grid-template-columns: 310px 1fr;
    overflow: hidden;
    background: #171717;
    border: 1px solid #303030;
    border-radius: 22px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s ease;
}

.detail-modal.active .detail-modal-box {
    transform: translateY(0) scale(1);
}


/* ========================================
   IMAGE
======================================== */

.detail-modal-image {
    width: 100%;
    height: 100%;
    min-height: 430px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
    overflow: hidden;
}

.detail-modal-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}


/* ========================================
   CONTENT
======================================== */

.detail-modal-content {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* CATEGORY */

.detail-modal-category {
    width: fit-content;
    margin-bottom: 13px;
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1e1e1e;
    color: #888;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
}


/* TITLE */

.detail-modal-title {
    margin: 0;
    color: white;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    font-size: 27px;
    line-height: 1.25;
}


/* META */

.detail-modal-meta {
    margin-top: 8px;
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}


/* LINE */

.detail-modal-line {
    width: 45px;
    height: 1px;
    margin: 20px 0;
    background: #444;
}


/* DESCRIPTION */

.detail-modal-description {
    margin: 0;
    color: #888;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    font-size: 13px;
    line-height: 1.75;
}


/* ========================================
   INFO
======================================== */

.detail-modal-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 25px;
}

.detail-modal-info-item {
    padding: 11px;
    border: 1px solid #292929;
    border-radius: 10px;
    background: #1d1d1d;
}

.detail-modal-info-item span {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-modal-info-item strong {
    color: #ccc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 500;
}


/* ========================================
   LINK
======================================== */

.detail-modal-link {
    display: none;
    width: fit-content;
    margin-top: 22px;
    padding: 10px 14px;
    border: 1px solid #333;
    border-radius: 10px;
    background: white;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.detail-modal-link.show {
    display: flex;
}

.detail-modal-link:hover {
    background: #ddd;
}


/* ========================================
   CLOSE BUTTON
======================================== */

.detail-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
    border-radius: 10px;
    background: rgba(20, 20, 20, 0.9);
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.detail-modal-close:hover {
    background: #292929;
    color: white;
}


@media (max-width: 700px) {

     /* modal */

    .detail-modal {
        padding: 15px;
    }

    .detail-modal-box {
        width: 100%;
        max-height: 90vh;

        display: flex;
        flex-direction: column;

        overflow-y: auto;

        border-radius: 19px;
    }

    .detail-modal-image {
        width: 100%;
        height: 230px;
        min-height: 230px;

        flex-shrink: 0;
    }

    .detail-modal-content {
        padding: 25px 20px;
    }

    .detail-modal-title {
        font-size: 22px;
    }

    .detail-modal-description {
        font-size: 12px;
        line-height: 1.7;
    }

    .detail-modal-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .detail-modal-info-item {
        padding: 9px;
    }

    .detail-modal-info-item strong {
        font-size: 9px;
    }


    .kembali {
        display: flex;
        justify-content: end;
        padding: 30px 30px 0;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }

    .kembali a {
        color: red;
        text-decoration: none;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    .kembali ion-icon {
        color: red;
    }


    .container-projek {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
        margin: 25px auto;
    }

    .card-sertifikat {
        width: 100%;
        max-width: 330px;
        box-sizing: border-box;
    }

    .card-sertifikat img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .text-projek {
        padding: 15px 5px;
    }


    .text-projek h3 {
        font-size: 15px;
    }


    .text-projek p {
        font-size: 11px;
        line-height: 1.5;
    }
}