/* 
blue #006eff 

blue #053196
purple #6c0295
green #00b400
red #e10000
yellow #d3de00
orange #e19600
*/

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

html, body {
	font-family: Ariel, Helvetica, sans-serif;
	margin: 0;
	padding: 0;
}

body {
	background-color: #444;
	background-image: url("../img/natedev-mobile-bkgd.jpg");
	background-size: cover;
	background-attachment: fixed;
	background-position: 80% 50%;
	font-size: 13px;
}

@media (min-width: 400px) {
	body {
		font-size: 14px;
	}
}

@media (min-width: 769px) {
	body {
		background-image: url("../img/natedev-bkgd.jpg");
		font-size: 15px;
	}
}

@media (min-width: 1000px) {
	body {
		font-size: 16px;
	}
}

a {
	transition: color .2s linear;
	text-decoration: none;
}

a, a:visited {
	color: #1c63c1;
}

a:focus, a:active, a:hover {
	color: #1c63c1;
}
/* 006eff */
a:hover {
	color: #1c63c1;
	text-decoration: underline;
}

main {
	background: rgba(255,255,255,.7);
	min-height: 100vh;
	position: relative;
	padding-bottom: 68px;
}

@media (min-width: 400px) {
	main {
		padding-bottom: 72px;
	}
}
@media (min-width: 769px) {
	main {
		padding-bottom: 78px;
	}
}
@media (min-width: 1000px) {
	main {
		padding-bottom: 82px;
	}
}


@media (min-width: 769px) {
	main {
		width: 50%;
		box-shadow: 0 0 10px 10px rgba(0,0,0,.5);
	}
}

section {
	padding: 2em 1.5em;
	border-top: 1px dotted #000;
}

section:first-of-type {
	border-top: none;
}

@media (min-width: 769px) {
	section {
		padding: 3em 2em;
	}
}

img {
	max-width: 100%;
}

figure {
	margin: 0;
}

footer {
	text-align: center;
    padding: 1em;
    font-size: 0.8em;
    opacity: 1;
    border-top: 1px solid #a7a7a7;
    color: #333;
    font-weight: lighter;
}

/* ==== Nav ==== */

nav {
	position: fixed;
	z-index: 1;
	left: 0;
	right: 0%;
	bottom: 0;
	display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-column-gap: 1em;
    grid-row-gap: 0;
	padding: .5em;
	box-shadow: 0 10px 30px 0px rgba(0,0,0,0.5);
	background-image: url(../img/natedev-mobile-bkgd.jpg);
}

@media (min-width: 769px) {
	nav {
		right: 50%;
		background-image: url(../img/natedev-bkgd.jpg);
    	background-attachment: fixed;
   		background-size: cover;
    	background-position: 80% 50%;
	}
}

.bkgd-overlay {
	z-index: -1;
	position: absolute;
	background-color: #fff;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: .7;
}

nav figure {
	transition: color .2s linear;
	text-align: center;
	padding: .5em;
	color: black;
	cursor: pointer;
}

nav figure:hover {
	color: #1c63c1;
}

nav .is-current figure {
	color: #1c63c1;
}

nav i {
	font-size: 1.7em;
    padding-bottom: 0.2em;
}

nav span {
	font-size: .8em;
}

/* ==== Animations ==== */

@keyframes fadeInDown {
	0% {opacity: 0; bottom: 50px;}
	100% {opacity: 1; bottom: 0px;}
}

@keyframes reflectionLine {
	0% {-webkit-mask-position-x: 100%;}
	100% {-webkit-mask-position-x: 0%;}
}

.fadeInDown {
	position: relative;
	animation-name: fadeInDown;
	animation-duration: 1s;
	animation-fill-mode: both;
	animation-timing-function: ease;
	animation-iteration-count: 1;
}

/* ==== Layout ==== */

.section-header {
	text-align: center;
	padding-bottom: 3em;
	opacity: 0;
}

.section-header i {
	font-size: 3em;
}

.section-header h3 {
	font-weight: lighter;
    text-transform: uppercase;
    margin: 0.5em 0 0;
}

/* ==== Info ==== */

#info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - 68px);
}

@media (min-width: 400px) {
	#info {
		min-height: calc(100vh - 72px)
	}
}
@media (min-width: 769px) {
	#info {
		min-height: calc(100vh - 78px)
	}
}
@media (min-width: 1000px) {
	#info {
		min-height: calc(100vh - 82px);
	}
}

@media (min-width: 400px) and (max-width: 768px) {
	.logo-wrapper {
		margin-right: -14px;
	    border-top: 1px solid;
	    border-bottom: 1px solid;
	    border-left: 1px solid;
	    border-top-left-radius: 10px;
	    border-bottom-left-radius: 10px;
	    padding: 0.6em 0.6em 0.3em;
	    margin-top: -4px;
	}
}

@media (min-width: 769px) {
	.logo-wrapper {
		text-align: center;
	}
}

.logo {
	width: 200px;
	margin-right: 15px;
	transition: all .2s linear;
	-webkit-mask: url(../img/svg/NR-logo-reflection-line.svg);
    -webkit-mask-position-y: center;
    -webkit-mask-position-x: 100%;
    animation-name: reflectionLine;
	animation-duration: 6s;
	animation-fill-mode: both;
	animation-timing-function: ease-out;
	animation-iteration-count: infinite;
}

@media (max-width: 399px) {
	.logo {
		width: 140px;
		margin-right: initial;
	}
}

@media (min-width: 769px) {
	.logo {
		margin-right: initial;
	}
}

@media (max-width: 399px) {
	.flexbox-xs {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	.flexbox-xs {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

@media (min-width: 769px) {
	.profile-wrapper {
		display: none;
	}
}

.profile {
	border-radius: 100%;
    max-width: 120px;
    border: 4px;
    border-style: double;
    border-color: black;
}

@media (max-width: 399px) {
	.profile {
		max-width: 150px;
		margin: 2em;
	}
}

.name-wrapper {
	padding: 0 0 2em;
}

@media (min-width: 400px) {
	.name-wrapper {
		padding: 1em 0 3em;
	}
}

@media (min-width: 769px) {
	.name-wrapper {
		padding: 4em 0;
	}
}

h1, h2 {
	text-align: center;
	font-weight: lighter;
	margin: 0;
}

.name-wrapper h2 {
	font-size: 1em;
}

.info-card {
	border: 2px dotted black;
	padding: 1em;
	background: rgba(255,255,255,.75);
}

.info-card figure {
	margin: 1em;
	display: flex;
}

.info-card i {
	width: 20px;
	text-align: center;
}

.info-card figure span:first-of-type {
	margin-left: .5em;
}

.info-card .spacer {
	flex: 1 1 auto;
	border-bottom: 1px dashed black;
	margin: 4px .5em;
}


/* ==== Skills ==== */

.tagline {
	text-align: center;
    font-size: 1.4em;
    font-weight: lighter;
    font-style: oblique;
}

.about-me {
	text-align: justify;
	font-size: .9em;
	line-height: 1.5em;
	font-weight: lighter;
}


/* ==== Skills ==== */

.skills {
	display: grid;
  	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  	grid-column-gap: 1.5em;
    grid-row-gap: 1.5em;
}

.skill_img {
    background: #fff;
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    box-shadow: 2px 2px 2px 0px #0000005e;
    overflow: hidden;
    padding-bottom: 100%;
    width: 100%;
}

.skill_img img {
    padding: 15%;
    min-height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.skill_label-wrapper {
	position: absolute;
	width: 100%;
	text-align: center;
	color: #fff;
	bottom: 0;
	height: 1.6em;
}

.skill_label {
	transition: all .1s linear;
	position: absolute;
	background: #4d5975;
	left: 0;
	right: 0;
    top: 100%;
    font-size: .8em;
    line-height: 2.1em;
}

.skill_img:hover .skill_label {
	top: 0%;
}

.skill-bar {
    background: white;
    height: 6px;
    width: 100%;
    margin: .6em 0 0;
    box-shadow: 2px 2px 2px 0 #0000005e;
}

.skill-progress {
	background-color: #1c63c1;
	transition: width 1s ease;
	width: 0%;
	height: 100%;
}

/* Employment */

.gig {
	position: relative;
	padding-left: 1.5em;
	padding-bottom: 2em;
}

.gig:last-child {
	padding-bottom: initial;
}

.gig::before {
	content: "";
	position: absolute;
	background: #000;
	width: 4px;
	left: -2px;
	top: 15px;
	bottom: 0;
}

.gig::after {
	content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: #000;
    border: 4px solid #000;
    top: -2px;
    left: -10px;
    border-radius: 100%;
}

.gig.gig--current::after {
	background: transparent;
}

.gig:last-child::before {
	content: none;
}

.gig_title {
	margin: 0;
	font-weight: normal;
}

.gig_subtitle {
	margin-top: 0.3em;
    font-weight: normal;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.gig_duties {
	margin: 0;
	font-weight: lighter;
    font-size: smaller;
    text-align: justify;
    padding: 0 0 0 20px;
    display: grid;
    grid-row-gap: 0.5em;
    line-height: 1.4em;
}

/* Connect */

.connect {
	text-align: center;
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}

.button {
	transition: all .05s linear;
	background-color: #1b64c100;
    color: #2867b2;
    border: 1px dashed #1b64c1;
    padding: 1em;
    text-decoration: none !important;

    -webkit-mask: url(../img/svg/NR-logo-reflection-line.svg);
    -webkit-mask-position-y: center;
    -webkit-mask-position-x: 100%;
    animation-name: reflectionLine;
	animation-duration: 5s;
	animation-fill-mode: both;
	animation-timing-function: ease-out;
	animation-iteration-count: infinite;
	animation-delay: 3s;

	display: inline-block;
	white-space: nowrap;
	margin: .5rem;
	flex: 1 1 auto;
}

.button:hover {
	background-color: #1b64c11a;
}

.button span {
	vertical-align: sub;
}