:root{
    --red: #d86161ff;
    --white: #f4f5edff;
    --black: #363636ff;
}

*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: var(--black);
}
body{
    background-color: var(--white);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
body::-webkit-scrollbar {
   display: none;
}
section{
    padding: 50px 0;
}
h1 {
    font-family: "DM Serif Text", "Bebas Neue";
    font-size: 48pt;
    line-height: 1;
    margin: 0;
    letter-spacing: 5pt;
    text-align: center;
    color: var(--red);
}
h2{
    font-family: "DM Serif Text";
}
img {
    max-width: 100%;
    width: 100%;
    height: auto;
}
p{
    text-align: justify;
    font-family: "Jetbrains Mono", monospace;
    margin: 20pt 0;
}
iframe {
    width: 80vw;
    height: 600px;
    margin: auto;
}

.nav-bar{
    position: fixed;
    width: 100vw;
    height: 49px;
    background-color: var(--black);
    & ul{
        margin: 0;
    }
    & a:hover{
        background-color: var(--white);
        transition-duration: 0.5s;
        transition-property: background-color;
        color: var(--black);
    }
    & a{
        display: block;
        color: var(--white);
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
        font-family: "Jetbrains Mono", monospace;
    }
    & #home {
        width: 15vw;
        color: var(--white);
        display: flex;
        align-items: center;
        padding: 0;
        margin: 0;
        position: relative;
        top: 24px;
        left: 1.5vw;
        font-family: "Bebas Neue", sans-serif;
        transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
        & img {
            background-color: var(--black);
            width: 15vw;
            margin-right: -63%;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        & .title {
            font-size: 47pt;
            font-weight: bold;
        }
    }
    & #home:hover{
        background-color: rgba(0,0,0,0);
        & img {
            box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
        }
        & * {
            transform: translateY(-5px);
        }
    }
}

.content {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    & section {
      max-width: 100ch;
      padding: 0 auto;
      line-height: 1.75;
      font-size: 1.25em;
    }
}

.project-title{
    width: 60%;
    font-size: 100pt;
    margin: 100px 0 0;
    border-style: none;
}
.skill{
    display: inline-block;
    border-radius: 30px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    min-height: 60px;
    min-width: 0;
    outline: none;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    margin: 56px 10px;
    align-content: center;
    background-color: var(--red);
    border: 0;
    color: var(--white);
}

.split-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 25px;
    & .left-content {
        display: flex;
        flex-wrap: wrap;
        gap: 10px; /* Adds spacing between images */
        text-align: right;
        max-width: 60%;
    }
    & .right-content {
        display: flex;
        flex-wrap: wrap;
        gap: 10px; /* Adds spacing between images */
        max-width: 60%;
    }
}

.section-title{
    padding: 20pt;
    font-family: "Bebas Neue";
    font-size: 30pt;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1;
    margin: 0;
    letter-spacing: 5pt;
    color: var(--black);
    & hr{
        border-color: #2F2F2F;
        border: solid;
        border-width: 1pt;
    }
}

.overview {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 0 30px;
    & .category-title{
        font-size: 23pt;
        margin: 18px 10px 0;
        text-align: center;
        display: inline-block;
    }
    & .category{
        font-size: 22pt;
        margin: 0 auto 10px;
        padding: 0;
        display: inline-block;
        align-content: center;
        justify-content: center;
    }
    & .category > p {
        background-color: var(--red);
        border-radius: 30px;
        box-sizing: border-box;
        color: var(--white);
        font-size: 16px;
        font-weight: 600;
        line-height: normal;
        min-height: 60px;
        min-width: 0;
        outline: none;
        padding: 16px 24px;
        text-align: center;
        text-decoration: none;
        transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
        user-select: none;
        -webkit-user-select: none;
        touch-action: manipulation;
        align-content: center;
        display: inline-block;
        margin: 0;
    }
}

.role-and-responsibilities{
    border-color: var(--red);
    border-width: 10px;
    border-style: solid;
    background: var(--red);
    padding: 50px;
    margin: 20px 0;
    max-width: 100vw !important;
    width: 100%;
    & h1{
        color: var(--white);
    }
}

footer{
    background-color: var(--black);
    border-style: solid;
    border-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 75px 0 0 0;
    width: 100%;
    & .footer-left {
        display:flex;
    }
    & .footer-right {
        position: relative;
        right: 150px;
    }
    & .home {
        display: flex;
        padding: 0 0 0 39px ;
        & p {
            position: relative;
            color: var(--black);
            font-family: 'Barrio';
            top: 5px;
            right: 33px;
            font-size: 34pt;
            margin-right: 35px;
        }
        & img {
            width: 20vw;
            position: relative;
            top: -45px;
            margin-right: 40px;
            background-color: var(--black)
        }  
    } 
    & .footer-icon > img {
        gap: 10px; /* Adds spacing between images */
        width: 50px;
        height: 50px;
        margin: 45px 0 0 10px;
    }
    & p {
        color: var(--white);
    }
}


/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-bar{
        display: none;
    }
    
    .project-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 20px;
    }
    
    .split-content{
        flex-direction: column;
        & .left-content,
        &  .right-content {
            max-width: 100%;
        }
    }
    
    .mobile-nav-toggle {
        display: block;
    }
}

.mobile-nav-toggle {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--black);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-nav a {
    color: var(--white);
    font-size: 24px;
    padding: 15px;
    text-decoration: none;
}

.mobile-nav a:hover {
    background-color: var(--black);
    width: 100%;
    text-align: center;
}