/* Projects */
.projects__container {
    padding-top: 1rem;
}

.projects__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.projects__card {
    background-color: var(--container-color);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: .4s;
}

.projects__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.projects__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: .4s;
}

.projects__card:hover .projects__img {
    transform: scale(1.1);
}

.projects__data {
    padding: 1.5rem;
}

.projects__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.projects__subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: var(--font-medium);
}

.projects__button {
    color: var(--first-color);
    font-size: var(--small-font-size);
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    cursor: pointer;
    font-weight: var(--font-medium);
    transition: .3s;
}

.projects__button:hover {
    column-gap: 0.8rem;
}

[dir="rtl"] .projects__button-icon {
    /* No rotation needed if arrow-left is used correctly for RTL "Back" logic or maybe I used arrow-left visually */
    /* Wait, for RTL "Read More" usually points to the left if using arrow-left, or right if using arrow-right and rotated. */
    /* In services I saw arrow-right. Let's check services button style. */
    /* .services__button-icon { transform: rotate(180deg); } in RTL for arrow-right */
    /* Here I used arrow-left in HTML. Let's stick to arrow-left for RTL/Arabic flow if that means "Into the content".
       Actually, standard is arrow pointing to start of next line. In RTL, next is left. So arrow-left is correct.
       If I used arrow-right, I'd need to rotate it.
       Let's keep it simple.
    */
}

/* Responsive Projects */
@media screen and (max-width: 992px) {
    .projects__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .projects__content {
        grid-template-columns: 1fr;
    }
}