*,
*::before,
*::after {
    font-family: Poppins, Algerian, sans-serif;
    box-sizing: border-box;
}

.projects-page {
    width: 100%;
    min-height: 100vh;
    margin-top: 4.5rem;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
}

.projects-list {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project {
    position: relative;
    width: 100%;
    min-height: 85vh;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #000;
    cursor: pointer;
}

.project-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.4s ease;
}

.project:hover .project-bg {
    transform: scale(1.07);
}

.project-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.6) 35%,
        rgba(0, 0, 0, 0.95) 80%
    );
}

.project-body {
    max-width: 430px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.project-title {
    font-size: 1.9rem;
    font-weight: 650;
    margin: 0;
}

.project-desc {
    font-size: 0.98rem;
    line-height: 1.4rem;
    font-weight: 300;
    opacity: 0.92;
    margin: 0;
}

.project-meta {
    margin-top: 0.6rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.85;
}

@media (max-width: 1099px) {
    .projects-list {
        width: 95%;
    }

    .project-overlay {
        padding: 2rem 1.8rem;
    }

    .project-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 700px) {
    .project {
        aspect-ratio: auto;
        border-radius: 0.9rem;
    }

    .project-overlay {
        padding: 1.8rem 1.4rem;
        align-items: flex-end;
        justify-content: flex-start;
        background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.0) 100%
        );
    }

    .project-body {
        max-width: none;
    }

    .project-title {
        font-size: 1.4rem;
    }

    .project-desc {
        font-size: 0.95rem;
    }

    .project-meta {
        font-size: 0.85rem;
    }
}