*,
*::before,
*::after {
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

body {
    margin: 0;
    padding: 0;
    background: #0a192f;
    color: #8892b0;
    font-family: 'Oxygen', sans-serif;
    display: grid;
    grid-column: repeat(8% auto);
}

h1, h2, h3, h4, h5, h6 {
    color: #8892b0;
    font-weight: bolder;
}

a {
    text-decoration: none;
}

.name {
    color: #ccd6f6;
}

img {
    width: 100%;
}

aside {
    position: fixed;
    background: #112240;
    top: 0px;
    left: 0px;
    width: 10%;
    height: 100%;
    overflow: none;
    z-index: 1;
    text-align: center;
    padding: 0;
}

aside img {
    filter: grayscale(100%) contrast(50%) brightness(100%);
    margin-bottom: -3px;
}

.material-icons.md-36 {
    font-size: 36px;
    color: #fff;
}

aside a {
    display: block;
    color: #fff;
    padding: 15px 0;
    transition: all 0.5s;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 2px;
}

aside p {
    margin: 0;
    padding: 0;
}

aside a:hover {
    background: #8892b0;
}

aside nav a:nth-child(2) {
    background: #8892b0;
}

aside nav a:nth-child(2):hover {
    background: #b2b2b2;
    color: #222;
}

main {
    grid-column-start: 2;
    max-width: 85%;
    margin-left: 12%;
    padding: 12px 50px 12px 50px;
    line-height: 1.5em;
    letter-spacing: 1px;
    font-weight: 300;
}

header {
    text-align: center;
    letter-spacing: 2px;
}

#welcome-section {
    height: 100vh;
}

header h1 {
    font-weight: bolder;
    font-size: 4em;
    letter-spacing: 4px;
    padding-top: 20%;
}

header h4 {
    letter-spacing: 6px;
}

header h5 {
    font-family: inherit;
    font-weight: 200; 
}

.about h2,
.folio h2,
.contact h2 {
    font-weight: 300;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 10px;
    margin: 100px 0 0 0;
    letter-spacing: 4px;
    padding-top: 50px;
}

.about a, .mail-link {
    color: #64ffda;
    text-decoration: none;
}

.about a:hover, .mail-link:hover {
    border-bottom: 1px solid #64ffda; 
}

.about p {
    color: #ccd6f6;
}

.about span {
    font-size: 600;
    color: #ccd6f6;
}

.about h3 {
    font-weight: 300;
    margin: 50px 0;
}

.container {
    width: 100%;
    background: #495670;
    border-radius: 5px;
}

.skills {
    text-align: right;
    padding-right: 20px;
    line-height: 30px;
    color: #495670;
    background: #ccd6f6;
    border-radius: 5px 0 0 5px;
}

.html {
    width: 85%;
}

.css {
    width: 78%;
}

.sql {
    width: 70%;
} 

.php {
    width: 60%;
}

.js {
    width: 50%;
}

.projects {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 5px auto;
    width: 100%;
}

.projects .project-tile {
    position: relative;
    width: 45%;
    margin: 10px;
    display: inline-block;
    overflow: hidden;
}

.projects .project-tile .imgBox {
    position: relative;
}

.projects .project-tile .imgBox img {
    width: 100%;
    transition: transform 2s;
}

.projects .project-tile:hover .imgBox img {
    transform: scale(1.1);
}

.projects .project-tile .details {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    text-align: center;
    background: rgba(0,0,0,.8);
    color: #ccd6f6;
    transform: scaleY(0);
    transition: transform .5s;
}

.projects .project-tile:hover .details {
    transform: scaleY(1);
}

.projects .project-tile .details .content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    padding: 15px;
}

.projects .project-tile .details .content h2 {
    margin: 0 auto;
    padding: 0 0 5px 0;
    margin-bottom: 5px;
    font-size: 20px;
    color: #fff;
    width: 70%;
    border-bottom: 1px solid #fff;
}

.projects .project-tile .details .content p {
    margin: 10px 0 0;
    padding-bottom: 10px;
}

.projects .project-tile .details .content a {
    color: #ccd6f6;
    border: 1px solid #b2b2b2;
    border-radius: 23px;
    padding: 10px 20px;
}

.projects .project-tile .details .content a:hover {
    color: #ccd6f6;
    background: #8892b0;;
}

.content {
    width: 100%;
}

label {
    color: #a8b2d1;
}

form input[type="text"],
form input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 1px solid #ccd6f6;
    background: transparent;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    color: #ccd6f6;
} 

form input[type="text"]:focus,
form input[type="email"]:focus,
textarea:focus {
    outline: none;
    border: 1px solid #ccd6f6;
}

button {
    background: transparent;
    color: #ccd6f6;
    text-transform: uppercase;
    padding: 12px 20px;
    border: 1px solid #ccd6f6;
    cursor: pointer;
    transition: all 0.35s;
    margin-bottom: -10%;
}

button:hover {
    background: #8892b0;
    color: #ccd6f6;
}

.contact .container {
    margin-top: 20px;
    margin-bottom: 100px;
    background: transparent;
    padding: 20px 0;
}

footer {
    border-top: 1px solid #222;
}

.top-bar {
    padding: 20px 0;
    text-align: center;
}

.top-bar a {
    margin: 10px;
    font-size: 2em;
    color: #ccd6f6;
    transition: all 0.35s;
    display: inline-block;
}

.top-bar a:hover {
    transform: scale(1.1);
    color: #64ffda;
}

.bottom-bar {
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 2%;
}

@media screen and (max-width: 922px) {
    header h1 {
        font-size: 3em;
    }
}

@media screen and (max-width: 860px) {
    aside {
        display: none;
    }

    main {
        width: 100%;
        margin: 0 auto;
        padding: 12px 25px;
    }

    header {
        margin-top: 80px;
    }

    header h1 {
        font-size: 3em;
        line-height: 1.4em;
    }

    header h5 {
        font-size: 1em;
        letter-spacing: 2px;
    }

    .about h2,
    .folio h2,
    .contact h2 {
        padding-top: 100px;
    }

    .mobile-nav {
        position: fixed;
        width: 100%;
        display: flex;
        justify-content: space-around;
        background: rgba(0,0,0,0.8);
        z-index: 1;
    }

    .mobile-nav a {
        width: 100%;
        color: #ccd6f6;
        text-transform: uppercase;
        font-size: 0.875em;
        letter-spacing: 2px;
        text-align: center;
        padding: 10px;
        transition: all 0.35s;
    }

    .mobile-nav a:hover {
        background: #8892b0;
        color: #ccd6f6;
    }
}

@media (min-width: 860px) {
    .mobile-nav {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .projects {
        display: block;
    }

    .projects .project-tile {
        width: 100%;
        margin: 0 0 10px 0;
    }
}
