@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', sans-serif;
}

body {
    background: #eee;
}

nav {
    background: #0b5704;
    width: 100vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 8vh;
}

nav a {
    color: #fff;
    font-weight: bolder;
    font-size: 1.5rem;
    margin: 5%;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

nav a:hover {
    font-weight: lighter;
}

.content {
    width: 100vw;
    padding: 2rem;
}

.content h1 {
    font-size: 2.5rem;
    position: relative;
    width: fit-content;
    margin-bottom: 2rem;
}

.content h1::before {
    content: "";
    width: 100%;
    height: 10px;
    background: #7ab675;
    position: absolute;
    left: 18%;
    bottom: 0;
    transform: translateY(20%);
    border-radius: 8px 20px 8px 20px;
}

.content h1::after {
    content: "";
    width: 15%;
    height: 10px;
    background: #5e8d5a;
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translateY(20%);
    border-radius: 8px 20px 8px 20px;
}

.content .projects {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.projects .project {
    width: 20%;
    max-width: 246px;
    height: 350px;
    border: 1px solid #bbb;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}

.projects .project:hover {
    box-shadow: 0 2px 12px #0004;
}

.project .img {
    width: 100%;
    height: 70%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project .img img {
    height: 100%;
    transition: 0.2s;
}

.project .img:hover img {
    transform: scale(1.2);
}

.project h4 {
    font-size: 1.2rem;
    font-weight: bolder;
    padding: 0.5rem 0.8rem;
}

.project a {
    color: #0b5704;
    font-weight: bolder;
    padding: 0 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.project a:hover {
    font-weight: lighter;
}

.project p {
    padding: 0.5rem 0.8rem;
    color: #bbb;
}

.project .bars {
    width: 30%;
    height: 25%;
    position: absolute;
    right: 5%;
    bottom: 0;
    display: flex;
    align-items: flex-end;
}

.bars span {
    width: calc(100% / 3);
    height: 100%;
    border-radius: 20px 20px 0 0;
    transition: 0.2s;
    transform: translateY(120%);
}

.bars span.hovered {
    transform: translateY(0);
}

.bars span:nth-of-type(1) {
    background: #0a4d04;
    height: 50%;
}

.bars span:nth-of-type(2) {
    border: 5px solid #073602;
    border-bottom: none;
    height: 75%;
}

.bars span:nth-of-type(3) {
    background: #041d01;
    height: 100%;
}