@import url("https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap");

/*variables*/
:root {
	/* primary color*/
	--clr-primary-teal: rgba(69, 162, 158, 1);
	--clr-primary-orange: rgb(225, 165, 0, 1);
	--clr-primary-font: #f5fcfb;

	/* primary/lighter */
	--clr-lighter-teal: rgba(102, 252, 241, 1);
	--clr-lighter-orange: rgb(204, 192, 159);
	/*greys */
	--clr-grey-1: #1d1f27;
	--clr-grey-2: #1f2833;
	--clr-grey-3: #c5c6c7;
	--clr-white: #fff;
	--clr-black: #222;
	/*shadows*/
	--light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	--dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	--ff-primary: "Roboto", sans-serif;
	--ff-secondary: "Open Sans", sans-serif;
	--transition: all 0.3s linear;
	--spacing: 0.1rem;
	--radius: 1.2rem;
	--max-width: 1170px;
	--img-width: 628px;
}

/*global styles*/

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--ff-secondary);
	background: var(--clr-grey-2);
	line-height: 1.5;
	font-size: 0.875rem;
}

img:not(#logo) {
	max-width: 100%;
	height: auto;
}
ul {
	list-style-type: none;
}
a {
	text-decoration: none;
}
h1,
h2,
h3,
h4 {
	letter-spacing: var(--spacing);
	text-transform: capitalize;
	line-height: 1.25;
	margin-bottom: 0.75rem;
	font-family: var(--ff-primary);
	color: var(--clr-lighter-teal);
}
h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 1.8rem;
}
h3 {
	font-size: 1.2rem;
	color: var(--clr-lighter-orange);
}
h4 {
	font-size: 0.9rem;
}
p {
	color: var(--clr-lighter-orange);
}

span i {
	color: var(--clr-lighter-orange);
	padding: 10px;
}

i:hover {
	color: var(--clr-lighter-teal);
	transform: scale(1.2);
	-webkit-transform: scale(1.2);
	-moz-transform: scale(1.2);
	-ms-transform: scale(1.2);
	-o-transform: scale(1.2);
}
a:visited {
	color: var(--clr-lighter-teal);
}

i:visited {
	color: var(--clr-lighter-teal);
}

.hide {
	display: none;
}

footer p {
	text-align: center;
	text-transform: capitalize;
	font-weight: bold;
	letter-spacing: var(--spacing);
}

/*global styles end here*/

.arrow-down a {
	position: absolute;
	z-index: 10;
	top: 90%;
	right: 50%;
	transform: translate(-50%, 50%);
	font-size: 3em;
	color: var(--clr-lighter-orange);
	animation: jump 2s ease-in-out infinite alternate;
	-webkit-animation: jump 2s ease-in-out infinite alternate;
}

/*NAV*/
#logo p {
	letter-spacing: var(--spacing);
	color: var(--clr-lighter-teal);
	font: var(--ff-primary);
	font-size: 0.8rem;
	margin-left: 2rem;
	margin-top: 1.8rem;
}
.sidebar-toggle {
	position: fixed;
	z-index: 100;
	top: 2rem;
	right: 3rem;
	font-size: 1.8rem;
	background: transparent;
	border-color: transparent;
	color: var(--clr-lighter-teal);
	transition: var(--transition);
	cursor: pointer;
	animation: bounce 2s ease-in-out infinite;
	-webkit-animation: bounce 2s ease-in-out infinite;
}
.sidebar-toggle i:hover {
	color: var(--clr-primary-teal);
}

.sidebar {
	position: fixed;
	z-index: 101;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	background: var(--clr-grey-1);
	display: grid;
	grid-template-rows: auto 1fr auto;
	row-gap: 1rem;
	transition: var(--transition);
	transform: translate(100%);
	/*pushestotheleftsidebar100%itswidth*/
	-webkit-transform: translate(100%);
	-moz-transform: translate(100%);
	-ms-transform: translate(100%);
	-o-transform: translate(100%);
}

.show-sidebar {
	transform: translate(
		0
	); /*transform goes to 0, it shows on screen*/
}

.sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
}
.close-btn {
	margin-left: auto;
	font-size: 1.75rem;
	background: transparent;
	border-color: transparent;
	color: var(--clr-lighter-orange);
	transition: var(--transition);
	cursor: pointer;
}
.close-btn:hover {
	color: var(--clr-lighter-teal);
	transform: rotate(360deg);
	-webkit-transform: rotate(360deg);
	-moz-transform: rotate(360deg);
	-ms-transform: rotate(360deg);
	-o-transform: rotate(360deg);
}

.links a,
.links li {
	display: block;
	text-decoration: none;
	font-weight: bolder;
	text-align: center;
	padding: 1rem 1.5rem;
	font-size: 1.2rem;
	text-transform: uppercase;
	color: var(--clr-lighter-orange);
	transition: var(--transition);
}
.links a:hover {
	color: var(--clr-lighter-teal);
	transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-ms-transform: scale(1.1);
	-o-transform: scale(1.1);
}

.links li:last-child a {
	display: inline-block; /*center on parent to align*/
	padding: 5px;
	font-size: 2rem;
}

.links {
	text-align: center;
}

.social-icons {
	justify-self: center;
	display: flex;
	padding-bottom: 2rem;
}
.social-icons li:first-child {
	text-transform: uppercase;
	font-size: 1rem;
	margin: 0.5rem;
	color: var(--clr-lighter-orange);
	transition: var(--transition);
}

.social-icons li a {
	font-size: 1.6rem;
	margin: 0 0.5rem;
	color: var(--clr-lighter-orange);
	transition: var(--transition);
}
.social-icons i:hover {
	color: var(--clr-lighter-teal);
	transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-ms-transform: scale(1.1);
	-o-transform: scale(1.1);
}

.greeting {
	color: var(--clr-primary-orange);
}

.name {
	color: var(--clr-primary-teal);
}

.title {
	background: linear-gradient(
		to left,
		var(--clr-lighter-teal) 10%,
		var(--clr-primary-teal) 20%,
		var(--clr-primary-orange) 40%,
		var(--clr-primary-teal) 60%,
		var(--clr-lighter-orange) 80%
	);
	background-size: 200% auto;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent; /*used only with prefix, stronger thatn color specifier*/
	animation: glow 1s linear infinite;
	-webkit-animation: glow 1.4s linear infinite;
}

/*landing page main sections*/
main {
	min-height: 100vh;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.section-right {
	margin-left: 100px;
	/*POLKABCKGR*/
	background-image: radial-gradient(
		rgba(69, 162, 158, 1) 1px,
		#1f2833 1px
	);
	background-size: 10px 10px;
	padding: 80px;
	border-left: 5px solid var(--clr-primary-teal);
}

/*PROFILE IMG*/
.section-right img {
	border-radius: 30%;
	-webkit-border-radius: 30%;
	-moz-border-radius: 30%;
	-ms-border-radius: 30%;
	-o-border-radius: 30%;
}
/*landing page main sections ends here*/

/*button CV*/
.btn-contain {
	display: flex;
	justify-content: flex-end;
	margin: 20px 0 0 100px;
	min-height: 100px;
}

.btn-gradient {
	font-family: sans-serif;
	font-weight: bold;
	text-align: center;
	color: var(--clr-lighter-orange);
	text-transform: uppercase;
	text-decoration: none;
	outline: none;
	cursor: pointer;
	position: relative;
	display: inline-block;
	width: 100px;
	height: 50px;
	line-height: 60px;
	background-color: transparent;
}

.btn-gradient svg {
	position: absolute;
	top: 0;
	left: 0;
}
.btn-gradient svg rect {
	stroke-width: 4;
	stroke-dasharray: 196, 543;
	stroke-dashoffset: 386;
	-webkit-transition: all 600ms ease;
	transition: all 600ms ease;
}

.btn-gradient a span {
	background: -moz-linear-gradient(
		left,
		var(--clr-primary-teal) 0%,
		var(--clr-primary-orange) 100%
	);
	background: -webkit-linear-gradient(
		left,
		var(--clr-primary-teal) 0%,
		var(--clr-primary-orange) 100%
	);
	background: linear-gradient(
		to right,
		var(--clr-primary-teal) 0%,
		var(--clr-primary-orange) 100%
	);
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.btn-gradient:hover svg rect {
	stroke-width: 4;
	stroke-dasharray: 303, 0;
	stroke-dashoffset: 0;
}
/*button CV ends here*/

/*chart starts here*/
#about {
	display: grid;
}
#skills {
	position: relative;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

#apps p {
	padding: 0.6rem;
	color: var(--clr-primary-teal);
}

#scale {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -10px;
}

#scale p {
	position: absolute;
	bottom: 0;
	left: -0.3%;
	color: var(--clr-primary-teal);
}

#scale p.one {
	left: 24%;
}
#scale p.two {
	left: 49%;
}
#scale p.three {
	left: 74%;
}
#scale p.four {
	left: 98%;
}

.grid {
	position: relative;
	width: 65%;
}

.bar {
	height: 15px;
	margin: 25px 0;
	position: relative;
	width: 100%;
}

.bar .inner {
	background-color: var(--clr-primary-teal);
	position: absolute;
	bottom: 0;
	left: 0;
	top: 0;
}

.bar.pct-98 .inner {
	right: 1%;
	animation: grow-98 5s linear;
	-webkit-animation: grow-98 5s linear;
}

.bar.pct-90 .inner {
	right: 15%;
	animation: grow-90 5s linear;
	-webkit-animation: grow-90 4s linear;
}

.bar.pct-75 .inner {
	right: 25%;
	animation: grow-75 5s linear;
	-webkit-animation: grow-75 4s linear;
}
.bar.pct-65 .inner {
	right: 35%;
	animation: grow-75 5s linear;
	-webkit-animation: grow-75 4s linear;
}

.bar.pct-50 .inner {
	right: 50%;
	animation: grow-50 5s linear;
	-webkit-animation: grow-50 4s linear;
}
/**chart ends here**/

/*projects section starts here*/
#projects {
	display: grid;
	margin-top: 10%;
}

#zero,
#one,
#two,
#three,
#four {
	max-width: 1240px;
	display: grid;
	grid-template-columns: 65% 35%;
	grid-template-rows: auto;
	grid-gap: 1rem;
	margin: 5% auto;
}

#projects img {
	width: var(--img-width);
	height: auto;
	padding: 20px;
	margin: auto;
	border-radius: var(--radius);
	-webkit-border-radius: var(--radius);
	-moz-border-radius: var(--radius);
	-ms-border-radius: var(--radius);
	-o-border-radius: var(--radius);
}

.gs_reveal span a {
	color: var(--clr-lighter-orange);
}
#projects a:visited {
	color: var(--clr-lighter-teal);
}

#four img {
	max-width: 828px;
}
#zero img {
	width: 100%;
}
.projects {
	margin-left: 13%;
	margin-right: 5rem;
	background-image: radial-gradient(
		rgba(69, 162, 158, 1) 1px,
		#1f2833 1px
	);
	background-size: 11px 11px;
	padding: 12px;
	border-right: 5px solid var(--clr-primary-teal);
	letter-spacing: var(--spacing);
}
.gs_reveal h2,
.gs_reveal p {
	margin: 10% 5rem 0 0;
}
/*projects section ends here*/

/*footer style*/
footer {
	background-image: radial-gradient(
		rgba(69, 162, 158, 1) 1px,
		#1f2833 1px
	);
	background-size: 12px 12px;
	padding: 30px;
}
/*ANIMATIONS*/

@keyframes glow {
	to {
		background-position: 200% center;
	}
}

/*jump animation*/
@keyframes jump {
	from {
		transform: translateY(0px);
		-webkit-transform: translateY(0px);
		-moz-transform: translateY(0px);
		-ms-transform: translateY(0px);
		-o-transform: translateY(0px);
	}
	to {
		transform: translateY(20px);
		-webkit-transform: translateY(20px);
		-moz-transform: translateY(20px);
		-ms-transform: translateY(20px);
		-o-transform: translateY(20px);
	}
}

/*bounce animation*/
@keyframes bounce {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.2);
		-webkit-transform: scale(1.2);
		-moz-transform: scale(1.2);
		-ms-transform: scale(1.2);
		-o-transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}
/*chart animations*/
@keyframes grow-98 {
	from {
		right: 100%;
	}
	to {
		right: 3%;
	}
}

@-webkit-keyframes grow-98 {
	from {
		right: 100%;
	}
	to {
		right: 3%;
	}
}

@keyframes grow-90 {
	from {
		right: 100%;
	}
	to {
		right: 10%;
	}
}

@-webkit-keyframes grow-90 {
	from {
		right: 100%;
	}
	to {
		right: 10%;
	}
}

@keyframes grow-75 {
	from {
		right: 100%;
	}
	to {
		right: 25%;
	}
}

@-webkit-keyframes grow-75 {
	from {
		right: 100%;
	}
	to {
		right: 20%;
	}
}

@keyframes grow-50 {
	from {
		right: 100%;
	}
	to {
		right: 50%;
	}
}

@-webkit-keyframes grow-50 {
	from {
		right: 100%;
	}
	to {
		right: 50%;
	}
}

/* MOBILE*/
@media (min-width: 320px) and (max-width: 740px) {
	.sidebar {
		width: 100%;
	}
	#logo p {
		margin-left: auto;
		margin-top: 2.5rem;
	}
	.sidebar-toggle i {
		position: fixed;
		z-index: 1000;
		margin-left: auto;
	}

	h1 {
		font-size: 1.5rem;
	}

	h2 {
		font-size: 1rem;
	}
	h3 {
		font-size: 0.8rem;
		color: var(--clr-lighter-orange);
	}
	h4 {
		font-size: 0.9rem;
	}

	main {
		margin: 20% 10px;
	}

	.arrow-down {
		display: none;
	}
	main .section-right {
		margin: 0;
		border-left: none;
		border-right: 5px solid var(--clr-primary-teal);
	}

	/*button CV*/
	.btn-contain svg {
		margin-left: -280px;
	}
	.btn-gradient span {
		margin-left: -500px;
	}

	#projects {
		display: grid;
		margin-top: 2%;
	}
	#zero,
	#one,
	#two,
	#three,
	#four {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		grid-gap: 1rem;
		margin: auto;
	}

	#projects img {
		width: 100%;
		height: auto;
		margin-top: 4rem;
	}

	.projects {
		margin: 0;
		border-right: none;
		border-left: 5px solid var(--clr-primary-teal);
	}
	.gs_reveal h2,
	.gs_reveal p {
		margin: 0 auto 0 2%;
	}
}
