.how-we-build {
  position: relative;
  margin: 85px 0px;
}

.how-we-build-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(to right, #bb0a1e, #bb0a1e);
  width: 0%;
  z-index: 1000;
  transition: width 0.3s ease;
}

.how-we-build-step-indicator {
  position: sticky;
  top: 50%;
  right: 40px;
  /* adjust spacing from the right edge */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}


.how-we-build-indicator-dot {
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bb0a1e;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.how-we-build-indicator-dot.active {
  background: #bb0a1e;
  transform: scale(1.3);
}

.how-we-build-indicator-dot::after {
  content: attr(data-step);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #bb0a1e;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.how-we-build-indicator-dot:hover::after {
  opacity: 1;
}

.how-we-build-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 100px;
  padding: 0 75px;
}

@media (min-width: 1600px) {
  .how-we-build-container {
    padding: 0 120px;
    margin-bottom: 160px;
  }
}

/* Tablet Landscape */
@media (max-width: 1199px) {
  .how-we-build-container {
    padding: 0 60px;
    margin-bottom: 100px;
  }
}

/* Tablet Portrait */
@media (max-width: 991px) {
  .how-we-build-container {
    padding: 0 40px;
    margin-bottom: 80px;
  }
}

/* Mobile Large */
@media (max-width: 767px) {
  .how-we-build-container {
    padding: 0 30px;
    margin-bottom: 60px;
    gap: 60px;
  }
}

/* Mobile Small */
@media (max-width: 575px) {
  .how-we-build-container {
    padding: 0 20px;
    margin-bottom: 40px;
    gap: 40px;
  }
}


/* LEFT SECTION */
.how-we-build-left-section {
  flex: 1;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  height: fit-content;
}

.how-we-build-left-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.how-we-build-left-section h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #bb0a1e 0%, #1a1a2e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.how-we-build-left-section p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.how-we-build-btn {
  background-color: #bb0a1e;
  border: none;
  color: #1a1a2e;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 216, 61, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-we-build-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 216, 61, 0.6);
  background-color: #bb0a1e;
}

.how-we-build-btn i {
  transition: transform 0.3s ease;
}

.how-we-build-btn:hover i {
  transform: translateX(5px);
}

/* RIGHT SECTION */
.how-we-build-right-section {
  flex: 1;
  padding-right: 20px;
}

.how-we-build-timeline {
  position: relative;
  padding-left: 50px;
}

.how-we-build-timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #a695ff, #bb0a1e, #bb0a1e);
  border-radius: 2px;
}

.how-we-build-step {
  position: relative;
  margin-bottom: 80px;
  opacity: 0.7;
  transform: translateX(-20px);
  transition: all 0.6s ease;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.how-we-build-step:hover {
  transform: translateX(0);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.how-we-build-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.how-we-build-step.active {
  border-left: 5px solid #bb0a1e;
  background: rgba(125, 115, 255, 0.08);
  opacity: 1;
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(125, 115, 255, 0.15);
}

.how-we-build-step.active .how-we-build-step-title {
  color: #1a1a2e;
}

.how-we-build-step-number {
  position: absolute;
  left: -73px;
  top: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  border: 4px solid #bb0a1e;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #bb0a1e;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px #bb0a1e;
  z-index: 2;
}

.how-we-build-step.active .how-we-build-step-number {
  background-color: #bb0a1e;
  color: #fff;
  border-color: #bb0a1e;
  transform: scale(1.15);
  box-shadow: 0 5px 20px #bb0a1e;
}

.how-we-build-step-title {
  color: #bb0a1e;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-we-build-step-desc {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 90%;
}

.how-we-build-step-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.how-we-build-step:hover .how-we-build-step-icon {
  transform: rotate(15deg);
}

.how-we-build-step-duration {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  background: rgba(125, 115, 255, 0.1);
  color: #bb0a1e;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.how-we-build-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.how-we-build-modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: how-we-build-modalAppear 0.5s ease;
}

@keyframes how-we-build-modalAppear {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.how-we-build-close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #777;
  transition: color 0.3s ease;
}

.how-we-build-close-modal:hover {
  color: #1a1a2e;
}

.how-we-build-modal h2 {
  margin-top: 0;
  color: #1a1a2e;
}

.how-we-build-form-group {
  margin-bottom: 20px;
}

.how-we-build-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.how-we-build-form-group input,
.how-we-build-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: "Segoe UI", sans-serif;
  transition: border-color 0.3s ease;
}

.how-we-build-form-group input:focus,
.how-we-build-form-group textarea:focus {
  outline: none;
  border-color: #bb0a1e;
}

.how-we-build-submit-btn {
  background-color: #bb0a1e;
  color: white;
  border: none;
  padding: 14px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.how-we-build-submit-btn:hover {
  background-color: #bb0a1e;
  transform: translateY(-2px);
}

.how-we-build-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  background: #bb0a1e;
  color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1000;
}

.how-we-build-notification.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .how-we-build-container {
    flex-direction: column;
    gap: 40px;
  }

  .how-we-build-left-section {
    position: static;
  }

  .how-we-build-timeline::before {
    left: 15px;
  }

  .how-we-build-step-number {
    left: -53px;
  }

  .how-we-build-step-indicator {
    display: none;
  }
}