/* Products page: hero + alternating split-row showcase. */

/* =========================================================
   Animations
   ========================================================= */

@keyframes productsHeroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero: animate on page load. */
.products-hero h1 {
  opacity: 0;
  animation: productsHeroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.products-hero p {
  opacity: 0;
  animation: productsHeroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

/* Rows: initial state (invisible + offset). IntersectionObserver adds
   .is-visible to each .product-row when it scrolls into view. */
.product-row__visual,
.product-row__text {
  opacity: 0;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.product-row__visual { transform: translateX(-60px); }
.product-row__text   { transform: translateX(60px); }
.product-row--reverse .product-row__visual { transform: translateX(60px); }
.product-row--reverse .product-row__text   { transform: translateX(-60px); }

.product-row.is-visible .product-row__visual,
.product-row.is-visible .product-row__text {
  opacity: 1;
  transform: translateX(0);
}
.product-row.is-visible .product-row__text {
  transition-delay: 0.18s;
}

/* Big watermark number: scale + fade in. */
.product-row__num {
  opacity: 0;
  transform: scale(0.85) translate(-10px, 10px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-row.is-visible .product-row__num {
  opacity: 1;
  transform: scale(1) translate(0, 0);
  transition-delay: 0.25s;
}

/* Bullets: stagger in. */
.product-row__bullets li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-row.is-visible .product-row__bullets li {
  opacity: 1;
  transform: translateY(0);
}
.product-row.is-visible .product-row__bullets li:nth-child(1) { transition-delay: 0.42s; }
.product-row.is-visible .product-row__bullets li:nth-child(2) { transition-delay: 0.54s; }
.product-row.is-visible .product-row__bullets li:nth-child(3) { transition-delay: 0.66s; }
.product-row.is-visible .product-row__bullets li:nth-child(4) { transition-delay: 0.78s; }
.product-row.is-visible .product-row__bullets li:nth-child(5) { transition-delay: 0.90s; }

/* Visual hover: subtle lift + tilt. */
.product-row__visual {
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}
.product-row.is-visible .product-row__visual:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow:
    0 40px 70px -30px rgba(15, 23, 42, 0.45),
    0 14px 28px -14px rgba(15, 23, 42, 0.25);
}
.product-row--reverse.is-visible .product-row__visual:hover {
  transform: translateY(-6px) rotate(0.6deg);
}

/* Inner SVG: gentle float that activates only after the row is visible
   (prevents motion at load). */
@keyframes productsFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.product-row.is-visible .product-row__visual img {
  animation: productsFloat 7s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* Bullet dot: tiny pulse on first reveal. */
@keyframes productsBulletPulse {
  0%   { box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.18); }
  50%  { box-shadow: 0 0 0 9px rgba(255, 94, 58, 0.0); }
  100% { box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.18); }
}
.product-row.is-visible .product-row__bullets li::before {
  animation: productsBulletPulse 1.6s ease-out 0.2s 1;
}

/* =========================================================
   PF deep-dive section
   ========================================================= */

.pf-deepdive {
  background: linear-gradient(180deg, #f8fafc 0%, #eef1f7 100%);
  padding: 120px 24px 140px;
  color: #0f172a;
}

.pf-deepdive__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.pf-deepdive__header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.pf-deepdive__eyebrow {
  display: inline-block;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #FF5e3a;
  padding: 7px 14px;
  border: 1.5px solid rgba(255, 94, 58, 0.35);
  border-radius: 999px;
  margin-bottom: 22px;
}

.pf-deepdive h2.pf-deepdive__title {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: #0f172a !important;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 18px;
}

.pf-deepdive__lede {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: #475569;
  margin: 0;
}

/* ----- Per-block header ----- */
.pf-block h3.pf-block__h {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #0f172a !important;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.pf-block__sub {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #64748b;
  margin: 0 0 36px;
}

/* ----- Capabilities (6-up grid) ----- */
.pf-cap__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pf-cap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 24px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pf-cap:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(15, 23, 42, 0.18);
  border-color: rgba(255, 94, 58, 0.35);
}
.pf-cap__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4ef 0%, #ffe0d3 100%);
  font-size: 26px;
  margin-bottom: 16px;
}
.pf-cap h4.pf-cap__title {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a !important;
  margin: 0 0 8px;
}
.pf-cap__desc {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* ----- Lifecycle rail ----- */
.pf-step__rail {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin-bottom: 50px;
}
.pf-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-top: 1px solid #e2e8f0;
}
.pf-step:first-child { border-top: 0; }
.pf-step__num {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 94, 58, 0.85);
  letter-spacing: -0.04em;
}
.pf-step__body h4.pf-step__title {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a !important;
  margin: 0 0 8px;
}
.pf-step__body p {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: #334155;
  margin: 0;
  max-width: 760px;
}

/* ----- Settlement formula ----- */
.pf-formula {
  background: #0f172a;
  border-radius: 18px;
  padding: 32px 28px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.45);
}
.pf-formula__label {
  display: inline-block;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}
.pf-formula__eqn {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 10px 14px;
  color: #ffffff;
}
.pf-formula__op {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 94, 58, 0.95);
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
}
.pf-formula__op--minus {
  background: rgba(255, 255, 255, 0.18);
}

/* ----- Why Digi8 (4-up) ----- */
.pf-why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.pf-why {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  border-left: 4px solid #FF5e3a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.pf-why h4.pf-why__title {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 8px;
}
.pf-why p {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

/* ----- Tech stack ----- */
.pf-stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.pf-stack__item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pf-stack__item:hover {
  border-color: rgba(255, 94, 58, 0.45);
  transform: translateY(-2px);
}
.pf-stack__tech {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}
.pf-stack__role {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FF5e3a;
  margin-top: 4px;
}
.pf-stack__note {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
  margin-top: 6px;
}

/* ----- Deployment options ----- */
.pf-deploy__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pf-deploy {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 26px 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pf-deploy:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -18px rgba(15, 23, 42, 0.2);
}
.pf-deploy__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 18px;
}
.pf-deploy h4.pf-deploy__title {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0 0 10px;
}
.pf-deploy__body {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 14px;
}
.pf-deploy__best {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #0f172a;
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}
.pf-deploy__best strong {
  color: #FF5e3a;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11.5px;
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .pf-deepdive { padding: 80px 22px 100px; }
  .pf-deepdive__inner { gap: 70px; }
  .pf-deepdive h2.pf-deepdive__title { font-size: 38px; }
  .pf-cap__grid       { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-why__grid       { grid-template-columns: 1fr; }
  .pf-stack           { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-deploy__grid    { grid-template-columns: 1fr; }
  .pf-step            { grid-template-columns: 80px 1fr; gap: 18px; }
  .pf-step__num       { font-size: 42px; }
  .pf-formula__eqn    { font-size: 15.5px; gap: 8px 10px; }
}

@media (max-width: 520px) {
  .pf-cap__grid       { grid-template-columns: 1fr; }
  .pf-stack           { grid-template-columns: 1fr; }
  .pf-deepdive h2.pf-deepdive__title { font-size: 30px; }
  .pf-step__num       { font-size: 36px; }
}

/* Respect reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .products-hero h1,
  .products-hero p,
  .product-row__visual,
  .product-row__text,
  .product-row__num,
  .product-row__bullets li {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .product-row.is-visible .product-row__visual img {
    animation: none !important;
  }
}


/* ----- Hero ----- */
.products-hero {
  position: relative;
  background-image: url('/wp-content/uploads/2025/12/Firefly_Gemini-Flash_-A-dynamic-modern-office-scene-set-in-Pakistan-featuring-diverse-professionals-coll-601690.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  padding: 200px 24px 200px;
  text-align: center;
  overflow: hidden;
}

.products-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.products-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}

.products-hero h1 {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.products-hero p {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* ----- Showcase wrapper ----- */
.products-showcase {
  background: #ffffff;
  padding: 110px 24px 130px;
}

.products-showcase__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 140px;
}

/* ----- Row ----- */
.product-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 80px;
  position: relative;
}

.product-row--reverse .product-row__visual { order: 2; }
.product-row--reverse .product-row__text   { order: 1; }

/* ----- Visual side ----- */
.product-row__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -25px rgba(15, 23, 42, 0.35),
    0 8px 18px -10px rgba(15, 23, 42, 0.20);
  background: #f1f3f8;
}

.product-row__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Oversized display number positioned beside the visual */
.product-row__num {
  position: absolute;
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 220px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 94, 58, 0.16);
  letter-spacing: -0.04em;
  top: -50px;
  left: -30px;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.product-row--reverse .product-row__num {
  left: auto;
  right: -30px;
}

/* ----- Text side ----- */
.product-row__text {
  padding: 0;
}

.product-row__eyebrow {
  display: inline-block;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #FF5e3a;
  padding: 6px 12px;
  border: 1.5px solid rgba(255, 94, 58, 0.35);
  border-radius: 999px;
  margin-bottom: 22px;
}

.product-row__text h3.product-row__name {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: #0f172a !important;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 22px;
  position: relative;
}

.product-row__text h3.product-row__name::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #FF5e3a;
  border-radius: 2px;
  margin-top: 18px;
}

.product-row__blurb {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 26px;
  max-width: 520px;
}

.product-row__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-row__bullets li {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  padding-left: 28px;
  position: relative;
}

.product-row__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FF5e3a;
  box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.18);
}

.product-row__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 26px;
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff !important;
  text-decoration: none;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f4a4d 100%);
  border-radius: 999px;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.06),
    0 10px 22px -10px rgba(15, 23, 42, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

/* Soft sheen that sweeps across the button on hover. */
.product-row__more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.product-row__more:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.08),
    0 16px 32px -10px rgba(15, 23, 42, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.product-row__more:hover::before {
  transform: translateX(120%);
}

.product-row__more:active {
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .products-showcase {
    padding: 70px 22px 90px;
  }
  .products-showcase__inner {
    gap: 90px;
  }
  .product-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .product-row--reverse .product-row__visual { order: 0; }
  .product-row--reverse .product-row__text   { order: 0; }
  .product-row__text h3.product-row__name {
    font-size: 44px;
  }
  .product-row__num {
    font-size: 150px;
    top: -30px;
    left: -10px;
  }
  .product-row--reverse .product-row__num {
    right: -10px;
  }
}

@media (max-width: 880px) {
  .products-hero {
    padding: 140px 20px 120px;
    background-attachment: scroll;
  }
  .products-hero h1 {
    font-size: 40px;
  }
  .products-hero p {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .product-row__text h3.product-row__name {
    font-size: 36px;
  }
  .product-row__blurb {
    font-size: 16px;
  }
  .product-row__num {
    font-size: 120px;
  }
}
