body{
    margin: 0;
}

.wrapper{
    display: flex;
}

.sidebar{
    display: none;
}

.sidebar-footer{
    margin-top: auto;
}

.sidebar nav ul{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar ul{
    padding: 0;
    margin: 0;
}

.content{
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
    flex: 1;
    max-width: 1000px;
}

.sidebar .logo{
    width: 100%;
    height: auto;
}

.mobile-header{
    padding: 1rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.mobile-header nav {
    display: flex;
}

.mobile-header nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-header .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.mobile-header .nav-link:hover {
    opacity: 0.85;
}

.info{
    display: flex;
    flex-direction: column;
    text-align: right;
    flex: 1;
    align-self: flex-start;
}
.name{
    margin-bottom: 2px;
}
main{
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

section{
    margin-bottom: 0;
}

section h2{
    margin-top: 0;
    margin-bottom: 1rem;
}

section h3{
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

section h4,
section h5{
    margin-bottom: 0.35rem;
}

section p,
section ul{
    margin-top: 0.5rem;
}

#top-of-page{
    padding-bottom: 0.5rem;
}

#top-of-page h1{
    margin-top: 0;
    margin-bottom: 0.35rem;
}

#top-of-page p{
    max-width: 650px;
    margin: 0;
}

.project-grid{
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-card{
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover{
    transform: translateY(-4px);
}

.project-card.non-clickable{
    pointer-events: none;
    cursor: default;
}

.project-card.non-clickable:hover{
    transform: none;
}

.project-card img{
    width: 150px;
    height: 150px;
    display: block;
}

.project-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card h3{
    margin: 0 0 0.5rem 0;
}

.project-card p{
    margin: 0;
}

.view-project{
    margin-top: 0.75rem;
}

.resume-download{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    margin: 0.75rem 0 1.5rem 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#experience .resume-download{
    display: flex;
    width: fit-content;
}

.resume-download:hover{
    transform: translateY(-2px);
}

#experience ul,
#education ul,
#contact ul{
    padding-left: 1.2rem;
}

.skill-group ul, .edu-list ul, .cert-list ul{
    padding-left: 0;
    margin: 0;
}
.skill-group li, .edu-list li, .cert-list li{
    margin-bottom: 0.5rem;
}
#about p{
    max-width: 750px;
}
#contact{
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
#contact h2{
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.25rem;
}
#contact ul{
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.contact-link{
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}
.contact-link::before{
    content: "→";
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.contact-link:hover::before{
    opacity: 1;
    transform: translateX(0);
}

.mobile-footer{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 1rem;
}
.mobile-footer a,
.mobile-footer p{
    padding-bottom: 0.5rem;
}
#top-of-page ul{
    padding: 0;
    margin-top: 0;
}
figure {
    margin: 0 0 1.5rem 0;
}

figure picture {
    display: block;
    width: 100%;
}

figure picture img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}
.figure-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.figure-grid figure {
    margin: 0;
}
.reviews-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: 1rem;
}

.reviews-row .onehalf {
    width: auto;
}
@media (min-width: 768px) {
    .sidebar{
        display: flex;
        flex-direction: column;
        width: 25%;
        height: 100vh;
        position: sticky;
        top: 0;
        padding: 2rem;
        box-sizing: border-box;
        align-items: center;
    }
    .sidebar .info{
        flex-grow: 0;
        flex-basis: auto;
        text-align: left;
        align-self: auto;
        margin-bottom: 1.5rem;
    }
    .name{
        text-align: center;
    }

    .info{
        text-align: center;
    }

    .sidebar img{
        max-width: 200px;
        height: auto;
    }

    .mobile-footer{
        display: none;
    }

    .mobile-header{
        display: none;
    }
    .nav-link{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 160px;
        gap: 0.75rem;
        transition: color 0.2s ease;
    }
    .nav-link::before{
        content: "→";
        opacity: 0;
        left: -1rem;
        transform: translateX(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease; 
    }

    .nav-link:hover::before{
        opacity: 1;
        transform: translateX(0);
    }
    #top-of-page{
        padding-top: 3rem;
    }
    .project-card{
        display: flex;
        flex-direction: column;
    }
    .project-card img, .project-card picture{
        align-self: center;
        max-width: 500px;
        width: 100%;
        height: auto;
        
    }

    h2{
    display: inline-block;
    }
    figure picture{
        max-width: 600px;
        width: 100%;
        height: auto;
    }

    figure picture img {
        max-width: 600px;
        border-radius: 10px;
    }

    figure {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .figure-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .figure-grid figure picture,
    .figure-grid figure picture img {
        max-width: 100%;
    }
    .reviews-row{
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .reviews-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 1.5rem;
    }

    .reviews-row .onehalf {
        flex: 0 1 calc((100% - 3rem) / 3);
        max-width: calc((100% - 3rem) / 3);
    }
}