/* PilarCons Portfolio — gaya mengikuti desain web (palet zinc gelap). */

/* Section "Karya Kebanggaan Kami" (mode="home") */
.pp-home-section {
	background: #18181b;
	color: #fff;
	padding: 4rem 1.5rem;
}
@media (min-width: 768px) {
	.pp-home-section { padding: 6rem 2rem; }
}
.pp-home-section .pp-home-header,
.pp-home-section .pp-grid,
.pp-home-section .pp-view-all-mobile-wrap {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
}
.pp-home-header {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 2.5rem;
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.pp-home-header { flex-direction: row; align-items: flex-end; margin-bottom: 4rem; }
}
.pp-eyebrow {
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #a1a1aa;
	margin: 0 0 .5rem;
}
.pp-home-heading h3 {
	font-size: 1.875rem;
	font-weight: 700;
	margin: 0;
	color: #fff;
}
@media (min-width: 768px) {
	.pp-home-heading h3 { font-size: 2.25rem; }
}
.pp-view-all {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease;
}
.pp-view-all:hover { color: #a1a1aa; }
.pp-view-all-desktop { display: none; }
@media (min-width: 768px) {
	.pp-view-all-desktop { display: inline-flex; }
}
.pp-view-all-mobile-wrap { margin-top: 2.5rem; text-align: center; }
@media (min-width: 768px) {
	.pp-view-all-mobile-wrap { display: none; }
}
.pp-view-all-mobile {
	justify-content: center;
	width: 100%;
	background: #fff;
	color: #18181b;
	padding: .75rem 1.5rem;
}
.pp-view-all-mobile:hover { color: #18181b; opacity: .85; }

.pp-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 1.5rem;
}
@media (min-width: 640px) {
	.pp-grid.pp-cols-2,
	.pp-grid.pp-cols-3,
	.pp-grid.pp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.pp-grid.pp-cols-3 { grid-template-columns: repeat(3, 1fr); }
	.pp-grid.pp-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.pp-card {
	position: relative;
	overflow: hidden;
	background: #27272a;
	aspect-ratio: 4 / 3;
	cursor: pointer;
}
.pp-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	opacity: .65;
	transition: transform .7s ease, opacity .7s ease, filter .7s ease;
	display: block;
}
.pp-card:hover img {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.05);
}
.pp-card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .4s ease;
	z-index: 2;
}
.pp-card:hover .pp-card-overlay { opacity: 1; }
.pp-icon-zoom {
	background: rgba(0,0,0,.5);
	backdrop-filter: blur(4px);
	color: #fff;
	border-radius: 999px;
	padding: .85rem;
	display: inline-flex;
}
.pp-card-caption {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.25rem;
	background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.2) 60%, transparent);
	pointer-events: none;
	z-index: 1;
}
.pp-card-caption h4 {
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	margin: 0 0 .25rem;
}
.pp-card-caption p {
	color: #d4d4d8;
	font-size: .8rem;
	display: flex;
	align-items: center;
	gap: .35rem;
	margin: 0;
}

/* Mode list (halaman portofolio lengkap) */
.pp-page-header {
	margin-bottom: 3rem;
}
@media (min-width: 768px) {
	.pp-page-header { margin-bottom: 4rem; }
}
.pp-page-header h1 {
	font-size: 1.875rem;
	font-weight: 900;
	color: #18181b;
	letter-spacing: -.01em;
	margin: 0 0 .75rem;
}
@media (min-width: 768px) {
	.pp-page-header h1 { font-size: 2.5rem; }
}
.pp-page-header p {
	color: #52525b;
	font-size: 1rem;
	line-height: 1.6;
	max-width: 48rem;
	margin: 0;
}

.pp-list {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}
.pp-list-item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid #e4e4e7;
}
.pp-list-item:last-child { border-bottom: none; padding-bottom: 0; }
@media (min-width: 1024px) {
	.pp-list-item { grid-template-columns: 1fr 2fr; gap: 3rem; }
}
.pp-list-info h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #18181b;
	margin: 0 0 .5rem;
}
.pp-list-location {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #a1a1aa;
	display: flex;
	align-items: center;
	gap: .35rem;
	margin: 0 0 1rem;
}
.pp-list-desc {
	color: #52525b;
	line-height: 1.6;
	margin: 0 0 1.5rem;
}
.pp-btn-view {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	border: 1px solid #d4d4d8;
	color: #3f3f46;
	background: transparent;
	padding: .7rem 1.25rem;
	cursor: pointer;
	transition: background .3s, color .3s;
}
.pp-btn-view:hover { background: #18181b; color: #fff; }
.pp-list-media {
	position: relative;
	overflow: hidden;
	background: #e4e4e7;
	aspect-ratio: 16 / 9;
	cursor: pointer;
	border-radius: 2px;
}
.pp-list-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transition: transform .7s ease, filter .3s ease;
}
.pp-list-media:hover img { transform: scale(1.05); filter: grayscale(0); }
.pp-list-media-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	opacity: 0;
	transition: opacity .3s ease;
	background: rgba(0,0,0,0);
}
.pp-list-media:hover .pp-list-media-overlay { opacity: 1; background: rgba(0,0,0,.2); }

.pp-empty {
	color: #71717a;
	font-style: italic;
}

/* Kotak "Proyek Lainnya" */
.pp-minor-box {
	margin-top: 4rem;
	background: #f4f4f5;
	border: 1px solid #e4e4e7;
	padding: 1.5rem;
}
@media (min-width: 768px) {
	.pp-minor-box { margin-top: 6rem; padding: 2.5rem 3rem; }
}
.pp-minor-box h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #18181b;
	margin: 0 0 1.5rem;
}
@media (min-width: 768px) {
	.pp-minor-box h3 { font-size: 1.5rem; margin-bottom: 2rem; }
}
.pp-minor-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem 2rem;
}
@media (min-width: 640px) {
	.pp-minor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.pp-minor-grid { grid-template-columns: repeat(3, 1fr); }
}
.pp-minor-item {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
}
.pp-minor-icon {
	color: #a1a1aa;
	flex-shrink: 0;
	margin-top: .1rem;
}
.pp-minor-title {
	font-size: .85rem;
	font-weight: 700;
	color: #27272a;
	margin: 0;
}
.pp-minor-location {
	font-size: .75rem;
	color: #71717a;
	margin: .15rem 0 0;
}

/* Lightbox */
.pp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0,0,0,.95);
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
}
.pp-lightbox[hidden] { display: none; }
.pp-lightbox-stage {
	position: relative;
	max-width: 64rem;
	width: 100%;
	max-height: 80vh;
	padding: 0 4rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pp-lightbox-stage img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
	animation: pp-fade .3s ease-in-out;
}
@keyframes pp-fade { from { opacity: 0; } to { opacity: 1; } }
.pp-lightbox-counter {
	position: absolute;
	bottom: -2.5rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,.5);
	font-size: .8rem;
	letter-spacing: .2em;
}
.pp-lightbox-close,
.pp-lightbox-prev,
.pp-lightbox-next {
	position: absolute;
	background: transparent;
	border: none;
	color: rgba(255,255,255,.6);
	cursor: pointer;
	padding: .5rem;
	transition: color .2s ease;
}
.pp-lightbox-close:hover,
.pp-lightbox-prev:hover,
.pp-lightbox-next:hover { color: #fff; }
.pp-lightbox-close { top: 1.25rem; right: 1.5rem; }
.pp-lightbox-prev { left: .5rem; }
.pp-lightbox-next { right: .5rem; }
@media (min-width: 768px) {
	.pp-lightbox-prev { left: 2rem; }
	.pp-lightbox-next { right: 2rem; }
}
