@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700);

* {
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
}

/* Progress scroll */
.scroll-container {
    width: 100%;
    height: 4px;
    background: #ccc;
    position: fixed;
    z-index: 2;
}

.scroll-progress-bar {
    height: 4px;
    background: #666666;
    z-index: 2;
    width: 0%;
}

/* HEADER */
.header {
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, .1);
    padding: 20px 30px 0 30px;
    width: 100%;
    font-size: 24px;
    align-items: center;
    min-height: 140px;
}

.header a,
.footer-nav a {
    color: black;
    text-decoration: none;
    transition: all .6s ease;
    text-decoration-color: white;
}

.navhover:hover {
    background-color: #dddddd;
    color: grey;
}

.header ul {
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.header li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: black;
    transition: 0.4s;
}

.logo {
    display: block;
    float: left;
    padding-top: 34px;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
}

/* HEADER BUTTON */
.header .menu {
    clear: both;
    max-height: 0;
    transition: max-height .2s ease-out;
}

.menu-icon {
    cursor: pointer;
    float: right;
    padding: 50px 20px;
    position: relative;
    user-select: none;
    transition: 0.4s;
}

.header .menu-icon .navicon {
    background: #000000;
    display: block;
    height: 4px;
    position: relative;
    transition: background .2s ease-out;
    width: 31px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
    background: #000000;
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.header .menu-icon .navicon:before {
    top: 9px;
}

.header .menu-icon .navicon:after {
    top: -9px;
}

.header .menu-btn {
    display: none;
}

.header .menu-btn:checked~.menu {
    max-height: 290px;
}

.header .menu-btn:checked~.menu-icon .navicon {
    background: transparent;
}

.header .menu-btn:checked~.menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.header .menu-btn:checked~.menu-icon .navicon:after {
    transform: rotate(45deg);
}

.header .menu-btn:checked~.menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
    top: 0;
}

/* RESIZE HEADER */
@media (min-width: 55em) {
    .header li {
        float: left;
    }

    .header li a {
        border-radius: 5px;
        padding: 15px 0 4px 0;
        margin-right: 45px;
    }

    .header .menu {
        clear: none;
        float: right;
        max-height: none;
    }

    .header .menu-icon {
        display: none;
    }

    .navhover {
        display: inline-block;
        position: relative;
        color: black;
    }

    .navhover::after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: grey;
        transform-origin: bottom right;
        transition: transform 0.4s ease-out;
    }

    .navhover:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }

    .navhover:hover {
        opacity: 1;
        background-color: transparent;
    }
}

/* Introduction */
.introbox {
    color: black;
    padding: 30px;
    text-align: center;
    font-family: 'roboto', sans-serif;
    align-self: center;
    text-align: center;
}

.introbox h1 {
    font-weight: bold;
    font-size: 64px;
    text-align: center;
    margin: 0;
}

@media (min-width: 850px) {
    .introbox h1 {
        font-size: 110px;
    }
}

.abttxt {
    font-size: 20px;
    color: #666666;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 60px;
    background-color: black;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* About */
.about {
    padding: 30px;
    background-color: rgba(224, 230, 236, 0.65);
    text-align: center;
    margin: 50px 0 50px 0;
    line-height: 215%;
    box-shadow: rgba(0, 0, 0, 0.15) 0 0 1px 1px;
}

.about h1 {
    font-size: 40px;
}

.about-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image {
    margin-bottom: 20px;
    margin-top: 20px;
    max-width: 100%;
    width: auto;
    transition: all 0.6s ease;
}

#aboutimg {
    border-radius: 50%;
    max-width: 100%;
    height: auto;
    display: block;
}

.about-text {
    padding: 20px;
    text-align: left;
    font-size: 1rem;
}


@media (min-width: 800px) {
    .about {
        margin: 50px;
    }

    .about-inner {
        flex-direction: row;
        align-items: flex-start;
    }

    .about-image {
        margin-bottom: 0;
        margin-right: 20px;
        flex: 0 0 auto;
        width: 100%; 
        transition: all 0.6s ease;
        max-width: 200px; 
        align-self: center;
    }

    .about-text {
        padding: 40px;
        text-align: left;
    }

    .about h1 {
        font-size: 50px;
    }

    .about-text p {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .about-image {
        width: 30%;
        max-width: 250px;
    }
}

@media (min-width: 1200px) {
    .about-image {
        width: 35%;
        max-width: 300px;
    }
}


/* Projects */
.projects {
    padding: 15px;
    padding-bottom: 30px;
    text-align: center;
    background-color: rgba(224, 230, 236, 0.65);
    box-shadow: rgba(0, 0, 0, 0.2) 1px 0 1px 1px;
}

.projects h1 {
    font-size: 50px;
    margin-bottom: 0;
}

/* Experience */
.experience {
    text-align: center;
    padding: 15px;
    padding-bottom: 30px;
    /* background-color: rgb(230, 255, 245);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 1px 1px;*/
}

.experience h1 {
    font-size: 50px;
    padding-bottom: 10px;
}


/* Contact */
.contact {
    padding: 0;
    padding-top: 5px;
    padding-bottom: 50px;
    background-color: rgba(224, 230, 236, 0.65);
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 1px 1px;
}

.contact h1 {
    font-size: 50px;
    /* margin: 0; */
}

.cont-icon {
    font-size: 50px;
    transition: all .3s ease;
    padding-right: 10px;
}

.cont-icon:hover {
    opacity: 0.7;
    /* font-size: 55px; */
}

/* Footer */
footer {
    padding: 20px;
    padding-bottom: 10px;
    text-align: center;
    box-shadow: -1px -1px 4px 0 rgba(0, 0, 0, .1);
    color: #a8a8a8;
    transition: all 0.6s ease;
}

footer p {
    font-size: 16px;
}

.footer-nav {
    text-align: center;
    align-items: center;
}

.footer-nav ul {
    padding: 0;
    list-style: none;
    overflow: hidden;
}

.footer-nav li {
    text-decoration: none;
    color: black;
    transition: 0.4s;
    display: inline; 
    padding-right: 15px;
    font-size: 20px;
}

.fnavhover {
    display: inline-block;
    position: relative;
    color: black;
}

.fnavhover::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: grey;
    transform-origin: bottom right;
    transition: transform 0.4s ease-out;
}

.fnavhover:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* Buttons */
.button {
    transition: all .6s ease;
    color: black;
    border: 2px solid #444444;
    text-align: center;
    line-height: 1;
    font-size: 17px;
    background-color: transparent;
    padding: 20px;
    outline: none;
    border-radius: 30px;
    text-decoration: none;
    text-decoration-color: white;
    font-weight: bold;
}

.button:hover {
    color: #fff;
    scale: 1.1;
    background-color: #444444;
    cursor: pointer;
}

.button2 {
    transition: all .6s ease;
    color: white;
    border: 2px solid #444444;
    text-align: center;
    line-height: 1;
    font-size: 17px;
    background-color: #444444;
    padding: 20px;
    outline: none;
    border-radius: 30px;
    text-decoration: none;
    text-decoration-color: white;
    font-weight: bold;
}

.button2:hover {
    color: black;
    background-color: transparent;
    scale: 1.05;
    cursor: pointer;
}




/* CONTACT FORM */

/* SIDES */
.contact-div {
    padding: 40px;
    max-width: fit-content;
    margin-right: auto;
    margin-left: auto;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.15);
    margin-top: 40px;
    background-color: white;
}

.contact-socials a {
     text-decoration: none;
     color: black;
 }

/*@media (max-width: 615px) {*/
/*    .contact {*/
/*        margin: 0;*/
/*        padding: 0;*/
/*        background-color: white;*/
/*    }*/
/*}*/

/* CONTACT AUTHENTICATION */
.invalid-feedback,
.empty-feedback {
    display: none;
    color: #dc3545;
    font-size: 13px;
    font-weight: 400;
    padding-top: 5px;
}

.was-validated :placeholder-shown:invalid~.empty-feedback {
    display: block;
}

.was-validated :not(:placeholder-shown):invalid~.invalid-feedback {
    display: block;
}

.is-invalid,
.was-validated :invalid {
    border-color: #dc3545;
}

.result {
    text-align: center;
}

.red {
    color: #ef4444;
}

.grey {
    color: #6b7280;
}

.green {
    color: #22c55e;
}

/* CONTACT FORM */
.required {
    color: #dc3545;
    font-size: 18px;
}

.required-text {
    font-size: 13px;
}

.msg-box {
    resize: vertical;
    min-height: 100px;
    max-height: 250px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    padding-left: 10px;
    padding-top: 10px;
    font-family: Roboto;
    font-size: 15px;
    max-width: 500px;
    width: 75vw;
}

.input {
    height: 35px;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    padding-left: 10px;
    font-size: 15px;
    max-width: 500px;
    width: 75vw;
}

.input-msg:hover {
    border: 2px solid #aaaaaa;
}

.input:focus,
.msg-box:focus {
    outline-color: #aaaaaa;
}

.input::placeholder,
.msg-box::placeholder {
    color: #d1d5db;
}

.info h1 {
    text-align: center;
}

.info p {
    text-align: center;
    color: #9ca4b4;
}

.submit-button {
    background-color: transparent;
    border: 2px solid #666666;
    color: black;
    height: 50px;
    max-width: 520px;
    width: 78vw;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    transition: all .4s ease;
    border-radius: 50px;
}

.submit-button:hover {
    text-decoration: none;
    color: white;
    cursor: pointer;
    background-color: #666666;
}

.form,
.submit-div {
    text-align: center;
}

.inner-form {
    display: inline-block;
    text-align: left;
}

.inner-form label {
    font-size: 14px;
    display: inline-block;
    padding-bottom: 5px;
}




/* TIMELINE */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden; 
}

.center-line {
    position: absolute;
    width: 6px;
    background-color: #c5c5c5;
    top: 0;
    left: 50%;
    z-index: -2;
    margin-left: -3px;
    height: 0; 
    transition: height 2s ease; 
}

.center-line.in-view {
    height: 100%;
}

.container {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    opacity: 0; 
    transition: opacity 0.5s ease, transform 0.5s ease; 
}

.container.left {
    left: 0;
    transform: translateX(-50px); 
}

.container.right {
    left: 50%;
    transform: translateX(50px); 
}

.container.in-view {
    opacity: 1; 
    transform: translateX(0); 
}

.container.viewed {
    opacity: 1; 
    transform: translateX(0); 
}

.container::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    right: -9px;
    background-color: #c5c5c5;
    border: 2px solid white;
    top: 73px;
    border-radius: 50%;
    z-index: -1;
}

/*.left::before {*/
/*    content: " ";*/
/*    height: 0;*/
/*    position: absolute;*/
/*    top: 73px;*/
/*    width: 0;*/
/*    z-index: -1;*/
/*    right: 30px;*/
/*    border: medium solid black;*/
/*    border-width: 10px 0 10px 10px;*/
/*    border-color: transparent transparent transparent black;*/
/*}*/

/*.right::before {*/
/*    content: " ";*/
/*    height: 0;*/
/*    position: absolute;*/
/*    top: 73px;*/
/*    width: 0;*/
/*    z-index: -1;*/
/*    left: 30px;*/
/*    border: medium solid black;*/
/*    border-width: 10px 10px 10px 0;*/
/*    border-color: transparent black transparent transparent;*/
/*}*/

.right::after {
    left: -9px;
}

.content {
    padding: 20px 30px;
    background-color: rgba(224, 230, 236, 0.65);
    position: relative;
    z-index: -1;
    border-radius: 6px;
}

@media screen and (max-width: 600px) {
    .center-line {
        left: 31px;
    }

    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .container.left,
    .container.right {
        left: 0;
        transform: translateX(0);
    }

    .container::before {
        left: 50px;
        border: medium solid black;
        border-width: 10px 10px 10px 0;
        border-color: transparent black transparent transparent;
    }

    .left::after,
    .right::after {
        left: 22px;
    }
}





/* back to top */
#button {
    display: inline-block;
    background-color: #8a8a8a;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    transition: background-color .3s,
        opacity .5s, visibility .5s;
    opacity: 0;
    text-decoration: none;
    visibility: hidden;
    transition: all .6s ease;
}

#button::after {
    content: "\f077";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    line-height: 55px;
    color: #fff;
}

#button:hover {
    cursor: pointer;
    background-color: black;
}

#button:active {
    background-color: #555;
}

#button.show {
    opacity: 1;
    z-index: 1;
    visibility: visible;
}




/* PROJECT GALLERY */
.project-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Roboto;
    padding-bottom: 30px;
}

.project-gallery h1 {
    font-size: 40pt;
    font-weight: 500;
    color: #363638;
}

.project-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.item {
    position: relative;
    float: left;
    overflow: hidden;
    margin: 10px 1%;
    min-width: 320px;
    max-width: 410px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    border-radius: 5px;
}

.item * {
    transition: all 0.4s ease-in-out;
}

.project-gallery img {
    max-width: 100%;
    vertical-align: top;
    height: 310px;
}

.item:hover img {
    opacity: 0.2;
    scale: 1.1;
}

.text {
    width: 80%;
    height: 90%;
    position: absolute;
    top: -150px;
    left: 10%;
    color: #444444;
}

.text h3 {
    color: black;
    font-size: 26px;
}

.item:hover .text {
    top: 20%;
}

.item:hover .openbutton {
    bottom: 20%;
}

.item .openbutton {
    position: absolute;
    bottom: -100px;
    left: 25%;
    width: 50%;
    padding: 15px;
    box-sizing: border-box;
    transition: all .6s ease;
    color: black;
    border: 2px solid #444444;
    font-size: 17px;
    background-color: transparent;
    border-radius: 30px;
    text-decoration: none;
    text-decoration-color: white;
    font-weight: bold;
}

.openbutton:hover {
    color: #fff;
    scale: 1.05;
    background-color: #444444;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: auto;
    top: 0;
    line-height: 180%;
    left: 0;
    opacity: 0;
    visibility: hidden; 
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s; 
    z-index: 4;
}

.modal.open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.modal.closing {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}

.modal-content {
    background-color: #f4f4f4;
    margin: 5% auto;
    box-sizing: border-box;
    max-width: 700px;
    max-height: 714px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.5s ease-in-out;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal.closing .modal-content {
    transform: scale(0.8);
}

.scale {
    animation: scale 0.5s;
    animation-fill-mode: both;
}

@keyframes scale {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

#img {
    width: 100%;
    height: 450px;
}

#details {
    padding: 25px;
    text-align: left;
    word-wrap: break-word;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    max-height: 250px;
    box-sizing: border-box;
    border-top: 1px solid #363638;
}

#details * {
    transition: all .3s;
}

#details .button {
    width: 30%;
    color: black;
    text-align: center;
    left: 25px;
    bottom: 35px;
    padding: 15px;
    border: 2px solid #444444;
    font-size: 17px;
    background-color: transparent;
    border-radius: 30px;
    text-decoration: none;
    text-decoration-color: white;
    float: left;
    font-weight: bold;
}

#details i {
    bottom: 30px;
    font-size: 50px;
    float: right;
    color: #444444;
}

#details .button:hover {
    cursor: pointer;
    opacity: 0.8;
    color: white;
    background-color:#444444;
    scale: 1;
}

#details i:hover {
    cursor: pointer;
    opacity: 0.8;
}

#title {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Close button */
.close {
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    transition: color 0.4s;
}

.close:hover,
.close:focus {
    color: #67676b;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 650px) {
    .item img {
        opacity: 0.2;
        scale: 1.1;
    }

    .text {
        width: 80%;
        height: 90%;
        position: absolute;
        top: 0px;
        left: 10%;
        color: #444444;
    }

    .item .text {
        top: 20%;
    }
    
    .item .openbutton {
        bottom: 20%;
    }
}

@media (max-width: 800px) {
    .modal {
        padding: 5%;
        padding-top: 10%;
    }

    #img {
        width: 100%;
        height: 100%;
    }
    
}