/* =========================
   PROJECT PAGE STYLING
   ========================= */
:root {
  --brand-teal: #00a2be;
  --brand-navy: #004863;
  --brand-deepblue: #2f5f86; /* biru gelap untuk seksi Inspirasi */
}

body {
  background-color: #f9fdfd;
}

/* HERO (meniru gaya di service.css) */
.project-hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.project-hero img {
  object-fit: cover;
  filter: brightness(55%);
}

.project-hero .overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 162, 190, 0.35) 0%,
    rgba(0, 72, 99, 0.65) 100%
  );
  position: absolute;
  inset: 0;
}

.project-hero h1 {
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}
.project-hero p {
  color: #f1f1f1;
  font-size: 1.1rem;
}

/* ========== INSPIRATION SECTION (sesuai foto) ========== */
.inspiration-section {
  background: linear-gradient(135deg, #e0f7fa 0%, #faffff 100%);
  color: #004863; /* teks disesuaikan agar tetap terbaca */
}
.inspiration-section h2 {
  color: rgb(28, 168, 168) !important;
}
.inspiration-section .container {
  max-width: 1200px;
}

/* Masonry dengan multi-column (stabil di semua browser modern) */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; /* ganti column-gap -> gap */
}

.project-card {
  display: block;
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: 1.25rem; /* 20px */
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  break-inside: avoid;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  background: #0b2a40;
  margin-bottom: 0;
}

.project-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 72, 99, 0.7) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  pointer-events: none;
}

.project-caption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.15;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

/* Badge kecil di kiri atas (opsional, meniru ikon kecil pada contoh) */
.stack-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-navy);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 992px) {
  .project-hero {
    height: 60vh;
  }
  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .masonry {
    grid-template-columns: 1fr;
  }
  .inspiration-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
