@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,700,900');

/* CSS Reset 
===============================*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers 
====================================*/

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Grid 
==========================*/

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-transition: all ease-in-out 230ms;
     -moz-transition: all ease-in-out 230ms;
          transition: all ease-in-out 230ms;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    background: #0c5a5470;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/*typography
=========================*/
 
h1 {
    font-weight: 600;
    font-size: 1.6rem; 
}

p {
    line-height: 1.6;
}

.title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2em;
    font-weight: 900;
    margin-top: 1em;
}

.title span {
    font-weight: 300;
    display: block;
    margin-top: .3em;
    font-size: .9;
}

.title-cta {
    margin: 0 0 1em;
}

@media (max-width: 100rem){
    .title {
        font-size: 2.6rem;
    }
}

/*buttons
==============================*/

.button {
    font-size: 1.15rem;
    text-decoration: none;
    text-transform: uppercase;
    border-width: 2px;
    border-style: solid;
    padding: .5em 1.75em;
}

@media (min-width: 60rem){
    .button {
        font-size: 1.5rem;
    }
}

.button-small{
    font-size: .7rem;
    font-weight: 700;
}

.button-accent{
    color: #00ff6c;
    border-color: #00ff6c;
}

.button-accent:hover,
.button-accent:focus{
    background: #00ff6c;
    color: #232323;
}

.cta-button {
    color: #00ff6c;
    border-color: #00ff6c;
}

.cta-button:hover,
.cta-button:focus{
    background: #00ff6c;
    color: #232323;
}

/* intro
============================*/

.intro {
    display: flex;
    justify-content: center;
    font-weight: 600;
    margin-top: 0 auto;
    font-size: 1.6rem;
}

.intro p {
    font-size: 1em;
}

.nametyping {
    position: relative;
    margin-left: .63rem;
}

.nametyping::after {
    content: "";
    position: absolute;
    width: .063rem;
    height: 1.3em;
    border-right: .13rem solid #fff;
    -webkit-animation: blink 0.5s infinite ease;
       -moz-animation: blink 0.5s infinite ease;
            animation: blink 0.5s infinite ease;
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* header
==================================*/

.logo {
    margin: 1em;
}

header {
    position: absolute;
    left: 0;
    right: 0;
}

header ul {
    display: flex;
    justify-content: space-around;
}

header li {
    margin: .4em;
}

header a {
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .8rem;
    padding: .6em; 
    color: #fff;
}

header a:hover,
header a:hover {
    color: #ddd;
    text-decoration: underline;
}

@media (min-width: 64rem) {
    .logo {
        float: left;
    }

    .nav-links {
        float: right;
    }

    header li {
        margin: .6em;
        padding: .6em;
    }
}

.bar div {
    width: 1.6em;
    height: .3em;
    margin: .3em;
    margin-right: 1.8em;
    background-color: #fff;
}

.bar {
    display: none;
}

@media (min-width: 64rem) and (max-width: 68rem) {
    body {
        overflow-x: hidden;
    }

    .logo {
        margin: 1.3em;
    }

    header nav {
        display: flex;
        justify-content: right;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: 94vh;
        top: 6vh;
        background-color: rgba(136, 48, 256, 0.6);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 30%;
        -webkit-transform: translateX(100%);
           -moz-transform: translateX(100%);
                transform: translateX(100%);
        -webkit-transition: transform 0.5s ease-in;
            -moz-transform: transform 0.5s ease-in;
                transition: transform 0.5s ease-in;
    }

    .nav-links li {
        opacity: 0;
    }

    .bar {
        display: block;
    }
}

header .nav-active {
    -webkit-transform: translateX(0%);
       -moz-transform: translateX(0%);
            transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        -webkit-transform: translateX(3.11rem);
           -moz-transform: translateX(3.11rem);
                transform: translateX(3.11rem);
    }

    to{
        opacity: 1;
        -webkit-transform: translateX(0rem);
           -moz-transform: translateX(0rem);
                transform: translateX(0rem);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-.3888888rem,.4444444rem);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-.3888888rem,-.4444444rem);
}

/* hero-background
===========================*/

.home-hero {
    background-color: #0c5a5470;
    background-image: url(../img/hero-bg.jpg);
    background-size: cover;
    background-position: center;
    padding: 10em 0;
    color: #fff;
}

@media (min-width: 60rem) {
    .home-hero {
        height: 100vh;
        padding-top: 35vh;
    }
}

/* home-about
=============================*/

.home-about-textbox {
    background-color: #232323;
    padding: 4rem;
    width: 101vw;
    margin-left: -.9%;
    outline: 2px solid #00ff6c;
    outline-offset: -2.5em;
    color: #fff;
    position: relative;
}

.home-about-textbox h1 {
    color: #00ff6c;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: .9em;
    background: #232323;
    padding: 0 .6em;
}

.about {
    font-size: 2rem;
}

.home-about {
    position: relative;
    background-image: url(../img/who-i-am.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-about-textbox > p {
    text-align: left;
    padding: 1em;
    padding-bottom: 0;
}

@media screen and (min-width: 60rem) and (max-width: 65rem) {
   
    .home-about {
        width: 69%;
        margin: 2em;
        margin-left: 18em;
        padding-bottom: 6m;
    }

    .home-about-textbox {
        width: 53%;
        padding: 3em;
        top: -5.3em;
        left: -13em;
    }

}

@media screen and (min-width: 65.1rem) and (max-width: 100rem) {
    .home-about {
        width: 80%;
        margin: 2em;
        margin-left: 16em;
        padding-bottom: 18em;
    }

    .home-about-textbox {
        width: 42%;
        padding: 3em;
        top: -5.3em;
        left: -9em;
    }
}

#hobbies {
    position: absolute;
    background-color: rgba(0,0,0,0.9);
    width: 48%;
    margin: .5em;
    padding: .8em;
    bottom: 0;
    right: 0;
    color: #00ff6c;
}

@media screen and (min-width: 20rem) and (max-width: 58rem) {
    #hobbies {
        display: none;
    }
}

/* Portfolio
=======================*/

.project {
    font-size: 1.9em;
    margin-left: 1.6em;
    margin-bottom: .9em;
    padding: .2em;
    background-color: #00ff6c;
    width: 30%;
}

#my-project {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    grid-template-rows: repeat(5,1fr);
}

.port-item {
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

.port-item01 {
    position: relative;
    grid-column: 1/3;
    grid-row: 1/3;
    margin: 0;
    z-index: 100;
}

.port-item02 {
    position: relative;
    grid-column: 2/4;
    grid-row: 2/4;
    margin: 0;
    z-index: 80;
}

.port-item03 {
    position: relative;
    grid-column: 3/5;
    grid-row: 3/5;
    margin: 0;
    z-index: 60;
}

.port-item04 {
    position: relative;
    grid-column: 4/6;
    grid-row: 4/6;
    margin: 0;
    z-index: 30;
}

.from-left {
    -webkit-transform: translateX(-100%);
       -moz-transform: translateX(-100%);
            transform: translateX(-100%);
}

.from-right {
    -webkit-transform: translateX(100%);
       -moz-transform: translateX(100%);
            transform: translateX(100%);
}

.from-left,
.from-right {
    -webkit-transition: opacity 250ms ease-in, transform 500ms ease-in;
       -moz-transition: opacity 250ms ease-in, transform 500ms ease-in;
            transition: opacity 250ms ease-in, transform 500ms ease-in;
    opacity: 0;
}

.from-left.appear,
.from-right.appear {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
}

.port-desc {
    position: absolute;
    z-index: 100;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    background: rgba(0, 0, 0, .6);
    padding-bottom: 1em;
}

.port-desc p {
    margin: 1em;
}

@media screen and (max-width: 50rem) {
    .project {
        font-size: 1.6em;
        margin: 0 auto;
        margin-top: .5em;
        margin-bottom: .5em;
        padding: .2em;
        background-color: #00ff6c;
        width: 80%;
        justify-self: center;
    }
    
    .port-item {
        justify-items: center;
        margin: 0 auto;
        width: 100%;
        max-width: fit-content;
    }

    #my-project {
        display: block;
    }
}

@media screen and (min-width: 50.3rem) and (max-width: 100rem) {
    .port-item {
        overflow: hidden;
    }

    .port-desc {
        transform: translateY(99.6%);
    }

    .port-item:hover .port-desc {
        transform: translateY(0%);
    }
}

/* cta
=====================*/
.cta {
    background: url(../img/cta-bg.jpg);
    width: 100%;
    padding: 5em 0;
}

/*footer
===================*/

footer {
    width: 100%;
    background-color: #232323;
    color: #fff;
    font-size: 1em;
}

footer p {
    background-color: #00ff6c;
    color: #232323;
    font-size: 1em;
    font-weight: 600;
    padding: 1em;
}

footer nav a {
    color: #00ff6c;
    text-decoration: none;
    position: relative;
}

footer nav a:hover,
footer nav a:focus {
    font-weight: 600;
    border: 2px solid #00ff6c;
    color: #232323;
    background-color: #00ff6c;
    padding: .3em;
}

#link {
    font-size: 1.36rem;
    margin-left: .3rem;
    padding-top: 2rem;
}

@media (max-width: 46rem) {
    #link {
        margin-left: 0;
    }
}

@media screen and (min-width: 20rem) and (max-width: 42rem) {
    footer nav li {
        display: flex;
        flex-direction: column;
        align-self: center;
        max-width: max-content;
        padding: .5em;
    }
}

@media screen and (min-width: 42.11rem) and (max-width: 64.99rem) {
    footer nav li {
        display: inline-block;
        padding: 1.3em;
        margin-left: .5em;
    }
}

@media screen and (min-width: 65rem) and (max-width: 100rem) {
    footer nav li {
        display: inline-block;
        padding: 1.5em;
        padding-top: 0;
        margin-left: 5em;
    }
}