/* ============================================================
   dpdp-privacy-infrastructure.css
   Custom styles for DPDP Privacy Infrastructure page.
   Reuses styles from bootstrap.css, common.css, config.css.
   ============================================================ */

/* --- Scroll Reveal Trigger --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Hero Layout custom additions --- */
.dpdp-hero-pane {
  min-height: calc(100vh - 80px);
}
@media (max-width: 991.98px) {
  .dpdp-hero-pane { min-height: auto; }
  .hero-content-pane { 
    border-right: none !important;
    border-bottom: 1px solid var(--layoutBorderColor);
  }
}


/* --- Hero Simulator Mockup --- */
.dashboard-simulator {
  width: 100%;
  max-width: 540px;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  position: relative;
}
.sim-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
}
.sim-dot.orange { background: var(--secondaryMastercolor); }
.sim-flow {
  display: flex;
  justify-content: space-between;
  position: relative;
  min-height: 250px;
}
.sim-col {
  width: 28%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 2;
}
.sim-node {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}
.sim-node.active {
  border-color: rgba(246, 99, 32, 0.35);
  box-shadow: 0 0 15px rgba(246, 99, 32, 0.15);
  background: #1b1614;
  color: var(--white);
}
.sim-node-heading {
  font-size: 8px;
  text-transform: uppercase;
  color: var(--secondaryMastercolor);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.sim-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.sim-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1.5;
}
.sim-line-active {
  fill: none;
  stroke: var(--secondaryMastercolor);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 10, 60;
  stroke-dashoffset: 0;
  animation: simFlowAnim 3s linear infinite;
  opacity: 0.8;
}
@keyframes simFlowAnim {
  0% { stroke-dashoffset: 70; }
  100% { stroke-dashoffset: 0; }
}

@media (max-width: 767.98px) {
  .sim-svg-overlay { display: none; }
}

@media (max-width: 575.98px) {
  .dashboard-simulator { padding: 16px; }
  .sim-flow { min-height: 200px; }
  .sim-node {
    font-size: 9px;
    padding: 8px 4px;
    line-height: 1.2;
  }
  .sim-node-heading { font-size: 7px; }
}

/* --- Section 1: Three Core Engines Cards --- */
.engine-card {
  background: var(--white);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.engine-card:hover {
  transform: translateY(-6px);
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 16px 48px rgba(246, 99, 32, 0.06);
}

/* --- Section 2: Data Source hover --- */
.datasource-card {
  transition: all 0.3s ease;
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
}
.datasource-card:hover {
  background: #141414 !important;
  border-color: rgba(246, 99, 32, 0.3);
}
.datasource-icon {
  width: 44px;
  height: 44px;
  background: #1b1614;
  border: 1px solid rgba(246, 99, 32, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondaryMastercolor);
  transition: all 0.3s ease;
}
.datasource-card:hover .datasource-icon {
  background: var(--secondaryMastercolor);
  color: var(--white);
  box-shadow: 0 0 15px rgba(246, 99, 32, 0.4);
}

/* --- Section 3: Privacy Operations Horizontal workflow --- */
.ops-workflow {
  display: flex;
  justify-content: space-between;
}
@media (max-width: 991.98px) {
  .ops-workflow { flex-direction: column; gap: 24px; }
}
.ops-step-card {
  background: var(--white);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}
.ops-step-card:hover {
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 12px 36px rgba(246, 99, 32, 0.08);
}
.ops-arrow {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 24px; /* spans the gap-4 */
  height: 0;
  border-top: 2px dashed var(--secondaryMastercolor);
  display: block;
  transform: translateY(-50%);
}
.ops-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--secondaryMastercolor);
  border-right: 2px solid var(--secondaryMastercolor);
  transform: rotate(45deg);
}
.ops-step-card:last-child .ops-arrow {
  display: none !important;
}
@media (max-width: 991.98px) {
  .ops-arrow { display: none !important; }
}

/* --- Section 4: centerpiece Architecture --- */
/* --- Swimlane Flow Architecture Diagram --- */
.arch-flow-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.arch-flow-row {
  display: flex;
  background: var(--white);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 16px;
  padding: 32px;
  gap: 40px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: all 0.3s ease;
}
.arch-flow-row:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.02);
}

/* Row-specific visual styles */
.arch-flow-row.row-sources {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.arch-flow-row.row-engines {
  background: #fffcf9;
  border-color: #ffedd5;
}
.arch-flow-row.row-ops {
  background: #fafaff;
  border-color: #f3e8ff;
}
.arch-flow-row.row-compliance {
  background: #f6fdf9;
  border-color: #d1fae5;
}

/* Row Info block (Left) */
.arch-row-info {
  width: 25%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.arch-step-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  display: inline-block;
  text-transform: uppercase;
}
.row-sources .arch-step-tag { background: #e2e8f0; color: #475569; }
.row-engines .arch-step-tag { background: #ffedd5; color: var(--secondaryMastercolor); }
.row-ops .arch-step-tag { background: #f3e8ff; color: #8b5cf6; }
.row-compliance .arch-step-tag { background: #d1fae5; color: #10b981; }

.arch-row-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}
.arch-row-desc {
  font-size: 13px;
  color: var(--primaryTextColor);
  line-height: 1.5;
  margin: 0;
}

/* Row Nodes grid (Right) */
.arch-row-nodes {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card styling */
.arch-node {
  background: var(--white);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}
.arch-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.arch-node-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}
.arch-node-desc {
  font-size: 11.5px;
  color: var(--primaryTextColor);
  line-height: 1.45;
  margin: 0;
}

/* Node Hover styles by category */
.arch-node-sources { border-color: #cbd5e1; }
.arch-node-sources .arch-node-icon { background: #f1f5f9; color: #6b7280; }
.arch-node-sources:hover {
  transform: translateY(-4px);
  border-color: #6b7280;
  box-shadow: 0 8px 24px rgba(107, 114, 128, 0.1);
}
.arch-node-sources:hover .arch-node-icon {
  background: #6b7280;
  color: var(--white);
}

.arch-node-engines { border-color: #fed7aa; }
.arch-node-engines .arch-node-icon { background: #fff7ed; color: var(--secondaryMastercolor); }
.arch-node-engines:hover {
  transform: translateY(-4px);
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 8px 24px rgba(246, 99, 32, 0.12);
}
.arch-node-engines:hover .arch-node-icon {
  background: var(--secondaryMastercolor);
  color: var(--white);
}

.arch-node-ops { border-color: #e9d5ff; }
.arch-node-ops .arch-node-icon { background: #faf5ff; color: #8b5cf6; }
.arch-node-ops:hover {
  transform: translateY(-4px);
  border-color: #8b5cf6;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
}
.arch-node-ops:hover .arch-node-icon {
  background: #8b5cf6;
  color: var(--white);
}

.arch-node-compliance { border-color: #a7f3d0; }
.arch-node-compliance .arch-node-icon { background: #f0fdf4; color: #10b981; }
.arch-node-compliance:hover {
  transform: translateY(-4px);
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}
.arch-node-compliance:hover .arch-node-icon {
  background: #10b981;
  color: var(--white);
}

/* Connectors */
.arch-flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 50px;
  position: relative;
  z-index: 2;
  justify-content: center;
}
.connector-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.connector-arrow {
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #64748b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 3;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
  .arch-flow-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px;
  }
  .arch-row-info {
    width: 100%;
  }
  .arch-row-nodes {
    gap: 16px;
  }
}

@media (max-width: 767.98px) {
  .arch-flow-connector {
    display: none;
  }
  .arch-flow-row {
    margin-bottom: 16px;
  }
  .arch-flow-row:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .arch-row-nodes {
    grid-template-columns: 1fr;
  }
}

.deployment-card {
  background: var(--white);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.deployment-card:hover {
  border-color: var(--secondaryMastercolor);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.deployment-tag {
  background: var(--landingBackground);
  border: 1px solid var(--layoutBorderColor);
  color: var(--black);
  padding: 6px 12px;
  border-radius: 4px;
}

/* --- Section 5: Industry Solutions (Enhanced Card Layout) --- */
.industry-card {
  background: var(--white);
  border: 1px solid var(--layoutBorderColor);
  border-top: 4px solid var(--layoutBorderColor);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.industry-card:hover {
  border-top-color: var(--secondaryMastercolor);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(246, 99, 32, 0.05);
}
.industry-card.featured {
  background: #0d0d0d;
  border-color: #1a1a1a;
  border-top-color: var(--secondaryMastercolor);
  box-shadow: 0 4px 20px rgba(246, 99, 32, 0.05);
}
.industry-card.featured:hover {
  box-shadow: 0 16px 48px rgba(246, 99, 32, 0.12);
}
.industry-card.featured h4 {
  color: var(--white) !important;
}
.industry-card.featured .industry-features li {
  color: rgba(255, 255, 255, 0.7) !important;
}
.industry-card-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(246, 99, 32, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondaryMastercolor);
  transition: all 0.3s ease;
}
.industry-card:hover .industry-card-icon-wrap {
  background: var(--secondaryMastercolor);
  color: var(--white);
  transform: scale(1.1);
}
.industry-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--secondaryMastercolorLite);
  color: var(--secondaryMastercolor);
  padding: 4px 10px;
  border-radius: 100px;
}
.industry-card.featured .industry-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* --- Section 6: Sticky Why Choose layout --- */
.why-sticky-col {
  position: sticky;
  top: 110px;
}
.why-highlight-widget {
  background: var(--white);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
}
.why-list {
  display: flex;
  flex-direction: column;
}
.why-li-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--layoutBorderColor);
  transition: all 0.3s ease;
  position: relative;
}
.why-li-item:last-child {
  border-bottom: none;
}
.why-li-item:hover {
  transform: translateX(8px);
  border-bottom-color: var(--secondaryMastercolor);
}
.why-li-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondaryMastercolor);
  font-family: var(--font-primary);
  width: 24px;
}
.why-li-icon {
  width: 42px;
  height: 42px;
  background: rgba(246, 99, 32, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondaryMastercolor);
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.why-li-item:hover .why-li-icon {
  background: var(--secondaryMastercolor);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(246, 99, 32, 0.2);
}
.why-li-body {
  flex-grow: 1;
}
.why-li-body h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--black);
}
.why-li-body p {
  font-size: 14px;
  color: var(--primaryTextColor);
  line-height: 1.6;
  margin: 0;
}
.why-li-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--landingBackground);
  border: 1px solid var(--layoutBorderColor);
  color: var(--black);
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
  align-self: center;
}
@media (max-width: 991.98px) {
  .why-sticky-col { position: static; }
  .why-li-item { gap: 16px; }
  .why-li-tag { display: none; }
}

/* --- Showcase Video Browser Mockup --- */
.browser-mockup {
  background: var(--white);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.browser-mockup:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
.browser-header {
  height: 40px;
  background: #f8fafc;
  border-bottom: 1px solid var(--layoutBorderColor);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-address-bar {
  flex-grow: 1;
  max-width: 320px;
  height: 24px;
  background: var(--white);
  border: 1px solid var(--layoutBorderColor);
  border-radius: 4px;
  margin: 0 auto;
  font-size: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.browser-address-bar i {
  font-size: 8px;
}

.browser-content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.browser-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


