@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
	--maxwidth: 1200px;
	--maxContent: 900px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

img {
	pointer-events: none;
	-webkit-user-drag: none;
}

body {
	overflow-x: hidden;
	background-color: #e6e6e6;
}

header {
	height: 110px;
	width: 100vw;
	font-family: 'Poppins';
	position: sticky;
	top: -50px;
	z-index: 99;

	@media screen and (max-width: 481px) {
		height: fit-content;
	}

	.header_top .header_top_wrap,
	.header_bottom .header_bottom_wrap {
		height: 100%;
		width: var(--maxwidth);
		display: flex;
		align-items: center;
		justify-content: space-between;

		@media screen and (max-width: 1200px) {
			padding: 0 20px;
		}
	}

	.header_top {
		height: 50px;
		width: 100%;
		background-color: #003092;
		display: flex;
		align-items: center;
		justify-content: center;

		.header_top_wrap {
			.header_top_sosmed {
				display: flex;
				gap: 20px;

				@media screen and (max-width: 768px) {
					gap: 10px;
				}

				span {
					color: #75a3ff;
					font-size: 32px;
					transition: all .3s ease-in-out;

					@media screen and (max-width: 768px) {
						font-size: 24px;
					}

					&:hover {
						color: #9dbeff;
					}
				}
			}

			.icon_search {
				background-color: #ffcf50;
				display: none;
				height: 30px;
				width: 30px;
				align-items: center;
				justify-content: center;
				color: #003092;
				border-radius: 50px;
				font-size: 15px;
				cursor: pointer;

				&:hover {
					background-color: #ffbb00;
				}

				@media screen and (max-width: 550px) {
					display: flex;
				}
			}

			.header_top_search {
				display: flex;
				height: 30px;
				gap: 5px;

				@media screen and (max-width: 550px) {
					position: fixed;
					top: 0;
					left: 0;
					width: 100vw;
					height: 100vh;
					background-color: #00000090;
					backdrop-filter: blur(5px);
					display: none;
					align-items: center;
					justify-content: center;
					flex-direction: column;
					z-index: 9999;

					&.show {
						display: flex;
					}

					.search_box {
						width: 80% !important;
					}

					button {
						height: 30px;
					}
				}

				.search_box {
					height: 30px;
					width: 300px;
					display: flex;
					justify-content: center;
					background-color: #fff;
					border-radius: 50px;

					@media screen and (max-width: 768px) {
						width: 170px;
					}

					input {
						width: calc(100% - 20px);
						height: 100%;
						background-color: transparent;
						outline: none;
						border: none;
						font-family: "Poppins";
						font-weight: 600;
					}
				}

				button {
					background-color: #ffcf50;
					border: none;
					padding: 0 30px;
					border-radius: 50px;
					font-family: "Poppins";
					font-weight: 600;
					color: #fff;
					cursor: pointer;
					transition: all .3s ease;

					&:hover {
						background-color: #ffbb00;
					}
				}
			}
		}
	}

	.header_bottom {
		display: flex;
		justify-content: center;
		width: 100%;
		height: 60px;
		background-color: #e6e6e6;

		@media screen and (max-width: 480px) {
			height: 50px;
		}

		.header_bottom_wrap {
			.header_logo {
				display: flex;
				align-items: center;
				gap: 20px;
				text-decoration: none;
				line-height: 1;
				color: #000;
				height: 100%;
				width: 560px;
				padding: 0 20px;

				@media screen and (max-width: 1200px) {
					width: 500px;
					min-width: 440px;
				}

				@media screen and (max-width: 920px) {
					width: fit-content;
					min-width: unset;
				}

				.logo {
					img {
						height: 50px;
						width: fit-content;
						object-fit: cover;

						@media screen and (max-width: 768px) {
							height: 40px;
						}
					}
				}

				.title {
					@media screen and (max-width: 920px) {
						display: none;
					}

					p:nth-child(1) {
						font-size: 26px;
						font-weight: 700;

						@media screen and (max-width: 1200px) {
							font-size: 20px;
						}
					}

					p:nth-child(2) {
						font-size: 14px;
						font-weight: 300;

						@media screen and (max-width: 1200px) {
							font-size: 11px;
						}
					}
				}
			}

			.humburger {
				height: 20px;
				width: 20px;
				position: relative;
				cursor: pointer;
				display: none;

				@media screen and (max-width: 550px) {
					display: initial;
				}

				&.open {
					.humburger_line {
						opacity: 1;
						top: 50%;
						left: 50%;
						transform: translate(-50%, -50%) rotate(-45deg);

						&::after {
							opacity: 1;
							width: 100%;
							transform: rotate(90deg);
							bottom: 0;
						}

						&::before {
							opacity: 0;
						}
					}
				}

				.humburger_line {
					height: 2px;
					width: 100%;
					position: absolute;
					background-color: #000;
					top: 0;
					left: 0;
					transition: .2s;

					&::after {
						content: "";
						height: 2px;
						width: 80%;
						position: absolute;
						background-color: #000;
						right: 0;
						bottom: -800%;
						transition: .2s;
					}

					&::before {
						content: "";
						height: 2px;
						width: 100%;
						position: absolute;
						background-color: #000;
						bottom: -400%;
						transition: .2s;
					}
				}
			}

			.navbar {
				display: flex;
				align-items: center;
				justify-content: flex-end;
				gap: 20px;
				height: 100%;
				width: 60%;
				padding-right: 20px;

				@media screen and (max-width: 1200px) {
					gap: 10px;
				}

				@media screen and (max-width: 768px) {
					padding-right: 0;
				}

				@media screen and (max-width: 550px) {
					position: fixed;
					flex-direction: column;
					background-color: #e6e6e6;
					justify-content: flex-start;
					bottom: 0;
					height: calc(100vh - 50px);
					right: -200px;
					width: 190px;
					padding: 30px;
					align-items: flex-start;
					transition: .5s cubic-bezier(0.19, 1, 0.22, 1);
					z-index: 9999;

					&.open {
						right: 0;
					}
				}

				a {
					text-decoration: none;
					font-weight: 600;
					color: #3a70dc;
					transition: all .3s ease-in;
					display: flex;
					width: fit-content;
					text-wrap: nowrap;

					@media screen and (max-width: 1200px) {
						font-size: 14px;
					}

					&:hover {
						color: #003092;
					}

					&.active {
						position: relative;
						color: #003092;

						&::after {
							content: "";
							height: 2px;
							width: 100%;
							position: absolute;
							bottom: 0;
							background-color: #00319296;
						}
					}
				}
			}
		}
	}
}

footer {
	font-family: "Poppins";
	color: #fff;
	width: 100vw;
	/* height: 270px; */
	height: fit-content;
	background-color: #003092;
	position: relative;
	padding: 20px 0;

	@media screen and (max-width: 550px) {
		height: fit-content;
		padding: 20px 10px;
		padding-bottom: 60px;
	}

	.footer_container {
		height: 100%;
		width: 100%;
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 1;

		@media screen and (max-width: 481px) {
			height: fit-content;
		}

		.footer_background {
			width: 50%;
			height: 100%;
			position: absolute;
			opacity: .2;
			left: 0;
			z-index: -1;
			overflow: hidden;

			img {
				width: 100%;
				height: 100%;
				object-fit: cover;
			}
		}

		.footer_wrap {
			width: var(--maxwidth);
			height: 100%;
			display: flex;
			align-items: stretch;
			justify-content: space-between;
			gap: 20px;

			@media screen and (max-width: 1200px) {
				padding: 0 20px;
			}

			@media screen and (max-width: 550px) {
				flex-direction: column;
				justify-content: center;
				height: fit-content;
			}

			.footer_logo {
				display: flex;
				align-items: center;
				justify-content: center;

				img {
					/* height: 100px; */
					height: 70px;
					width: fit-content;
					object-fit: cover;

					@media screen and (max-width: 1200px) {
						height: 60px;
					}

					@media screen and (max-width: 768px) {
						height: 50px;
					}
				}
			}

			.footer_detail {
				width: 100%;
				display: flex;
				flex-direction: column;
				gap: 10px;

				@media screen and (max-width: 768px) {
					justify-content: center;
				}

				.footer_detail_header {
					font-size: 22px;
					font-weight: 600;

					@media screen and (max-width: 1200px) {
						font-size: 20px;
					}

					@media screen and (max-width: 768px) {
						font-size: 17px;
					}

					@media screen and (max-width: 550px) {
						text-align: center;
					}
				}

				.footer_detail_item {
					h3 {
						font-size: 14px;
					}

					p,
					a {
						text-decoration: none;
						color: #fff;
						font-size: 12px;
					}

					a {
						cursor: pointer;
					}

					@media screen and (max-width: 1200px) {
						h3 {
							font-size: 13px;
						}

						p,
						a {
							font-size: 10.5px;
						}
					}

					@media screen and (max-width: 768px) {
						h3 {
							font-size: 12px;
						}

						p,
						a {
							font-size: 10px;
						}
					}

					@media screen and (max-width: 550px) {
						text-align: center;
					}
				}
			}

			.footer_contact {
				min-width: 330px;
				display: flex;
				gap: 30px;
				height: 100%;

				@media screen and (max-width: 768px) {
					min-width: 250px;
				}

				@media screen and (max-width: 550px) {
					align-items: center;
					flex-direction: column;
				}

				.footer_contact_content {
					display: flex;
					flex-direction: column;
					gap: 5px;
					align-items: flex-start;

					@media screen and (max-width: 550px) {
						align-items: center;
					}

					>p {
						font-size: 18px;
						font-weight: 600;

						@media screen and (max-width: 1200px) {
							font-size: 16px;
						}

						@media screen and (max-width: 768px) {
							font-size: 14px;
						}
					}

					.footer_contact_item {
						width: fit-content;
						height: fit-content;
						display: flex;
						gap: 10px;
						align-items: center;

						a {
							text-decoration: none;
							color: #ffcf50;
							font-size: 30px;

							@media screen and (max-width: 768px) {
								font-size: 20px;
							}
						}
					}
				}
			}
		}
	}

}

main {
	width: 100vw;
	height: fit-content;
	display: flex;
	justify-content: center;
	position: relative;
}

.contact_button {
	position: fixed;
	bottom: 25px;
	right: 76px;
	z-index: 9999;
	height: 40px;
	width: 240px;
	background-color: #004e3d;
	font-family: "Poppins";
	color: #fff;
	padding: 5px 20px;
	border-radius: 50px;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: cubic-bezier(0.68, -0.55, 0.265, 1.55) .3s;

	@media screen and (max-width: 550px) {
		width: 80%;
		font-size: 14px;
		bottom: 15px;
	}

	@media screen and (max-width: 480px) {
		width: 75%;
		font-size: 12px;
		margin-left: 20px;
	}

	p {
		font-weight: 600;
		font-size: 13px;
	}

	img {
		width: fit-content;
		height: 90px;
		position: absolute;
		bottom: -5px;
		right: -56px;
		image-resolution: inherit;
		image-rendering: optimizeQuality;
		object-fit: contain;
		transition: cubic-bezier(0.68, -0.55, 0.265, 1.55) .3s;

		@media screen and (max-width: 480px) {
			height: 100px;
			bottom: -10px;
			right: -50px;
		}
	}

	&:hover {
		width: 260px;

		@media screen and (max-width: 480px) {
			width: 75%;
		}

		img {
			transform: scale(1.1);
			bottom: -5px;
		}
	}
}

.contact_popup {
	position: fixed;
	background-color: #fff;
	z-index: 9998;
	height: fit-content;
	width: 330px;
	display: flex;
	justify-content: center;
	align-items: center;
	right: 20px;
	overflow: hidden;
	border-radius: 10px;
	flex-direction: column;
	font-family: "Poppins";
	transition: cubic-bezier(0.68, -0.55, 0.265, 1.55) .3s;
	bottom: -250px;
	box-shadow: 5px 5px 10px #68686859;
	color: #000;

	&.show {
		bottom: 80px;
	}

	@media screen and (max-width: 480px) {
		width: calc(100% - 40px);
	}

	.contact_popup_header {
		height: 70px;
		width: 100%;
		background-color: #4be13b;
		display: flex;
		justify-content: center;
		align-items: center;
		font-weight: 600;
		font-family: "Poppins";
		font-size: 14px;
		padding: 10px;
		gap: 20px;
		border-radius: 0 0 5px 5px;

		p {
			line-height: 1.1;
		}

		img {
			width: fit-content;
			height: 110%;
		}
	}

	.contact_popup_body {
		height: fit-content;
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 5px;
		padding: 10px;
		flex-direction: column;

		.contact_account_item {
			width: 100%;
			height: fit-content;
			display: flex;
			gap: 20px;
			align-items: center;
			padding: 10px 15px;
			border-radius: 7px;
			cursor: pointer;
			transition: cubic-bezier(0.68, -0.55, 0.265, 1.55) .3s;

			&:hover {
				background-color: #4ce13b35;
				transform: scale(1.02);
			}

			.account_image {
				width: 40px;
				height: 40px;
				position: relative;

				.avatar {
					width: 100%;
					height: 100%;
					border-radius: 50%;
					border: #004e3d solid 2px;
					overflow: hidden;
					background-color: #eee;
					display: flex;
					justify-content: center;
					align-items: center;

					img {
						width: 100%;
						height: 100%;
						object-fit: cover;
					}
				}


				&::after {
					content: "";
					background: url("../image/wa_color.svg");
					background-size: cover;
					background-position: center;
					background-repeat: no-repeat;
					width: 13px;
					height: 13px;
					position: absolute;
					bottom: 0;
					right: -3px;
					z-index: 1;
				}
			}

			.account_name {
				display: flex;
				flex-direction: column;
				line-height: 1.2;

				p {
					font-size: 14px;
					font-weight: 700;
				}

				.online {
					font-size: 10px;
					color: #666666;

					&::before {
						content: "";
						height: 7px;
						width: 7px;
						background-color: #4be13b;
						border-radius: 50%;
						display: inline-block;
						margin-right: 5px;
					}
				}
			}
		}
	}
}