/**
 * Netra Technosys - Methodology Serpentine Roadmap Flow (Devsto/Infographic Edition - DARK THEME)
 * Continuous winding S-curve pipeline with arrow bookmarks, glowing laser beam, and SUCCESS destination.
 */

.nt-serpentine-section,
section.our_product.nt-serpentine-section,
#our_methodology_section {
  padding: 70px 0 75px !important;
  background-color: #06070a !important;
  background: radial-gradient(circle at 14% 18%, rgba(231, 32, 26, 0.12) 0%, transparent 48%),
              radial-gradient(circle at 86% 78%, rgba(231, 32, 26, 0.08) 0%, transparent 48%),
              #06070a !important;
  position: relative !important;
  overflow: hidden !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.nt-serpentine-section::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.nt-serpentine-section .container {
  position: relative !important;
  z-index: 2 !important;
}

.nt-serpentine-section .nt-section-pill {
  background: rgba(231, 32, 26, 0.12) !important;
  border: 1px solid rgba(231, 32, 26, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 0 24px rgba(231, 32, 26, 0.25) !important;
}

.nt-serpentine-section .product h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: clamp(34px, 4.4vw, 56px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6) !important;
}

.nt-serpentine-section .product h2 span {
  color: #E7201A !important;
  display: inline-block !important;
  text-shadow: 0 2px 16px rgba(231, 32, 26, 0.45) !important;
}

.nt-serpentine-lead {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 16.5px !important;
  line-height: 1.65 !important;
  max-width: 680px !important;
  margin: 12px auto 0 !important;
}

/* Master Roadmap Container */
.nt-serpentine-roadmap {
  position: relative !important;
  max-width: 920px !important;
  margin: 24px auto 0 !important;
  padding: 10px 0 30px !important;
}

/* Serpentine Row */
.nt-serpentine-row {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  margin-bottom: 52px !important;
  transition: all 0.4s ease !important;
}

/* Left-to-Right Row */
.nt-row-ltr {
  flex-direction: row !important;
  justify-content: flex-start !important;
  padding-right: 70px !important;
}

/* Right-to-Left Row */
.nt-row-rtl {
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
  padding-left: 70px !important;
}

/* Flag Col (Arrow Bookmark) */
.nt-flag-col {
  flex: 0 0 110px !important;
  display: flex !important;
  align-items: center !important;
  z-index: 3 !important;
}

.nt-flag-left {
  justify-content: flex-start !important;
  padding-right: 15px !important;
}

.nt-flag-right {
  justify-content: flex-end !important;
  padding-left: 15px !important;
}

/* Arrow Bookmark Flag */
.nt-arrow-flag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 52px !important;
  padding: 0 18px 0 16px !important;
  background: #0f1624 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  position: relative !important;
  border-radius: 8px 0 0 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

/* Pointing Right Flag */
.nt-arrow-flag-right {
  border-radius: 12px 0 0 12px !important;
  padding-right: 22px !important;
  border-right: none !important;
}

.nt-arrow-flag-right::after {
  content: "" !important;
  position: absolute !important;
  right: -14px !important;
  top: -1px !important;
  bottom: -1px !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 26px solid transparent !important;
  border-bottom: 26px solid transparent !important;
  border-left: 15px solid #0f1624 !important;
  transition: border-left-color 0.35s ease !important;
}

/* Pointing Left Flag */
.nt-arrow-flag-left {
  border-radius: 0 12px 12px 0 !important;
  padding-left: 22px !important;
  padding-right: 16px !important;
  border-left: none !important;
}

.nt-arrow-flag-left::before {
  content: "" !important;
  position: absolute !important;
  left: -14px !important;
  top: -1px !important;
  bottom: -1px !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 26px solid transparent !important;
  border-bottom: 26px solid transparent !important;
  border-right: 15px solid #0f1624 !important;
  transition: border-right-color 0.35s ease !important;
}

/* Active State for Arrow Flag: Netra Red Theme Glow */
.nt-serpentine-row.active .nt-arrow-flag,
.nt-arrow-flag:hover {
  background: linear-gradient(135deg, #FF453A 0%, #E7201A 100%) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 32px rgba(231, 32, 26, 0.7), 0 10px 24px rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.06) !important;
}

.nt-serpentine-row.active .nt-arrow-flag-right::after,
.nt-arrow-flag-right:hover::after {
  border-left-color: #E7201A !important;
}

.nt-serpentine-row.active .nt-arrow-flag-left::before,
.nt-arrow-flag-left:hover::before {
  border-right-color: #FF453A !important;
}

/* Card Column */
.nt-card-col {
  flex: 1 !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Serpentine Card in Dark Theme */
.nt-serpentine-card {
  background: rgba(14, 20, 36, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.nt-serpentine-row.active .nt-serpentine-card {
  background: linear-gradient(135deg, rgba(24, 32, 54, 0.9) 0%, rgba(14, 20, 36, 0.9) 100%) !important;
  border-color: rgba(231, 32, 26, 0.55) !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.6), 0 0 32px rgba(231, 32, 26, 0.2) !important;
}

.nt-serpentine-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(231, 32, 26, 0.7) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.65), 0 0 38px rgba(231, 32, 26, 0.28) !important;
}

/* Card Header */
.nt-scard-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 12px !important;
}

.nt-scard-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FF5A52 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 19px !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
}

.nt-serpentine-row.active .nt-scard-icon,
.nt-serpentine-card:hover .nt-scard-icon {
  background: linear-gradient(135deg, #FF453A 0%, #E7201A 100%) !important;
  border-color: #E7201A !important;
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(231, 32, 26, 0.6) !important;
  transform: rotate(-4deg) scale(1.06) !important;
}

.nt-scard-titles {
  display: flex !important;
  flex-direction: column !important;
}

.nt-scard-phase {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.nt-serpentine-row.active .nt-scard-phase {
  color: #FF5A52 !important;
}

.nt-scard-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 1px 0 0 !important;
  letter-spacing: -0.02em !important;
  transition: color 0.25s ease !important;
}

.nt-serpentine-card:hover .nt-scard-title {
  color: #FF5A52 !important;
}

.nt-scard-desc {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.75) !important;
  margin: 0 0 16px !important;
}

/* Deliverable Tags */
.nt-scard-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding-top: 12px !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

.nt-stag {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.nt-serpentine-row.active .nt-stag,
.nt-serpentine-card:hover .nt-stag {
  background: rgba(231, 32, 26, 0.14) !important;
  border-color: rgba(231, 32, 26, 0.35) !important;
  color: #FF8577 !important;
}

/* SVG U-Turn Connector Pipes in Dark Theme */
.nt-turn-loop {
  position: absolute !important;
  top: 50% !important;
  width: 70px !important;
  height: 140px !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.nt-turn-right {
  right: 0 !important;
  transform: translateY(-8px) !important;
}

.nt-turn-left {
  left: 0 !important;
  transform: translateY(-8px) !important;
}

.nt-turn-svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.nt-turn-bg {
  stroke: rgba(255, 255, 255, 0.12) !important;
  stroke-width: 4 !important;
  stroke-linecap: round !important;
  transition: stroke 0.4s ease !important;
}

.nt-turn-laser {
  stroke: #FF3B30 !important;
  stroke-width: 4 !important;
  stroke-linecap: round !important;
  stroke-dasharray: 240 !important;
  stroke-dashoffset: 240 !important;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
  filter: drop-shadow(0 0 8px rgba(231, 32, 26, 0.95)) drop-shadow(0 0 16px rgba(231, 32, 26, 0.55)) !important;
}

.nt-serpentine-row.active .nt-turn-laser {
  stroke-dashoffset: 0 !important;
}

.nt-serpentine-row.active .nt-turn-bg {
  stroke: rgba(231, 32, 26, 0.3) !important;
}

/* Culmination: SUCCESS Milestone in Dark Theme */
.nt-serpentine-success {
  text-align: center !important;
  position: relative !important;
  margin-top: 35px !important;
  z-index: 5 !important;
}

.nt-success-arrow-wrap {
  width: 28px !important;
  height: 44px !important;
  margin: 0 auto 18px !important;
  animation: ntArrowBounce 1.8s infinite ease-in-out !important;
}

@keyframes ntArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.nt-down-arrow-svg {
  width: 100% !important;
  height: 100% !important;
}

.nt-down-arrow-svg line,
.nt-down-arrow-svg polyline {
  stroke: #FF453A !important;
  filter: drop-shadow(0 0 8px rgba(231, 32, 26, 0.8)) !important;
}

.nt-success-card {
  max-width: 660px !important;
  margin: 0 auto !important;
  background: linear-gradient(135deg, rgba(28, 18, 26, 0.9) 0%, rgba(15, 23, 44, 0.9) 100%) !important;
  border: 2px solid rgba(231, 32, 26, 0.6) !important;
  border-radius: 26px !important;
  padding: 36px 40px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 38px rgba(231, 32, 26, 0.25) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  position: relative !important;
  overflow: hidden !important;
}

.nt-success-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 5px !important;
  background: linear-gradient(90deg, #FF453A 0%, #E7201A 50%, #FF8577 100%) !important;
}

.nt-success-icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #FF453A 0%, #E7201A 100%) !important;
  color: #ffffff !important;
  font-size: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 16px !important;
  box-shadow: 0 0 32px rgba(231, 32, 26, 0.75) !important;
  animation: ntSuccessTrophy 3s infinite ease-in-out !important;
}

@keyframes ntSuccessTrophy {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(-4deg); }
}

.nt-success-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  color: #ffffff !important;
  margin: 0 0 6px !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

.nt-success-sub {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  margin: 0 0 20px !important;
}

.nt-success-pills {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.nt-success-pill {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: rgba(231, 32, 26, 0.18) !important;
  border: 1px solid rgba(231, 32, 26, 0.4) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.nt-success-pill i {
  color: #FF453A !important;
}

/* Responsive Mobile Adaptations */
@media (max-width: 991px) {
  .nt-serpentine-section,
  section.our_product.nt-serpentine-section,
  #our_methodology_section {
    padding: 80px 0 95px !important;
  }

  .nt-serpentine-roadmap {
    margin-top: 40px !important;
  }

  .nt-serpentine-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 0 0 70px !important;
    margin-bottom: 35px !important;
  }

  .nt-flag-col {
    position: absolute !important;
    left: 0 !important;
    top: 20px !important;
    flex: none !important;
    padding: 0 !important;
  }

  .nt-arrow-flag {
    height: 44px !important;
    font-size: 16px !important;
    padding: 0 14px 0 12px !important;
    border-radius: 8px 0 0 8px !important;
  }

  .nt-arrow-flag::before {
    display: none !important;
  }

  .nt-arrow-flag::after {
    display: block !important;
    right: -12px !important;
    border-top: 22px solid transparent !important;
    border-bottom: 22px solid transparent !important;
    border-left: 13px solid #0f1624 !important;
  }

  .nt-serpentine-row.active .nt-arrow-flag::after {
    border-left-color: #E7201A !important;
  }

  .nt-card-col {
    width: 100% !important;
  }

  .nt-serpentine-card {
    padding: 20px 20px !important;
    border-radius: 16px !important;
  }

  .nt-scard-title {
    font-size: 19px !important;
  }

  .nt-scard-desc {
    font-size: 13.5px !important;
    margin-bottom: 12px !important;
  }

  .nt-turn-loop {
    display: none !important;
  }

  .nt-success-card {
    padding: 26px 20px !important;
    border-radius: 20px !important;
  }

  .nt-success-title {
    font-size: 24px !important;
  }
}

@media (max-width: 575px) {
  .nt-serpentine-row {
    padding-left: 56px !important;
  }

  .nt-arrow-flag {
    height: 38px !important;
    font-size: 14px !important;
    padding: 0 10px 0 10px !important;
  }

  .nt-arrow-flag::after {
    border-top-width: 19px !important;
    border-bottom-width: 19px !important;
    border-left-width: 10px !important;
    right: -10px !important;
  }

  .nt-scard-header {
    gap: 10px !important;
  }

  .nt-scard-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }
}
