#portfolio {
    background-color: var(--blackSecondary);
}

.marginBotton {
    margin-bottom: 100px;
}

.card {
    margin: auto;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    max-width: 45rem;
    width: 100%;
    padding: 3rem 2rem 3rem 1.25rem;
    background: var(--blackPrimary);
    border-radius: 1.5rem;
    transition: all 0.6s ease-in-out;
}

.card:hover {
    box-shadow: 0 0 15px var(--goldTertiary);
}

.card_right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-left: 2rem;
}

#our_project_right {
    background-color: rebeccapurple;
}

.card_preview {
    position: relative;
}

.card_preview img,
#our_project_preview {
    max-width: 18rem;
    width: 32vw;
    height: 18rem;
    object-fit: cover;
    margin-left: -4rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 15px var(--goldTertiary);
}

#our_project_preview {
    background-color: var(--blackSecondary);
}

.card_content {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
}

.card_footer {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.card_techs {
    font-size: 1.25rem;
    margin: 1rem 0;
    font-weight: 400;
}

.card h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card_techs {
    font-size: 1.075rem;
    font-weight: 400;
}

.card_description{
    font-size: 0.9rem;
    font-weight: 400;
}

.cta,
.repository {
    background: var(--blackQuaternaty);
    color: var(--gray);
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 2.5rem;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-width: 150px; 
    text-align: center;
}

.cta:hover,
.repository:hover {
    background: var(--goldPrimary);
    color: var(--blackSecondary);
}

@media (max-width: 740px) {
    .card {
        margin: 200px auto auto auto;
        padding: 0 3rem;
        flex-direction: column;
        text-align: center;
    }

    .card_right {
        margin-left: 0;
    }

    .card_preview img {
        margin: -6rem 0 2rem;
        width: 100%;
        max-width: 25rem;
    }

    #repository {
        top: -4.75rem;
    }

    .card_footer {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media only screen and (max-width: 600px) {
    .cta,
    .repository {
        font-size: 0.95rem;
        padding: 0.9rem 1.75rem;
        min-width: 130px;
    }

    .card_footer {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .card_techs {
        font-size: 1.0rem;
        margin: 0.8rem 0;
    }
    
    .card h5 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .card p {
        font-size: 0.8rem;
    }

}

@media (max-width: 400px) {

    .cta,
    .repository {
        font-size: 0.875rem;
        padding: 0.8rem 1.5rem;
        min-width: 100%;
    }

    .card_footer {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
}