.homepage {
    max-width: 90px;
}

.toggle {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    border-radius: 2.5rem;
    background: lightgrey;
    margin: 2rem auto;
    width: fit-content;
    padding: 0.3rem;
}

.slider {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    height: calc(100% - 0.6rem);
    background: white;
    border-radius: 2rem;
    transition: left 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.btn {
    position: relative;
    cursor: pointer;
    font-family: "Arial";
    font-size: 2rem;
    color: gray;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 2rem;
    transition: 1s ease, color 1s ease;
    z-index: 1;
    background: none;
}

.btn.active {
    color: black;
    background: none;
}

/*Project Section*/
.project-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 95rem;
    margin: 0 auto;
    padding: 2rem;
}

.project-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;  
    text-decoration: none;
}

.project-card:hover h2 {
    color:#5CBBFF;
}

.project-thumbnail img {
    width: 19rem;
    height: 13rem;
    display: flex;
    background-color: white;
    outline: 0.25rem solid gray;
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: black;
}

.project-title { 
    margin: 0;
    font-size: 2.25rem;
    white-space: nowrap;
    color: black;
}

.project-type {
    font-size: 1.5rem;
    margin-top: 0;
    color:#C55E59;
}

.project-desc {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .project-list {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .project-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/*Design Section*/
.title {
    text-align: center;
    font-family: "Heavitas";
    font-size: 3.5rem;
}

.design-quote {
    margin: 0;
    text-align: center;
    font-size: 2.5rem;
    font-family: "Poppins";
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    padding: 4rem 2rem;
    gap: 1rem;
    width: 90%;
    margin: 0 auto;
}

.grid-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.grid-item img {
    display: block;
    width: 500px;
    height: 650px;
    border-radius: 1rem;    
}

img.design {
    cursor: pointer;
}

img.design:hover {
    outline: 0.25rem solid #ADEBD1;
}