*{
    box-sizing: border-box;
}

body, .home{
    height: fit-content;
}
.home{
    align-items: center;
}

h1{
    background: -webkit-linear-gradient(#000, #777);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInAnimation ease 1s;
}

h3{
    font-weight: 500;
    background: -webkit-linear-gradient(#fff, #777);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p{
    font-weight: 300;
}

.projects-grid{
    height: 95%;
    border-radius: 15px;
    /* width: calc(100% - 1rem); */
    width: 90%;
    margin: 0.5rem;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;

    animation: fadeInAnimation ease 1s;
}

.project-card{
    background-color: var(--box-bg-color);
    border-radius: 15px;
    grid-column: span 1;
    padding: 1rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card img{
    width: 100%;
    aspect-ratio: 147/92;
    border-radius: 10px;
    object-fit: cover;
}

.project-info{
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.project-info h3{
    color: #ddd;
    font-family: 'Lexend';
    font-size: 1.6rem;
    margin: 0;
    line-height: 100%;
}

.project-links{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-links a{
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
    border-radius: 7px;
}

.tech-stack{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    /* margin-top: auto; */
}

.tech-item{
    background-color: #44444450;
    color: #ccc;
    padding: 0.3rem 0.5rem;
    border-radius: 7px;
    border: solid 1.2px #ffffff20;
    font-size: 0.7rem;
    font-family: "Lexend";
    margin-top: auto;
    margin-right: 0.5rem;
}

@media (max-width: 1024px){
    .project-info h3{
        font-size: 1.4rem;
    }
    .project-links a{
        font-size: 0.8rem;
        gap: 0.7rem;
        padding: 0.4rem, 0.6rem;
    }
}

@media (max-width: 768px){
    .projects-grid{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px){
    .project-links a{
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
    }
    .cta{
        gap: 0.3rem;
    }
    .cta svg{
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 440px){
    .project-info h3{
        font-size: 1.3rem;
    }
    p{
        font-size: 0.9rem;
    }
    .project-card{
        border-radius: 10px;
    }
    .project-card img{
        border-radius: 5px;
    }
}

@media (max-width: 415px){
    h1{
        font-size: 2rem;
    }
    .project-info{
        flex-direction: column;
        align-items: start;
        gap: 0.5rem;
    }
}

@media (min-width: 1540px){
    .projects-grid{
        grid-template-columns: 1fr 1fr 1fr;
    }
}