* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: 2px solid red; */
}

:root {
    --dark: #313638;
    --grey: #E0DFD5;
    --white: #E8E9EB;
    --light: #E4B363;
    --primary: #EF6461;
}

html {
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Commissioner', sans-serif;
    background-color: var(--dark);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem;
}

.nav-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    color: var(--white);
    background-color: var(--primary);
    padding: 20px;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    font-style: italic;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.jo-logo-img {
    max-width: 60px;
    max-height: 60px;
    padding-top: 8px;
}

.jo-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 48px;
    /* max-width: fit-content; */
}   

.nav-contact {
    display: flex;
    gap: 20px;
    margin-left: auto
    /* max-width: fit-content; */
}

.nav-links,
.nav-contact,
.jo-logo-img {
    /* outline: 2px solid red; */
}

main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    min-height: 150vh;
    /* background-color: var(--dark); */
}

body {
    min-height: 800px;
    margin: 0;
    padding: 0;
    /* background-color: var(--dark); */
    color: #333;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: url('img/paper.jpg') center center / cover no-repeat;
    opacity: 0.075;
    pointer-events: none;
}

.about-container {
    display: flex;
    justify-content: top;
    align-items: center;
    flex-direction: column;
    padding: 25px;
    margin: 96px;
    margin-bottom: 48px;
    max-width: 856px;
    background-color: #ffffff0f;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.about-info { 
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.highlight-name {
    color: var(--primary);
    font-weight: 700;
}

.highlight-proj {
    color: var(--light);
    font-weight: 700;
}

.headshot {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    object-fit: cover;  
}

/* mobile styles */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        position: static;
        transform: none;
        gap: 16px;
    }

    .nav-contact {
        flex-direction: column;
        gap: 8px;
    }

    .jo-logo-img {
        max-width: 50px;
        max-height: 50px;
        margin-bottom: 8px;
    }

    .about-container {
        margin: 24px;
        padding: 16px;
    }

    .about-info {
        font-size: 1.2rem;
    }

    .headshot {
        width: 150px;
        height: 150px;
        margin: 16px;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile styles */
@media (max-width: 800px) {
  .nav-links,
  .nav-contact {
    display: none;
  }
  .burger {
    display: flex;
    margin-left: auto;
  }
  .nav-bar.open .nav-links,
  .nav-bar.open .nav-contact {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    background: var(--primary);
    gap: 24px;
    padding: 24px 0;
    z-index: 1001;
    align-items: center;
  }
}

.projects,
.extras,
.media,
.contact {
    border-radius: 8px;
    padding: 5px 10px;
}

.projects:hover,
.extras:hover,
.media:hover,
.contact:hover {
    background-color: var(--light);
    border-radius: 8px;
    padding: 5px 10px;
    transition: background-color 0.3s ease, color 0.3s ease

}

.smallcont {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 24px;
    margin: 96px;
    min-width: 160px;
    height: 70px;
    background-color: var(--light);
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
}

.media-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 96px;
}

.youtube-embed {
    border-radius: 8px;
    width: 100%;
    max-width: 560px;
    height: 315px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.youtube-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 850px) {
    .youtube-embed {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    margin: 24px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.footer-copyright {
    font-size: 1rem;
    text-align: center;
    font-style: italic;
    font-weight: 700;
}

.footer-social-media {
    display: flex;
    justify-content: left;
    align-items: left;
    padding: 0 20px;
    gap: 10px;
}

.fa-brands,
.fa-solid {
    color: var(--white);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.fa-brands:hover,
.fa-solid:hover {
    color: var(--light);

}