/* ═══════════ PROJECT DETAIL PAGE — Oracle-Inspired Redesign ═══════════ */

/* ── Navbar: force dark text on light hero (override homepage white text) ── */
.project-detail-page #navbar:not(.scrolled) .nav-logo {
  color: var(--gray-900);
}

.project-detail-page #navbar:not(.scrolled) .logo-text em {
  color: inherit;
}

.project-detail-page #navbar:not(.scrolled) .nav-links a {
  color: var(--gray-500);
}

.project-detail-page #navbar:not(.scrolled) .nav-links a:hover {
  color: var(--blue-600);
}

.project-detail-page #navbar:not(.scrolled) .nav-links a::after {
  background: var(--blue-500);
}

.project-detail-page #navbar:not(.scrolled) .nav-cta {
  border-color: var(--blue-500) !important;
  color: var(--blue-500) !important;
  background: transparent;
  backdrop-filter: none;
}

.project-detail-page #navbar:not(.scrolled) .nav-cta:hover {
  background: var(--blue-500) !important;
  color: #fff !important;
}

.project-detail-page #navbar:not(.scrolled) .nav-toggle span {
  background: var(--gray-900);
}

.project-detail {
  padding-top: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: #fff;
}

.project-detail.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ HERO SECTION — Light Topo-Pattern (matches Projects listing) ═══ */
.pd-hero {
  position: relative;
  background: #f4f6fa;
  color: var(--gray-900);
  padding: 110px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid #e0e4ed;
}

/* Topographic contour line pattern — same as projects listing */
.pd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/topo-pattern.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
}

/* Soft fade at edges */
.pd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f4f6fa 0%, transparent 18%, transparent 82%, #f4f6fa 100%);
  pointer-events: none;
}

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

/* ── Breadcrumb (Oracle-style) ── */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.82rem;
  font-weight: 500;
}

.pd-breadcrumb a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.pd-breadcrumb a:hover {
  color: var(--gray-700);
}

.pd-breadcrumb svg {
  color: var(--gray-300);
}

.pd-breadcrumb span {
  color: var(--gray-700);
}

/* ── Hero Grid ── */
.pd-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

/* ── Hero Text ── */
.pd-category-tag span {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  padding: 0;
  border: none;
  border-radius: 0;
  margin-bottom: 16px;
  background: none;
}

.pd-title {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.pd-subtitle {
  font-family: var(--sans);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 600;
  font-style: normal;
  color: var(--gray-700);
  margin-bottom: 28px;
}

.pd-description {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--gray-500);
  max-width: 580px;
  margin-bottom: 36px;
}

/* ── CTA Buttons (Oracle-style dual CTAs) ── */
.pd-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  min-width: 130px;
  text-align: center;
}

.pd-btn-dark {
  background: #1949b3;
  color: #fff;
  border-color: #1949b3;
}

.pd-btn-dark:hover {
  background: #143d8f;
  border-color: #143d8f;
}

.pd-btn-outline-dark {
  background: #fff;
  color: var(--gray-900);
  border-color: var(--gray-300);
}

.pd-btn-outline-dark:hover {
  background: #1949b3;
  color: #fff;
  border-color: #1949b3;
}

.pd-btn-light {
  background: #fff;
  color: var(--gray-900);
  border-color: #fff;
}

.pd-btn-light:hover {
  background: #f0f4ff;
  border-color: #f0f4ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pd-btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.pd-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ── Product Screenshot (compact card — Oracle-style) ── */
.pd-hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.pd-product-frame {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 8px 32px -8px rgba(0, 0, 0, 0.10),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  max-width: 440px;
  width: 100%;
  transition: box-shadow 0.4s ease;
}

.pd-product-frame:hover {
  box-shadow:
    0 12px 40px -8px rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.pd-frame-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #f5f6fa;
  border-bottom: 1px solid #ebedf2;
}

.pd-frame-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pd-frame-bar span:nth-child(1) { background: #ff5f57; }
.pd-frame-bar span:nth-child(2) { background: #ffbd2e; }
.pd-frame-bar span:nth-child(3) { background: #28c840; }

.pd-product-screenshot {
  width: 100%;
  display: block;
}

/* ═══ METRICS STRIP ═══ */
.pd-metrics-strip {
  padding: clamp(36px, 5vh, 52px) 0;
  background: #f8f9fc;
  border-bottom: 1px solid #ebedf2;
}

.pd-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.pd-metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px;
  position: relative;
}

.pd-metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: #dde0e8;
}

.pd-metric-value {
  font-family: var(--heading);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
}

.pd-metric-text {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ═══ DETAILS SECTION (Challenge & Solution) ═══ */
.pd-details-section {
  padding: clamp(64px, 9vh, 100px) 0;
  background: #fff;
}

.pd-details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
}

.pd-detail-block {
  position: relative;
  padding-top: 28px;
}

.pd-detail-label {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.pd-detail-block p {
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--gray-600);
  margin: 0;
}

/* ═══ MODULES & TECH ═══ */
.pd-modules-section {
  padding: clamp(48px, 7vh, 80px) 0;
  background: #f8f9fc;
  border-top: 1px solid #ebedf2;
  border-bottom: 1px solid #ebedf2;
}

.pd-modules-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 72px);
}

.pd-section-heading {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
  padding-bottom: 16px;
  position: relative;
}

.pd-section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--blue-600);
}

/* Module List */
.pd-module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-module-list li {
  font-size: 0.9rem;
  color: var(--gray-600);
  padding: 12px 0 12px 28px;
  position: relative;
  line-height: 1.4;
  border-bottom: 1px solid #ebedf2;
}

.pd-module-list li:last-child {
  border-bottom: none;
}

.pd-module-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
  opacity: 0.45;
}

/* Tech Pills */
.pd-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-tech-pills span {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-700);
  background: #fff;
  border: 1px solid #dde0e8;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pd-tech-pills span:hover {
  background: #eef2ff;
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--blue-700);
}

/* ═══ CLIENT SECTION ═══ */
.pd-client-section {
  padding: clamp(36px, 5vh, 52px) 0;
  background: #fff;
}

.pd-client-bar {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 28px 36px;
  border: 1px solid #ebedf2;
  border-radius: 8px;
  background: #fcfcfe;
}

.pd-client-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.pd-client-logos img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.75;
  transition: all 0.3s ease;
}

.pd-client-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.pd-client-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.pd-client-info p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

/* ═══ CTA SECTION — Dark with Topo Pattern ═══ */
.pd-cta-section {
  padding: clamp(56px, 8vh, 96px) 0;
  background: #f8f9fc;
  border-top: 1px solid #ebedf2;
}

.pd-cta-card {
  text-align: center;
  background: #0c1529;
  border-radius: 12px;
  padding: clamp(52px, 7vh, 80px) clamp(24px, 5vw, 64px);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Topographic contour pattern — dark version */
.pd-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/topo-pattern-dark.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  border-radius: 12px;
  pointer-events: none;
}

.pd-cta-card h2 {
  font-family: var(--heading);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.pd-cta-card h2 em {
  font-style: italic;
  font-weight: 700;
}

.pd-cta-card p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.pd-cta-card .pd-cta-group {
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .pd-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pd-hero-visual {
    justify-content: center;
    padding-top: 0;
  }

  .pd-product-frame {
    max-width: 400px;
    margin: 0 auto;
  }

  .pd-product-frame:hover {
    box-shadow:
      0 12px 40px -8px rgba(0, 0, 0, 0.14),
      0 0 0 1px rgba(0, 0, 0, 0.06);
  }

  .pd-details-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-modules-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .pd-metric-item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .pd-hero {
    padding: 130px 0 48px;
  }

  .pd-client-bar {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .pd-client-logos {
    justify-content: center;
  }

  .pd-breadcrumb {
    margin-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .pd-title {
    font-size: 1.7rem;
  }

  .pd-metrics-row {
    grid-template-columns: 1fr 1fr;
  }

  .pd-hero {
    padding: 120px 0 40px;
  }

  .pd-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-btn {
    width: 100%;
  }

  .pd-product-frame {
    max-width: 100%;
  }

  .pd-description {
    font-size: 0.88rem;
  }
}

@media (max-width: 400px) {
  .pd-title {
    font-size: 1.5rem;
  }

  .pd-metrics-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pd-category-tag span {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}


/* ═══════════════════════════════════════════════════
   PROJECTS LISTING CATALOG PAGE (projects/index.html)
   Clean, Professional & Simple Redesign
   ═══════════════════════════════════════════════════ */

.pl-page {
  background: #ffffff;
  min-height: 100vh;
}

/* ── Hero Banner — Centered, Elegant ── */
.pl-hero {
  background: var(--gray-900);
  color: #fff;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.pl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(25, 73, 179, 0.18) 0%, transparent 80%),
    radial-gradient(circle at 80% 80%, rgba(25, 73, 179, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle grid pattern overlay */
.pl-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.pl-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.pl-hero-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 20px;
}

.pl-hero-title {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

.pl-hero-desc {
  font-size: clamp(0.95rem, 1.15vw, 1.06rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Filter Tabs — Minimal Underline Style ── */
.pl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.pl-filter-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 0;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.pl-filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue-400);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.pl-filter-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.pl-filter-btn.active {
  color: #fff;
}

.pl-filter-btn.active::after {
  width: 100%;
}

/* ── Showcase Grid — 2 Columns with Featured Card ── */
.pl-catalog-section {
  padding: clamp(56px, 8vh, 96px) 0;
  background: #fff;
}

.pl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Showcase Card ── */
.pl-card {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(20px);
}

.pl-card--animate {
  animation: cardFadeIn 0.5s ease forwards;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pl-card:hover {
  transform: translateY(-4px);
  border-color: #dde4ed;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
}

.pl-card.is-hidden {
  display: none !important;
}

/* Featured card spans full width */
.pl-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.pl-card--featured .pl-card-img-wrap {
  aspect-ratio: auto;
  min-height: 360px;
}

/* Card Image */
.pl-card-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f2f5;
  line-height: 0;
}

.pl-card-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pl-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.04) 100%);
  pointer-events: none;
  transition: background 0.4s ease;
}

.pl-card:hover .pl-card-img-wrap img {
  transform: scale(1.03);
}

.pl-card:hover .pl-card-img-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.08) 100%);
}

/* Card Body */
.pl-card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.pl-card-category-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
  position: relative;
  padding-left: 14px;
}

.pl-card-category-badge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

.pl-card-title {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 4px;
}

.pl-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pl-card-title a:hover {
  color: var(--blue-600);
}

.pl-card-subtitle {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.pl-card-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-500);
  margin-bottom: 20px;
  flex: 1;
}

/* Card Meta (clients + stats) */
.pl-card-meta {
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  margin-bottom: 18px;
}

.pl-card-clients {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 400;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pl-card-clients svg {
  color: var(--gray-300);
  flex-shrink: 0;
}

.pl-card-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pl-card-stat {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.pl-card-stat strong {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.82rem;
}

/* Card CTA button */
.pl-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.2s ease;
}

.pl-card:hover .pl-card-btn {
  color: var(--blue-800);
  gap: 12px;
}

.pl-card-btn svg {
  transition: transform 0.25s ease;
}

.pl-card:hover .pl-card-btn svg {
  transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pl-card--featured {
    grid-template-columns: 1fr;
  }

  .pl-card--featured .pl-card-img-wrap {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .pl-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pl-hero {
    padding: 120px 0 56px;
  }

  .pl-hero-title {
    font-size: 2.2rem;
  }

  .pl-card-title {
    font-size: 1.28rem;
  }

  .pl-card-body {
    padding: 22px 20px 20px;
  }
}

@media (max-width: 480px) {
  .pl-hero {
    padding: 100px 0 44px;
  }

  .pl-filters {
    gap: 4px;
  }

  .pl-filter-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}
