/* css/style.css */
:root {
	--primary-color: #3567af;
	--accent-color: #df6d65;
	--neutral-gray: #c0bfc2;
	--text-main: #2d3748;
	--bg-light: #f7fafc;
	--radius-12: 12px;
	--shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);

	/* Cấu hình 2 Font */
	--font-heading: "Outfit", sans-serif;
	--font-body: "Inter", sans-serif;
}

body {
	font-family: var(--font-body);
	color: var(--text-main);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	font-size: 1.15rem;
}

/* Áp dụng font heading cho các thẻ tiêu đề */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #1a202c;
}

/* --- Hiệu ứng Ma Trận cho Ảnh Giới Thiệu --- */
.about-img-box {
	position: relative;
	z-index: 1;
}

/* Tạo các hình vuông đỏ/xanh xen kẽ không cần dùng file ảnh rời */
.about-img-box::before {
	content: "";
	position: absolute;
	top: -30px;
	left: -30px;
	width: 160px;
	height: 160px;
	z-index: -1;
	/* Mã hóa SVG: Chứa 2 ô vuông màu primary và accent */
	background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='2' width='8' height='8' rx='2' fill='%233567AF' opacity='0.7'/%3E%3Crect x='17' y='17' width='8' height='8' rx='2' fill='%23DC5C52' opacity='0.7'/%3E%3C/svg%3E");
	background-repeat: repeat;
	border-radius: 8px;
	transition: transform 0.4s ease;
}

/* Dấu chấm bi mờ ở góc dưới bên phải để cân bằng bố cục */
.about-img-box::after {
	content: "";
	position: absolute;
	bottom: -20px;
	right: -20px;
	width: 100px;
	height: 100px;
	z-index: -1;
	background-image: radial-gradient(var(--neutral-gray) 2px, transparent 2px);
	background-size: 15px 15px;
	opacity: 0.5;
}

.about-img-box:hover::before {
	transform: translate(-8px, -8px);
}

/* --- Premium Navigation (Glassmorphism + Shrinking) --- */
.premium-header {
	/* Luôn có nền trắng mờ ngay từ ban đầu để dễ đọc chữ */
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);

	/* Padding to ban đầu */
	padding-top: 10px;
	padding-bottom: 10px;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	z-index: 1030;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

/* Định dạng kích thước ban đầu của Logo */
.premium-header .logo-link {
	font-size: 2rem;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Trạng thái khi cuộn chuột (Scrolled State) --- */
.header-scrolled.premium-header {
	/* Thu gọn chiều cao thanh nav */
	padding-top: 5px;
	padding-bottom: 5px;
	background: rgba(255, 255, 255, 0.98) !important;
	/* Đục hơn một chút khi cuộn */
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	/* Đổ bóng nổi lên */
}

/* Thu nhỏ Logo khi cuộn */
.header-scrolled .logo-link {
	font-size: 1.5rem;
}

/* Nếu sau này bạn thay Logo chữ bằng Logo hình ảnh (img) */
.premium-header .logo-link img {
	height: 70px;
	/* Chiều cao ảnh mặc định */
	transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header-scrolled .logo-link img {
	height: 50px;
	/* Chiều cao ảnh thu nhỏ khi cuộn */
}

/* Hiệu ứng "Viên thuốc" khi hover link */
.nav-link-custom {
	color: var(--text-main);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 8px 16px !important;
	border-radius: 24px;
	transition: all 0.2s ease-in-out;
}

.nav-link-custom:hover,
.nav-link-custom.active {
	background-color: var(--bg-light);
	color: var(--primary-color);
}

/* Nút liên hệ có hiệu ứng nhịp đập nhẹ (Pulse) để hút mắt */
.btn-nav-contact {
	border-radius: 24px;
	font-weight: 600;
	padding: 10px 24px;
	box-shadow: 0 4px 12px rgba(53, 103, 175, 0.2);
}

/* --- Premium Mobile Offcanvas --- */
.premium-offcanvas {
	border-left: none !important;
	border-top-left-radius: 24px;
	border-bottom-left-radius: 24px;
	box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
	width: 320px !important;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.premium-offcanvas .btn-close {
	background-color: var(--bg-light);
	border-radius: 50%;
	padding: 12px;
	opacity: 0.8;
}

.premium-offcanvas .btn-close:hover {
	opacity: 1;
	background-color: #e2e8f0;
}

.mobile-nav-link {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-main);
	text-decoration: none;
	padding: 12px 20px;
	border-radius: 16px;
	transition: all 0.2s ease;
	display: block;
	background: transparent;
	border: none;
	text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
	background-color: var(--bg-light);
	color: var(--primary-color);
}

.mobile-sub-link {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-main);
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	transition: all 0.2s;
}

.mobile-sub-link:hover {
	background-color: rgba(53, 103, 175, 0.05);
	color: var(--primary-color);
	transform: translateX(5px);
	/* Hiệu ứng đẩy nhẹ sang phải khi chạm */
}

.transition-transform {
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-primary-custom {
	color: var(--primary-color) !important;
}

.text-accent {
	color: var(--accent-color) !important;
}

.bg-primary-custom {
	background-color: var(--primary-color) !important;
}

.bg-light-custom {
	background-color: var(--bg-light) !important;
}

/* UI Elements */
.btn {
	border-radius: 8px;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-primary-custom {
	background-color: var(--primary-color);
	color: #fff;
	border: none;
}

.btn-primary-custom:hover {
	background-color: #2c5494;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(53, 103, 175, 0.2);
}

.btn-outline-custom {
	border: 1px solid var(--neutral-gray);
	color: var(--text-main);
}

.btn-outline-custom:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
	background: transparent;
}

/* Cards & Hover Effects */
.card-minimal {
	background: #fff;
	border: 1px solid rgba(192, 191, 194, 0.3);
	border-radius: var(--radius-12);
	transition: all 0.4s ease;
}

.hover-lift:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-soft);
	border-color: transparent;
}

/* Mobile First Product Layout: Full width on mobile, rounded on desktop */
@media (max-width: 767.98px) {
	.product-card-mobile-full {
		border-radius: 0 !important;
		border-left: none;
		border-right: none;
		border-bottom: 1px solid #eaeaea;
	}
}

/* Spacing & Whitespace */
.section-padding {
	padding: 100px 0;
}

@media (max-width: 768px) {
	.section-padding {
		padding: 60px 0;
	}
}

/* Sticky Header Customization */
.header-scrolled {
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(10px);
}

/* quytrinh */
/* --- Working Process Section --- */
.process-wrapper {
	position: relative;
}

/* Đường line đứt nét nối các bước (Chỉ hiện trên desktop) */
.process-connector {
	position: absolute;
	top: 40px;
	/* Căn giữa icon */
	left: 12.5%;
	width: 75%;
	height: 2px;
	background-image: linear-gradient(to right,
			var(--neutral-gray) 50%,
			transparent 50%);
	background-size: 15px 2px;
	/* Khoảng cách nét đứt */
	background-repeat: repeat-x;
	opacity: 0.4;
	z-index: 1;
}

.process-item {
	position: relative;
	z-index: 2;
	cursor: default;
}

/* Hộp chứa Icon/Number */
/* --- Cập nhật khối Icon Quy trình để nổi bật trên nền màu --- */
.process-icon-container {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	background: #ffffff;
	border: none;
	/* Bỏ viền mờ cũ */
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--primary-color);
	/* Đổi màu số thành xanh chủ đạo để bắt mắt hơn */

	/* Kỹ thuật đổ bóng 2 lớp cao cấp */
	/* Lớp 1: Đổ bóng đen mờ tạo chiều sâu */
	/* Lớp 2: Vòng halo trắng bao quanh để tách viền khỏi nền */
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08),
		0 0 0 8px rgba(255, 255, 255, 0.5);
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.process-item .process-title {
	transition: color 0.3s ease;
}

/* Hiệu ứng Hover mượt mà */
.process-item:hover .process-icon-container {
	transform: translateY(-8px);
	background-color: var(--primary-color);
	color: #ffffff;
	/* Khi hover, vòng halo lan tỏa thành ánh sáng xanh rực rỡ */
	box-shadow: 0 15px 35px rgba(53, 103, 175, 0.3),
		0 0 0 8px rgba(53, 103, 175, 0.15);
}

.process-item:hover .process-title {
	color: var(--primary-color);
}

/* en quytrinh */

/* --- Hero Slider Section --- */
.hero-slider-section {
	position: relative;
	height: 100vh;
	/* Chiếm 100% chiều cao màn hình */
	min-height: 600px;
	overflow: hidden;
	margin-top: -76px;
	/* Bù trừ khoảng trống của sticky header nếu header có nền trong suốt */
}

/* Đảm bảo nội dung chữ luôn nổi lên trên */
.hero-content {
	position: relative;
	z-index: 10;
}

/* Lớp phủ đen mờ để dễ đọc chữ */
.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg,
			rgba(15, 23, 42, 0.4) 0%,
			rgba(15, 23, 42, 0.7) 100%);
	z-index: 1;
}

.hero-swiper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.hero-slide-bg {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1);
	transition: transform 6s ease-in-out;
	/* Thời gian animation */
}

/* Hiệu ứng Ken Burns (Zoom nhẹ) khi slide active */
.swiper-slide-active .hero-slide-bg {
	transform: scale(1.08);
	/* Phóng to nhẹ 8% */
}

/* --- Quick About Swiper (Cards Effect) --- */
.about-swiper {
	width: 100%;
	height: 520px;
	border-radius: 16px;
	overflow: visible;
	/* Để hiệu ứng cards không bị cắt lẹm ở góc */
}

.about-swiper .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background-color: #fff;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}

/* --- Pro Product Section --- */
.pro-product-card {
	background-color: #FAFAFA;
	border-radius: 24px;
	position: relative;
	transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
	border: 1px solid rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.pro-product-card .img-wrapper {
	position: relative;
	text-align: center;
	overflow: hidden;
}

.pro-product-card img {
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
	mix-blend-mode: multiply;
	/* Giúp nền trắng của ảnh hòa vào nền xám nhạt của card */
}

/* Hiệu ứng Hover */
@media (min-width: 992px) {
	.pro-product-card:hover {
		background-color: #ffffff;
		box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
		transform: translateY(-5px);
	}

	.pro-product-card:hover img {
		transform: scale(1.08);
	}

	.pro-product-action {
		position: absolute;
		bottom: 24px;
		right: 24px;
		background: var(--text-main);
		color: #fff;
		border-radius: 50px;
		padding: 8px 14px;
		font-weight: 600;
		font-family: var(--font-heading);
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
		transform: translateY(15px);
		opacity: 0;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		display: flex;
		align-items: center;
		gap: 8px;
		text-decoration: none;
	}

	.pro-product-card:hover .pro-product-action {
		transform: translateY(0);
		opacity: 1;
	}

	.pro-product-action:hover {
		background: var(--primary-color);
		color: #fff;
	}
}

/* Glassmorphism Badges */
.glass-badges-container {
	position: absolute;
	top: 24px;
	left: 24px;
	display: flex;
	gap: 8px;
	z-index: 2;
}

.glass-badge {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: var(--text-main);
	font-weight: 700;
	font-family: var(--font-heading);
	padding: 6px 14px;
	border-radius: 30px;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.glass-badge.badge-accent {
	color: var(--accent-color);
	background: rgba(255, 255, 255, 0.9);
}

/* Responsive cho Mobile (Xóa viền cứng, tràn lề) */
@media (max-width: 767.98px) {
	.pro-product-card {
		border-radius: 0;
		border-left: none;
		border-right: none;
		background: #ffffff;
		border-bottom: 1px solid #eaeaea;
		padding-bottom: 20px;
	}

	.pro-product-action {
		display: inline-flex;
		background: var(--primary-color);
		color: #fff;
		padding: 6px 12px;
		border-radius: 8px;
		font-weight: 600;
		margin-top: 15px;
		text-decoration: none;
	}

	.glass-badges-container {
		top: 10px;
		left: 0;
	}
}

/* --- Pro Project Card --- */
/* Khóa tỷ lệ khung hình cho ảnh sản phẩm */
.pro-product-card .img-wrapper {
	aspect-ratio: 1 / 1;
	/* Khung hình vuông 1:1. Nếu thích hình chữ nhật thì dùng 4 / 3 */
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0;
	/* Xóa padding cũ nếu có để ảnh full ra sát viền khi cần */
}

.pro-product-card .img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Lấp đầy khung mà KHÔNG bị bóp méo hình */
	mix-blend-mode: multiply;
	/* Giữ nguyên hiệu ứng hòa trộn nền */
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pro-project-card {
	background-color: #ffffff;
	border-radius: 24px;
	position: relative;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	border: 1px solid rgba(0, 0, 0, 0.05);
	overflow: hidden;
	display: block;
	text-decoration: none;
	color: var(--text-main);
}

.pro-project-card .img-wrapper {
	aspect-ratio: 4 / 3;
	/* Tỷ lệ vàng cho ảnh công trình */
	width: 100%;
	height: auto;
	/* Ghi đè cái height: 300px cố định trước đây (nếu có) */
	overflow: hidden;
}

.pro-project-card .img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pro-project-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.pro-project-card:hover img {
	transform: scale(1.05);
}

/* Nút Action của Project ẩn/hiện */
.pro-project-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--primary-color);
	margin-top: 1rem;
	transition: all 0.3s ease;
	position: absolute;
	bottom: 25px;
}

.pro-project-card:hover .pro-project-action {
	gap: 12px;
	/* Đẩy mũi tên ra xa một chút khi hover */
}

/* --- Pro Service Card --- */
.pro-service-card {
	background-color: #FAFAFA;
	border-radius: 24px;
	padding: 2.5rem 2rem;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	border: 1px solid transparent;
	height: 100%;
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.pro-service-card:hover {
	background-color: #ffffff;
	border-color: rgba(53, 103, 175, 0.1);
	box-shadow: 0 15px 35px rgba(53, 103, 175, 0.08);
	transform: translateY(-5px);
}

.pro-service-icon {
	width: 64px;
	height: 64px;
	background: rgba(53, 103, 175, 0.08);
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	font-size: 2rem;
	margin-bottom: 1.5rem;
	transition: all 0.4s ease;
}

/* Hiệu ứng Icon nảy lên và đổi màu */
.pro-service-card:hover .pro-service-icon {
	background: var(--primary-color);
	color: #ffffff;
	transform: scale(1.1) rotate(-5deg);
	box-shadow: 0 10px 20px rgba(53, 103, 175, 0.2);
}

/* --- Override cho Mobile (Tràn viền, xóa góc bo) --- */
@media (max-width: 767.98px) {

	.pro-project-card,
	.pro-service-card {
		border-radius: 0;
		border-left: none;
		border-right: none;
		border-bottom: 1px solid #eaeaea;
		background-color: #ffffff;
	}

	.pro-service-card {
		padding: 1.5rem 1rem;
	}

	.pro-project-card .img-wrapper {
		border-radius: 0;
	}
}

.text-line-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Khống chế Description tối đa 3 dòng */
.text-line-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}