:root {
	/* Default Mode */
	/* --primary-color: #25a55f;
	--secondary-color: #1e3a8a; */
	--primary-color: #1e3a8a;
	--secondary-color: #2563eb;
	--dark-color: #1e293b;
	--primary: #2c3e50;
	--secondary: #0eabfa;
	/* --secondary: #e74c3c; */
	--text-white: #ffffff;
	--text-dark: #2b2b2b;
	--overlay-bg: rgba(0, 0, 0, 0.75);
	--transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
	--dark-gradient: linear-gradient(
		135deg,
		#4a5568 0%,
		#2d3748 50%,
		#1a202c 100%
	);
}

body {
	/* font-family: "Poppins", sans-serif; */
	font-family: "PT Mono", monospace;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: var(--dark-gradient);
	scroll-behavior: smooth;
	color: var(--text-white);
	transition: var(--transition);
}

.text-span {
	color: var(--secondary);
}

/* Fixed Navigation */
.fixed-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: var(--dark-gradient);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding: 15px 0;
	transition: var(--transition);
	border-bottom: 1px solid var(--dark-color);
	opacity: 0.98;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.nav-menu {
	display: flex;
	gap: 30px;
}

.nav-menu a {
	color: var(--text-white);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
	position: relative;
	margin-top: 7px;
}

.nav-menu a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--secondary);
	transition: width 0.3s ease;
}

.nav-menu a:hover {
	color: var(--secondary);
}

.nav-menu a:hover::after {
	width: 100%;
}

.logo {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-white);
	text-decoration: none;
}

.logo span {
	color: var(--secondary);
}

/* Swiper Container dengan efek cinematic loop */
.hero-swiper {
	width: 100%;
	height: 100vh;
	margin-top: 0;
}

.hero-swiper .swiper-slide {
	position: relative;
	overflow: hidden;
}

.hero-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.15);
	transition: transform 10s linear;
	will-change: transform;
}

.hero-swiper .swiper-slide-active img {
	transform: scale(1);
	transition: transform 10s linear;
}

.text-overlay {
	position: absolute;
	top: 70%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(90%, 1024px);
	padding: 2.5rem;
	background: var(--overlay-bg);
	color: var(--text-white);
	text-align: center;
	border-radius: 32px;
	opacity: 1; /* Selalu visible */
	backdrop-filter: blur(5px);
	z-index: 10;
	transition: var(--transition);
	transition-delay: 0.4s;
}

.text-overlay h2 {
	font-size: clamp(1.8rem, 5vw, 3.5rem);
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.text-overlay p {
	font-size: clamp(1rem, 2vw, 1.25rem);
	margin-bottom: 2rem;
	line-height: 1.6;
	opacity: 0.9;
}

.text-overlay .btn {
	background: var(--secondary);
	color: white;
	padding: 0.8rem 2.5rem;
	font-weight: 600;
	letter-spacing: 1px;
	border: none;
	border-radius: 50px;
	transition: var(--transition);
	box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.text-overlay .btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.swiper-button-next,
.swiper-button-prev {
	width: 60px;
	height: 60px;
	background: var(--overlay-bg);
	border-radius: 50%;
	backdrop-filter: blur(5px);
	transition: var(--transition);
	transition-delay: 0.4s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background: var(--secondary);
	transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 1.5rem;
	font-weight: bold;
	color: white;
}

.swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: white;
	opacity: 0.6;
	transition: var(--transition);
}

.swiper-pagination-bullet-active {
	background: var(--secondary);
	opacity: 1;
	transform: scale(1.2);
}

/* Mobile Menu */
.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	color: var(--text-white);
	font-size: 1.5rem;
	cursor: pointer;
}

/* Content */
.about-section,
.products-section,
.facilities-section,
.contact-section {
	padding: 5rem 0;
}

.timeline-section,
.products-section,
.facilities-section {
	border-bottom: 1px solid var(--dark-color);
}

.facilities-section {
	color: var(--text-white);
	background: var(--primary);
}

.icon-box {
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s ease;
}

.bg-dark-gradient {
	background: var(--dark-gradient);
	color: var(--text-white);
	border-radius: 32px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-dark-gradient:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.bg-dark-gradient:hover .icon-box {
	transform: rotate(5deg) scale(1.1);
	background: var(--primary) !important;
	color: white !important;
}

.contact-info h5 {
	font-size: 1.1rem;
	color: var(--text-white);
}

/* About-zoom */
.about-zoom {
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	transform: scale(1.05);
}

.about-zoom:hover .icon-box {
	transform: rotate(5deg) scale(1.1);
	background: var(--primary) !important;
	color: white !important;
}

.about-zoom .icon-box {
	transition: all 0.4s ease;
}

/* Hero Section */
.hero-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
}

.particle-hero {
	position: relative;
	min-height: 500px;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	overflow: hidden;
}

#particle-js {
	position: absolute;
	width: 100%;
	height: 100vh;
}

.container {
	position: relative;
	z-index: 1;
}

/* .constellation-hero {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.stars-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
}

.star {
	position: absolute;
	background-color: #fff;
	border-radius: 50%;
	animation: twinkle var(--duration) infinite ease-in-out;
}

.constellation-line {
	position: absolute;
	height: 1px;
	background: rgba(255, 255, 255, 0.3);
	transform-origin: left center;
}

@keyframes twinkle {
	0%,
	100% {
		opacity: 0.2;
	}
	50% {
		opacity: 1;
	}
}

@keyframes float {
	0%,
	100% {
		transform: translate(0, 0);
	}
	50% {
		transform: translate(50px, 30px);
	}
}

@keyframes shootingStar {
	0% {
		transform: translateX(0) translateY(0);
		opacity: 1;
	}
	70% {
		opacity: 1;
	}
	100% {
		transform: translateX(500px) translateY(300px);
		opacity: 0;
	}
}

.shooting-star {
	position: absolute;
	width: 4px;
	height: 4px;
	background: white;
	border-radius: 50%;
	box-shadow: 0 0 10px 2px white;
	animation: shootingStar 3s linear infinite;
} */

.project-hero::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 0;
}

.project-hero::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.3s;
}
.project-hero.loading::before {
	opacity: 1;
}
@keyframes spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.project-hero .container,
.about-hero .container,
.facility-hero .container {
	position: relative;
	z-index: 1;
}

.project-title,
.about-title,
.facility-title {
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.project-hero .lead,
.about-hero .lead,
.facility-hero .lead {
	font-size: 1.5rem;
	max-width: 600px;
}

.project-hero,
.about-hero,
.facility-hero {
	color: white;
	padding: 100px 0;
	position: relative;
	height: 100vh;
	min-height: 600px;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.facility-hero {
	perspective: 1px;
	transform-style: preserve-3d;
}

/* .facility-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 150%;
	background: url("../images/svg/scattered-forcefields.svg") no-repeat center
		center;
	background-attachment: fixed;
	background-size: cover;
	opacity: 1;
	z-index: -1;
	will-change: transform;
} */

.facility-hero::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 0;
}

.parallax-bg {
	position: absolute;
	top: -10%;
	left: -10%;
	width: 120%;
	height: 120%;
	background: url("../images/wai_building.jpg") no-repeat center center;
	background-size: cover;
	opacity: 1;
	z-index: -1;
	transition: transform 0.1s ease-out;
	will-change: transform;
	transform-style: preserve-3d;
	will-change: transform;
	filter: brightness(0.5) contrast(1.1);
	transition: transform 0.3s ease-out, filter 0.3s ease;
}

.facility-section img {
	border-radius: 15px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-section img:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

table th,
table td {
	background: transparent !important;
	border-bottom: 1px solid var(--dark-color);
	color: var(--text-white) !important;
}

/* Filter Buttons */
.filter-buttons {
	margin: 40px 0;
	text-align: center;
}

.filter-btn {
	background: transparent;
	color: var(--dark-color);
	border: 2px solid var(--dark-color);
	padding: 8px 20px;
	margin: 5px;
	border-radius: 30px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
	background: var(--dark-color);
	color: white;
}

/* Gallery Grid */
.gallery-container {
	padding: 3rem 2rem;
}

.gallery-wrap {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
	background: var(--dark-gradient);
}

.gallery-wrap:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-wrap img {
	width: 100%;
	height: 230px;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery-wrap:hover img {
	transform: scale(1.05);
}

.gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	color: white;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
	opacity: 1;
}

/* Clients */
.clients h2 {
	text-align: center;
	color: var(--secondary);
}

.clients-slider {
	width: 100%;
	overflow: hidden;
	padding: 30px 0;
	text-align: center;
	position: relative;
}

.slide-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
}

.slide-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 120px;
}

.slide-img {
	margin-bottom: 8px;
}

.slide-img img {
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0.8;
	filter: grayscale(100%);
	transition: all 0.3s ease;
}

.slide-img img:hover {
	filter: none;
	opacity: 1;
	transform: scale(1.05);
}

.slide-caption {
	font-size: 10px;
	color: #555;
	text-align: center;
	font-weight: 500;
	line-height: 1.3;
	max-width: 120px;
	word-break: break-word;
    display: none; 
}

/* CTA Section */
.cta-section {
	background: linear-gradient(
		135deg,
		var(--primary-color) 0%,
		var(--secondary-color) 100%
	);
	color: white;
	padding: 80px 0;
	text-align: center;
}

.cta-title {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.cta-table {
	text-align: left;
}

/* Timeline */
.modern-timeline {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	padding-left: 50px;
}

.modern-timeline::before {
	content: "";
	position: absolute;
	top: 0;
	left: 35px;
	height: 100%;
	width: 3px;
	background: linear-gradient(to bottom, #0eabfa, transparent);
}

.timeline-item {
	position: relative;
	margin-bottom: 40px;
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.5s ease;
}

.timeline-item.visible {
	opacity: 1;
	transform: translateY(0);
}

.timeline-icon {
	position: absolute;
	left: -40px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	border: 3px solid #0eabfa;
	color: #0eabfa;
	font-size: 1.2rem;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	z-index: 2;
}

.timeline-content {
	padding: 25px;
	background: var(--dark-gradient);
	border-radius: 32px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.timeline-content:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(39, 39, 39, 0.1);
}

.timeline-badge {
	display: inline-block;
	margin-top: 10px;
	padding: 3px 12px;
	background: #0eabfa;
	color: white;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: bold;
}

.hidden-timeline-items.show {
	max-height: 3000px;
}

/* Footer */
footer {
	border-top: 1px solid var(--primary);
}

/* Button animation */
#showMoreBtn {
	cursor: pointer;
	transition: all 0.4s ease;
	position: relative;
	overflow: hidden;
	border: 2px solid #0eabfa;
	background-color: transparent;
	color: #0eabfa;
}

#showMoreBtn:hover {
	background-color: #0eabfa;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(14, 171, 250, 0.3);
}

#showMoreBtn i {
	transition: transform 0.4s ease;
}

#showMoreBtn.expanded i {
	transform: rotate(180deg);
}

/* Ripple effect */
#showMoreBtn:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	background: rgba(14, 171, 250, 0.6);
	opacity: 0;
	border-radius: 100%;
	transform: scale(1, 1) translate(-50%);
	transform-origin: 50% 50%;
}

#showMoreBtn:focus:not(:active)::after {
	animation: ripple 0.6s ease-out;
}

@keyframes ripple {
	0% {
		transform: scale(0, 0);
		opacity: 0.6;
	}
	100% {
		transform: scale(20, 20);
		opacity: 0;
	}
}

/* Loading Screen Styles */
.loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #ffffff;
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
	text-align: center;
}

.loading-text span {
	display: inline-block;
	font-size: 1.5rem;
	color: #e74c3c;
	font-weight: 600;
	animation: bounce 0.5s infinite alternate;
}

.loading-text span:nth-child(1) {
	animation-delay: 0.1s;
}
.loading-text span:nth-child(2) {
	animation-delay: 0.2s;
}
.loading-text span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes bounce {
	from {
		transform: translateY(0);
	}
	to {
		transform: translateY(-10px);
	}
}

.icon-circle {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.quality-commitment-list li {
	border-left: 3px solid #28a745;
	padding-left: 10px;
	margin-bottom: 8px;
}

/* Responsive */
@media (min-width: 992px) {
	.facility-hero::before {
		background-position: center 30%;
		transition: background-position 0.3s ease-out;
	}

	.facility.scrolled::before {
		background-position: center 50%;
	}
}

@media (max-width: 768px) {
	.nav-menu {
		position: fixed;
		top: 70px;
		left: 0;
		width: 70%;
		height: calc(100vh - 70px);
		background: var(--dark-color);
		opacity: 0.98;
		backdrop-filter: blur(10px);
		flex-direction: column;
		align-items: left;
		justify-content: top;
		gap: 0;
		transition: var(--transition);
		transform: translateX(-100%);
		z-index: 9999;
	}

	.nav-menu a {
		margin: 0;
		padding: 12px;
	}

	.nav-menu.active {
		transform: translateX(0);
	}

	.mobile-menu-btn {
		display: block;
	}

	.swiper {
		margin-top: 0;
		height: calc(100vh - 60px);
	}

	.swiper-button-next,
	.swiper-button-prev {
		width: 30px;
		height: 30px;
	}

	.swiper-button-next::after,
	.swiper-button-prev::after {
		font-size: 1rem;
	}

	.about-section,
	.products-section,
	.facilities-section,
	.contact-section {
		padding: 3rem 0;
	}

	.products-section .card {
		border-radius: 32px !important;
	}

	.display-4 {
		font-size: 2.5rem;
	}

	.project-hero,
	.about-hero {
		height: 80vh;
		min-height: 500px;
	}
	.project-title,
	.about-title {
		font-size: 2.5rem;
	}
	.project-hero .lead,
	.about-hero .lead {
		font-size: 1.2rem;
	}
	.modern-timeline {
		padding-left: 30px;
	}

	.modern-timeline::before {
		left: 15px;
	}

	.timeline-icon {
		left: -45px;
		width: 50px;
		height: 50px;
		font-size: 1.2rem;
	}

	.timeline-content {
		padding: 20px;
	}

	.icon-circle {
		width: 42px;
		height: 42px;
	}

	.slide-wrapper {
		gap: 20px;
	}

	.slide-item {
		width: 80px;
	}

	.slide-caption {
		font-size: 11px;
	}

	.theme-toggle {
		margin-left: 10px;
		margin-right: 10px;
		margin-top: 5px;
	}
}

@media (max-width: 576px) {
	.text-overlay {
		padding: 1.5rem;
		width: 95%;
	}

	.text-overlay h2 {
		font-size: calc(1.3rem + 1.5vw);
		margin-bottom: 0.5rem !important;
	}

	.swiper-pagination-bullet {
		width: 10px;
		height: 10px;
	}

	.slide-wrapper {
		gap: 15px;
	}

	.slide-item {
		width: 70px;
	}

	.slide-img img {
		max-height: 40px;
	}
}

/* Switch Mode Toggle */
:root.light-mode {
	/* --primary-color: #1e3a8a;
	--secondary-color: #2563eb; */
	--primary-color: #2d3748;
	--secondary-color: #1a202c;
	--dark-color: #f1f5f9;
	--text-white: #2b2b2b;
	--text-dark: #2b2b2b;
	--bg-gradient: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 50%, #ffffff 100%);
	--overlay-bg: rgba(248, 246, 246, 0.75);
}

.light-mode body {
	background: var(--bg-gradient);
}

.theme-toggle {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	cursor: pointer;
	padding: 7px 8px;
	border-radius: 17px;
	display: flex;
	align-items: center;
	transition: all 0.3s ease;
}

.light-mode .theme-toggle {
	background: rgba(0, 0, 0, 0.1);
	color: #333;
}

.light-icon {
	display: none;
}

.light-mode .light-icon {
	display: inline;
}

.light-mode .dark-icon {
	display: none;
}

.light-mode .bg-dark-gradient {
	background: var(--bg-gradient);
}

.light-mode .fixed-nav {
	background: var(--bg-gradient);
}

.light-mode .nav-menu a {
	color: var(--primary);
}

.light-mode .text-overlay,
.light-mode .timeline-content,
.light-mode .facilities-section {
	color: var(--dark-color);
}

.light-mode footer {
	border-top: 1px solid var(--dark-color);
}

.light-mode .filter-btn {
	background: var(--primary);
	border: 2px solid var(--primary);
}

.light-mode .filter-btn:hover,
.light-mode .filter-btn.active {
	background: var(--dark-color);
	color: var(--text-dark);
}

.light-mode .gallery-wrap {
	background: var(--bg-gradient);
}

.light-mode .text-overlay {
	background: var(--overlay-bg);
	color: var(--text-dark);
}

.light-mode .text-overlay h2 {
	text-shadow: 0 0 15px rgba(254, 253, 253, 0.5);
}
