.projects.section {
    padding: 4rem 0;
}

.projects__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--body-color);
    padding: 2rem;
    border-radius: 1rem;
    text-align: left;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
}

.app__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem;
    gap: 1rem;
    background: var(--body-color);
}

.app__title-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app__icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-left: 1rem;
    border-radius: 0;
}

/* RTL Support for app header */
[dir="rtl"] .app__icon {
    margin-left: 0;
    margin-right: 1rem;
}

.project-title-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--text-color);
}

.project-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color-light);
}

.project-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #000000;
    color: #ffffff;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    justify-content: center;
}

.project-button i {
    font-size: 1.5rem;
}

.project-button:hover {
    background: var(--first-color-alt);
}

/* RTL Support for GitHub button */
[dir="rtl"] .project-button {
    direction: ltr;
    text-align: right;
}

/* RTL Support */
[dir="rtl"] .project-card {
    text-align: right;
}
