/* ════════════════════════════════════════════════
   portfolio_detail.css
════════════════════════════════════════════════ */

/* ─── REVEAL ANIMATIONS ─────────────────────── */
.rv, .rv-l, .rv-r {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.rv-l  { transform: translateX(40px); }
.rv-r  { transform: translateX(-40px); }
.rv.visible,
.rv-l.visible,
.rv-r.visible {
  opacity: 1;
  transform: none;
}

/* ─── SHARED LAYOUT ─────────────────────────── */
.pd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.pd-section {
  padding: 100px 0;
  position: relative;
}
.pd-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ─── SECTION LABELS & TITLES ───────────────── */
.sec-lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 12px;
}
.sec-lbl span {
  font-size: 1.1rem;
  color: var(--clr-primary);
}
.sec-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: 16px;
  line-height: 1.3;
}
.sec-title span { color: var(--clr-primary); }
.sec-desc {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  max-width: 560px;
}

/* ─── HERO ──────────────────────────────────── */
.pd-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}
.pd-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(14,148,110,.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.pd-hero-orb1, .pd-hero-orb2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.pd-hero-orb1 {
  width: 400px; height: 400px;
  top: -100px; right: -100px;
  background: rgba(14,148,110,.12);
}
.pd-hero-orb2 {
  width: 300px; height: 300px;
  bottom: -80px; left: -80px;
  background: rgba(94,240,196,.06);
}

.pd-hero-content { max-width: 700px; }
.pd-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pd-badge {
  background: rgba(14,148,110,.18);
  color: var(--clr-primary);
  border: 1px solid rgba(14,148,110,.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .8rem;
  font-weight: 700;
}
.pd-dot, .pd-industry, .pd-date {
  color: var(--clr-text-muted);
  font-size: .9rem;
}
.pd-hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: 20px;
}
.pd-hero-subtitle {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.pd-hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.pd-tag {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: .8rem;
  color: var(--clr-text-muted);
  transition: border-color .3s, color .3s;
}
.pd-tag:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}
.pd-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Shared Button Styles */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .3s, box-shadow .3s, background .3s;
  box-shadow: 0 8px 24px rgba(14,148,110,.3);
}
.btn-p:hover {
  background: #0ab07f;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14,148,110,.45);
}
.btn-s {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  color: var(--clr-text);
  border: 1px solid rgba(255,255,255,.12);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .3s, border-color .3s, transform .3s;
  font-family: inherit;
}
.btn-s:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

/* Hero Stats */
.pd-hero-stats {
  display: flex;
  gap: 0;
  margin-top: 64px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(12px);
  max-width: 700px;
}
.pd-stat {
  flex: 1;
  text-align: center;
}
.pd-stat-val {
  font-size: 2rem;
  font-weight: 900;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.pd-stat-val::after {
  content: '';
}
.pd-stat-lbl {
  font-size: .8rem;
  color: var(--clr-text-muted);
}
.pd-stat-div {
  width: 1px;
  background: rgba(255,255,255,.08);
  margin: 0 16px;
  align-self: stretch;
}

/* ─── CHALLENGE ─────────────────────────────── */
.pd-challenge { background: transparent; }
.pd-challenge-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pd-ch-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 20px 24px;
  transition: border-color .3s, background .3s, transform .3s;
}
.pd-ch-item:hover {
  border-color: rgba(14,148,110,.3);
  background: rgba(14,148,110,.05);
  transform: translateX(-4px);
}
.pd-ch-ico {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,148,110,.1);
  border-radius: 12px;
}
.pd-ch-txt h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 4px;
}
.pd-ch-txt p {
  font-size: .88rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ─── SOLUTION ──────────────────────────────── */
.pd-solution {
  background: rgba(255,255,255,.015);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pd-sol-head {
  text-align: center;
  margin-bottom: 60px;
}
.pd-sol-head .sec-desc { margin: 0 auto; }
.pd-sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pd-sol-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.pd-sol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14,148,110,.06) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity .35s;
}
.pd-sol-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14,148,110,.3);
  box-shadow: 0 20px 48px rgba(14,148,110,.12);
}
.pd-sol-card:hover::before { opacity: 1; }

.pd-sol-num {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: .75rem;
  font-weight: 900;
  color: rgba(14,148,110,.4);
  letter-spacing: .1em;
}
.pd-sol-ico {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.pd-sol-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 10px;
}
.pd-sol-card p {
  font-size: .88rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.pd-sol-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-sol-list li {
  font-size: .82rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pd-sol-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  flex-shrink: 0;
}

/* ─── BEFORE/AFTER SLIDER ───────────────────── */
.pd-ba { overflow: hidden; }
.pd-ba-head {
  text-align: center;
  margin-bottom: 56px;
}
.pd-ba-head .sec-desc { margin: 0 auto; }

.pd-ba-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  cursor: col-resize;
  user-select: none;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255,255,255,.1);
}

.pd-ba-before,
.pd-ba-after {
  position: absolute;
  inset: 0;
}
.pd-ba-before img,
.pd-ba-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-ba-after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0s;
}
.pd-ba-label {
  position: absolute;
  bottom: 16px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.pd-ba-label.before {
  right: 16px;
  background: rgba(255,80,80,.85);
  color: #fff;
}
.pd-ba-label.after {
  left: 16px;
  background: rgba(14,148,110,.9);
  color: #fff;
}

.pd-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.pd-ba-handle-line {
  flex: 1;
  width: 2px;
  background: rgba(255,255,255,.8);
}
.pd-ba-handle-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  pointer-events: none;
}

.pd-ba-metrics {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.pd-ba-metric { text-align: center; }
.pd-ba-m-label {
  font-size: .82rem;
  color: var(--clr-text-muted);
  margin-bottom: 8px;
}
.pd-ba-m-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.pd-ba-m-compare .old {
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255,80,80,.8);
  text-decoration: line-through;
}
.pd-ba-m-compare .arrow {
  color: var(--clr-text-muted);
  font-size: 1.2rem;
}
.pd-ba-m-compare .new {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--clr-primary);
}

/* ─── RESULTS ───────────────────────────────── */
.pd-results {
  background: rgba(255,255,255,.015);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pd-res-head {
  text-align: center;
  margin-bottom: 60px;
}
.pd-res-head .sec-desc { margin: 0 auto; }

/* KPI Cards */
.pd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.pd-kpi-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: transform .35s, border-color .35s;
}
.pd-kpi-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14,148,110,.3);
}
.pd-kpi-ico { font-size: 2rem; margin-bottom: 12px; }
.pd-kpi-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.pd-kpi-lbl {
  font-size: .85rem;
  color: var(--clr-text);
  font-weight: 600;
  margin-bottom: 12px;
}
.pd-kpi-bar {
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.pd-kpi-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--clr-primary), #5ef0c4);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.16,1,.3,1) .4s;
}
.pd-kpi-card.visible .pd-kpi-fill { width: var(--w); }
.pd-kpi-detail {
  font-size: .78rem;
  color: var(--clr-text-muted);
}

/* ROI Card */
.pd-roi-card {
  background: rgba(14,148,110,.06);
  border: 1px solid rgba(14,148,110,.2);
  border-radius: 24px;
  padding: 44px;
  margin-bottom: 32px;
}
.pd-roi-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 32px;
  text-align: center;
}

/* Formula display */
.pd-roi-formula {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.pd-roi-eq {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.pd-roi-label {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--clr-primary);
}
.pd-roi-op {
  font-size: 1.6rem;
  color: var(--clr-text-muted);
  font-weight: 300;
}
.pd-roi-frac {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pd-roi-num {
  font-size: .95rem;
  color: var(--clr-text);
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--clr-primary);
}
.pd-roi-den {
  font-size: .95rem;
  color: var(--clr-text);
  font-weight: 600;
  padding-top: 6px;
}
.pd-roi-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--clr-text);
}

/* ROI Calculation */
.pd-roi-calc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 24px 28px;
}
.pd-roi-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .92rem;
}
.pd-roi-step-label { color: var(--clr-text-muted); }
.pd-roi-step-val   { color: var(--clr-text); font-weight: 600; }
.pd-roi-step.final {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 4px;
}
.pd-roi-step.final .pd-roi-step-label {
  color: var(--clr-text);
  font-weight: 700;
  font-size: 1rem;
}
.pd-roi-step-val.highlight {
  color: var(--clr-primary);
  font-size: 1.6rem;
  font-weight: 900;
}

/* Chart */
.pd-chart-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 36px;
}
.pd-chart-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 24px;
}
.pd-chart-wrap { overflow-x: auto; }
.pd-chart-svg  { width: 100%; min-width: 600px; display: block; }

#chartLine {
  transition: stroke-dashoffset 2s cubic-bezier(.16,1,.3,1);
}
.pd-chart-card.visible #chartLine {
  stroke-dashoffset: 0;
}

/* ─── TIMELINE ──────────────────────────────── */
.pd-tl-head {
  text-align: center;
  margin-bottom: 60px;
}
.pd-tl-head .sec-desc { margin: 0 auto; }

.pd-tl-track {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.pd-tl-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(14,148,110,.4) 10%,
    rgba(14,148,110,.4) 90%,
    transparent
  );
}

.pd-tl-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  gap: 32px;
  position: relative;
}
.pd-tl-item.left  { flex-direction: row-reverse; }
.pd-tl-item.right { flex-direction: row; }

.pd-tl-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(14,148,110,.4);
  background: var(--clr-bg);
  flex-shrink: 0;
  transition: border-color .3s, box-shadow .3s;
  z-index: 1;
}
.pd-tl-dot.active {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  box-shadow: 0 0 0 6px rgba(14,148,110,.15);
}

.pd-tl-date {
  flex: 1;
  text-align: center;
  font-size: .82rem;
  color: var(--clr-primary);
  font-weight: 700;
  padding-top: 20px;
  white-space: nowrap;
}
.pd-tl-item.left  .pd-tl-date { text-align: right; }
.pd-tl-item.right .pd-tl-date { text-align: left;  }

.pd-tl-card {
  flex: 2;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px;
  transition: border-color .35s, transform .35s;
}
.pd-tl-card:hover {
  border-color: rgba(14,148,110,.3);
  transform: translateY(-4px);
}
.pd-tl-phase {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--clr-primary);
  background: rgba(14,148,110,.12);
  border-radius: 8px;
  padding: 2px 10px;
  margin-bottom: 10px;
  letter-spacing: .06em;
}
.pd-tl-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 6px;
}
.pd-tl-card p {
  font-size: .86rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.pd-tl-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pd-tl-card ul li {
  font-size: .82rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pd-tl-card ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clr-primary);
  flex-shrink: 0;
}

/* ─── DEVICE MOCKUPS ────────────────────────── */
.pd-mockups { overflow: hidden; }
.pd-mk-head {
  text-align: center;
  margin-bottom: 70px;
}
.pd-mk-head .sec-desc { margin: 0 auto; }

.pd-mk-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  height: 520px;
  perspective: 1200px;
}

/* Desktop Mockup */
.pd-mk-desktop { z-index: 1; }
.pd-mk-desktop-body {
  width: 520px;
  background: #1a1a2e;
  border-radius: 12px 12px 4px 4px;
  padding: 8px;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.pd-mk-desktop-bar {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: 4px;
}
.pd-mk-desktop-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.pd-mk-desktop-screen {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.pd-mk-desktop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-mk-desktop-stand {
  width: 80px;
  height: 32px;
  background: #222;
  margin: 0 auto;
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}
.pd-mk-desktop-base {
  width: 140px;
  height: 8px;
  background: #333;
  border-radius: 4px;
  margin: 0 auto;
}

/* Tablet Mockup */
.pd-mk-tablet {
  position: absolute;
  right: 50px;
  bottom: 0;
  z-index: 2;
  transform: rotateY(-15deg) rotateX(3deg);
}
.pd-mk-tablet-body {
  width: 180px;
  background: #1a1a2e;
  border-radius: 16px;
  padding: 14px 10px;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pd-mk-tablet-cam {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.pd-mk-tablet-screen {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.pd-mk-tablet-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-mk-tablet-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
}

/* Mobile Mockup */
.pd-mk-mobile {
  position: absolute;
  left: 60px;
  bottom: 0;
  z-index: 3;
  transform: rotateY(18deg) rotateX(3deg);
}
.pd-mk-mobile-body {
  width: 120px;
  background: #1a1a2e;
  border-radius: 24px;
  padding: 12px 8px;
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pd-mk-mobile-notch {
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
}
.pd-mk-mobile-screen {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 9/16;
}
.pd-mk-mobile-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-mk-mobile-home {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.1);
}

/* Floating Badges */
.pd-mk-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 12px 18px;
  backdrop-filter: blur(12px);
  font-size: .82rem;
  animation: floatBadge 4s ease-in-out infinite;
}
.pd-mk-badge span { font-size: 1.5rem; }
.pd-mk-badge strong {
  display: block;
  color: var(--clr-text);
  font-weight: 700;
  font-size: .85rem;
}
.pd-mk-badge small {
  color: var(--clr-text-muted);
  font-size: .75rem;
}
.badge-1 { top: 40px; left: 10%; }
.badge-2 { top: 80px; right: 6%; animation-delay: 2s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ─── TESTIMONIAL ───────────────────────────── */
.pd-testimonial { overflow: hidden; }
.pd-ts-head {
  text-align: center;
  margin-bottom: 40px;
}
.pd-ts-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.pd-ts-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 40px;
  padding: 10px 24px;
  color: var(--clr-text-muted);
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: all .3s;
}
.pd-ts-tab.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}
.pd-ts-panel { display: none; }
.pd-ts-panel.active { display: block; }

/* Video Testimonial */
.pd-ts-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.pd-ts-video-wrap {
  position: relative;
  width: 100%;
  max-width: 700px;
}
.pd-ts-video-thumb {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 24px 72px rgba(0,0,0,.5);
}
.pd-ts-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-ts-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}
.pd-ts-play-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(14,148,110,.8);
  backdrop-filter: blur(8px);
  transition: transform .3s;
}
.pd-ts-play-btn:hover .pd-ts-play-ring { transform: scale(1.1); }
.pd-ts-play-btn svg { position: relative; z-index: 1; }

/* Video Modal */
.pd-ts-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.pd-ts-video-modal.open {
  display: flex;
}
.pd-ts-video-modal video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
}
.pd-ts-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .3s;
}
.pd-ts-modal-close:hover { background: rgba(255,255,255,.2); }

.pd-ts-video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.pd-ts-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--clr-primary);
  flex-shrink: 0;
}
.pd-ts-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-ts-info strong {
  display: block;
  color: var(--clr-text);
  font-weight: 700;
}
.pd-ts-info span {
  font-size: .85rem;
  color: var(--clr-text-muted);
}
.pd-ts-stars { color: #f5a623; font-size: 1rem; }

/* Text Testimonial Cards */
.pd-ts-quote-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.pd-ts-quote-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.pd-ts-quote-card.featured {
  background: rgba(14,148,110,.06);
  border-color: rgba(14,148,110,.2);
}
.pd-ts-quote-card:hover {
  border-color: rgba(14,148,110,.3);
  transform: translateY(-4px);
}
.pd-ts-quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--clr-primary);
  opacity: .3;
  font-family: Georgia, serif;
  margin-bottom: -16px;
}
.pd-ts-quote-card p {
  font-size: .92rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.pd-ts-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pd-ts-quote-author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(14,148,110,.3);
  flex-shrink: 0;
}
.pd-ts-quote-author strong {
  display: block;
  font-size: .9rem;
  color: var(--clr-text);
  font-weight: 700;
}
.pd-ts-quote-author span {
  font-size: .78rem;
  color: var(--clr-text-muted);
}

/* ─── RELATED PROJECTS ──────────────────────── */
.pd-related {
  background: rgba(255,255,255,.015);
  border-top: 1px solid rgba(255,255,255,.06);
}
.pd-rel-head {
  text-align: center;
  margin-bottom: 48px;
}
.pd-rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pd-rel-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  display: block;
  transition: transform .35s, border-color .35s;
}
.pd-rel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14,148,110,.3);
}
.pd-rel-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.pd-rel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.pd-rel-card:hover .pd-rel-img img { transform: scale(1.06); }
.pd-rel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,148,110,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  opacity: 0;
  transition: opacity .35s;
}
.pd-rel-card:hover .pd-rel-overlay { opacity: 1; }
.pd-rel-info {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-rel-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
}
.pd-rel-info p {
  font-size: .85rem;
  color: var(--clr-text-muted);
}

/* ─── CTA ───────────────────────────────────── */
.pd-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 24px;
  background: rgba(14,148,110,.05);
  border-top: 1px solid rgba(14,148,110,.15);
}
.pd-cta-orb1, .pd-cta-orb2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.pd-cta-orb1 {
  width: 360px; height: 360px;
  top: -100px; right: -80px;
  background: rgba(14,148,110,.1);
}
.pd-cta-orb2 {
  width: 280px; height: 280px;
  bottom: -80px; left: -60px;
  background: rgba(94,240,196,.06);
}
.pd-cta-content { position: relative; z-index: 1; }
.pd-cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--clr-text);
  margin-bottom: 16px;
}
.pd-cta-content p {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  margin-bottom: 36px;
}
.pd-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .pd-sol-grid       { grid-template-columns: repeat(2, 1fr); }
  .pd-kpi-grid       { grid-template-columns: repeat(2, 1fr); }
  .pd-ts-quote-grid  { grid-template-columns: 1fr; }
  .pd-mk-tablet      { right: 0; }
  .pd-mk-mobile      { left: 0; }
}

@media (max-width: 768px) {
  .pd-hero { padding: 100px 20px 60px; }
  .pd-hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  .pd-stat-div { width: 100%; height: 1px; margin: 0; }
  .pd-grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .pd-sol-grid { grid-template-columns: 1fr; }
  .pd-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-tl-line { display: none; }
  .pd-tl-item        { flex-direction: column !important; gap: 12px; }
  .pd-tl-dot         { position: static; transform: none; }
  .pd-tl-date        { text-align: right !important; }
  .pd-rel-grid       { grid-template-columns: 1fr; }
  .pd-mk-scene       { height: auto; flex-direction: column; gap: 24px; }
  .pd-mk-tablet,
  .pd-mk-mobile      { position: static; transform: none; }
  .pd-mk-desktop-body { width: 100%; }
  .pd-roi-card { padding: 28px 20px; }
  .pd-roi-eq { gap: 8px; }
}

@media (max-width: 480px) {
  .pd-kpi-grid  { grid-template-columns: 1fr; }
  .pd-hero-actions { flex-direction: column; }
  .btn-p, .btn-s { width: 100%; justify-content: center; }
}


.pd-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.pd-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.pd-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(14,148,110,.16) 0%, rgba(14,148,110,.08) 28%, transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  pointer-events: none;
}


.pd-videos {
  background: rgba(255,255,255,.015);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.pd-video-slider {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.pd-video-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pd-video-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.embed-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.embed-responsive iframe,
.pd-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.pd-video-frame video {
  object-fit: contain;
}

.pd-video-title {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
}

.pd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 36px;
  position: relative;
  transition: max-height .45s ease;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(14,148,110,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.gallery-thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  font-size: .85rem;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.72));
  backdrop-filter: blur(6px);
}

.gallery-item:nth-child(6n+1),
.gallery-item:nth-child(6n+4) {
  grid-column: span 6;
}

.gallery-item:nth-child(6n+2),
.gallery-item:nth-child(6n+3),
.gallery-item:nth-child(6n+5),
.gallery-item:nth-child(6n+6) {
  grid-column: span 3;
}

.pd-gallery-grid.is-collapsed .gallery-item:nth-child(n+7) {
  display: none;
}

.pd-gallery-grid.is-collapsed::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,0), rgba(10,10,10,.95));
  border-radius: 0 0 18px 18px;
}

.pd-gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pd-gallery-toggle {
  border: 0;
  outline: 0;
  cursor: pointer;
  padding: 14px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--clr-primary), #0ab07f);
  color: #fff;
  font-weight: 800;
  font-family: inherit;
  box-shadow: 0 12px 30px rgba(14,148,110,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.pd-gallery-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(14,148,110,.35);
}

.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.pd-lightbox.open {
  display: flex;
}

.pd-lightbox-dialog {
  position: relative;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.pd-lightbox-dialog img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
}

.pd-lightbox-caption {
  margin-top: 14px;
  color: #fff;
  font-size: .92rem;
}

.pd-lightbox-close {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.pd-mk-device {
  transition: transform .18s ease-out;
  will-change: transform;
}

.pd-mk-desktop {
  z-index: 1;
  max-width: 620px;
  width: 100%;
}

.pd-mk-desktop-screen img,
.pd-mk-tablet-screen img,
.pd-mk-mobile-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-mk-empty {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  text-align: center;
  padding: 20px;
}

@media (max-width: 768px) {
  .pd-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item,
  .gallery-item:nth-child(6n+1),
  .gallery-item:nth-child(6n+2),
  .gallery-item:nth-child(6n+3),
  .gallery-item:nth-child(6n+4),
  .gallery-item:nth-child(6n+5),
  .gallery-item:nth-child(6n+6) {
    grid-column: span 1;
  }
}

.pd-gallery-carousel {
  position: relative;
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0 60px;
}

.pd-gallery-track {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.pd-gallery-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pd-gallery-slide.active {
  display: block;
  opacity: 1;
  animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pd-gallery-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
}

.pd-gallery-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-gallery-caption {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: #495057;
  background: rgba(255, 255, 255, 0.95);
}

.pd-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0E946E;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.pd-gallery-nav:hover {
  background: #0E946E;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.pd-gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.pd-gallery-nav.prev {
  left: 0;
}

.pd-gallery-nav.next {
  right: 0;
}

.pd-gallery-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pd-gallery-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 5;
}

.pd-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 0;
}

.pd-gallery-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pd-gallery-dot.active {
  background: #0E946E;
  transform: scale(1.3);
}

