/* ==========================================================================
   PROJECT STRUCTURE / DEVELOPMENT FLOW
   Light Premium Version
   ========================================================================== */

.project-structure {
  position: relative;

  padding: 120px 24px;

  background: #ffffff;

  color: #0f172a;

  overflow: hidden;

  font-family:
    'Plus Jakarta Sans',
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* ==========================================================================
   BACKGROUND GLOW
   ========================================================================== */

.ps-bg-glow {
  position: absolute;

  top: 20%;
  left: 50%;

  transform: translateX(-50%);

  width: 800px;
  height: 600px;

  background:
    radial-gradient(
      circle,
      rgba(99, 102, 241, 0.08) 0%,
      rgba(168, 85, 247, 0.045) 35%,
      transparent 70%
    );

  filter: blur(100px);

  pointer-events: none;
}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.ps-container {
  max-width: 1100px;

  margin: 0 auto;

  position: relative;

  z-index: 2;

  text-align: center;
}


/* ==========================================================================
   BADGE
   ========================================================================== */

.ps-badge {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: #eef2ff;

  border: 1px solid #c7d2fe;

  color: #4f46e5;

  padding: 7px 14px;

  border-radius: 999px;

  font-size: 13px;

  font-weight: 700;

  margin-bottom: 16px;
}


.badge-dot {
  width: 7px;
  height: 7px;

  background: #6366f1;

  border-radius: 50%;

  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.10);
}


/* ==========================================================================
   INTRO
   ========================================================================== */

.flow-block h2,
.arch-block h2 {
  font-size: 34px;

  font-weight: 800;

  line-height: 1.2;

  letter-spacing: -0.025em;

  color: #0f172a;

  margin: 0 0 14px;
}


.ps-intro {
  max-width: 650px;

  margin: 0 auto 40px;

  color: #64748b;

  font-size: 16px;

  line-height: 1.7;
}


/* ==========================================================================
   DEVELOPMENT FLOW
   ========================================================================== */

.flow-block {
  margin-bottom: 110px;
}


.flow-diagram {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;
}


/* ==========================================================================
   FLOW STEP
   ========================================================================== */

.flow-step {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  min-height: 52px;

  padding: 10px 17px;

  background: #ffffff;

  border: 1px solid #e2e8f0;

  border-radius: 12px;

  color: #334155;

  font-size: 14px;

  font-weight: 700;

  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.05);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}


.flow-step:hover {
  transform: translateY(-3px);

  border-color: #c7d2fe;

  box-shadow:
    0 12px 25px rgba(15, 23, 42, 0.08);
}


.flow-number {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  border-radius: 7px;

  background: #f1f5f9;

  color: #64748b;

  font-size: 10px;

  font-weight: 800;
}


/* ==========================================================================
   HIGHLIGHT STEP
   ========================================================================== */

.highlight-step {
  background:
    linear-gradient(
      135deg,
      #eef2ff,
      #f5f3ff
    );

  border-color: #c7d2fe;

  color: #4338ca;

  box-shadow:
    0 8px 25px rgba(99, 102, 241, 0.10);
}


.highlight-step .flow-number {
  background: #6366f1;

  color: #ffffff;
}


/* ==========================================================================
   FLOW ARROWS
   ========================================================================== */

.flow-arrow {
  display: flex;

  align-items: center;
  justify-content: center;

  color: #818cf8;

  font-size: 13px;

  padding: 0 2px;
}


/* ==========================================================================
   ARCHITECTURE SECTION
   ========================================================================== */

.arch-block {
  margin-bottom: 60px;
}


.ps-section-label {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  margin-bottom: 14px;

  color: #6366f1;

  font-size: 12px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.12em;
}


.ps-section-label span {
  width: 35px;
  height: 1px;

  background: #c7d2fe;
}


.ps-architecture-intro {
  max-width: 650px;

  margin: 0 auto 42px;

  color: #64748b;

  font-size: 15px;

  line-height: 1.7;
}


/* ==========================================================================
   ARCHITECTURE DIAGRAM
   ========================================================================== */

.arch-diagram {
  display: flex;

  flex-direction: column;

  align-items: center;

  max-width: 620px;

  margin: 0 auto;
}


/* ==========================================================================
   ARCHITECTURE NODE
   ========================================================================== */

.arch-node {
  width: 100%;

  display: flex;

  align-items: center;

  gap: 18px;

  text-align: left;

  background: #ffffff;

  border: 1px solid #e2e8f0;

  padding: 20px 22px;

  border-radius: 16px;

  box-shadow:
    0 8px 25px rgba(15, 23, 42, 0.05);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}


.arch-node:hover {
  transform: translateY(-3px);

  border-color: #c7d2fe;

  box-shadow:
    0 15px 35px rgba(15, 23, 42, 0.08);
}


/* ==========================================================================
   HIGHLIGHT NODE
   ========================================================================== */

.highlight-node {
  background:
    linear-gradient(
      135deg,
      #f5f3ff,
      #eef2ff
    );

  border-color: #c7d2fe;

  box-shadow:
    0 10px 30px rgba(99, 102, 241, 0.09);
}


/* ==========================================================================
   NODE ICON
   ========================================================================== */

.node-icon {
  width: 46px;
  height: 46px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #f1f5f9;

  border: 1px solid #e2e8f0;

  color: #475569;

  font-size: 18px;
}


.highlight-node .node-icon {
  background: #eef2ff;

  border-color: #c7d2fe;

  color: #4f46e5;
}


/* ==========================================================================
   NODE CONTENT
   ========================================================================== */

.node-content {
  display: flex;

  flex-direction: column;

  gap: 3px;

  min-width: 0;
}


.node-label {
  font-size: 10px;

  font-weight: 800;

  color: #818cf8;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}


.node-title {
  font-size: 16px;

  font-weight: 750;

  color: #1e293b;

  line-height: 1.4;
}


.node-description {
  font-size: 13px;

  line-height: 1.5;

  color: #64748b;
}


/* ==========================================================================
   VERTICAL CONNECTORS
   ========================================================================== */

.arch-connector {
  position: relative;

  width: 24px;
  height: 40px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #818cf8;

  font-size: 10px;
}


.connector-line {
  position: absolute;

  top: 0;
  bottom: 0;

  left: 50%;

  transform: translateX(-50%);

  width: 2px;

  background:
    linear-gradient(
      180deg,
      #c7d2fe,
      #818cf8,
      #c7d2fe
    );
}


/* ==========================================================================
   FOOTER CAPTION
   ========================================================================== */

.ps-footer-caption {
  max-width: 700px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  text-align: left;

  padding: 22px 26px;

  background: #f8fafc;

  border: 1px solid #e2e8f0;

  border-radius: 16px;
}


.caption-icon {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: #eef2ff;

  border: 1px solid #c7d2fe;

  color: #4f46e5;
}


.ps-footer-caption strong {
  display: block;

  margin-bottom: 3px;

  color: #1e293b;

  font-size: 14px;

  font-weight: 750;
}


.ps-footer-caption p {
  margin: 0;

  color: #64748b;

  font-size: 13px;

  line-height: 1.6;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {

  .flow-diagram {
    gap: 12px;
  }

}


@media (max-width: 768px) {

  .project-structure {
    padding: 90px 20px;
  }


  .flow-block h2,
  .arch-block h2 {
    font-size: 28px;
  }


  .ps-intro {
    font-size: 15px;
  }


  .flow-diagram {
    flex-direction: column;

    gap: 7px;
  }


  .flow-step {
    width: 100%;

    max-width: 340px;

    justify-content: flex-start;
  }


  .flow-arrow {
    transform: rotate(90deg);

    padding: 2px 0;
  }


  .arch-node {
    padding: 18px;
  }


  .node-title {
    font-size: 15px;
  }


  .node-description {
    font-size: 12px;
  }


  .ps-footer-caption {
    align-items: flex-start;

    padding: 20px;
  }

}


@media (max-width: 480px) {

  .project-structure {
    padding: 75px 16px;
  }


  .flow-block {
    margin-bottom: 80px;
  }


  .flow-block h2,
  .arch-block h2 {
    font-size: 25px;
  }


  .ps-section-label {
    font-size: 10px;
  }


  .arch-node {
    gap: 12px;

    padding: 16px;
  }


  .node-icon {
    width: 40px;
    height: 40px;

    font-size: 16px;
  }


  .node-title {
    font-size: 14px;
  }


  .node-description {
    font-size: 11.5px;
  }


  .ps-footer-caption {
    flex-direction: column;

    text-align: center;

    align-items: center;
  }

}