@import url('https://fonts.googleapis.com/css?family=Fira+Sans:200,400,700&display=swap');

:root {
	--primary-color: #67f0ed;
	--secondary-color: #3d9491;
	--max-width: 1200px;
}

html, body, ul {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Fira Sans';
	height: 100vh;
	color: white;
	background: #222222;
	text-align: center;
}

/* Hamburger -------------------------------------------- */
.hamburger {
	display: inline-block;
	cursor: pointer;
	transition-property: opacity, filter;
	transition-duration: 0.15s;
	transition-timing-function: linear;
	font: inherit;
	background-color: transparent;
	border: 0;
	overflow: visible;
	position: relative;
	z-index: 11;
	margin: .7em;
}

.hamburger:focus {
	outline: none;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
	background-color: var(--primary-color); 
}

.hamburger-box {
	width: 40px;
	height: 24px;
	display: inline-block;
	position: relative; 
}

.hamburger-inner {
	display: block;
	top: 50%;
	margin-top: -2px; 
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
	width: 40px;
	height: 2px;
	background-color: var(--primary-color);
	position: absolute;
	transition-property: transform, width;
	transition-duration: 0.15s;
	transition-timing-function: ease; }
	
.hamburger-inner::before, .hamburger-inner::after {
	content: "";
	display: block; 
}

.hamburger-inner::before {
	top: -10px; 
}

.hamburger-inner::after {
	bottom: -10px; 
}

.hamburger--arrow-r.is-active {
	position: fixed;
	top: 0em;
	right: 0em;
	transition: all .3s;

}

.hamburger--arrow-r.is-active .hamburger-inner::before {
	transform: translate3d(25px, 5px, 0) rotate(45deg) scale(0.7, 1);
	width: 20px;
	transition-delay: .3s;
}

.hamburger--arrow-r.is-active .hamburger-inner::after {
	transform: translate3d(25px, -5px, 0) rotate(-45deg) scale(0.7, 1);
	width: 20px;
	transition-delay: .3s;
}

/* General ----------------------------------------------- */
h2 {
	font-weight: 400;
	font-size: 1.8em;
	color: var(--primary-color)
}

a {
	text-decoration: none;
	color: unset;
}

ul {
	list-style: none;
}

.padding {
	padding: 0 .5em;
	max-width: var(--max-width);
	margin: 0 auto;
}

/* Header ----------------------------------------------- */
header {
	display: flex;
	justify-content: space-between;
	overflow: hidden;
	max-width: var(--max-width);
	margin: 0 auto;
}

a.text-logo {
	color: var(--primary-color);
	text-decoration: none;
	margin: 1em .5em 0;
}

nav {
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	background: rgb(39, 39, 39);
	width: 66%;
	visibility: hidden;
	z-index: 10;
	transform: translateX(100%);
	transition: transform .5s, visibility 0s .3s;
}

ul.menu {
	padding: 0;
	margin-top: 4em;
	text-align: left;
}

ul.menu li a {
	color: var(--primary-color);
	text-decoration: none;
	display: block;
	padding: 1.2em 1em;
}

ul.menu li a:hover {
	background: #135250;
}

.open-nav {
	visibility: unset;
	transform: translateX(0);
	transition: transform .5s;
}

/* Hero ------------------------------------------------------ */
.hero-logo {
	width: 80%;
	margin-top: 4em;
	filter: drop-shadow(0px 0px 2px rgb(0,0,0,1));
}

.hero-profile {
	position: relative;
	display: block;
	top: -1.5em;
	bottom: -50%;
	left: 50%;
	width: 50%;
	max-width: 250px;
	transform: translateX(-50%);
	border-radius: 50%;
	z-index: -1;
}

.hero h2 {
	margin: 3em 0;
	color: var(--primary-color);
}

/* Contact --------------------------------------------------- */
.contact {
	background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 50%);
	background-position: 0 -300px;
	background-size: 100% 200%;
	padding: 2em 0 3em;
	clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.contact h2{
	color: var(--secondary-color);
}

.contact-list {
	padding-bottom: 2em;
}

.contact-list li {
	padding: .5em 0;
	width: auto;
	opacity: 1;
}

.contact-list li span {
	font-weight: 700;
}

.contact-list li a {
	color: white;
}

/* Skills ----------------------------------------------------------- */
.skill-list {
	display: flex;
}

.skill-list .left, .skill-list .right {
	width: 50%;
}

.skill-list .left {
	text-align: right;
	position: relative;
}

.skill-list .left:after{
	content: "";
	position: absolute;
	top: 8%;
    height: 174px;
	right: -2em;
	width: 4px;
	background: var(--primary-color);
}

.skill-list .right {
	padding-left: 4em;
	text-align: left;
}

.skill-list ul li {
	padding: .5em 0;
}

.skills .skill-other {
	text-align: justify;
	line-height: 1.4em;
}

.skills .skill-other,
.skills .skill-list {
	padding-top: 2rem;
}

.download {
	padding: 1.5em 2em;
	font-size: 1.2em;
	margin: 2em 0 3em;
	display: inline-block;
	font-weight: bold;
	background: linear-gradient(135deg, #58b9b8 0%, var(--secondary-color) 100%);
	background-size: 100% 200%;
	cursor: pointer;
	transition: all .1s;
}

.download:hover {
	background-position: 35px 50px;
	transition: all .1s;
}

.download span {
	font-weight: 200;
	font-size: .6em;
	margin-left: 3px;
}

/* My works ----------------------------------------------------- */
#works > h2 {
	margin-bottom: 1.5em;
}

.card-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	column-gap: 3em;
}

.card {
	max-width: 390px;
	margin: 0 auto;
	text-align: left;
	margin-bottom: 2.5em;
	transition: all .2s linear;
}

.card:hover {
	box-shadow: 0px 0px 21px 10px #4dadac78;
	transform: translateY(-10px);
	transition: all .1s linear;
}

.card > img {
	width: 100%;
	height: 200px;
	vertical-align: bottom;
	object-fit: cover;
	object-position: top;
}

.card-body {
	background: linear-gradient(135deg, #4dadac 0%, var(--secondary-color) 100%);
	padding: 1em;
	height: 290px;
}

.card h3 {
	font-weight: normal;
	margin: 0;
	font-size: 1.5em;
}

.card-button {
	display: flex;
	align-items: center;
}

.card-button:last-of-type {
	margin-top: 1em;
}

.card-button img {
	width: 1.2em;
	margin-right: .5em;
}

/* About me ----------------------------------------------------- */
.about h2 {
	margin: 2em 0 1em;
}

.about p {
	text-align: justify;
	line-height: 1.4em;
}

.advocate a {
	font-family: 'Fira Sans', sans-serif;
	font-size: 1.9em;
	vertical-align: top;
}

.advocate {
	display: flex;
}

.advocate img {
	width: 20%;
	max-width: 120px;
	margin-left: .1em;
}

.hobbies {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	margin: 2em 0;
	align-items: center;
	justify-items: center;
}

.hobbies img {
	margin: 1em;
	transition: all .2s;
	width: 53px;
	aspect-ratio: auto;
}

.hobbies img:hover {
	transform: translateY(-.5em);
	transition: all .2s;
}

p.thanks {
	text-align: center;
	font-size: 2em;
	padding: 0 1em;
	margin-bottom: 3em;
}

p.thanks span {
	position: relative;
}

p.thanks span:before {
	position: absolute;
	content: "";
	background-color: var(--secondary-color);
	top: .8em;
	left: -.5em;
	width: 150px;
	height: 8px;
	z-index: -1;
}

footer {
	color: #3b3b3b;
	padding-bottom: .5em;
}

/* 600 px --------------------------------------------------------- */
@media (min-width: 600px) {
	.padding {
		padding: 0 1em;
	}
}

/* 700 px --------------------------------------------------------- */
@media (min-width: 700px) {
	header {
		padding: 1em;
	}

	.padding {
		padding: 0 2em;
	}

	#menu-btn {
		display: none;
	}
	
	nav {
		visibility: unset;
		background: none;
		position: unset;
		height: auto;
		transform: none;
		width: unset;
		margin-left: auto;
	}
	
	nav .menu {
		display: flex;
		margin-top: auto;
		width: auto;
		float: right;
		margin: 0;
	}
	
	nav .menu li a {
		padding: 1em;
		transition: all .2s;
		color: var(--secondary-color);
	}

	nav .menu li a:hover {
		background: none;
		color: var(--primary-color);
		transition: all .4s;
		text-shadow: 0 0 20px rgba(255, 255, 255, 0.267), 0 0 30px rgba(92, 217, 226, 0.2), 0 0 40px rgba(79, 188, 192, 0.2);
	}

	.hero-logo {
		width: 60%;
	}

	.card-body {
		min-height: 280px;
	}
}

/* 900 px --------------------------------------------------------- */
@media (min-width: 900px) {
	.padding {
		padding: 0 3em;
	}

	.hero-flex {
		display: flex;
		align-items: center;
		padding: 0 3em;
		background: radial-gradient(circle, rgb(78, 199, 197) 0%, rgba(61,148,145,1) 40%);
		background-size: 200% 200%;
		background-position: 68% -156%;
		position: relative;
		clip-path: polygon(59% 0, 100% 6%, 100% 100%, 59% 94%, 0 100%, 0 6%);
	}

	.contact {
		background: none;
		background-position: unset;
		background-size: unset;
		clip-path: none;
	}

	.contact-list li {
		padding: 1em 0;
	}

	.hero {
		width: 60%;
	}

	.hero-logo {
		filter: drop-shadow(2px 2px 5px rgb(0,0,0,.3));
	}

	.hero h2 {
		margin: 1em 0 3em;
	}

	.contact h2 {
		display: none;
	}

	.skills {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}

	.skills h2 {
		grid-column: 1 / -1;
	}

	.skill-list {
		grid-column: 1 / 2;
		grid-row: 2 / span 2;
	}

	.download {
		grid-column: 2 / -1;
		justify-self: center;
	}

	.skill-list .left:after{
		
	}

	.about {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0 2em;
	}

	.about h2{
		grid-column: 1 / -1;
	}

	.about .first {
		grid-column: 1 / 2;
		grid-row: 2 / span 2;
	}

	.about .third {
		grid-column: 2 / -1;
		grid-row: 2 / 3;
	}

	.about .advocate {
		grid-column: 2 / -1;
		grid-row: 3 / 4;
	}

	.about .hobbies {
		grid-column: 1 / -1;
	}

	.about .download {
		grid-column: 1 / 2;
		grid-row: 6 / 7;
		align-self: center ;
	}

	.about .thanks {
		grid-column: 2 / -1;
		grid-row: 6 / 7;
	}

}
