.projects-section {
    flex-direction: column;
    gap: 30px;
    padding: 30px 0 0 0;
}

.projects-section .section-heading {
    text-align: right;
    padding: 0 30px;
    width: 100%;
}

.projects-section .projects {
    flex-direction: column;
    width: 100%;
}

.projects-section .projects .project {
    text-align: right;
    direction: rtl;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    cursor: pointer;
    border-bottom: 1px solid rgba(var(--text-color-rgb), 30%);
    text-decoration: none;
    font-weight: 800;
    color: var(--text-color);
    background-color: transparent;
    transition: .5s ease-in-out;
}

.projects-section .projects .project.ltr {
    text-align: left;
    direction: ltr;
}

.projects-section .projects .project:hover {
    color: var(--bg-color);
    background-color: var(--primary-color);
}

.projects-section .projects .project h2 {
    font-size: clamp(2rem, 2vw, 3rem);
}

.projects-section .projects .project .capsules {
    flex-direction: column;
    gap: 10px;
}

.projects-section .projects .project .capsules .capsule {
    padding: 3px 10px;
    width: max-content;
    border-radius: 999px;
    font-size: clamp(0.7rem, 2vw, 1rem);
    font-weight: 800;
    color: var(--bg-color);
    background-color: var(--primary-color);
    transition: .5s ease-in-out;
}

.projects-section .projects .project:hover .capsules .capsule {
    color: var(--text-color);
    background-color: var(--bg-color);
}

.projects-section .projects .project .project-image {
    display: none;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none;
    will-change: transform;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
}

.projects-section .projects .project .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-section .projects .button-group {
    justify-content: center;
    padding: 20px 30px;
    width: 100%;
}

@media (min-width: 768px) {
    .projects-section {
        padding: 80px 0 0 0;
        gap: 60px;
    }

    .projects-section .section-heading {
        padding: 0 80px;
    }

    .projects-section .projects .project {
        padding: 40px 80px;
    }

    .projects-section .projects .project .capsules {
        flex-direction: row;
        gap: 20px;
    }
    
    .projects-section .projects .project .capsules .capsule {
        padding: 7px 20px;
    }

    .projects-section .projects .project .project-image {
        display: block;
    }

    .projects-section .projects .button-group {
        justify-content: right;
        padding: 40px 80px;
    }
}