/* ==========================================================================
   CAMPAIGN PROCESS ROADMAP STYLES — AURALIX MEDIA
   ========================================================================== */

.process-section {
  padding: 6rem 0;
  background-color: #FAFAFC; /* Clean off-white background */
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(17, 19, 24, 0.05);
  border-bottom: 1px solid rgba(17, 19, 24, 0.05);
}

/* Elegant background script/italic text watermarks */
.process-bg-text {
  position: absolute;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 8rem;
  font-weight: 300;
  color: rgba(212, 58, 47, 0.018); /* extremely soft and subtle red */
  pointer-events: none;
  user-select: none;
  z-index: 1;
  line-height: 1;
}

.process-bg-text.text-left {
  top: 25%;
  left: -2%;
  transform: rotate(-8deg);
}

.process-bg-text.text-right {
  bottom: 15%;
  right: -2%;
  transform: rotate(8deg);
}

.process-timeline-wrapper {
  position: relative;
  margin-top: 3.5rem;
  width: 100%;
}

/* Horizontal connecting dashed line on desktop */
.timeline-line {
  position: absolute;
  top: 0;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-top: 2px dashed rgba(212, 58, 47, 0.28); /* Elegant brand red dashed line */
  z-index: 1;
  pointer-events: none;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4.5rem; /* Pushes grid down so connecting line passes above cards */
  position: relative;
  z-index: 2;
}

/* Card Styling */
.process-card {
  background: #ffffff;
  border: 1px solid rgba(17, 19, 24, 0.05);
  border-radius: 20px;
  padding: 2.5rem 2rem 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px rgba(17, 19, 24, 0.015);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
  z-index: 2;
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 58, 47, 0.25);
  box-shadow: 0 20px 45px rgba(212, 58, 47, 0.06);
}

/* Vertical ribbon string hanging the cards from the dashed line */
.process-card::before {
  content: '';
  position: absolute;
  top: -72px; /* starts from the center of the dashed timeline line */
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 72px; /* length to reach card top */
  border-left: 2px dashed rgba(212, 58, 47, 0.35); /* dashed ribbon string */
  z-index: 1;
  pointer-events: none;
  transition: border-color 0.3s ease, border-style 0.3s ease;
}

.process-card:hover::before {
  border-left-color: var(--brand-red, #D43A2F); /* highlights red on hover */
  border-left-style: solid; /* turns into a solid line on hover */
}

/* Glowing timeline indicator dot resting on dashed line */
.timeline-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-red, #D43A2F);
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(212, 58, 47, 0.4);
  position: absolute;
  top: -80px; /* Positions exactly on the dashed line */
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 5;
}

.process-card:hover .timeline-node {
  transform: translateX(-50%) scale(1.35);
  background: #ffffff;
  border-color: var(--brand-red, #D43A2F);
  box-shadow: 0 0 15px rgba(212, 58, 47, 0.8);
}

/* Card Header Icon */
.process-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 58, 47, 0.05); /* Soft brand red background */
  border: 1px solid rgba(212, 58, 47, 0.12);
  color: var(--brand-red, #D43A2F);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.process-card:hover .process-icon-box {
  background: var(--brand-red, #D43A2F);
  color: #ffffff;
}

/* Category phase tag */
.process-step-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brand-red, #D43A2F);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #111318;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.process-desc {
  font-size: 0.86rem;
  color: #555864;
  line-height: 1.6;
  font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .process-timeline-wrapper {
    margin-top: 1rem;
  }

  .timeline-line {
    display: none; /* Hide timeline line on stack view */
  }

  .timeline-node {
    display: none; /* Hide indicator nodes on stack view */
  }

  .process-card::before {
    display: none; /* Hide hanging ribbons on mobile */
  }

  .process-bg-text {
    display: none; /* Hide background watermarks on mobile */
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 0;
  }

  .process-card {
    padding: 2.2rem 1.75rem;
  }
}

@media (max-width: 576px) {
  .process-section {
    padding: 4rem 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
