/* =========================
   STACK SECTION
========================= */

.stack {
  background-color: #020617;
  position: relative;
}

/* HEADER */

.stack-header {
  max-width: 720px;
  margin-bottom: 72px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.stack-header h3 {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.stack-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TIMELINE STRUCTURE */

.stack-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.stack-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(59,130,246,0.5),
    transparent
  );
  transform: translateX(-50%);
}

/* ITEM */

.stack-item {
  display: flex;
  width: 100%;
  margin-bottom: 56px;
  position: relative;
}

.stack-item.left {
  justify-content: flex-start;
}

.stack-item.right {
  justify-content: flex-end;
}

/* DOT */

.stack-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #020617;
  border: 2px solid var(--blue-accent);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* CARD */

.stack-content {
  width: 420px;
  padding: 28px;
  border-radius: 16px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01)
  );

  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);

  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stack-item.left .stack-content {
  margin-right: 48px;
}

.stack-item.right .stack-content {
  margin-left: 48px;
}

/* FEATURED (AUTOMAÇÃO) */

.stack-item.featured .stack-content {
  border-color: rgba(59,130,246,0.6);
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.2),
    0 16px 48px rgba(59,130,246,0.15);
}

.stack-item.featured h4 {
  color: #93c5fd;
}

/* HOVER */

.stack-content:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.5);
}

/* TEXT */

.stack-content h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.stack-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* LIST */

.stack-content ul {
  list-style: none;
  padding: 0;
}

.stack-content li {
  font-size: 0.85rem;
  padding: 6px 0;
  color: #c7d2fe;
  position: relative;
  padding-left: 16px;
}

.stack-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue-accent);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .stack-timeline::before {
    left: 8px;
  }

  .stack-item {
    justify-content: flex-start;
  }

  .stack-item::before {
    left: 8px;
    transform: none;
  }

  .stack-content {
    width: 100%;
    margin-left: 32px !important;
    margin-right: 0 !important;
  }
}
