/*************************************
    Primary Style
*************************************/
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mulish';
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

body::-webkit-scrollbar {
    display: none;
}

hr {
    border-style: none;
    border-top-style: dotted;
    border-color: slategray;
    border-width: 5px;
    width: 5%;
    margin: 50px auto 50px auto;
}

.black {
    background-color: #0e1216;
    color: #fff
}

.white {
    background-color: #fff;
    color: #0e1216;
}

.black a {
    color: #fff;
    font-weight: bold;
}

.white a {
    color: #0e1216;
}

.intro {
    margin-left: 3rem;
    margin-top: 3rem;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2em;
}

h4 {
    font-size: 1em;
}

p {
    line-height: 200%;
}

/*************************************
    NAV 
*************************************/
nav {
    display: flex;
    position: fixed;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    z-index: 1;
    width: 100%;
    /* opacity: 0; */
    animation: regularFade 3s;
}

/* nav:hover {
    opacity: 1;
    transition: ease-in 0.5s;
} */

.nav-links {
    display: inline-flex;
    position: fixed;
    width: 100%;
    justify-content: space-around;
    background-color: transparent;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: 1em;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-links.black a {
    color: #fff;
}

.nav-links.white a {
    color: #0e1216;
}

.hamburg {
    display: none;
    z-index: 1;
}

.hamburg div {
    width: 25px;
    height: 3px;
    margin: 5px;
    transition: all 0.3s ease;
}

.hamburg.black div {
    background-color: #fff;
}

.hamburg.white div {
    background-color: #0e1216;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/*************************************
            HOME PAGE
*************************************/
.home {
    padding-top: 4%;
    height: 100%;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    grid-template-areas:
        "fh"
        "c";
    margin: 0 15%;
}

.big-af {
    font-size: 5em;
}

.fancy-header {
    grid-area: fh;
    text-align: center;
    width: 100%;
    margin-bottom: 3%;
}

.fancy-header span {
    display: block;
}

.text1 {
    letter-spacing: 6px;
    background: #0e1216;
    position: relative;
    animation: text 3s 1;
}

.home-content {
    grid-area: c;
    animation: regularFade 6s;
    width: 100%;
    text-align: left;
}

.home-content span {
    display: block;
}

.main-blurb {
    padding-bottom: 2%;
}

.links-blurb {
    padding-bottom: 2%;
}

.links-blurb a {
    text-decoration: underline;
}

.links-logos {
    margin: 1%;
    display: inline;
    text-align: center;
}

.links-logos img {
    margin: 0 0.5%;
}

/*************************************
    RESUME 
*************************************/
.resume-display {
    display: block;
    height: 100%;
    text-align: center;
}

.resume-display img {
    width: 100%;
    height: auto;
    padding: 8vh 20% 5%;
}

.dl-prompt {
    text-align: center;
    padding-bottom: 5%;
}

.dl-prompt a {
    text-decoration: none;
}

.dl-prompt:hover {
    text-decoration: underline;
    cursor: pointer;
}

/*************************************
    Experience Page 
*************************************/
.section {
    position: fixed;
    z-index: 0;
    width: 50%;
    height: 50%;
    overflow: hidden;
    -webkit-transform: scale(1);
    transform: scale(1);
    will-change: transform;
    -webkit-transition-property: all;
    transition-property: all;
    -webkit-transition-duration: 300ms;
    transition-duration: 300ms;
    -webkit-transition-timing-function: ease-in-out;
    transition-timing-function: ease-in-out;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.section::-webkit-scrollbar {
    display: none;
}

.section.cira {
    top: 0;
    left: 0;
}

.section.lockheed {
    top: 50%;
    left: 0;
}

.section.intertalk {
    top: 0;
    left: 50%;
}

.section.mathresources {
    top: 50%;
    left: 50%;
}

.section.is-expanded {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 2;
}

.has-expanded-item .section:not(.is-expanded) {
    -webkit-transform: scale(0);
    transform: scale(0);
    opacity: 0;
}

.close-section {
    position: fixed;
    top: 0;
    right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    visibility: hidden;
    width: 3rem;
    height: 3rem;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    line-height: 1;
    font-size: 2rem;
    text-align: center;
    opacity: 0;
    cursor: pointer;
    -webkit-transition: opacity 200ms linear;
    transition: opacity 200ms linear;
}

.section.is-expanded .close-section {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    -webkit-transition: opacity 200ms linear 300ms;
    transition: opacity 500ms linear 300ms;
}

.demo-box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 300;
    animation: regularFade 4s;
}

.demo-box p:hover {
    text-decoration: underline;
    cursor: pointer;
}

/*************************************
    EXPERIENCE TILES
*************************************/
.box-content {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "jt jt jt"
        "jl jd jd";
}

.job-display {
    grid-area: jt;
    padding-bottom: 50px;
}

.job-display img {
    z-index: 0;
    filter: grayscale(100);
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.job-logo {
    grid-area: jl;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 20px;
    text-align: left;
}

.job-detail {
    grid-area: jd;
    padding-right: 5%;
    padding-left: 5%;
    /* padding-left: 9%; */
    padding-top: 10%;
    padding-bottom: 5%;
}


.lm.job-detail {
    padding-top: 13%
}

.mr.job-detail {
    padding-top: 15%
}

.stack-logos {
    padding: 3.5% 0;
}

.pl {
    vertical-align: middle;
}

a.text-link {
    text-decoration: none;
    font-weight: 700;
    color: #fff;
}

a.text-link:hover {
    text-decoration: underline;
}

.arrow {
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.arrow span {
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 5px solid #fff;
    border-right: 5px solid #fff;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

/*************************************
    MEDIA  QUERYS 
*************************************/
@media screen and (max-width:800px) {
    body {
        overflow-x: hidden;
    }

    nav {
        opacity: 1;
        animation: navLinkFade 2s;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        top: 8vh;
        height: 92vh;
        width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links.black {
        background-color: #0e1216;
    }

    .nav-links.white {
        background-color: #fff;
    }

    .nav-links li {
        opacity: 0;
    }

    .hamburg {
        display: block;
        position: relative;
        left: 45%;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .home {
        margin: 0 10% 3%;
    }

    .resume-display img {
        padding: 8vh 0 5%;
    }

    .box-content {
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "jt jt jt"
            "jl jl jl"
            "jd jd jd";
    }

    .stack-logos {
        padding-bottom: 0;
    }

    .job-detail {
        padding-top: 0;
        padding-left: 5%;
        padding-bottom: 5%;
    }

    .lm.job-detail {
        padding-top: 0;
    }

    .mr.job-detail {
        padding-top: 0;
    }

    .note-contribs {
        margin-left: 5%;
    }
}

@media screen and (max-width:490px) {
    .home {
        padding-top: 7%;
    }

    .big-af {
        font-size: 4em;
    }

    .main-blurb {
        padding-bottom: 4%;
    }

    .links-blurb {
        padding-bottom: 4%;
    }

    #mr-box-header {
        font-size: 1.5rem;
    }

    .job-logo-img {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width:430px) {
    .big-af {
        font-size: 3em;
    }

    .box-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateY(px);
    }
}

@keyframes regularFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes text {
    0% {
        color: #0e1216;
        margin-bottom: -40px;
    }

    30% {
        letter-spacing: 25px;
        margin-bottom: -40px;
    }

    85% {
        letter-spacing: 8px;
        margin-bottom: -40px;
    }
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}