:root{
    font-size: 10px;
    --project-spacing: 3rem;
    --accent-color: #191970;
    --section-bg: #F4F6F9;
    --highlight-color: #75BDF2;


}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

h1{
    font-size: clamp(3.6rem, 5vw, 5rem);
    padding: 0;
    text-align: center;
}

h2{
    color: var(--accent-color);
    font-size: 2.6rem;
    margin: 0 0 2rem;
    text-align: center;
}

#projects h2::after{
    content: "";
    display: block;
    width: 6rem;
    height: 3px;
    background-color: var(--highlight-color);
    border-radius: 3px;
    margin: 1rem auto 0;
}

header{
    background: white;
    color: var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
}

#name-banner{
    background-color: var(--accent-color);
    color: white;
    padding: 3rem 2rem;
    width: 100%;
}

#blurb-container{
    background-color: white;
    color: var(--accent-color);
    padding: 3rem 5rem;
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.5;
}

#blurb{
    position: relative;
    text-align: left;
    font-size: 1.8rem;
}

#blurb::before, #blurb::after{
    position: absolute;
    color: var(--highlight-color);
    font-size: 2rem;
    line-height: 1;
}

#blurb::before{
    content: "❝";
    top: -0.5rem;
    left: -2.5rem;
}

#blurb::after{
    content: "❞";
    bottom: -0.5rem;
    right: -2rem;
}

#blurb-btn{
    display: block;
    width: fit-content;
    height: auto;
    margin-top: 1rem;
    padding: 0.3rem 0;
    appearance: none;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;

    color: var(--accent-color);
    font: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

#blurb-btn[hidden]{
    display: none;
}

#profile-links{
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

#profile-links a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;

    padding: 0.8rem 1.4rem;
    border: 1px solid white;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#profile-links i{
    font-size: 1.8rem;
}

#projects{
    background-color: var(--section-bg);
    padding: 3rem 0;
}

#projects-container{
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--project-spacing);
    padding: var(--project-spacing);
}

.project{
    padding: 20px;
    border: 1px solid black;
    background-color: var(--accent-color);
    width: 100%;
    border-radius: 10px;
}

.project-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
}

.project-status{
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border: 1px solid currentColor;
    border-radius: 20px;
    font-size: 1.2rem;
}

.project-title{
    font-size: 2.2rem;
    text-align: center;
}

.project-image{
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.project-description{
    width: 100%;
    text-align: left;
    font-size: 1.6rem;
    line-height: 1.5;
}

.view-project{
    align-self: flex-start;
    margin-top: auto;
    font-size: 1.5rem;
}

.view-project::after{
    content: " →";
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.project-link:hover .view-project::after, .project-link:focus-visible .view-project::after {
    transform: translateX(5px);
}

@media screen and (min-width: 500px) and (max-width: 849px){
    .project-link{
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        column-gap: 2rem;
        align-items: start;
    }

    .project-title{
        grid-column: 1;
        grid-row: 1;
        text-align: left;
        justify-self: start;
    }

    .project-status{
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
    }

    .project-image{
        grid-column: 1;
        grid-row: 2 / 4;
        aspect-ratio: 1 / 1;
    }

    .project-description{
        grid-column: 2;
        grid-row: 2;
    }

    .view-project{
        grid-column: 2;
        grid-row: 3;
        margin-top: 1rem;
    }
}

@media screen and (min-width: 750px) and (max-width: 1249px){
    #name-banner{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        padding: 3rem;
    }

    #profile-links{
        margin-top: 0;
    }
}

@media screen and (min-width: 850px){
    #projects h2{
        font-size: 3.2rem;
    }

    #projects-container{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-image{
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
}

@media screen and (min-width: 1250px){
    header{
        flex-direction: row;
        justify-content: center;
        align-items: center;
        background-color: var(--accent-color);
        padding: 4rem max(4rem, calc((100% - 1200px) / 2));
        gap: 6rem;
    }

    #name-banner{
        flex: 1;
        width: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    #name-banner h1{
        text-align: left;
    }

    #profile-links{
        justify-content: flex-start;
        margin-top: 2rem;
    }

    #blurb-container{
        flex: 1.2;
        min-width: 0;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0 3rem;
        background-color: transparent;
        color: white;
    }

    #blurb{
        font-size: 2rem;
        line-height: 1.6;
    }

    #projects h2{
        font-size: 3.6rem;
    }

    #projects h2::after{
        width: 8rem;
        height: 3px;
    }

    #projects-container{
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1280px;
        margin: 0 auto;
        gap: 4rem;
        padding: 4rem;
    }

    .project-link{
        gap: 2rem;
    }
}

@media (hover: hover) and (pointer: fine){
    #profile-links a:hover, #profile-links a:focus{
        background-color: white;
        color: var(--accent-color);
    }

    #blurb-btn:hover, #blurb-btn:focus{
        color: #376BA7;
        text-decoration: underline;
    }
}