﻿#hero {
    padding: 100px 0;
}

#hero .heading {
    text-align: center;
}

#projects .project-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 35px;
}

#projects .project-list .project-item {
    display: block;
}

#projects .project-item .img {
    position: relative;
    overflow: hidden;
}

#projects .project-item img {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
}

#projects .project-item .h {
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content:  center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #77380ecc;
    padding: 10px;
    text-align: center;
    will-change: opacity;
    cursor: default;
}

#projects .project-item .c {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--color-text-fade);
    margin-top: 5px;
}

#projects .project-item .a {
    font-size: 1.1rem;
}

#projects .project-item.hidden {
    display: none;
}

#projects .project-item:hover .h {
    opacity: 1;
}

#projects .view-more {
    margin: 50px 30%;
    height: 100%;
}

#projects .view-more button {
    border: none;
    background-color: var(--color-brand);
    width: 100%;
    height: 100%;
    border-radius: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: 400;
    transition: background 0.3s ease;
    cursor: pointer;
    padding: 20px 0;
}

#projects .view-more button {
    background-color: var(--color-brand);
}

#projects .view-more button:hover {
    background-color: var(--color-brand-light);
}