/* Gallery Styles */
.gallery-section {
	padding: 80px 0;
	min-height: calc(100vh - 200px);
}

.gallery-title {
	font-family: "Metropolis", sans-serif;
	font-size: 4rem;
	font-weight: 100;
	font-style: italic;
	color: #d9ab77;
	text-align: center;
	margin-bottom: 1rem;
	margin-top: 1rem;
	letter-spacing: 3px;
	position: relative;
	z-index: 2;
}

/* Filter Buttons */
.filter-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 50px;
}

.filter-btn {
	padding: 12px 30px;
	background: #ffffff;
	border: 2px solid #cbcbcb;
	border-radius: 12px;
	color: black;
	font-family: "Montserrat", sans-serif;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
	background: #e8e8e8;
	color: black;
	transform: translateY(-2px);
}

/* Gallery Grid - Fixed 4 columns */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	padding: 20px 0;
	max-width: 1200px;
	margin: 0 auto;
}

.gallery-item {
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	transition: all 0.4s ease;
	position: relative;
	opacity: 1;
	transform: scale(1);
	width: 100%;
}

.gallery-item:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gallery-item.hidden {
	opacity: 0;
	transform: scale(0.8);
	pointer-events: none;
	display: none;
}

.gallery-image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: all 0.4s ease;
	background-color: #eee; /* Placeholder bg */
}

.gallery-image.loading {
	filter: blur(10px);
}

.gallery-item:hover .gallery-image {
	transform: scale(1.1);
}

.gallery-content {
	padding: 25px;
	text-align: center;
}

.gallery-item-title {
	font-family: "Montserrat", sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 10px;
}

.gallery-item-category {
	font-family: "Montserrat", sans-serif;
	font-size: 0.9rem;
	color: #d9ab77;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Special overlay for clickable items */
.learn-more-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	transition: all 0.4s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	border-radius: 20px 20px 0 0;
	cursor: pointer;
}

.gallery-item:hover .learn-more-overlay {
	opacity: 1;
}

.learn-more-text {
	font-family: "Montserrat", sans-serif;
	font-size: 14pt;
	font-weight: 600;
	color: #d9ab77;
	text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
		max-width: 900px;
	}
}

@media (max-width: 768px) {
	.gallery-title {
		font-size: 2.5rem;
	}

	.filter-buttons {
		padding: 0 20px;
	}

	.filter-btn {
		padding: 10px 20px;
		font-size: 12px;
	}

	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
		max-width: 600px;
	}
}

@media (max-width: 480px) {
	.gallery-grid {
		grid-template-columns: 1fr;
		max-width: 300px;
	}
}

/* Popup Modal Styles */
.popup-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
}

.popup-modal.show {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

.popup-content {
	background: white;
	border-radius: 20px;
	width: 90%;
	max-width: 800px;
	max-height: 100vh;
	overflow: hidden;
	position: relative;
	animation: slideUp 0.3s ease;
}

.popup-header {
	padding: 20px 30px;
	color: white;
	position: relative;
}

.popup-title {
	font-family: "Metropolis", sans-serif;
	font-size: 2rem;
	font-weight: 300;
	font-style: italic;
	color: #d9ab77;
	margin: 0;
	text-align: center;
}

.close-btn {
	position: absolute;
	right: 20px;
	top: 50px;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
	z-index: 200;
}

.popup-body {
	padding: 30px;
	overflow-y: auto;
	max-height: calc(80vh - 100px);
}

.popup-logo {
	width: 40%;
	max-width: 40%;
	max-height: 80px;
	object-fit: contain;
	display: block;
	margin: 50px auto 20px auto;
	filter: brightness(1.1) contrast(1.05);
	transition: all 0.3s ease;
}
.popup-logo-88 {
	width: 40%;
	max-width: 40%;
	height: 100px;
	object-fit: contain;
	display: block;
	margin: 20px auto 20px auto;
	filter: brightness(1.1) contrast(1.05);
	transition: all 0.3s ease;
}
.popup-header {
	padding: 20px 30px;
	color: white;
	position: relative;
	text-align: center;
}

@media (max-width: 768px) {
	.popup-logo {
		margin-bottom: 15px;
	}

	.popup-header {
		padding: 15px 20px;
	}
}

@media (max-width: 480px) {
	.popup-logo {
		margin-bottom: 10px;
	}

	.popup-header {
		padding: 10px 15px;
	}

	.popup-title {
		font-size: 1.5rem;
	}
}

/* Section Styles */
.popup-section {
	margin-bottom: 50px;
}

/* Section Banner dengan Background Image */
.section-banner {
	background: linear-gradient(135deg, #2c3e50, #34495e);
	color: white;
	padding: 20px;
	height: 300px;
	border-radius: 15px;
	text-align: center;
	margin-bottom: 30px;
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-blend-mode: overlay;
}

.section-banner::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.1),
		transparent
	);
	animation: shine 3s infinite;
	z-index: 1;
}

.section-banner::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.section-title,
.section-subtitle {
	position: relative;
	z-index: 2;
}

.section-banner.copper {
	background-image: url("../../ASSET/granit/greatson/copper\ \(1\).jpg");
}

.section-banner.antique {
	background-image: url("../../ASSET/granit/greatson/metal\ antique.jpg");
}

.section-banner.surface {
	background-image: url("../../ASSET/granit/greatson/metal\ surface.jpg");
}
.section-banner.wood {
	background-image: url("../../ASSET/lvt\ vinyl/lvt floor.jpg");
}
.section-banner.carpet {
	background-image: url("../../ASSET/lvt\ vinyl/lvt carpet.jpg");
}
.section-banner.stone {
	background-image: url("../../ASSET/lvt\ vinyl/lvt stone.jpg");
}

.section-banner.pvcpu {
	background-image: url("../../ASSET/pvc\ wallpaper/pvc mockup.jpg");
}

.section-banner.epdm {
	background-image: url("../../ASSET/sport\ flooring/epdm banner.jpg");
}
.section-banner.topcoat {
	background-image: url("../../ASSET/sport\ flooring/top banner.jpg");
}

.section-banner.solida01 {
	background-image: url("../../ASSET/solid\ wood/Type A01 Banner.jpg");
}
.section-banner.solida02 {
	background-image: url("../../ASSET/solid\ wood/Type A02 Banner.jpg");
}
.section-banner.solidb {
	background-image: url("../../ASSET/solid\ wood/Type B Banner.jpg");
}
.section-banner.solidc {
	background-image: url("../../ASSET/solid\ wood/Type C Banner.jpg");
}

.section-banner.alucasement {
	background-image: url("../../ASSET/emd/Casement Window Banner.jpg");
}

.section-banner.aluslidingwindow {
	background-image: url("../../ASSET/emd/Sliding Window Banner.jpg");
}

.section-banner.aludoublehung {
	background-image: url("../../ASSET/emd/Double Hung Window Banner.jpg");
}

.section-banner.alufoldingwindow {
	background-image: url("../../ASSET/emd/Folding Window Banner.jpg");
}

.section-banner.aluslidingdoor {
	background-image: url("../../ASSET/emd/Sliding Door Banner.jpg");
}

.section-banner.alufoldingdoor {
	background-image: url("../../ASSET/emd/Folding Door Banner.jpg");
}

.section-banner.alucasementdoor {
	background-image: url("../../ASSET/emd/Casement Door Banner.jpg");
}

.section-banner.cascadegreen {
	background-image: url("../../ASSET/deco deco/cascade green series banner.jpg");
}

.section-banner.complexneon {
	background-image: url("../../ASSET/deco deco/complex neon series banner.jpg");
}

.section-banner.lightshadow {
	background-image: url("../../ASSET/deco deco/light and shadow symphony series banner.jpg");
}

.section-banner.materialfusion {
	background-image: url("../../ASSET/deco deco/material fusion series banner.jpg");
}

.section-banner.picturereconstruction {
	background-image: url("../../ASSET/deco deco/picture reconstruction series banner.jpg");
}

/* Diamond Banner */
.section-banner.diamond {
	background-image: url("../../ASSET/3d mosaic/diamond banner.jpg");
}

/* Empire Banner */
.section-banner.empire {
	background-image: url("../../ASSET/3d mosaic/empire banner.jpg");
}

/* Five Guys Banner */
.section-banner.fiveguys {
	background-image: url("../../ASSET/3d mosaic/five guys banner.jpg");
}

/* Halfmoon Banner */
.section-banner.halfmoon {
	background-image: url("../../ASSET/3d mosaic/halfmoon banner.jpg");
}

/* Mable Banner */
.section-banner.mable {
	background-image: url("../../ASSET/3d mosaic/mable banner.jpg");
}

/* Riple Banner */
.section-banner.riple {
	background-image: url("../../ASSET/3d mosaic/ripple banner.jpg");
}

/* Wood Grain Series Banner */
.section-banner.woodgrain {
	background-image: url("../../ASSET/decorative film/wood grain series banner.jpg");
}

/* Stone Series Banner */
.section-banner.stone {
	background-image: url("../../ASSET/decorative film/stone series banner.jpg");
}

/* Fabric Series Banner */
.section-banner.fabric {
	background-image: url("../../ASSET/decorative film/fabric series banner.jpg");
}
/* Homogeneous ESD Vinyl Flooring Banner */
.section-banner.esd {
	background-image: url("../../ASSET/homogeneous flooring/esd vinyl flooring banner.jpg");
}

/* Ouya Series Banner */
.section-banner.ouya {
	background-image: url("../../ASSET/homogeneous flooring/ouya series banner.jpg");
}

/* Xingya Series Banner */
.section-banner.xingya {
	background-image: url("../../ASSET/homogeneous flooring/xingya series banner.jpg");
}

/* Velde Series Banner */
.section-banner.velde {
	background-image: url("../../ASSET/homogeneous flooring/velde series banner.jpg");
}
.section-title {
	font-family: "Metropolis", sans-serif;
	font-size: 1.8rem;
	font-weight: 600;
	margin: 0;
	top: 45%;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.section-subtitle {
	font-family: "Montserrat", sans-serif;
	font-size: 0.9rem;
	opacity: 0.9;
	margin-top: 5px;
}

/* Mini Gallery Grid */
.popup-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.popup-gallery-item {
	background: #ffffff;
	border-radius: 15px;
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: pointer;
	border: 1px solid #e0e0e0;
}

.popup-gallery-image {
	width: 100%;
	height: 150px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.popup-gallery-content {
	padding: 15px;
	text-align: center;
}

.popup-gallery-title {
	font-family: "Montserrat", sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 5px;
}
.popup-gallery-subtitle {
	font-family: "Montserrat", sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 5px;
}

.popup-gallery-type {
	font-family: "Montserrat", sans-serif;
	font-size: 0.65rem;
	color: #d9ab77;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive for popup */
@media (max-width: 768px) {
	.popup-content {
		width: 95%;
		max-height: 85vh;
	}

	.popup-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.popup-title {
		font-size: 1.5rem;
	}

	.popup-body {
		padding: 20px;
	}

	.section-title {
		font-size: 1.4rem;
	}
	.section-title {
		font-size: 1.2rem;
	}
}

@media (max-width: 480px) {
	.popup-gallery-grid {
		grid-template-columns: 1fr;
	}

	.popup-header {
		padding: 15px 20px;
	}
}
