/********** Template CSS **********/
:root {
	--primary: #ab7442;
	--light: #f5f5f5;
	--dark: #353535;
}

.fw-medium {
	font-weight: 500 !important;
}

.fw-bold {
	font-weight: 700 !important;
}

.fw-black {
	font-weight: 900 !important;
}

.back-to-top {
	position: fixed;
	display: none;
	right: 45px;
	bottom: 45px;
	z-index: 99;
}

/*** Spinner ***/
#spinner {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
	z-index: 99999;
}

#spinner.show {
	transition: opacity 0.5s ease-out, visibility 0s linear 0s;
	visibility: visible;
	opacity: 1;
}

/*** Button ***/
.btn {
	font-weight: 500;
	transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-secondary {
	color: #ffffff;
}

.btn-square {
	width: 38px;
	height: 38px;
}

.btn-sm-square {
	width: 32px;
	height: 32px;
}

.btn-lg-square {
	width: 48px;
	height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
	border: none;
	content: '\f107';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	vertical-align: middle;
	margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
	margin-right: 30px;
	padding: 25px 0;
	color: #ffffff;
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
	color: var(--primary);
}

@media (max-width: 991.98px) {
	.navbar-light .navbar-nav .nav-link {
		margin-right: 0;
		padding: 10px 0;
	}

	.navbar-light .navbar-nav {
		border-top: 1px solid #eeeeee;
	}
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
	height: 75px;
}

.navbar-light .navbar-nav .nav-link {
	color: var(--dark);
	font-weight: 500;
}

.navbar-light.sticky-top {
	top: -100px;
	transition: 0.5s;
}

@media (min-width: 992px) {
	.navbar .nav-item .dropdown-menu {
		display: block;
		border: none;
		margin-top: 0;
		top: 150%;
		opacity: 0;
		visibility: hidden;
		transition: 0.5s;
	}

	.navbar .nav-item:hover .dropdown-menu {
		top: 100%;
		visibility: visible;
		transition: 0.5s;
		opacity: 1;
	}
}

/*** Header ***/
@media (max-width: 768px) {
	.header-carousel .owl-carousel-item {
		position: relative;
		min-height: 500px;
	}

	.header-carousel .owl-carousel-item img {
		position: absolute;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.header-carousel .owl-carousel-item h5,
	.header-carousel .owl-carousel-item p {
		font-size: 14px !important;
		font-weight: 400 !important;
	}

	.header-carousel .owl-carousel-item h1 {
		font-size: 30px;
		font-weight: 600;
	}
}

.header-carousel .owl-nav {
	position: absolute;
	width: 200px;
	height: 45px;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	background: transparent;
	border: 1px solid #ffffff;
	font-size: 22px;
	transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
	background: var(--primary);
	border-color: var(--primary);
}

.header-carousel .owl-dots {
	position: absolute;
	height: 45px;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-carousel .owl-dot {
	position: relative;
	display: inline-block;
	margin: 0 5px;
	width: 15px;
	height: 15px;
	background: transparent;
	border: 1px solid #ffffff;
	transition: 0.5s;
}

.header-carousel .owl-dot::after {
	position: absolute;
	content: '';
	width: 5px;
	height: 5px;
	top: 4px;
	left: 4px;
	background: transparent;
	border: 1px solid #ffffff;
}

.header-carousel .owl-dot.active {
	background: var(--primary);
	border-color: var(--primary);
}

.page-header {
	background: linear-gradient(rgba(53, 53, 53, 0.7), rgba(53, 53, 53, 0.7)),
		url(../img/form.png) center center no-repeat;
	background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
	color: var(--light);
}

/*** Section Title ***/
.section-title h1 {
	position: relative;
	display: inline-block;
}

.section-title.text-start h1 {
	padding-left: 0;
}

/*** About ***/
@media (min-width: 992px) {
	.container.about {
		max-width: 100% !important;
	}

	.about-text {
		padding-right: calc(((100% - 960px) / 2) + 0.75rem);
	}
}

@media (min-width: 1200px) {
	.about-text {
		padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
	}
}

@media (min-width: 1400px) {
	.about-text {
		padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
	}
}

/*** Service ***/
.service-item img {
	transition: 0.5s;
}

.service-item:hover img {
	transform: scale(1.1);
}

/*** Feature ***/
@media (min-width: 992px) {
	.container.feature {
		max-width: 100% !important;
	}

	.feature-text {
		padding-left: calc(((100% - 960px) / 2) + 0.75rem);
	}
}

@media (min-width: 1200px) {
	.feature-text {
		padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
	}
}

@media (min-width: 1400px) {
	.feature-text {
		padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
	}
}

/*** Project Portfolio ***/
#portfolio-flters li {
	display: inline-block;
	font-weight: 500;
	color: var(--dark);
	cursor: pointer;
	transition: 0.5s;
	border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
	color: var(--primary);
	border-color: var(--primary);
}

.portfolio-item img {
	transition: 0.5s;
}

.portfolio-item:hover img {
	transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 0;
	height: 0;
	bottom: 0;
	left: 50%;
	background: rgba(53, 53, 53, 0.7);
	transition: 0.5s;
}

.portfolio-item:hover .portfolio-overlay {
	width: 100%;
	height: 100%;
	left: 0;
}

.portfolio-item .portfolio-overlay .btn {
	opacity: 0;
}

.portfolio-item:hover .portfolio-overlay .btn {
	opacity: 1;
}

/*** Quote ***/
@media (min-width: 992px) {
	.container.quote {
		max-width: 100% !important;
	}

	.quote-text {
		padding-right: calc(((100% - 960px) / 2) + 0.75rem);
	}
}

@media (min-width: 1200px) {
	.quote-text {
		padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
	}
}

@media (min-width: 1400px) {
	.quote-text {
		padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
	}
}

/*** Team ***/
.team-item img {
	transition: 0.5s;
}

.team-item:hover img {
	transform: scale(1.1);
}

.team-item .team-social {
	position: absolute;
	width: 38px;
	top: 50%;
	left: -38px;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	background: #ffffff;
	transition: 0.5s;
}

.team-item .team-social .btn {
	color: var(--primary);
	background: #ffffff;
}

.team-item .team-social .btn:hover {
	color: #ffffff;
	background: var(--primary);
}

.team-item:hover .team-social {
	left: 0;
}

/*** Testimonial ***/
.testimonial-carousel::before {
	position: absolute;
	content: '';
	top: 0;
	left: 0;
	height: 100%;
	width: 0;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 1) 0%,
		rgba(255, 255, 255, 0) 100%
	);
	z-index: 1;
}

.testimonial-carousel::after {
	position: absolute;
	content: '';
	top: 0;
	right: 0;
	height: 100%;
	width: 0;
	background: linear-gradient(
		to left,
		rgba(255, 255, 255, 1) 0%,
		rgba(255, 255, 255, 0) 100%
	);
	z-index: 1;
}

@media (min-width: 768px) {
	.testimonial-carousel::before,
	.testimonial-carousel::after {
		width: 200px;
	}
}

@media (min-width: 992px) {
	.testimonial-carousel::before,
	.testimonial-carousel::after {
		width: 300px;
	}
}

.testimonial-carousel .owl-item .testimonial-text {
	border: 5px solid var(--light);
	transform: scale(0.8);
	transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
	transform: scale(1);
}

.testimonial-carousel .owl-nav {
	position: absolute;
	width: 350px;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	justify-content: space-between;
	opacity: 0;
	transition: 0.5s;
	z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
	width: 300px;
	opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
	position: relative;
	color: var(--primary);
	font-size: 45px;
	transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
	color: var(--dark);
}

/*** Contact ***/
/* Fix long labels in form-floating */
.form-floating > label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 2rem);
	pointer-events: none;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > textarea.form-control:not(:placeholder-shown) ~ label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 1rem);
}

/* Fix select input styling */
.form-floating select.form-control {
	background-color: #fff;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-top: 1.85rem;
	padding-bottom: 0.5rem;
	padding-right: 2.5rem;
	height: auto;
	min-height: calc(3.5rem + 2px);
	line-height: 1.5;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ab7442' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px 12px;
}

.form-floating select.form-control:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 0.25rem rgba(171, 116, 66, 0.25);
}

.form-floating select.form-control:hover {
	border-color: var(--primary);
}

/* Date input styling */
.form-floating input[type='date'].form-control {
	background-color: #fff;
	padding-top: 1.85rem;
	padding-bottom: 0.5rem;
	height: auto;
	min-height: calc(3.5rem + 2px);
	line-height: 1.5;
	color: #212529;
}

.form-floating input[type='date'].form-control::-webkit-calendar-picker-indicator {
	background-color: transparent;
	cursor: pointer;
	padding: 5px;
	margin-right: -5px;
	border-radius: 4px;
	transition: background-color 0.2s ease;
	filter: invert(45%) sepia(30%) saturate(500%) hue-rotate(350deg);
}

.form-floating input[type='date'].form-control::-webkit-calendar-picker-indicator:hover {
	background-color: rgba(171, 116, 66, 0.1);
}

.form-floating input[type='date'].form-control:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 0.25rem rgba(171, 116, 66, 0.25);
}

/* Ensure label floats properly for date input */
.form-floating input[type='date'].form-control:not(:placeholder-shown) ~ label,
.form-floating input[type='date'].form-control:focus ~ label {
	opacity: 0.65;
	transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Multi-select dropdown */
.multi-select-dropdown {
	position: relative;
}

.multi-select-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	min-height: calc(3.5rem + 2px);
	background-color: #fff !important;
}

.multi-select-toggle:hover {
	border-color: var(--primary);
}

.multi-select-toggle:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 0.25rem rgba(171, 116, 66, 0.25);
}

.multi-select-placeholder {
	color: #6c757d;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
}

.multi-select-arrow {
	font-size: 0.875rem;
	color: var(--primary);
	transition: transform 0.2s;
	margin-left: 0.5rem;
}

.multi-select-dropdown.open .multi-select-arrow {
	transform: rotate(180deg);
}

.multi-select-dropdown.open .multi-select-toggle {
	border-color: var(--primary);
	box-shadow: 0 0 0 0.25rem rgba(171, 116, 66, 0.25);
}

.multi-select-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ced4da;
	border-top: none;
	border-radius: 0 0 0.375rem 0.375rem;
	padding: 0.5rem 0;
	z-index: 1000;
	display: none;
	max-height: 280px;
	overflow-y: auto;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.multi-select-dropdown.open .multi-select-menu {
	display: block;
}

.multi-select-menu .form-check {
	padding: 0.5rem 1rem 0.5rem 2.5rem;
	margin: 0;
	border-radius: 0;
	position: relative;
}

.multi-select-menu .form-check:hover {
	background-color: #f8f9fa;
}

.multi-select-menu .form-check-input {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
}

.multi-select-menu .form-check-label {
	cursor: pointer;
	width: 100%;
	padding-left: 0;
}

@media (min-width: 992px) {
	.container.contact {
		max-width: 100% !important;
	}

	.contact-text {
		padding-left: calc(((100% - 960px) / 2) + 0.75rem);
	}
}

@media (min-width: 1200px) {
	.contact-text {
		padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
	}
}

@media (min-width: 1400px) {
	.contact-text {
		padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
	}
}

/*** Footer ***/
.footer {
	background: linear-gradient(rgba(53, 53, 53, 0.7), rgba(53, 53, 53, 0.7)),
		url(../img/footer.jpg) center center no-repeat;
	background-size: cover;
}

.footer .btn.btn-social {
	margin-right: 5px;
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--light);
	border: 1px solid #ffffff;
	transition: 0.3s;
}

.footer .btn.btn-social:hover {
	color: var(--primary);
}

.footer .btn.btn-link {
	display: block;
	margin-bottom: 5px;
	padding: 0;
	text-align: left;
	color: #ffffff;
	font-size: 15px;
	font-weight: normal;
	text-transform: capitalize;
	transition: 0.3s;
}

.footer .btn.btn-link::before {
	position: relative;
	content: '\f105';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	margin-right: 10px;
}

.footer .btn.btn-link:hover {
	color: var(--primary);
	letter-spacing: 1px;
	box-shadow: none;
}

.footer .copyright {
	padding: 25px 0;
	font-size: 15px;
	border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
	color: var(--light);
}

.footer .copyright a:hover {
	color: var(--primary);
}

/*** Recent Work Carousel ***/
.recent-work-carousel {
	position: relative;
	padding: 0 10px;
}

.recent-work-carousel .owl-stage-outer {
	padding: 10px 0;
}

.recent-work-carousel .recent-work-card {
	padding: 0 10px;
}

.recent-work-carousel .recent-work-card .card {
	transition: all 0.5s ease;
	transform: scale(0.9);
	opacity: 0.7;
}

.recent-work-carousel .owl-item.center .recent-work-card .card {
	transform: scale(1);
	opacity: 1;
}

/* Hide card-text by default, show on center/active item */
.recent-work-carousel .recent-work-card .card-text {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin: 0;
	transition: all 0.5s ease;
}

.recent-work-carousel .owl-item.center .recent-work-card .card-text {
	max-height: 200px;
	opacity: 1;
	margin-top: 0.5rem;
}

/* Navigation arrows */
.recent-work-carousel .owl-nav {
	position: absolute;
	width: 100%;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	padding: 0 5px;
	z-index: 10;
}

.recent-work-carousel .owl-nav .owl-prev,
.recent-work-carousel .owl-nav .owl-next {
	pointer-events: auto;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary) !important;
	color: #fff !important;
	border-radius: 50%;
	font-size: 18px;
	transition: 0.3s;
	opacity: 0.8;
}

.recent-work-carousel .owl-nav .owl-prev:hover,
.recent-work-carousel .owl-nav .owl-next:hover {
	background: var(--dark) !important;
	opacity: 1;
}

/* Dot indicators */
.recent-work-carousel .owl-dots {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.recent-work-carousel .owl-dot {
	width: 12px;
	height: 12px;
	margin: 0 5px;
	background: var(--light) !important;
	border: 2px solid var(--primary);
	border-radius: 50%;
	transition: 0.3s;
}

.recent-work-carousel .owl-dot.active {
	background: var(--primary) !important;
}

@media (max-width: 767px) {
	.recent-work-carousel .owl-nav .owl-prev,
	.recent-work-carousel .owl-nav .owl-next {
		width: 35px;
		height: 35px;
		font-size: 14px;
	}
}

/* Keunggulan Card Styling */
.keunggulan-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	height: 100%;
}

.keunggulan-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.keunggulan-icon-wrapper {
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, rgba(171, 116, 66, 0.1) 0%, rgba(171, 116, 66, 0.2) 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	transition: all 0.3s ease;
}

.keunggulan-card:hover .keunggulan-icon-wrapper {
	background: var(--primary);
}

.keunggulan-card:hover .keunggulan-icon-wrapper i {
	color: #fff !important;
}

.keunggulan-card h4 {
	color: var(--dark);
	font-weight: 600;
}

.keunggulan-card p {
	color: #666;
	line-height: 1.7;
}

/*** Tech Stack Carousel ***/
.tech-stack-carousel {
	position: relative;
	padding: 0 10px;
}

.tech-stack-carousel .owl-stage-outer {
	padding: 10px 0;
}

.tech-stack-carousel .tech-stack-item {
	padding: 0 10px;
}

.tech-stack-carousel .tech-stack-item > div {
	background: #fff;
	transition: all 0.3s ease;
}

.tech-stack-carousel .tech-stack-item > div:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.tech-stack-carousel .owl-nav {
	position: absolute;
	width: 100%;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	padding: 0 5px;
}

.tech-stack-carousel .owl-nav .owl-prev,
.tech-stack-carousel .owl-nav .owl-next {
	pointer-events: auto;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary) !important;
	color: #fff !important;
	border-radius: 50%;
	font-size: 18px;
	transition: 0.3s;
	opacity: 0.8;
}

.tech-stack-carousel .owl-nav .owl-prev:hover,
.tech-stack-carousel .owl-nav .owl-next:hover {
	background: var(--dark) !important;
	opacity: 1;
}

.tech-stack-carousel .owl-dots {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.tech-stack-carousel .owl-dot {
	width: 12px;
	height: 12px;
	margin: 0 5px;
	background: var(--light) !important;
	border: 2px solid var(--primary);
	border-radius: 50%;
	transition: 0.3s;
}

.tech-stack-carousel .owl-dot.active {
	background: var(--primary) !important;
}

@media (max-width: 767px) {
	.tech-stack-carousel .owl-nav .owl-prev,
	.tech-stack-carousel .owl-nav .owl-next {
		width: 35px;
		height: 35px;
		font-size: 14px;
	}
}
