/* =========================
   INTEGRATION SECTION
========================= */

.integration-section {
  padding: 60px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: white;
}

.integration-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.integration-label {
  font-size: 14px;
  text-transform: uppercase;
  color: #232323;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: inline-block;
  animation: fadeInDown 0.8s ease-out;
}

.integration-title {
  font-size: 48px;
  font-weight: 600;
  color: #232323;
  margin-bottom: 60px;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* =========================================
   INTEGRATION VISUAL AREA — SVG PATH ANIM
========================================= */

.integration-visual-area {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  /* height is controlled by aspect-ratio so SVG coords stay in sync with HTML% positions */
  aspect-ratio: 1000 / 720;
}

/* SVG sits behind everything */
.i-paths-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Gray guide tracks */
.i-track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.14);
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* Animated orange dashes */
.i-dash {
  fill: none;
  stroke: #F43722;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 80 1200;
  animation: i-flow 3s linear infinite;
  filter: drop-shadow(0 0 5px rgba(244, 55, 34, 0.5));
}

@keyframes i-flow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -1280;
  }
}

/* Brand icons: positioned using x/1000 & y/720 % to match SVG coords */
.i-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #232323;
  transform: translate(-50%, -50%);
  z-index: 5;
  white-space: nowrap;
}

.i-icon img {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.i-icon--woo {
  left: 17.5%;
  top: 7.5%;
  width: 90px;
}

.i-icon--zoho {
  left: 37.8%;
  top: 7.5%;
}

.i-icon--magento {
  left: 62.2%;
  top: 7.5%;
}

.i-icon--shopify {
  left: 82.5%;
  top: 7.5%;
}

/* Center Ogaranya badge */
.i-center-badge {
  position: absolute;
  left: 50%;
  top: 48.6%;
  /* SVG y=350 / viewBox h=720 */
  transform: translate(-50%, -50%);
  z-index: 10;
}

.i-center-badge img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 0 0 6px #fff, 0 15px 45px rgba(255, 77, 48, 0.2);
  animation: pulse-border 3s ease-in-out infinite alternate;
}

/* Merchant btn alias (used on cards) */
.merchant-btn-btn {
  background: #f43722;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  transition: opacity 0.25s ease;
  box-shadow: 0 6px 16px rgba(244, 55, 34, 0.3);
}

.merchant-btn-btn:hover {
  opacity: 0.88;
}

/* CARDS */
.integration-cards {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.integration-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 45px 35px;
  border-radius: 20px;
  width: 360px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 1s ease-out 0.5s both;
}

.integration-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.1);
  border-color: #ff4d30;
}

.integration-card img {
  margin-bottom: 25px;
}

.integration-card h3 {
  font-size: 20px;
  margin-bottom: 18px;
  font-weight: 700;
  color: #232323;
}

.integration-card p {
  font-size: 15px;
  color: #232323;
  margin-bottom: 30px;
  line-height: 1.6;
}

.primary-btn {
  background: #ff4d30;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 77, 48, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 77, 48, 0.4);
}

.learn-link {
  display: block;
  font-size: 14px;
  color: #232323;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.learn-link:hover {
  color: #e03e23;
  text-decoration: underline;
}

/* ANIMATIONS */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse-border {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 77, 48, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(255, 77, 48, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 77, 48, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .integration-title {
    font-size: 36px;
  }

  .integration-visual-area {
    max-width: 560px;
  }

  .i-icon {
    font-size: 10px;
  }

  .i-icon img {
    height: 26px;
  }

  .i-center-badge img {
    width: 56px;
    height: 56px;
    padding: 6px;
  }

  .i-dash {
    stroke-width: 2;
  }

  .integration-cards {
    gap: 24px;
  }

  .integration-card {
    width: 100%;
    max-width: 340px;
    padding: 32px 24px;
  }
}

@media (max-width: 520px) {
  .integration-visual-area {
    max-width: 380px;
  }

  .i-icon {
    font-size: 8px;
  }

  .i-icon img {
    height: 20px;
  }

  .i-center-badge img {
    width: 44px;
    height: 44px;
  }

  .i-dash {
    stroke-width: 1.5;
  }
}