.projects-section {
    padding: 6rem 3rem;
    background-color: var(--cream-2);
}

.project {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 8rem;
}

.project:last-child {
    margin-bottom: 0;
}

.project:nth-child(even) {
    direction: rtl;
}

.project:nth-child(even) > * {
    direction: ltr;
}

.project-visual {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: stretch;
    min-height: 380px;
    /* max-height: 470px; */
}
 
.project-visual img,
.project-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: var(--radius-md);
}






.project-label {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
    font-weight: 400;
}

.project-content h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--dark);
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.project-tech {
    font-size: 0.8rem;
    color: var(--mid);
    background-color: var(--cream);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-weight: 400;
    border: 1px solid rgba(0, 0, 0, 0.09);
}

.project-description {
    font-size: 1rem;
    line-height: 1.85;
    color: #555;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.project-description-list {
    list-style: none;
    font-size: 1rem;
    line-height: 1.85;
    color: #555;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.project-description-list li {
    padding-left: 1.1rem;
    position: relative;
}

.project-description-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--muted);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--dark);
    background-color: transparent;
    border: 1.5px solid var(--dark);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, color 0.15s ease;
}


.project-link:hover,
.project-link:focus {
    background-color: var(--dark);
    color: var(--cream);
    outline: none;
}
