/* ===========================
   SINGLE PROJECT — REDESIGN
   =========================== */

/* ===== LAYOUT ===== */
.pd-layout {
  padding: 150px 0 80px;
  background: #fff;
}

.pd-layout-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--section-x, 60px);
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

/* ===== LEFT SIDEBAR ===== */
.pd-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.pd-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pd-sidebar-heading {
  font-family: var(--font-geist, Geist, -apple-system, Roboto, Helvetica, sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.pd-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-sidebar-link {
  font-size: 15px;
  font-weight: 400;
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.pd-sidebar-link:hover,
.pd-sidebar-link.active {
  color: var(--color-primary, #1080FB);
}

/* Quote */
.pd-sidebar-quote {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-sidebar-quote-icon {
  opacity: 0.4;
}

.pd-sidebar-quote-text {
  font-size: 14px;
  line-height: 160%;
  color: #0F172A;
  font-weight: 600;
  margin: 0;
}

.pd-sidebar-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.pd-sidebar-quote-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pd-sidebar-quote-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pd-sidebar-quote-name {
  font-family: var(--font-geist);
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  line-height: 120%;
}

.pd-sidebar-quote-role {
  font-family: var(--font-inter);
  font-size: 11px;
  font-weight: 400;
  color: #64748B;
  line-height: 120%;
}

/* ===== MAIN CONTENT ===== */
.pd-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ===== HERO ===== */
.pd-hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pd-hero-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pd-hero-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pd-hero.has-stats .pd-hero-header {
  max-width: calc((100% - 48px) * 1.2 / 2.2);
}

.pd-hero-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.pd-hero-title {
  font-family: var(--font-geist, Geist, -apple-system, Roboto, Helvetica, sans-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 120%;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0;
}

.pd-hero-right {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.pd-hero-description:only-child {
  grid-column: span 2;
}

.pd-hero-description {
  font-size: 15px;
  line-height: 170%;
  color: #64748B;
  margin: 0;
  text-align: justify;
}

/* ===== STATS ROW ===== */
.pd-stats-row {
  display: flex;
  gap: 16px;
}

.pd-stat-card {
  flex: 1;
  padding: 24px;
  border-radius: 16px;
  background: #F6FBFE;
  border: 1px solid #D1EBFA;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 128, 251, 0.04);
}

.pd-stat-number {
  font-family: var(--font-geist, Geist, -apple-system, Roboto, Helvetica, sans-serif);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  line-height: 110%;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #DEE357 0%, #F0A8A8 33%, #9BCAFD 66%, #0C7DFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.pd-stat-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 140%;
  color: #334155;
}

/* ===== MOCKUP IMAGES ===== */
.pd-mockups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pd-mockup-card {
  border-radius: 16px;
  overflow: hidden;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-mockup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pd-mockup-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pd-mockup-card:hover img {
  transform: scale(1.03);
}

/* ===== CLIENT SECTION ===== */
.pd-client-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-section-title {
  font-family: var(--font-geist, Geist, -apple-system, Roboto, Helvetica, sans-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.pd-client-name {
  font-size: clamp(20px, 2.5vw, 24px);
}

.pd-client-desc {
  font-size: 15px;
  line-height: 170%;
  color: #64748B;
  margin: 0;
  text-align: justify;
}

/* ===== MASALAH ===== */
.pd-masalah-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-masalah-desc {
  font-size: 15px;
  line-height: 170%;
  color: #64748B;
  margin: 0;
  text-align: justify;
}

/* ===== SOLUSI KAMI ===== */
.pd-solusi-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pd-solusi-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pd-solusi-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: 14px;
  background: #F5F9FC;
  border: 1px solid #EAF2FA;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pd-solusi-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 128, 251, 0.04);
  border-color: #D2E4F6;
}

.pd-solusi-check {
  flex-shrink: 0;
  margin-top: 2px;
}

.pd-solusi-check svg {
  display: block;
}

.pd-solusi-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-solusi-title {
  font-family: var(--font-geist, Geist, -apple-system, Roboto, Helvetica, sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.pd-solusi-desc {
  font-size: 14px;
  line-height: 160%;
  color: #64748B;
  margin: 0;
}

/* ===== TEKNOLOGI ===== */
.pd-teknologi-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pd-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 100px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pd-tech-tag:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

/* ===== BACK LINK ===== */
.pd-back-link-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px var(--section-x, 60px) 0;
}

.pd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary, #1080FB);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.2s ease;
  min-height: 44px;
}

.pd-back-link:hover {
  gap: 12px;
  color: var(--color-primary-dark, #0C7DFA);
}

.pd-back-link svg {
  transition: transform 0.25s ease;
}

.pd-back-link:hover svg {
  transform: translateX(-3px);
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 1024px) {
  .pd-layout-inner {
    gap: 40px;
  }

  .pd-sidebar {
    width: 200px;
  }

  .pd-hero-title {
    font-size: clamp(24px, 3vw, 32px);
  }

  .pd-stats-row {
    gap: 12px;
  }

  .pd-stat-card {
    padding: 24px 20px;
  }

  .pd-stat-number {
    font-size: 40px;
  }
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 768px) {
  .pd-layout {
    padding: 120px 0 60px;
  }

  .pd-layout-inner {
    flex-direction: column;
    gap: 0;
  }

  .pd-sidebar {
    width: 100%;
    position: static;
    padding-bottom: 32px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 40px;
  }

  .pd-sidebar-inner {
    gap: 20px;
  }

  .pd-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .pd-sidebar-link {
    min-height: 36px;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 100px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #64748B;
  }

  .pd-sidebar-link:hover,
  .pd-sidebar-link.active {
    background: rgba(16, 128, 251, 0.08);
    border-color: var(--color-primary, #1080FB);
    color: var(--color-primary, #1080FB);
  }

  .pd-sidebar-quote {
    margin-top: 8px;
    padding-top: 20px;
  }

  .pd-hero-header {
    max-width: 100%;
  }

  .pd-hero-title {
    font-size: clamp(22px, 5vw, 28px);
  }

  .pd-hero-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .pd-stats-row {
    flex-direction: column;
    gap: 12px;
  }

  .pd-stat-card {
    padding: 20px;
  }

  .pd-stat-number {
    font-size: 36px;
  }

  .pd-mockups {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pd-mockup-card {
    aspect-ratio: 16/10;
  }

  .pd-main {
    gap: 40px;
  }

  .pd-solusi-item {
    padding: 16px 20px;
  }

  .pd-tech-tags {
    gap: 8px;
  }

  .pd-tech-tag {
    padding: 6px 16px;
    font-size: 13px;
  }
}

/* ===========================
   RESPONSIVE — SMALL MOBILE
   =========================== */
@media (max-width: 480px) {
  .pd-hero-title {
    font-size: 22px;
  }

  .pd-stat-number {
    font-size: 32px;
  }

  .pd-sidebar-quote-text {
    font-size: 13px;
  }

  .pd-solusi-title {
    font-size: 14px;
  }

  .pd-solusi-desc {
    font-size: 13px;
  }
}

/* ===========================
   SCROLL-TRIGGERED ANIMATIONS
   =========================== */
@keyframes pd-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero elements: animate immediately on page load */
.pd-hero-logo,
.pd-hero-title,
.pd-hero-description {
  animation: pd-fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pd-hero-logo {
  animation-delay: 0.05s;
}

.pd-hero-title {
  animation-delay: 0.1s;
}

.pd-hero-description {
  animation-delay: 0.15s;
}

/* Scroll-reveal: start hidden, animate when .is-visible is added */
.pd-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Staggered children */
.pd-reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.pd-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.pd-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.pd-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.pd-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
.pd-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
.pd-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .pd-hero-logo,
  .pd-hero-title,
  .pd-hero-description {
    animation: none !important;
  }

  .pd-reveal,
  .pd-reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }

  .pd-stat-card,
  .pd-mockup-card,
  .pd-solusi-item,
  .pd-tech-tag,
  .pd-back-link,
  .pd-mockup-card img {
    transition: none !important;
  }
}
