/* =============================================
   DOKUMENTASI - LUXURY MARITIME DARK THEME
   PT. MODERN AULIA MANDIRI
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy-deep:  #081828;
  --navy:       #0d2233;
  --navy-mid:   #163347;
  --teal:       #3a9e8f;
  --teal-light: #5fc4b4;
  --teal-pale:  #a8ddd6;
  --gold:       #c9a84c;
  --gold-light: #e2c97e;
  --text-main:  #f0ede8;
  --text-muted: #c2d4e0;
}

/* =============================================
   PAGE TITLE / HERO BANNER
   ============================================= */

.page-title {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,24,40,0.72) 0%,
    rgba(8,24,40,0.50) 50%,
    rgba(8,24,40,0.85) 100%
  );
  z-index: 1;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--teal), transparent);
  z-index: 2;
}

.page-title .container {
  position: relative;
  z-index: 3;
  padding: 80px 20px 60px;
}

.page-title h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-main);
  margin: 0 0 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

.page-title .breadcrumbs ol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0; margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.page-title .breadcrumbs ol li a {
  color: var(--teal-pale);
  text-decoration: none;
  transition: color 0.2s;
}

.page-title .breadcrumbs ol li a:hover { color: var(--teal-light); }

.page-title .breadcrumbs ol li.current {
  color: var(--text-muted);
  opacity: 0.8;
}

.page-title .breadcrumbs ol li + li::before {
  content: '/';
  color: rgba(160,210,200,0.4);
  margin-right: 10px;
}

/* =============================================
   PORTFOLIO SECTION
   ============================================= */

.portfolio.section {
  background-color: var(--navy-deep);
  padding: 80px 0 100px;
  font-family: 'DM Sans', sans-serif;
  position: relative;
}

.portfolio.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,158,143,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,158,143,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.portfolio.section .container {
  position: relative;
  z-index: 1;
}

/* =============================================
   FILTER TABS
   ============================================= */

.portfolio-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  flex-wrap: wrap;
}

.portfolio-filters li {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 6px;
  border: 1px solid rgba(58,158,143,0.25);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  user-select: none;
}

.portfolio-filters li:hover {
  border-color: var(--teal);
  color: var(--teal-pale);
  background: rgba(58,158,143,0.08);
}

.portfolio-filters li.filter-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: transparent;
  color: var(--navy-deep);
  font-weight: 600;
}

/* =============================================
   PORTFOLIO GRID
   ============================================= */

.isotope-container {
  --gap: 20px;
}

/* =============================================
   PORTFOLIO ITEM
   ============================================= */

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(58,158,143,0.10);
  transition: border-color 0.3s, transform 0.35s;
  background: var(--navy);
}

.portfolio-item:hover {
  border-color: rgba(58,158,143,0.35);
  transform: translateY(-4px);
}

.portfolio-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

/* Video thumbnail: play overlay */
.portfolio-item.filter-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,24,40,0.18);
  z-index: 1;
  pointer-events: none;
  transition: background 0.3s;
}

.portfolio-item.filter-video:hover::before {
  background: rgba(8,24,40,0.32);
}

/* =============================================
   PORTFOLIO INFO OVERLAY
   ============================================= */

.portfolio-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,24,40,0.95) 0%,
    rgba(8,24,40,0.55) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-info {
  opacity: 1;
}

.portfolio-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 4px;
  line-height: 1.2;
}

.portfolio-info p {
  font-size: 12px;
  color: var(--teal-pale);
  margin: 0 0 10px;
  opacity: 0.85;
  line-height: 1.4;
}

/* Zoom / Play icon */
.portfolio-info .preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(58,158,143,0.20);
  border: 1px solid rgba(58,158,143,0.5);
  border-radius: 50%;
  color: var(--teal-light);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  align-self: flex-start;
}

.portfolio-info .preview-link:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy-deep);
}

/* Video play icon besar di tengah */
.portfolio-item.filter-video .portfolio-info {
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to top,
    rgba(8,24,40,0.88) 0%,
    rgba(8,24,40,0.45) 100%
  );
  text-align: center;
  padding: 20px;
  gap: 10px;
}

.portfolio-item.filter-video .portfolio-info .preview-link {
  width: 52px;
  height: 52px;
  font-size: 22px;
  align-self: center;
  background: rgba(201,168,76,0.2);
  border-color: rgba(201,168,76,0.5);
  color: var(--gold-light);
}

.portfolio-item.filter-video .portfolio-info .preview-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.portfolio-item.filter-video .portfolio-info h4 {
  font-size: 1rem;
  text-align: center;
  order: 2;
}

.portfolio-item.filter-video .portfolio-info p {
  text-align: center;
  order: 3;
  color: var(--gold-light);
  opacity: 0.8;
}

.portfolio-item.filter-video .portfolio-info .preview-link {
  order: 1;
}

/* =============================================
   BADGE: always-visible video label
   ============================================= */

.portfolio-item.filter-video .video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(8,24,40,0.75);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================= */

@media (max-width: 900px) {
  .portfolio.section {
    padding: 56px 0 72px;
  }

  .portfolio-item img {
    height: 210px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================= */

@media (max-width: 600px) {
  .page-title {
    min-height: 240px;
  }

  .page-title .container {
    padding: 64px 16px 48px;
  }

  .portfolio.section {
    padding: 40px 0 60px;
  }

  .portfolio-filters {
    gap: 8px;
    margin-bottom: 32px;
  }

  .portfolio-filters li {
    font-size: 11.5px;
    padding: 7px 16px;
  }

  .portfolio-item img {
    height: 200px;
  }

  /* Selalu tampilkan info di mobile (no hover) */
  .portfolio-info {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(8,24,40,0.92) 0%,
      rgba(8,24,40,0.3) 55%,
      transparent 100%
    );
  }
}