body {
    background-color: #23272F;
    margin: 0;
    padding: 0;
    color: #D1D5DB;
    font-family: 'Segoe UI', Arial, sans-serif;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project {
    display: flex;
    flex-direction: column;
    background: #262b34;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    margin-bottom: 1.5rem;
}

.project__image {
    width: 100%;
    height: 220px;
    background-image: url('project_images/spotilfy.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project__image--color {
    background-image: url('project_images/color predict.png');
}

.project__image--windows {
    background-image: url('project_images/window 11.png');
}

.project__image--flappy-bird {
    background-image: url('project_images/flapy-bird.png');
}
.project__details {
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project__details h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    color: #fff;
}

.project__details p {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #D1D5DB;
}

.project__details ul {
    margin: 0 0 0.5rem 1.25rem;
    padding: 0;
    color: #b3bac6;
    font-size: 0.98rem;
}

.project__link {
    color: #5e5ed7;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: color 0.2s;
}

.project__link:hover,
.project__link:focus {
    color: #8a8af7;
    text-decoration: underline;
}

@media (min-width: 700px) {
    .project {
        flex-direction: row;
        min-height: 320px;
        align-items: stretch;
    }

    .project__image,
    .project__image--color {
        width: 45%;
        min-width: 260px;
        height: auto;
        min-height: 320px;
        max-height: 400px;
    }

    .project__details {
        width: 55%;
        padding: 2.5rem 2rem;
        justify-content: center;
    }
}

@media (min-width: 1100px) {
    main {
        padding: 2.5rem 0;
    }

    .project {
        margin-bottom: 2.5rem;
    }
}