/* ── Portfolio Detail Page styles ── */

/* ── Hero ── */
.pl-hero {
  /* background: linear-gradient(to bottom, #b2e7fe 0%, #b2e7fe 57%, #fff 100%); */
  padding: clamp(80px, 12vw, 140px) clamp(16px, 4vw, 180px) clamp(40px, 5vw, 140px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 2;
  position: relative;
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  bottom: 0;
  top: inherit;
  background:
    radial-gradient(ellipse 70% 60% at 12% 75%,
      rgba(190, 230, 255, 0.75) 0%,
      rgba(190, 230, 255, 0) 70%),
    radial-gradient(ellipse 70% 60% at 88% 75%,
      rgba(215, 200, 245, 0.75) 0%,
      rgba(215, 200, 245, 0) 70%),
    linear-gradient(135deg,
      #ffffff 0%,
      #f7fcff 20%,
      #eaf7ff 45%,
      #eeeafb 70%,
      #ddd3ef 100%);
}


body::after {
  background: url(../src/hero-top.png);
  position: absolute;
  left: 0;
  right: 0;
  content: "";
  bottom: inherit;
  top: 0;
  width: 100%;
  height: 479px;
  z-index: 1;
}

.page-content-bg {
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 40px;
  background:
    radial-gradient(ellipse 70% 60% at 10% 75%,
      rgba(190, 230, 255, 0.8),
      transparent 70%),
    radial-gradient(ellipse 70% 60% at 90% 75%,
      rgba(215, 200, 245, 0.8),
      transparent 70%),
    linear-gradient(180deg,
      #ffffff 0%,
      #f8fcff 20%,
      #eaf7ff 45%,
      #eeeafb 70%,
      #ddd3ef 100%);
}

.pl-hero-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.3;
  color: #212b36;
  max-width: 1275px;
}

.container {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 2vw, 1.25rem);
}

.pl-hero-sub {
  margin: 0;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  color: #454f5b;
  max-width: 955px;
}

.pd-hero {
  background: #f9fafb;
  padding: 60px clamp(20px, 8vw, 180px) 80px;
}

.pd-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
}

.pd-hero-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pd-hero-content .badge {
  align-self: flex-start;
  max-width: 100%;
}

.pd-hero-content .badge-label {
  white-space: normal;
}

.pd-hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pd-hero-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.25;
  color: #212b36;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.pd-hero-desc {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: #454f5b;
  max-width: 631px;
}

.pd-hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}

.pd-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.pd-hero-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 24px;
  max-width: calc(100% - 40px);
  box-sizing: border-box;
}

.pd-hero-caption-text {
  margin: 0;
  font-size: clamp(13px, 1.5vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

/* ── Project at a Glance ── */
.pd-glance {
  background: #000;
  padding: 180px 0;
}

.pd-glance-title {
  margin: 0 0 80px;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.pd-glance-body {
  display: grid;
  grid-template-columns: minmax(0, 0.73fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: stretch;
}

.pd-glance-image-wrap {
  width: 100%;
  min-height: 280px;
  aspect-ratio: 1 / 1;
  max-height: 556px;
  border-radius: 16px;
  overflow: hidden;
}

.pd-glance-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.pd-data-table {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0 4px;
  width: 100%;
}

.pd-data-row th,
.pd-data-row td {
  vertical-align: middle;
}

.pd-data-label {
  background: #1a1a1a;
  border-radius: 16px 0 0 16px;
  padding: 14px 24px;
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
  width: 1%;
  text-align: left;
}

.pd-data-value {
  background: #0f0f0f;
  border-radius: 0 16px 16px 0;
  padding: 15px 24px;
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Project Gallery (Slick) ── */
.pd-gallery {
  background: #f9fafb;
  padding: 180px 0;
  overflow: hidden;
}

.pd-gallery-header {
  text-align: center;
  padding: 0 clamp(20px, 8vw, 180px);
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.pd-gallery-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  color: #212b36;
}

.pd-gallery-desc {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: #454f5b;
  max-width: 577px;
}

.pd-gallery-scroll-wrap {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.pd-gallery-slider {
  margin: 0;
  padding: 0 clamp(20px, 8vw, 180px);
}

.pd-gallery-slider .slick-list {
  overflow: visible;
  margin: 0 -12px;
}

.pd-gallery-slider .slick-track {
  display: flex !important;
  align-items: stretch;
}

.pd-gallery-slider .slick-slide {
  padding: 0 12px;
  height: auto;
  box-sizing: border-box;
}

.pd-gallery-slider .slick-slide>div {
  height: 100%;
}

.pd-gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
}

.pd-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 32px;
}

/* Keep left/right white fades like original design */
.pd-gallery-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 18vw, 280px);
  pointer-events: none;
  z-index: 2;
}

.pd-gallery-fade--left {
  left: 0;
  background: linear-gradient(to right, #f9fafb 55%, rgba(249, 250, 251, 0));
}

.pd-gallery-fade--right {
  right: 0;
  background: linear-gradient(to left, #f9fafb 55%, rgba(249, 250, 251, 0));
}

/* Slick arrows — subtle, matching design */
.pd-gallery-slider .slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 8px 24px rgba(33, 43, 54, 0.12);
  cursor: pointer;
  font-size: 0;
  color: transparent;
  padding: 0;
}

.pd-gallery-slider .slick-arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #212b36;
  border-right: 2px solid #212b36;
  margin: 0 auto;
}

.pd-gallery-slider .slick-prev {
  left: clamp(8px, 2vw, 40px);
}

.pd-gallery-slider .slick-prev::before {
  transform: rotate(-135deg);
  margin: auto;
}

.pd-gallery-slider .slick-next {
  right: clamp(8px, 2vw, 40px);
}

.pd-gallery-slider .slick-next::before {
  transform: rotate(45deg);
  margin-left: 14px;
}

.pd-gallery-slider .slick-arrow:hover {
  background: #f3f4f6;
}

.pd-gallery-slider .slick-arrow.slick-disabled {
  opacity: 0.35;
  cursor: default;
}

.pd-gallery-slider .slick-dots {
  display: none !important;
}

/* ── Empower Your Business ── */
.pd-empower {
  padding: 90px 0;
}

.pd-empower-inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.pd-empower-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pd-empower-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  color: #212b36;
}

.pd-empower-sub {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: #454f5b;
  max-width: 727px;
}

.pd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.pd-stat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.pd-stats.is-visible .pd-stat {
  opacity: 1;
  transform: translateY(0);
}

.pd-stats.is-visible .pd-stat:nth-child(2) {
  transition-delay: .08s;
}

.pd-stats.is-visible .pd-stat:nth-child(3) {
  transition-delay: .16s;
}

.pd-stats.is-visible .pd-stat:nth-child(4) {
  transition-delay: .24s;
}

.pd-stat-bar {
  height: 4px;
  width: 0;
  border-radius: 40px;
  background: linear-gradient(84deg, #32A5FB 0%, #391E95 200%);
  transition: width .9s cubic-bezier(.22, 1, .36, 1);
}

.pd-stats.is-visible .pd-stat-bar {
  width: 100%;
}

.pd-stat-number {
  margin: 0;
  font-size: clamp(36px, 5vw, 74px);
  font-weight: 700;
  line-height: 1.2;
  color: #212b36;
}

.pd-stat-label {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: #454f5b;
  text-align: left;
}

/* ── Responsive ── */

@media (max-width: 1600px) {
  .container {
    max-width: 95%;
  }

  .page-content-bg {
    padding-top: 0px;
  }

  .pd-empower,
  .pd-gallery,
  .pd-glance {
    padding: 80px 0;
  }
}


@media (max-width: 1440px) {
  body::after {
    height: 400px;
  }

  .pd-glance-title {
    margin: 0 0 40px;
  }
}


@media (max-width: 1200px) {
  .pd-gallery-item {
    border-radius: 24px;
  }

  .pd-gallery-img {
    border-radius: 24px;
  }

  .pd-empower,
  .pd-gallery,
  .pd-glance {
    padding: 60px 0;
  }
}

@media (max-width: 1024px) {

  body::after {
    height: 150px;
    background-size: 100% 150px;
    background-repeat: no-repeat;
  }

  .pd-gallery,
  .pd-empower,
  .pd-glance {
    padding: 48px 0;
  }

  .page-content-bg {
    padding-top: 0;
  }

  .pd-hero {
    padding: 48px 40px 64px;
  }

  .pd-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-hero-content {
    gap: 28px;
  }

  .pd-hero-image-wrap {
    width: 100%;
    max-width: 900px;
  }

  .pd-hero-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 16px;
    max-width: none;
  }

  .pd-glance {
    padding: 48px 0 64px;
  }

  .pd-glance-body {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-glance-image-wrap {
    max-width: 520px;
    max-height: none;
    margin: 0 auto;
  }

  .pd-glance-title {
    margin-bottom: 40px;
  }

  .pd-gallery-header {
    margin-bottom: 40px;
  }


  .pd-empower-inner {
    gap: 40px;
  }

  .pd-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 97%;
  }

  .pd-hero {
    padding: 32px 16px 48px;
  }

  .pd-hero-content {
    gap: 20px;
  }

  .pd-hero-text {
    gap: 16px;
  }

  .pd-hero-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
  }

  .pd-glance-title {
    margin-bottom: 28px;
  }

  .pd-glance-image-wrap {
    max-width: 100%;
  }

  .pd-data-table,
  .pd-data-table tbody,
  .pd-data-table tr,
  .pd-data-table th,
  .pd-data-table td {
    display: block;
    width: 100%;
  }

  .pd-data-table {
    border-spacing: 0;
  }

  .pd-data-row {
    margin-bottom: 8px;
  }

  .pd-data-label {
    border-radius: 12px 12px 0 0;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
  }

  .pd-data-value {
    border-radius: 0 0 12px 12px;
    box-sizing: border-box;
    padding: 12px 16px;
  }

  .pd-gallery-header {
    gap: 16px;
    margin-bottom: 32px;
  }

  .pd-gallery-item {
    border-radius: 20px;
  }

  .pd-gallery-img {
    border-radius: 20px;
  }

  .pd-gallery-slider .slick-arrow {
    width: 40px;
    height: 40px;
  }

  .pd-gallery-slider .slick-next::before {
    margin-left: 12px;
  }

  .pd-empower-inner {
    gap: 32px;
  }

  .pd-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .pd-stat {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .pd-stats {
    grid-template-columns: 1fr;
  }

  .pd-stat-label {
    text-align: left;
  }
}


/* ==========================================================================
   FANCYBOX LIGHTBOX & GALLERY POPUP STYLES
   ========================================================================== */

/* Fancybox Trigger Link Container */
.pd-gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

/* Fancybox Hover Overlay with Zoom Icon */
.pd-gallery-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E") center no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 32px;
}

.pd-gallery-link:hover::after,
.pd-gallery-link:focus-visible::after {
  opacity: 1;
}

/* Fancybox Trigger Image Scale Effect */
.pd-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 32px;
  transition: transform 0.4s ease;
}

.pd-gallery-link:hover .pd-gallery-img {
  transform: scale(1.05);
}

/* ── Fancybox Modal & Lightbox Custom Overrides (v5) ── */
.fancybox__container {
  --fancybox-bg: rgba(15, 23, 42, 0.92);
  --fancybox-color: #FFFFFF;
  --fancybox-accent-color: #32A5FB;
  z-index: 99999;
}

.fancybox__backdrop {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fancybox__content {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.fancybox__caption {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #F8FAFC;
  text-align: center;
  padding: 12px 24px;
}