:root {
	--color-gray-light-1: #f8f8f8;
	--color-gray-light-2: #e9e9e9;
	--color-gray-light-3: #dedede;
	--color-gray-dark-1: #545454;
	--color-gray-dark-2: #737373;
	--color-gray-dark-3: #9a9a9a;
	--color-blue-dark-1: #00387f;
	--color-tiffany: #00a6a6;
	--profile-theme: #149ddd;
	--timeline-circle-theme: #14253e;
	
	--pgbar-length: 100%;

	--MATH-PI: 3.1415px;
	--percent: 100;
}

html {
	font-size: 100%;
    font-family: 'PT Sans', sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0rem 1rem;
	min-height: 100vh;
	background-color: var(--color-gray-light-3);
    font-family: "Open Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6, .bio .name {
    font-family: "Poppins", sans-serif;
}

.wrapper {
	margin: 0 auto;
	max-width: 70rem;
	background-color: var(--color-gray-light-2);
	display: flex;
	box-shadow: 0px 0px 15px 4px #b3b3b3;
}

.intro {
	flex: 0 0 250px;
	background-color: var(--color-gray-light-1);
	box-shadow: 5px 0px 15px 0px #b3b3b3;
	z-index: 5;
}
.profile {
	position: relative;
	background-color: var(--profile-theme);
	padding: 2rem 1rem 1rem;
	text-align: center;
	user-select: none;
}

/* Waves start */
.waves {
  position: relative;
  width: 100%;
  margin-bottom: -7px;
  max-height: 150px;
  background-color: var(--profile-theme);
}

/* Animation */
.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
  animation-duration: 12s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Waves end */

.photo img {
	width: 80%;
	border-radius: 50%;
}
.bio .name {
	font-size: 24px;
    font-weight: 600;
	text-align: center;
	color: var(--color-gray-light-1);
	margin: 0;
	margin-top: 1rem;
}
.bio .profession {
	font-size: 1rem;
	text-align: center;
	color: var(--color-gray-light-1);
	margin: 0;
}

.intro-section {
    position: relative;
	padding: 0 0.9rem 0.9rem;
	color: var(--color-gray-dark-1);
}
.intro-section .title {
	font-size: 1rem;
	font-weight: bold;
	letter-spacing: 1px;
    text-transform: uppercase;
}

.intro-section .title::after {
	content: "";
	position: absolute;
	display: block;
	width: 50px;
	height: 3px;
	background: #149ddd;
	top: 1.5rem;
	left: 1rem;
}

.about .paragraph {
	/* text-align: justify; */
	font-size: 1rem;
}
.info-section {
	margin: 1rem 0;
}
.info-section span, .project-block span {
	position: relative;
	transition: all 0.3s;
}
.info-section i {
	color: var(--profile-theme);
	width: 20px;
	height: 20px;
}

.link a, .project-block a {
	text-decoration: none;
	color: inherit;
}

.link span::after, .project-block a::after {
	position: absolute;
	content: '';
	left: 50%;
	bottom: -3px;
	width: 0;
	height: 2px;
	background-color: var(--profile-theme);
	transition: width 0.3s;
	transition-timing-function: cubic-bezier(.92,.57,.33,1.02);
	transform: translate(-50%, 0);
}

.link span:hover, .project-block a:hover  {
	color: var(--profile-theme);
}
.link span:hover::after, .project-block a:hover::after {
	width: 100%;
}

/* Detail section overall setting*/
.detail {
    display: flex;
    flex-wrap: wrap;
	flex: 1 0 0;
	background-color: white;
	padding: 2rem;
}

.detail .pg-skill {
    width: 50%;
}

.detail .work, .detail .project-info {
    width: 40%;
}

.detail .edu, .detail .gallery {
    width: 60%;
}

.detail .lang {
    width: 40%;
}

.detail .interests {
    width: 60%;
}

/* .detail:hover > .detail-section:not(:hover) {
	opacity: 0.3;
} */
.detail-section {
	transition: all 0.3s;
    width: 100%
}
.detail-section:not(:last-of-type) {
	padding-bottom: 1rem;
}
.detail-title {
	display: flex;
	align-items: center;
}
.detail-section > .detail-content {
	padding: 1rem;
	padding-left: 1rem;
}

.detail-section.interests > .detail-content {
	padding: 1rem 0
}
.title-icon + span {
	font-size: 1.5rem;
	transition: all 0.3s;
}
.title-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	margin-right: 1rem;
	width: 2.5rem;
	height: 2.5rem;
	background-color: var(--profile-theme);
	border-radius: 50%;
	transition: all 0.3s;
}
.title-icon i {
	color: white;
	line-height: 1rem;
	font-size: 1.2rem;
	text-align: center;
}
.detail-section:hover .title-icon {
	transform: scale(1.1);
	margin-right: 1.5rem;
}
.detail-section:hover .title-icon + span {
	letter-spacing: 1.5px;
}

/* time line block and project block */
.timeline-block, .project-block {
	position: relative;
	padding-left: 30px;
}
.project-block {
	padding-left: 0px;
}
.timeline-block:not(:last-of-type), .project-block:not(:last-of-type) {
	margin-bottom: 0.8rem;	
}
.timeline-block h1, .project-block h1 {
	font-size: 1rem;
	margin: 5px 0;
	transition: all 0.3s;
}
.timeline-block p, .project-block p {
	font-size: 1rem;
	margin: 0 0 5px 0;
}
.timeline-block p:not(:first-of-type) {
	margin-top: 15px
}
.timeline-block time, .project-block time {
	font-size: 0.9rem;
	color: var(--color-gray-dark-2);
	font-style: italic;
}
.timeline-block::before {
	position: absolute;
	content: '';
	width: 15px;
	height: 15px;
	background-color: white;
	border: 3px solid var(--timeline-circle-theme);
	border-radius: 50%;
	left: -6px;
	top: 0px;
	z-index: 10;
}
.timeline-block::after {
	position: absolute;
	content: '';
	width: 3px;
	height: 105%;
	background-color: var(--timeline-circle-theme);
	left: 3px;
	top: 5px;
}
.timeline-block:hover h1 {
	color: var(--color-tiffany);
}
li.cert:hover {
	color: var(--profile-theme);
}
.fas.fa-file-certificate {
	color: var(--profile-theme);
}
.timeline-block:hover::before {
	animation: circle 1.2s infinite;
}

/* Programming skills section */
.pg-list, .tool-list, .favor-list {
	margin: 0px;
	padding: 0;
	list-style: none;
}
.pg-list > li {	
	margin: 0.5rem 0;
	display: inline-block;
	align-items: center;
}
.pg-list > li > span.pill {
	flex: 0 0 100px;
	padding: 5px 10px;
	background-color: var(--profile-theme);
	color: white;
	border-radius: 20px;
}
.pg-list > li.cert {
	flex: 0 0 100px;
	margin: 0.3rem 0.3rem 0.3rem 0;
	cursor: pointer;
}
.pg-list > li.cert > span {
	text-decoration: underline;
}

/* Interests Section */
.favor-list {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	align-content: center;
}
.favor-list > li {
	display: flex;
	flex: 1 0 0;
	align-items: center;
	justify-content: baseline;
	flex-direction: column;
	color: var(--profile-theme);
	padding: 0.3rem 0.3rem 1.2rem 0.3rem;
	transition: all 0.3s;
}
.favor-list > li > i {
	display: inline-flex;
	justify-content: center;
	align-items: flex-start;
	font-size: 1.5rem;
	padding-bottom: 0.3rem
}
.favor-list > li:hover {
	transform: scale(1.1);
	color: var(--color-tiffany);
}
.favor-list > li > span {
	/* letter-spacing: 1px; */
	color: #000;
	text-align: center;
}

@keyframes circle {
  0% {
    box-shadow: 0 0 0 0px rgba(51, 52, 57, 1);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(51, 52, 57, 0);
  }
}

@media (max-width: 1024px) {
	html {
		font-size: 90%;
	}
	body {
		padding: 0;
	}
	.wrapper {
		flex-direction: column;
	}
	.intro, .detail {
		flex: 0 0 100%;
		box-shadow: none;
	}
	.intro-section {
		padding: 0 2rem;
	}
	.profile::after {
		display: none;
	}
	.photo img {
		width: 140px;
	}
	.intro-section .title::after {
		left: 2rem;
	}
	.waves {
		height: 45px
	}
}

@media (max-width: 512px) {
	.detail {
		padding: 1rem
	}
	.intro-section {
		padding: 0 1rem
	}
	.intro-section .title::after {
		left: 1rem;
	}
	.tool-list {
		flex-wrap: wrap;
	}
	.tool-list > li {
		flex: 0 0 33.33%;
	}
	.favor-list > li {
		flex: 0 0 33.3333%;
	}
	.detail .work, .detail .edu, .detail .pg-skill, .detail .project-info, .detail .gallery {
		width: 100%;
	}
	.detail .project-info {
		padding-bottom: 0
	}
	.detail-section .gallery {
		padding-bottom: 1rem
	}
}

/* The Modal (background) */
.modal {
	display: block; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 20; /* Sit on top */
	padding-top: 30px;
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	visibility: hidden;
	background-color:transparent;
	transition: visibility 0.3s, background-color 0.3s;
}

.modal.show {
	visibility: visible;
    background-color: rgba(0,0,0,0.7); 
}


/* Modal Content (Image) */
.modal-content {
	margin: auto;
	display: block;
	visibility: hidden;
	opacity:0;
	transform: translateY(-50px);
	transition: visibility 0.3s, opacity 0.3s, transform 0.3s
}

.modal-content.show {
	visibility: visible;
    opacity:1;
	transform: translateY(0px)
}

.modal-content.cert {
	width: 30vw;
}

.modal-content.screenshot {
	width: 70vw;
}


/* Width on Smaller Screens */
@media only screen and (max-width: 768px){
.modal-content.show {
	width: 80%;
}
.detail .lang, .detail .interests {
	width: 100%;
}
}

/* Splide */
.splide__slide img {
	width: 100%;
	height: auto;
	cursor: pointer;
}

.splide__pagination__page.is-active {
	background: var(--profile-theme);
}

.pdf-download {
	position: fixed;
    right: 1rem;
    bottom: 2rem;
    z-index: 20;
	width: 3.5rem;
    height: 3.5rem;
}

.pdf-download i {
	font-size: 2rem;
}

.pdf-download:hover {
	transform: scale(1.1);	
}


/* The Close Button */
.close {
	display: none;
	position: absolute;
	top: 15px;
	right: 15px;
	background-color: #f1f1f1 !important;
	font-size: 1.5rem;

	box-sizing: content-box;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0.25rem 0.25rem;
	background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
	border: 0;
	border-radius: 0.25rem;
	opacity: 0.5;
}
	
.close:hover,
.close:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
	opacity: 0.7;
}

.close.show {
	display: block;
}