:root {
    --text-color: #000;
    --link-color: rgb(28, 64, 106);
    --background-color: rgb(162, 214, 225);
    font-size: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
}

main {
    max-width: 2000px;
    margin: 0 auto;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* NAV */

nav {
    background-color: var(--link-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
    padding-bottom: 1.5em;
}

nav .left a {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

nav .left {
    position: sticky;
}

.hamburger {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    display: block;
}

nav .right {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: var(--background-color);
    position: absolute;
    top: 4em;
    right: 1em;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rg ba(0,0,0,0.15);
}

nav .right a {
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px; 
}

nav .right a span {
    display: inline;
}

nav.open .right {
    background-color: var(--link-color);
    display: flex;
    opacity: 0.8;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* HOME */

.home-section {
    display: flex;
    flex-direction: column-reverse;
    padding: 20px;
    gap: 30px;
}

.home-section .text h2 {
    font-size: 2rem;
}

.home-section .text .links a {
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid var(--link-color);
    border-radius: 5px;
    margin-right: 10px;
    margin-top: 10px;
}

.home-section .headshot img {
    width: 250px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 10px rgb(2, 31, 43);
}

.home-section .headshot {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* SKILLS */

.skills-section {
    background-color: rgb(19, 101, 145);
    color: white;
    padding: 1.4em;
}

.skills-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5em;
}

.skills-section .text {
    font-size: 1rem;
    margin-bottom: 20px;
}

.skills-section .cells {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skills-section .cell {
    width: 150px;
    padding: 2em;
    margin: 0.5em;
    border: 1.5px solid white;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    gap: 0.5em;
    align-items: center;
}

.skills-section .cells .cell {
    width: calc(50% - 20px);  
    max-width: 200px;      
}

.skills-section .cells .cell img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* PROJECTS */

.projects-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2%;
    gap: 20px;
}

.projectexamples img {
    width: 90%;
    max-width: 250px;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 10px rgba(2, 31, 43, 0.5);
}

.projectexamples .audio {
    padding: 3%;
    display: flex;
    justify-content: center;
}

/* CONTACT */

.contact-section {
    background-color: azure;
    padding-top: 2em;
    padding-bottom: 2em;
}

.contact-section li {
    text-decoration: none;
    padding: 0 3%;
    font-size: 1.2rem;
}

.projectexamples h2{
        padding: 0 3%;
    }

.contact-section h2 {
    padding: 0 3%;
    }

footer {
    background-color: var(--link-color);
    color: white;
    padding: 2%;
	text-align: center;
	font-size: .75em;
}

.other-media {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.other-media a {
    padding: 0.75rem 1em;
    background-color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgb(2, 31, 43);
}

.other-media a:hover {
    color: goldenrod;
}

/* TABLET LAYOUT */

@media (min-width: 600px) {
    nav {
        padding: 20px 30px;
    }

    nav .right a {
        font-size: 1.3rem;
    }

    nav .right a span {
        display: inline;
        font-size: 1rem;
    }

    nav .right {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        padding: 0;
        gap: 25px;
        box-shadow: none;
    }

    nav .right a {
        font-size: 1.1rem;
    }

    nav .left {
        padding: 0 1.67%;
    }

    .hamburger {
        display: none;
    }

    .home-section {
        padding: 20px 30px;
    }

    .home-section .headshot img {
        width: 300px;
    }

    .projectexamples h2{
        padding: 0 3%;
    }

    .contact-section h2 {
        padding: 0 3%;
    }
}

/* DESKTOP LAYOUT */

@media (min-width: 900px) {
    .hamburger {
        display: none;
    }

    nav .right {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        padding: 0;
        gap: 25px;
        box-shadow: none;
    }

    nav .right a {
        font-size: 1.1rem;
    }

    .home-section {
        flex-direction: row;
        justify-content: space-between;
        padding: 5%;
        margin-top: 5em;
        margin-bottom: 50em;
    }

    .home-section .text h2 {
        font-size: 3rem;
    }

    .home-section .headshot img {
        width: 400px;
    }

    .skills-section {
        margin-bottom: 30em;
        padding: 3%;
    }

    .projectexamples {
        margin-bottom: 30em;
    }

    .projects-preview img {
        width: 30%;
    }

    .contact-section li {
        font-size: 1.5rem;
    }
}