/* ── About Page Styles ── */
.about-container {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-header {
  text-align: center;
  margin-bottom: 8px;
}

.about-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.about-subtitle {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

/* ── Interactive Architecture Diagram ── */
.diagram-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.2s ease;
}

.diagram-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.diagram-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 14px;
  gap: 12px;
}

.diagram-card-title h3 {
  font-size: 16px;
  font-weight: 600;
  color: #f0f0f0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diagram-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(107, 188, 138, 0.15);
  color: #6bbc8a;
  border: 1px solid rgba(107, 188, 138, 0.3);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── Visual Flow Nodes & Connectors ── */
.flow-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.flow-node {
  width: 100%;
  background: #222;
  border: 1px solid #383838;
  border-radius: 12px;
  padding: 16px 18px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.flow-node:hover {
  border-color: #6bbc8a;
  background: #262626;
  transform: translateY(-2px);
}

.flow-node.highlight-pi {
  border-color: rgba(233, 30, 99, 0.4);
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), #222);
}

.flow-node.highlight-pi:hover {
  border-color: #e91e63;
}

.node-icon-box {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2d2d2d;
  color: #6bbc8a;
  font-size: 20px;
}

.node-icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.node-icon-box.ci-icon {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
}

.node-icon-box.pi-icon {
  background: rgba(233, 30, 99, 0.15);
  color: #e91e63;
}

.node-icon-box.wa-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.node-icon-box.gh-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.node-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.node-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.node-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: #333;
  color: #aaa;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.node-pill.green {
  background: rgba(107, 188, 138, 0.15);
  color: #6bbc8a;
}

.node-pill.blue {
  background: rgba(33, 150, 243, 0.15);
  color: #2196f3;
}

.node-pill.pink {
  background: rgba(233, 30, 99, 0.15);
  color: #e91e63;
}

.node-pill.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.node-desc {
  font-size: 13px;
  color: #9e9e9e;
  line-height: 1.45;
  margin: 0;
}

/* ── Arrow Connectors ── */
.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #666;
  gap: 2px;
  padding: 2px 0;
}

.arrow-label {
  font-size: 11px;
  font-weight: 500;
  color: #888;
  background: #141414;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
}

.arrow-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: #6bbc8a;
}

/* ── Split / Branch Flow (Bottom 2 outputs) ── */
.flow-branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

@media (max-width: 600px) {
  .flow-branch {
    grid-template-columns: 1fr;
  }
}

/* ── Explanatory Details Grid ── */
.details-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

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

@media (max-width: 640px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

.detail-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.detail-card:hover {
  transform: translateY(-2px);
  border-color: #555;
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-emoji {
  font-size: 22px;
}

.detail-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.detail-card-text {
  font-size: 13px;
  color: #aaa;
  line-height: 1.5;
  margin: 0;
}

/* ── Tech Stack Bar ── */
.tech-bar {
  background: #181818;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-bar-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #777;
}

.tech-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-size: 12px;
  background: #222;
  border: 1px solid #333;
  color: #ccc;
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 500;
}
