/* =========================================================
   MODERN PROJECT SECTION
   ========================================================= */

.projects-section {
    isolation: isolate;
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 197, 94, 0.25);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

.project-card-image {
    isolation: isolate;
}

.project-card-image img {
    will-change: transform;
}


/* =========================================================
   PROJECT MODAL
   ========================================================= */

.project-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-box {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-modal.active .project-modal-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* =========================================================
   MODAL OBJECTIVE / ACTIVITY ITEMS
   ========================================================= */

.modal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.25s ease;
}

.modal-list-item:hover {
    border-color: #bbf7d0;
    background: #f0fdf4;
    transform: translateY(-2px);
}

.modal-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   MODAL SCROLLBAR
   ========================================================= */

.project-modal-box > div:nth-child(2) {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.project-modal-box > div:nth-child(2)::-webkit-scrollbar {
    width: 6px;
}

.project-modal-box > div:nth-child(2)::-webkit-scrollbar-track {
    background: transparent;
}

.project-modal-box > div:nth-child(2)::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .project-card:hover {
        transform: none;
    }

    .project-modal {
        padding: 10px;
    }

    .project-modal-box {
        max-height: 94vh;
        border-radius: 18px;
    }

}
