/* ==========================================================================
   CUSTOM STYLESHEET — PORTOFOLIO FOTOGRAFER, VIDEOGRAFER & DRONE PILOT
   ========================================================================== */

:root {
  --bg-obsidian: #0a0a0a;
  --bg-card: #141414;
  --gold-accent: #d4af37;
  --text-white: #ffffff;
}

/* Scrollbar Minimalis Gelap */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}

::-webkit-scrollbar-thumb {
  background: #272727;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-accent);
}

/* Proteksi Semua Elemen Gambar (Anti-Drag & Anti-Select) */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Cahaya Latar Halus Hero Section */
.hero-glow {
  background:
    radial-gradient(circle at 18% 25%, rgba(212, 175, 55, 0.12), transparent 45%),
    radial-gradient(circle at 82% 75%, rgba(212, 175, 55, 0.06), transparent 45%),
    var(--bg-obsidian);
}

/* Navbar Saat Halaman Di-scroll */
.navbar-scrolled {
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Layout Masonry Responsif */
.masonry-grid {
  column-count: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  animation: fadeInCard 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.portfolio-item img {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

/* Tombol Filter Kategori */
.filter-btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.72);
  background-color: var(--bg-card);
}

.filter-btn:hover {
  border-color: rgba(212, 175, 55, 0.65);
  color: var(--gold-accent);
}

.filter-btn.active {
  background-color: var(--gold-accent);
  border-color: var(--gold-accent);
  color: var(--bg-obsidian);
  font-weight: 600;
}

/* Ikon Checklist Pricelist */
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--gold-accent);
  font-size: 11px;
  flex-shrink: 0;
}

/* Lightbox Terbuka */
#lightbox.is-open {
  display: flex;
  animation: lightboxFade 0.25s ease forwards;
}

@keyframes lightboxFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Toast Proteksi */
#protection-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Watermark Halus Anti-Screenshot Tanpa Merusak Estetika Foto */
.watermark-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.watermark-overlay span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(0.85rem, 1.8vw, 1.35rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.24);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  transform: rotate(-18deg);
  white-space: nowrap;
  padding: 0.35rem 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

/* Mencegah Cetak Halaman / Save-as-PDF */
@media print {
  body {
    display: none !important;
  }
}
