@import url('https://fonts.googleapis.com/css?family=Cabin|Herr+Von+Muellerhoff|Source+Sans+Pro:400,900&display=swap');
/*Global styles*/
*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --main-font: 'Source Sans Pro', sans-serif;
    --secondary-font: 'Herr Von Muellerhoff', cursive;
    --body-font: 'Cabin', sans-serif;
    --main-font-color-dark: #252525;
    --secondary-font-color: #c59d5f;
    --body-font-color: #515151;
}

html{
    font-family: var(--body-font);
    font-size: 10px;
    color: var(--body-font-color);
    scroll-behavior: smooth;
}

body{
    overflow-x: hidden;
}

section{
    padding: 3.9rem 0;
    overflow: hidden;
}

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

a{
    text-decoration: none;
}

p{
    font-size: 1.6rem;
}

.container{
    width: 100%;
    max-width: 122.5rem;
    margin: 0 auto;
    padding: 0 2.4rem;
}

/*header*/
header{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent);
}

.nav{
    height: 7.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle{
    color: #fff;
    font-size: 2.2rem;
    position: absolute;
    top: 50%;
    transform: transateY(-50%);
    right: 2.5rem;
    cursor: pointer;
    z-index: 1500;
    display: none;
}

.fa-times{
    display: none;
}

.nav-list{
    list-style: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100vh;
    background-color: var(--main-font-color-dark);
    padding: 4.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    z-index: 1250;
    transform: translateX(-100%);
    transition: transform .5s;
}

.nav::before{
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.8);
    z-index: 1000;
    opacity: 0;
    transform: scale(0);
    transition: opacity .5s;
}

.open .fa-times{
    display: block;
}

.open .fa-bars{
    display:none;
}

.open .nav-list{
    transform: translateX(0);
}

.open .nav::before{
    opacity: 1;
    transform: scale(1);
}

.nav-item{
    border-bottom: 2px solid rgba(255,255,255,.3);
}

.nav-link{
    display: block;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-right: -2px;
    transition: color.5s;
}

.nav-link:hover{
    color: var(--secondary-font-color);
}

/*Hero*/
.hero{
    width: 100%;
    height: 100vh;
    background: url("images/hero2.jpg") center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
}

.sub-headline{
    font-size: 8.5rem;
    font-family: var(--secondary-font);
    color: var(--secondary-font-color);
    font-weight: 100;
    line-height: .4;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeUp .5s forwards;
    animation-delay: .5s;
}

.first-letter{
    text-transform: uppercase;
    font-size: 10.3rem;
}

.headline{
    font-size: 1.9rem;
    font-family: var(--main-font);
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    font-weight: 900;
    margin-right: -0.08rem;
    animation: scale .5s forwards;
}

.separator{
    display: flex;
    align-items: center;
    justify-content: center;

}

.line{
    width: 100%;
    max-width: 8.4rem;
    height: .25rem;
    background-color: #515151;
    position: relative;
    opacity: 0;
    animation: grow 2s forwards;
    animation-delay: .9s;
}

.line-right::before,
.line-left::before{
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: .6rem solid transparent;
    opacity: 0;
    animation: grow .5s forwards;
    animation-delay: 1.2s;
}

.line-right::before{
    border-right-color: #515151;
    right: 0;
}

.line-left::before{
    border-left-color: #515151;
    left: 0;
}

.asterisk{
    font-size: 1.2rem;
    color: var(--secondary-font-color);
    margin: 0 1.6rem;
    animation: spin .5s forwards;
    animation-delay: .7s;
}

.single-animation{
    opacity: 0;
    animation: fadeDown .5s forwards;
    animation-delay: 1.5s;
}

.headline-description h5{
    color: #515151;
    font-size: 1.1rem;
    font-weight: 100;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
    margin-right: -2px;
}

.btn{
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: -2px;
}

.cta-btn{
    font-size: 1rem;
    background-color: #515151;
    padding: .9rem 1.8rem;
    color: #fff;
    border-radius: .4rem;
    transition: background-color .5s;
}

.cta-btn:hover,
.cta-btn:focus{
    color: #fff;
    background-color: var(--secondary-font-color);
}

/*Discover my story*/
.global-headline{
    text-align: center;
    margin-top: 3.9rem;
}

.discover-my-story .global-headline{
    margin-top: 6.9rem;
}

.global-headline .asterisk{
    color: var(--body-font-color);
    margin: 2.4rem 0;
}

.headline-dark{
    color: var(--main-font-color-dark);
    font-size: 2.3rem;
    letter-spacing: .7rem;
    margin-right: -.7rem;
}

.global-headline .sub-headline{
    letter-spacing: -1px;
    line-height: .42;
}

.my-info{
    text-align: center;
}

.my-description{
    margin-bottom: 3rem;
}

.my-description p{
    line-height: 1.6;
    margin-bottom: 2.4rem;
}

.body-btn{
    font-size: 1.5rem;
    color: var(--secondary-font-color);
    position: relative;
    transition: color.5s;
}

.body-btn::before{
    content:'';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-font-color);
    transition: background-color .5s;
}

.body-btn:hover,
.body-btn:focus{
    color: var(--main-font-color-dark);
}

.body-btn:hover::before,
.body-btn:focus::before{
    background-color: var(--main-font-color-dark);
}

/*What I Do*/
.what-i-do{
    background: url("images/laptop-code.jpg") center no-repeat;
    background-size: cover;
    color: #fff;
}

.between{
    min-height: 65vh;
    display: flex;
    align-items: center;
}

/*My Skills*/
.image-group{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-gap: 1.5rem;
}

.image-group .skills-category{
    border: solid;
    padding: 1rem;
}

.image-group .skills-list{
    list-style: none;
}

.image-group li{
    font-size: 2rem;
    color: var(--main-font-color-dark);
    padding: .8rem 2rem;
    opacity: .5;
    transition: color .5s;
}

.my-skills .my-description{
    padding-top: 3rem;
    margin-bottom: 0;
}
/*Where I've Studied*/
.where-ive-studied{
    background: url("images/study.jpg") center no-repeat;
    background-size: cover;
    color: #fff;
}

/*Where I've Worked*/
.where-ive-worked{
    background: url("images/computer-desk.jpg") center no-repeat;
    background-size: cover;
    color: #fff;
}

.box{
    padding: 4rem;
    box-sizing: border-box;
    text-align: left;
}

.box span{
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-right: -2px;
}

.box h3{
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.box .company{
    font-size: 1.3rem;
    color: var(--secondary-font-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: underline;
    font-weight: 700;
}

.box p{
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.box ul{
    margin: 0;
    padding: 0;
    border-left: 0.2rem solid var(--body-font-color);
}

.box ul li{
    list-style-type: none;
}

.box ul li .item{
    position: relative;
    padding: 3rem 2rem;
}

.box ul li .item:hover{
    background: rgba(237,237,237);
}

.box ul li .item:before{
    content: '';
    position: absolute;
    top: 3.2rem;
    left: 0;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--main-font-color-dark);
    border-radius: 50%;
    box-shadow: inset 0 0 1rem rgba(0,0,0,1);
    transform: translateX(-60%);
}

.box ul li .item:after{
    content: '';
    position: absolute;
    top: 3.2rem;
    left: 0;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--secondary-font-color);
    border-radius: 50%;
    box-shadow: inset 0 0 1rem var(--secondary-font-color);
    transform: translateX(-60%);
    opacity: 0;
}

.box ul li .item:hover:after{
    animation: blink 1s linear infinite;
}

.box ul li .item span{
    padding: 0.4rem 1.2rem;
    background: #515151;
    border-radius: 1.5rem;
    color: #fff;
}

.box ul li .item:hover span{
    background: var(--secondary-font-color);
}

.box ul li .item h3{
    margin: 1rem 0 0;
    padding: 0;
}

.box ul li .item h4{
    margin: 1rem 0 0;
    padding: 0;
}

.box ul li .item p{
    margin: 1rem 0 0;
    padding: 0;
}

.box ul li .item a{
    margin: 1rem 0 0;
    padding: 0;
}

/*My Projects*/
.my-projects{
    background: url("images/wireframe.jpg") center no-repeat;
    background-size: cover;
    color: #fff;
}
/*Projects List*/
.projects-grid .image-group{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-gap: 1.5rem;
}

.projects-grid .image{
    width: 50%;
    justify-items: center;
}

.project-overview > a {
    margin: 2rem 0 5rem;
}

.container#blur.active, .container#blur-2.active, .container#blur-3.active, .container#blur-4.active, .container#blur-5.active, .container#blur-6.active, .container#blur-7.active, .container#blur-8.active, .container#blur-9.active {
    filter: blur(20px);
    pointer-events: none;
    user-select: none;
}

#popup-1, #popup-2, #popup-3, #popup-4, #popup-5, #popup-6, #popup-7, #popup-8, #popup-9{
    height: 50%;
    width: 70%;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 600px;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0,0,0,.30);
    background: #fff;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
}

#popup-1.active, #popup-2.active, #popup-3.active, #popup-4.active, #popup-5.active, #popup-6.active, #popup-7.active, #popup-8.active, #popup-9.active{
    top: 50%;
    visibility: visible;
    opacity: 1;
    transition: 0.5s;  
}

@media screen and (max-width: 900px) {
    #popup-1.active, #popup-2.active, #popup-3.active, #popup-4.active, #popup-5.active, #popup-6.active, #popup-7.active, #popup-8.active, #popup-9.active{
        border:none;
		width:100%;
        height:100%;
        align-content: center;
        z-index: 1000;
    }
}

/*Footer*/
footer{
    padding: 7.8rem 0;
    background-color: #121212;
    color: #fff;
    text-align: center;
    position: relative;
}

.back-to-top{
    width: 7rem;
    height: 7rem;
    background-color: #121212;
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
}

.back-to-top i{
    display: block;
    color: #fff;
    font-size: 2rem;
    padding: 2rem;
    animation: up 2s infinite;
}

.footer-content{
    overflow: hidden;
}

.footer-content h4{
    font-size: 1.9rem;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 3px;
    margin-bottom: 3rem;
}

.footer-content .asterisk{
    margin: 2.4rem 0;
}

.footer-content-contact{
    margin-bottom: 5.4rem;
}

.footer-content-contact p{
    line-height: 2;
}

.social-icons{
    list-style: none;
    margin-bottom: 5.4rem;
    display: flex;
    justify-content: center;
}

.social-icons i{
    font-size: 2rem;
    color: #fff;
    padding: .8rem 2rem;
    opacity: .5;
    transition: color .5s;
}

.social-icons i:hover,
.social-icons i:focus{
    color: var(--secondary-font-color);
}

.email-btn{
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    padding: .8rem 2rem;
    opacity: .5;
    transition: color .5s;
}

.email-btn i:hover,
.email-btn i:focus{
    color: var(--secondary-font-color);
}

/*Media queries*/
@media screen and (min-width: 900px){
    section{
        padding: 7.9rem;
    }

    .menu-toggle{
        display: none;
    }

    .nav{
        justify-content: space-between;
    }

    .nav-list{
        position: initial;
        width: initial;
        height: initial;
        background-color: transparent;
        padding: 0;
        justify-content: initial;
        flex-direction: row;
        transform: initial;
        transition: initial;
    }

    .nav-item{
        margin: 0 2.4rem;
        border: none;
    }

    .nav-item:last-child{
        margin-right: 0;
    }

    .nav-link{
        font-size: 1.3rem;
    }

    .action{
        position: relative;
    }

    .active{
        position: relative;
    }

    .active::before{
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #fff;
        left: 0;
        bottom: -3px;
    }

    .sub-headline{
        font-size: 10rem;
    }

    .first-letter{
        font-size: 12.2rem;
    }

    .headline{
        font-size: 3rem;
        letter-spacing: .4rem;
        margin-right: -.4rem;
    }

    .line{
        max-width: 15rem;
    }

    .my-info{
        display: flex;
        align-items: center;
    }

    .project-overview{
        display: block;
    }

    .my-info > div{
        flex: 1;
    }

    .padding-right{
        padding-right: 7rem;
    }

    .footer-content{
        max-width: 77.5rem;
        margin: auto;
    }

    .footer-content-contact{
        max-width: 51.3rem;
        margin: 0 auto 5.4rem;
    }

    .footer-content-divider{
        display: flex;
        justify-content: space-between;
    }

    .social-media{
        width: 100%;
        max-width: 27.rem;
        margin: 0 1rem;
    }

    .social-icons{
        opacity: 1;
    }  

}

/*Animations*/
@keyframes fadeUp {
    0%{
        transform: translateY(4rem);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale {
    0%{
        transform: scale(2)
    }
    100%{
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes grow {
    0%{
        width: 0;
    }
    100%{
        opacity: 1;
        width: 100%;
    }
}

@keyframes spin {
    0%{
        transform: rotate(0);
    }
    100%{
        opacity: 1;
        transform: rotate(-360deg);
    }
}

@keyframes fadeDown {
    0%{
        transform: translateY(-1rem);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes up {
    0%{
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
        transform: translateY(-1rem);
    }
}

@keyframes blink{
    0%{
        opacity: 0;
    }
    50%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}



