/* =============================================
   PROJECT DETAIL – project-detail.css
   ============================================= */

/* =============================================
   HERO
   ============================================= */

.projdet-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 20px 80px;
  padding-top: 250px;
}

/* BG Image */
.projdet-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.projdet-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /*filter: brightness(0.3) saturate(0.5);*/
}

.projdet-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

/* =============================================
   CARD
   ============================================= */

.projdet-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 20px;
  padding: 36px 36px 32px;
  width: 100%;
  max-width: var(--container);
}

/* Top row: foto kiri + konten kanan */
.projdet-card__top {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 28px;
}

/* ===== FOTO KIRI ===== */
.projdet-card__photos {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Foto utama */
.projdet-card__main-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.projdet-card__main-photo img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.projdet-card__main-photo:hover img {
  transform: scale(1.03);
}

/* Overlay zoom icon saat hover */
.projdet-card__main-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.projdet-card__main-photo:hover .projdet-card__main-overlay {
  opacity: 1;
}

/* Thumbnails */
.projdet-card__thumbnails {
  display: flex;
  gap: 10px;
}

.projdet-thumb {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
}

.projdet-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.projdet-thumb:hover {
  border-color: var(--purple);
}

.projdet-thumb.active {
  border-color: var(--purple);
  opacity: 0.7;
}

/* ===== KONTEN KANAN ===== */
.projdet-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projdet-card__logo {
  max-width: 150px;
  
  object-fit: contain;
  margin-bottom: 4px;
}

.projdet-card__client {
  font-size: 18px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 0 0 0;
}

.projdet-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 45px;
  font-weight: 900;
  color: #111;
  line-height: 1.2;
}

.projdet-card__divider {
  height: 1.5px;
  background: #7915a6;;
  margin: 4px 0;
}

/* Meta */
.projdet-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.projdet-card__meta-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.projdet-card__meta-key {
  font-size: 20px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 0.8px;
  min-width: 150px;
  text-transform: uppercase;
}

.projdet-card__meta-val {
  font-size: 20px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

/* Tags */
.projdet-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.projdet-card__tags span {
  background: transparent;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 17px;
  border-radius: 20px;
  border: 1.5px solid #290ee1;  
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== PROJECT OVERVIEW ===== */
.projdet-card__overview {
  /*border-top: 1.5px solid #e0e0e0;*/
  /*padding-top: 20px;*/
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projdet-card__overview-label {
  font-size: 20px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.projdet-card__overview-text {
  font-size: 20px;
  font-weight: 400;
  color: #333;
  line-height: 1.2;
  text-align: justify;
}

.projdet-card__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* =============================================
   LIGHTBOX
   ============================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* Close button */
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.3);
}

/* Arrow */
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 48px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  padding: 0;
  z-index: 10;
}

.lightbox__arrow:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--next { right: 24px; }

/* Counter */
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* =============================================
   CTA SECTION
   ============================================= */

.projdet-cta {
  background: var(--lime);
  padding: 50px 20px;
  text-align: center;
}

.projdet-cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.projdet-cta__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.projdet-cta__title span {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 60px;
  line-height: 0.85;
}

.projdet-cta__title--black  { color: #111; }
.projdet-cta__title--purple { color: var(--purple); }

.projdet-cta__btn {
  font-size: 20px;
  padding: 14px 48px;
  border-radius: 40px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* ===== TABLET 768px ===== */
@media (max-width: 768px) {

  /* HERO */
  .projdet-hero {
    padding: 100px 16px 40px;
    min-height: auto;
    align-items: flex-start;
  }

  /* CARD */
  .projdet-card {
    padding: 24px 20px 20px;
    border-radius: 16px;
  }

  .projdet-card__top {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  .projdet-card__photos {
    flex: none;
    width: 100%;
  }

  .projdet-card__main-photo img {
    height: 260px;
  }

  .projdet-thumb img { height: 80px; }

  /* Konten kanan */
  .projdet-card__content { width: 100%; }
  .projdet-card__logo   { max-width: 70px; }
  .projdet-card__client { font-size: 13px; padding-top: 6px; }
  .projdet-card__title  { font-size: 28px; }

  .projdet-card__meta-key { font-size: 13px; min-width: 100px; }
  .projdet-card__meta-val { font-size: 13px; }

  .projdet-card__tags span {
    font-size: 11px;
    padding: 5px 12px;
  }

  .projdet-card__overview-label { font-size: 14px; }
  .projdet-card__overview-text  { font-size: 14px; }

  /* CTA */
  .projdet-cta { padding: 40px 16px; }
  .projdet-cta__title span { font-size: 36px; }
  .projdet-cta__btn { font-size: 16px; padding: 12px 32px; }

  /* More to see — reuse dari projects.css */
  .proj-more__title { font-size: 64px; }
  .proj-more__slide { flex-direction: column; gap: 16px; }
  .proj-more__card-photo { aspect-ratio: 16/9; }
  .proj-more__card-cat   { font-size: 13px; }
  .proj-more__card-title { font-size: 22px; }  
}

/* ===== MOBILE 480px ===== */
@media (max-width: 480px) {

  .projdet-hero { padding: 90px 12px 32px; }

  .projdet-card { padding: 20px 16px 16px; }

  .projdet-card__main-photo img { height: 200px; }
  .projdet-thumb img { height: 64px; }

  .projdet-card__title { font-size: 22px; }

  .projdet-card__meta-key { min-width: 80px; font-size: 12px; }
  .projdet-card__meta-val { font-size: 12px; }

  .projdet-cta__title span { font-size: 26px; }

  .proj-more__title { font-size: 48px; }
  .proj-more__card-title { font-size: 18px; }    
}
