.projects-container {
  min-height: calc(100vh - var(--nav-height) - var(--footer-height));
  background-color: var(--c1);
  padding: 20px;
}

.projects-container h2 {
    text-align: center;
    font-size: 2.5em;
    font-weight: normal;
    letter-spacing: 5px;
    margin-bottom: 40px;
    color: var(--c3);
    text-shadow: 
        0 0 2px var(--c3),
        0 0 1px var(--c3);
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 80%;
    height: 100%;
    margin: 0 auto;
    row-gap: 50px;
    padding: 20px;
}

.item {
    width: 95%;
    margin: 0 auto;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.item h3 {
    font-size: 2em;
    color: var(--c4);
}

.item p {
    max-width: 70%;
    font-size: 14px;
    letter-spacing: 1px;
    font-family: Impact, sans-serif
}

.item-img {
    display: block;
    width: 400px;
    height: 250px;
    transition: width 0.8s, height 0.8s;
}

.item-img:hover {
    width: 80%;
    height: 80%;
}

.item img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.item-more {
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--c4);
}

.item-more:hover {
    color: var(--c1);
}

.item-menu {
    display: flex;
    justify-content: space-between;
    width: 380px;
}

.item-menu h4 {
    font-size: 1.3em;
    color: var(--c4);
}

.item-tech {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.item-tech ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.item-tech li {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s;
}

.item-tech li:hover {
    transform: scale(1.2);
}

.item-tech img {
    width: 100%;
    height: 100%;
}

.item-repo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.item-repo a {
    font-size: 2.5em;
    color: var(--c2);
    transition: transform 0.3s;
}

.item-repo a:hover {
    transform: scale(1.3);
    color: var(--c2);
}

.item_1 {
    background-color: #062e40;
    border-radius: 25px;
    box-shadow: 0px 0px 20px var(--c1);
}

.item_2 {
    background-color: transparent;
}

@media (max-width: 1070px) {
    .cards {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .item p {
        font-family: 'Lato', sans-serif;
    }
}

@media (max-width: 600px) {
    .cards {
        grid-template-columns: 100%;
        width: 100%;
    }

    .item h3 {
        font-size: 1.2em;
        text-align: center;
    }

    .item p {
        max-width: 100%;
        text-align: center;
    }

    .item-img,
    .item-img:hover {
        width: 100%;
        height: 150px;
    }

    .item-menu {
        text-align: center;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    .item-tech ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}