/* Global Settings*/
:root {
	/* Color */
	--color-white: #ffffff;
	--color-light-white: #eeeeee;
	--color-dark-white: #bdbdbd;

	--color-aquamarin: #31c7c5;
	--color-dark-aquamarin: #29adab;
	--color-light-aquamarin: #38e4e1;
	--color-dark-grey: #4d4d4d;
	--color-grey: #616161;
	--color-light-grey: #7c7979;
	--color-blue: #73aace;
	--color-dark-blue: #5f8faf;
	--color-yellow: #fff7d1;
	--color-orange: #feb546;
	--color-black: #000000;

	/* Font size */
	--font-large: 48px;
	--font-medium: 28px;
	--font-regular: 18px;
	--font-small: 16px;
	--font-micro: 14px;

	/* Font weight */
	--weight-bold: 700;
	--weight-semi-bold: 600;
	--weight-regular: 400;

	/* Size */
	--size-border-radious: 5px;
	--size-border-radious-large: 10px;

	/* Animation */
	--animation-duration: 300ms;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Roboto", sans-serif;
	cursor: default;
}

a {
	color: var(--color-white);
	text-decoration: none;
}

ul {
	list-style-type: none;
	padding-left: 0;
}

/* Typography */
h1 {
	font-weight: var(--weight-bold);
	color: var(--color-black);
	font-size: var(--font-large);
	margin: 16px 0;
}
h2 {
	font-weight: var(--weight-bold);
	color: var(--color-black);
	font-size: var(--font-medium);
	margin: 16px 0;
}
h3 {
	font-weight: var(--weight-bold);
	color: var(--color-black);
	font-size: var(--font-regular);
	margin: 16px 0;
}
p {
	font-weight: var(--weight-regular);
	color: var(--color-black);
	font-size: var(--font-regular);
	margin: 8px 0;
}

button {
	background-color: transparent;
	border: none;
	outline: none;
	cursor: pointer;
}

/* Navbar */
#navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: transparent;
	position: fixed;
	width: 100%;
	color: var(--color-white);
	padding: 16px 0;
	height: 64px;
	/* transition: all var(--animation-duration) linear; */
}

#navbar.slideDown {
	background-color: var(--color-aquamarin);
	z-index: 1;
}

.navbar__logo {
	font-size: var(--font-medium);
	font-weight: var(--weight-semi-bold);
	margin-left: 16px;
}

.navbar__logo a {
	display: flex;
	align-items: center;
}

.navbar__logo img {
	width: 32px;
	height: 32px;
}
.navbar__menu--list {
	display: flex;
}
.navbar__menu--item {
	padding: 8px 12px;
	margin: 0 4px;
	cursor: pointer;
	border-radius: var(--size-border-radious);
}
.navbar__menu--item.active {
	border: 1px solid var(--color-white);
}

.navbar__menu--item:hover {
	background-color: var(--color-dark-aquamarin);
}

.navbar__toggle--btn {
	position: absolute;
	right: 16px;
	top: 22px;
	font-size: var(--font-medium);
	color: var(--color-white);
	display: none;
}

/* Home */
#home {
	background: url(images/background.png) center/cover no-repeat;
	padding: 100px 40px 40px 40px;
	text-align: center;
}

.home__container {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.home__avatar {
	width: 250px;
	height: 250px;
	border-radius: 50%;
	border: 2px solid var(--color-white);
}

.home__title,
.home__description {
	color: var(--color-white);
}

.home__contact {
	border: 2px solid var(--color-white);
	color: var(--color-white);
	font-size: var(--font-regular);
	font-weight: var(--weight-semi-bold);
	border-radius: var(--size-border-radious);
	padding: 8px 12px;
	margin: 24px;
}

.home__contact:hover {
	background-color: var(--color-orange);
}

/* Section common */
.section {
	text-align: center;
	padding: 50px;
	margin: auto;
}

.section__container {
	max-width: 1200px;
	margin: auto;
}

.about__majors {
	display: flex;
	justify-content: space-between;
	margin: 80px 0;
}

.major {
	width: 250px;
	transform: scale(0);
}

.animate__pop {
	animation: pop 0.5s linear forwards;
}

@keyframes pop {
	0% {
		transform: scale(0);
	}
	50% {
		transform: scale(1.1);
	}
	80% {
		transform: scale(0.9);
	}
	100% {
		transform: scale(1);
	}
}

.major__icon {
	width: 150px;
	height: 150px;
	font-size: 70px;
	line-height: 150px;
	color: var(--color-blue);
	border: 1px solid var(--color-blue);
	border-radius: 50%;
	margin: auto;
}

@keyframes jingle {
	0% {
		transform: rotate(0deg);
	}
	35% {
		transform: rotate(0deg);
	}
	40% {
		transform: rotate(-5deg);
	}
	60% {
		transform: rotate(5deg);
	}
	65% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(0deg);
	}
}
.major__icon:hover i {
	color: var(--color-dark-aquamarin);
	transform-origin: center;
	animation: jingle 1s linear infinite;
}

.major__title,
.major__description {
	color: var(--color-dark-grey);
}

/* The actual timeline (the vertical ruler) */
.about__careers--timeline {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.about__careers--timeline::after {
	content: "";
	position: absolute;
	width: 6px;
	background-color: var(--color-blue);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -3px;
	z-index: -1;
}

/* Container around content */
.container {
	padding: 32px 25px;
	position: relative;
	background-color: inherit;
	width: 50%;
}

/* The circles on the timeline */
.container::after {
	content: "";
	position: absolute;
	width: 25px;
	height: 25px;
	right: -17px;
	background-color: var(--color-white);
	border: 4px solid var(--color-blue);
	top: 15px;
	border-radius: 50%;
}

/* Place the container to the left */
.career--left {
	left: 0;
	opacity: 0;
}

.animate__slide--left {
	animation: slideleft var(--animation-duration) linear forwards;
}

@keyframes slideleft {
	0% {
		transform: translateX(-100px);
		opacity: 0;
	}
	60% {
		transform: translateX(0);
		opacity: 1;
	}
	80% {
		transform: translateX(-20px);
		opacity: 1;
	}
	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

.animate__slide--right {
	animation: slideright var(--animation-duration) linear forwards;
}

@keyframes slideright {
	0% {
		transform: translateX(100px);
		opacity: 0;
	}
	60% {
		transform: translateX(0);
		opacity: 1;
	}
	80% {
		transform: translateX(20px);
		opacity: 1;
	}
	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Place the container to the right */
.career--right {
	position: relative;
	left: calc(100% + 50px);
	opacity: 0;
}

/* Fix the circle for containers on the right side */
.career--right::after {
	left: -16px;
}

.career--left .career__content {
	border-top-left-radius: var(--size-border-radious-large);
	border-bottom-left-radius: var(--size-border-radious-large);
	border-bottom-right-radius: var(--size-border-radious-large);
}

.career--right .career__content {
	border-top-right-radius: var(--size-border-radious-large);
	border-bottom-left-radius: var(--size-border-radious-large);
	border-bottom-right-radius: var(--size-border-radious-large);
}

.career__content {
	padding: 10px;
	background-color: var(--color-blue);
	display: flex;
	justify-content: space-evenly;
	flex-wrap: wrap;
}
.career__head {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	min-height: 100px;
}
.career__company img {
	height: auto;
	width: auto;
	max-width: 150px;
}
.career__company,
.career__jobtitle,
.career__period {
	font-size: var(--font-regular);
	color: var(--color-dark-grey);
}
.career__company {
	font-size: var(--font-medium);
	font-weight: var(--weight-bold);
}
.career__jobtitle {
	font-weight: var(--weight-bold);
}
.career__period {
	font-size: var(--font-micro);
}

.career__description {
	padding-left: 15px;
	max-width: 310px;
	text-align: left;
	color: var(--color-light-white);
}

.career__description ul {
	list-style-type: "- ";
}

.career__description ul li {
	padding: 3px 0;
}

.eductaion__content {
	display: flex;
	background-color: var(--color-white);
	padding: 16px;
	border: 2px solid var(--color-blue);
	border-radius: var(--size-border-radious);
}

.education__description {
	margin-left: 20px;
	text-align: left;
}
.education__logo {
	width: 70px;
}
.education__title {
	font-size: var(--font-regular);
	font-weight: var(--weight-bold);
}
.education__period {
	color: var(--color-dark-white);
	font-style: italic;
	margin: 8px 0;
}

/* Skills */

#skills {
	background-color: var(--color-yellow);
}

.skillset {
	display: flex;
	width: 100%;
	background-color: var(--color-grey);
	margin: 20px 0;
	color: var(--color-white);
}
.skillset__title {
	color: var(--color-white);
}

.skillset__left {
	background-color: var(--color-dark-grey);
	flex-basis: 60%;
	padding: 20px 40px;
}
.skillset__right {
	flex-basis: 40%;
}

.skill__description {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.skill__progress {
	flex-basis: 100%;
	width: 100%;
	height: 5px;
	background-color: var(--color-grey);
	border-radius: 2px;
}

.skill__progressValue {
	background-color: var(--color-orange);
	height: 5px;
	width: 0;
	border-radius: 2px;
}

.tools,
.etc {
	padding: 20px;
}

.tools {
	background-color: var(--color-light-grey);
}
.etc {
	background-color: var(--color-grey);
}

/* Projects */

.work__categories {
	margin: 32px 0;
}
.category__btn {
	padding: 10px 30px;
	border: 1px solid var(--color-black);
	border-radius: var(--size-border-radious);
	font-weight: var(--weight-semi-bold);
	position: relative;
}

.category__btn.active,
.category__btn:hover {
	background-color: var(--color-aquamarin);
	color: var(--color-white);
}

.category__btn.active .category__count,
.category__btn:hover .category__count {
	opacity: 1;
	top: 9px;
}

.category__count {
	width: 18px;
	height: 18px;
	line-height: 18px;
	background-color: var(--color-dark-aquamarin);
	border-radius: 50%;
	color: var(--color-white);
	display: inline-block;
	position: absolute;
	top: 0px;
	right: 8px;
	opacity: 0;
	transition: all var(--animation-duration) ease-out;
}

.work__projects {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	transition: all var(--animation-duration) ease-out;
}

.work__projects.fadeout {
	opacity: 0;
	transform: scale(0.95) translateY(10px);
}

.project {
	width: 280px;
	height: 250px;
	margin: 2px;
	position: relative;
	background-color: var(--color-light-white);
	opacity: 1;
}

.project.hidden {
	display: none;
}

.project__img {
	max-width: 100%;
	height: 100%;
}

.project__description {
	position: absolute;
	background-color: var(--color-black);
	height: 100%;
	width: 100%;
	top: 10px;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 0;
	transition: all var(--animation-duration) ease-in;
}

.project__description:hover {
	opacity: 0.8;
	top: 0;
}

.project__description h3 {
	color: var(--color-orange);
}

.project__description h3::after {
	content: "";
	display: block;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 10px;
	height: 2px;
	width: 50px;
	background-color: var(--color-white);
}

/* Contact */

#contacts {
	background-color: var(--color-aquamarin);
}

.contact__title,
.contact__email,
.contact__link,
.contact__copyright {
	color: var(--color-white);
}

.contact__title {
	margin: 32px 0;
}

.contact__link {
	font-size: var(--font-large);
	margin: 24px 0;
}

.contact__link a {
	margin: 3px;
}

.contact__link i:hover {
	transform: scale(1.1);
	transition: all var(--animation-duration) ease;
}

/* go to top button */
.topbtn {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 60px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	color: var(--color-white);
	background-color: var(--color-dark-aquamarin);
	font-size: var(--font-large);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	transition: all var(--animation-duration) ease-in;
}

.topbtn.visible {
	opacity: 1;
	pointer-events: auto;
}

.topbtn:hover {
	cursor: pointer;
}

/* Responsive */

@media screen and (max-width: 768px) {
	:root {
		/* Font size */
		--font-large: 32px;
		--font-medium: 18px;
		--font-regular: 16px;
		--font-small: 14px;
		--font-micro: 12px;
	}
	#navbar {
		flex-direction: column;
		align-items: flex-start;
	}
	.navbar__menu {
		width: 100%;
		opacity: 0;
		pointer-events: none;
		background-color: var(--color-aquamarin);
		/* transition: all var(--animation-duration) ease-in; */
	}

	.navbar__menu.active {
		opacity: 1;
		pointer-events: auto;
	}

	.navbar__menu--list {
		flex-direction: column;
		text-align: center;
	}
	.navbar__toggle--btn {
		display: block;
	}

	.topbtn {
		height: 48px;
		width: 48px;
		line-height: 48px;
		right: 16px;
		bottom: 16px;
	}

	.section {
		padding: 50px 16px 16px 16px;
	}

	.skillset__left {
		padding: 10px 20px;
	}
	.about__majors {
		flex-direction: column;
		margin: 16px 0;
	}

	.major {
		width: 100%;
		margin-bottom: 28px;
	}

	.skillset {
		flex-direction: column;
	}

	.about__careers--timeline::after {
		left: 31px;
	}

	.container {
		width: 100%;
	}

	.container::after {
		left: 15px;
	}

	.career--right {
		left: 0%;
	}

	.animate__slide--left,
	.animate__slide--right {
		animation: slideright var(--animation-duration) linear forwards;
	}

	.career--left .career__content,
	.career--right .career__content {
		margin-left: 40px;
		border-top-left-radius: 0px;
		border-top-right-radius: var(--size-border-radious-large);
		border-bottom-left-radius: var(--size-border-radious-large);
		border-bottom-right-radius: var(--size-border-radious-large);
	}

	.tools,
	.etc {
		padding: 10px;
	}

	.work__projects a {
		flex-grow: 1;
	}

	.category__btn {
		margin: 4px 0;
		width: 100%;
	}
}
