/* ===== Integration / Module Showcase Section — Standalone CSS =====
   Paste this into your existing stylesheet or link it separately.
   Depends on: Google Fonts (Plus Jakarta Sans + Outfit) — add the @import
   below if your site doesn't already load them.
   ================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap");

/* --- CSS variables used by the section ---
   If your site already defines these variables you can delete this block. */
:root {
  --bg: #fafbff;
  --tx: #1a1a1a;
  --t2: #4a5568;
  --bd: #e8e4e0;
  --br: #ec1c24; /* red accent */
  --brl: #fef0f0;
  --ac: #2b3fdb; /* blue accent */
  --sf: #fff;
  --fd: "Outfit", sans-serif;
  --fb: "Plus Jakarta Sans", sans-serif;
  --sl: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ---- Scroll-reveal utility (shared with the rest of your site) ---- */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.rvd {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------ */
/*  Section wrapper                                                     */
/* ------------------------------------------------------------------ */
.mgif-section {
  padding: 0;
  background: var(--bg);
  overflow: hidden;
}
.mgif-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.intg-scene {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
}

/* ---- SVG circuit lines ---- */
.intg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  animation: intgFadeIn 1.5s 0.3s forwards;
}
.intg-path {
  stroke-dasharray: 8 6;
  animation: intgDash 20s linear infinite;
}

@keyframes intgDash {
  to {
    stroke-dashoffset: -200;
  }
}
@keyframes intgFadeIn {
  to {
    opacity: 1;
  }
}

/* ---- Center text block ---- */
.intg-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  max-width: 480px;
  padding: 0 20px;
}
.intg-eyebrow {
  display: inline-block;
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 600;
  color: var(--br);
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0;
  animation: intgFadeUp 0.6s 0.5s forwards;
}
.intg-title {
  font-family: var(--fd);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--tx);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  opacity: 0;
  animation: intgFadeUp 0.6s 0.7s forwards;
}
.intg-sub {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 28px;
  opacity: 0;
  animation: intgFadeUp 0.6s 0.9s forwards;
}
.intg-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--tx);
  color: #fff;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s;
  opacity: 0;
  animation: intgFadeUp 0.6s 1.1s forwards;
}
.intg-cta:hover {
  background: var(--br);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 28, 36, 0.2);
}
.intg-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}
.intg-arrow {
  transition: transform 0.3s;
}
.intg-cta:hover .intg-arrow {
  transform: translateX(4px);
}

@keyframes intgFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Floating module nodes ---- */
.intg-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  z-index: 3;
  opacity: 0;
  animation: intgNodeIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.intg-node span {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
  transition: color 0.2s;
}
.intg-node:hover span {
  color: var(--br);
}

@keyframes intgNodeIn {
  from {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.intg-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--bd);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  animation: intgFloat 4s ease-in-out infinite;
}
.intg-icon svg {
  width: 24px;
  height: 24px;
}

.intg-icon-red {
  color: var(--br);
}
.intg-icon-red:hover {
  border-color: var(--br);
}
.intg-icon-blue {
  color: var(--ac);
}
.intg-icon-blue:hover {
  border-color: var(--ac);
}
.intg-icon-green {
  color: #10b981;
}
.intg-icon-green:hover {
  border-color: #10b981;
}

.intg-node:hover .intg-icon {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

@keyframes intgFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---- Node positions ---- */
.intg-n1 {
  left: 12%;
  top: 13%;
  animation-delay: 0.4s;
}
.intg-n1 .intg-icon {
  animation-delay: -0.5s;
}
.intg-n2 {
  left: 6%;
  top: 31%;
  animation-delay: 0.55s;
}
.intg-n2 .intg-icon {
  animation-delay: -1.2s;
}
.intg-n3 {
  left: 8.5%;
  top: 62%;
  animation-delay: 0.7s;
}
.intg-n3 .intg-icon {
  animation-delay: -2s;
}
.intg-n4 {
  left: 13%;
  top: 78%;
  animation-delay: 0.85s;
}
.intg-n4 .intg-icon {
  animation-delay: -0.8s;
}
.intg-n5 {
  right: 11%;
  top: 11%;
  animation-delay: 1s;
}
.intg-n5 .intg-icon {
  animation-delay: -1.5s;
}
.intg-n6 {
  right: 7%;
  top: 30%;
  animation-delay: 1.15s;
}
.intg-n6 .intg-icon {
  animation-delay: -3s;
}
.intg-n7 {
  right: 9%;
  top: 60%;
  animation-delay: 1.3s;
}
.intg-n7 .intg-icon {
  animation-delay: -0.3s;
}
.intg-n8 {
  right: 13.5%;
  top: 78%;
  animation-delay: 1.45s;
}
.intg-n8 .intg-icon {
  animation-delay: -2.5s;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .intg-scene {
    height: 600px;
  }
  .intg-n1 {
    left: 5%;
    top: 8%;
  }
  .intg-n2 {
    left: 2%;
    top: 28%;
  }
  .intg-n3 {
    left: 3%;
    top: 56%;
  }
  .intg-n4 {
    left: 6%;
    top: 76%;
  }
  .intg-n5 {
    right: 5%;
    top: 8%;
  }
  .intg-n6 {
    right: 2%;
    top: 28%;
  }
  .intg-n7 {
    right: 3%;
    top: 56%;
  }
  .intg-n8 {
    right: 6%;
    top: 76%;
  }
  .intg-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .intg-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .intg-scene {
    height: auto;
    min-height: auto;
    padding: 48px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .intg-lines {
    display: none;
  }
  .intg-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 36px;
  }
  .intg-node {
    position: relative;
    animation: intgNodeIn 0.5s ease forwards;
  }
  .intg-scene {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 40px 16px;
  }
  .intg-center {
    width: 100%;
    flex-basis: 100%;
    margin-bottom: 24px;
          padding: 0 5px;
  }
  .intg-icon {
    width: 48px;
    height: 48px;
  }
  @keyframes intgFloat {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-4px);
    }
  }
}

@media (max-width: 400px) {
    .intg-n1 {
        left: -3%;
        top: 8%;
    }
        .intg-n4 {
        left: -4%;
        top: 76%;
    }
    .intg-n6 {
        right: 0%;
        top: 28%;
    }
        .intg-n5 {
        right: 2%;
        top: 8%;
    }
    .intg-n2 {
        left: -1%;
        top: 28%;
    }
    .intg-n8 {
        right: -1%;
        top: 76%;
    }
  }
