/*
Theme Name: Hello Elementor Child
Description: Child theme for Hello Elementor
Author: Vulnerbyte
Template: hello-elementor
Version: 1.0.8
*/
/* Elementor page content */

.dpa {
  --blue: #0066D6;
  --orange: #926635;
  --purple: #271173;
  --green: #5DB3B4;
  --ink: #f2f6ff;
  --muted: #aab4c8;
  --panel: rgba(12, 24, 50, 0.62);
  --edge: rgba(120, 160, 255, 0.22);
  position: relative;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.9;
  padding: 48px 20px 72px;
  box-sizing: border-box;
}
.dpa * {
  box-sizing: border-box;
}
.dpa .c-blue {
  --c: var(--blue);
}
.dpa .c-orange {
  --c: var(--orange);
}
.dpa .c-purple {
  --c: var(--purple);
}
.dpa .c-green {
  --c: var(--green);
}

/* --- متن هیرو --- */
.dpa-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.dpa-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}
.dpa-title span {
  display: block;
  color: var(--blue);
}
.dpa-lead {
  margin: 8px auto 8px !important;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 16px);
}
.dpa-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(14px, 1.5vw, 16px);
  padding: 8px 16px !important;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(30, 123, 255, 0.35);
  transition:
    box-shadow 0.25s,
    background 0.25s;
}
.dpa-cta:hover {
  background: #3a8bff;
  box-shadow: 0 10px 40px rgba(30, 123, 255, 0.55);
  color: #fff;
}

/* --- صحنه کره --- */
.dpa-stage {
  position: relative;
  max-width: 1400px;
  margin: 0px auto 0;
  aspect-ratio: 1100/460;
}
.dpa-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.dpa-tagline path {
  fill: none;
  stroke: rgba(90, 150, 255, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}
.dpa-s {
  stroke: var(--c);
  stroke-width: 3;
  opacity: 1;
  filter: url(#dpaTechFlow);
  vector-effect: non-scaling-stroke;
}
.dpa-flow {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-dasharray: 2 22;
  opacity: 0.9;
  vector-effect: non-scaling-stroke;
  animation: dpaFlow 3.2s linear infinite;
}
@keyframes dpaFlow {
  to {
    stroke-dashoffset: -96;
  }
}

.dpa-orb {
  position: absolute;
  left: 50%;
  top: 32.6%;
  width: 17.2727%; /* 190 / 1100 */
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: clamp(16px, 2.1vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(120, 180, 255, 0.55),
    rgba(20, 50, 130, 0.75) 55%,
    rgba(6, 14, 40, 0.95) 100%
  );
  border: 1px solid rgba(140, 190, 255, 0.55);
  box-shadow:
    0 0 40px rgba(30, 123, 255, 0.55),
    0 0 110px rgba(30, 123, 255, 0.35),
    inset 0 0 40px rgba(120, 180, 255, 0.35);
  animation: dpaPulse 4.5s ease-in-out infinite;
}
@keyframes dpaPulse {
  50% {
    box-shadow:
      0 0 56px rgba(30, 123, 255, 0.75),
      0 0 150px rgba(30, 123, 255, 0.45),
      inset 0 0 50px rgba(120, 180, 255, 0.5);
  }
}

/* حلقهٔ رنگیِ جاری دور گوی */
.dpa-orb::before,
.dpa-orb::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    var(--blue),
    var(--orange),
    var(--purple),
    var(--green),
    var(--blue)
  );
  animation: dpaRing 6s linear infinite;
}

/* خود حلقه (باریک و واضح) */
.dpa-orb::before {
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 2.5px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 2.5px)
  );
}

/* هالهٔ نورانی پشت حلقه */
.dpa-orb::after {
  filter: blur(14px);
  opacity: 0.55;
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 14px),
    #000 calc(100% - 6px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 14px),
    #000 calc(100% - 6px)
  );
}

@keyframes dpaRing {
  to {
    transform: rotate(360deg);
  }
}

/* --- تگ‌ها --- */
.dpa-tag {
  position: absolute;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.dpa-tag:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(30, 123, 255, 0.4);
  color: #fff;
}
.dpa-tag svg,
.dpa-ico {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dpa-tag svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* --- نشانگر اسکرول --- */
.dpa-scroll {
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
}
.dpa-scroll i {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--muted);
  border-radius: 12px;
  position: relative;
}
.dpa-scroll i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--muted);
  animation: dpaWheel 1.8s ease-in-out infinite;
}
@keyframes dpaWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  70%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* --- کارت‌ها --- */
.dpa-cards {
  max-width: 1900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  scroll-margin-top: 90px;
}
.dpa-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(14, 28, 58, 0.85),
    rgba(8, 16, 36, 0.85)
  );
  border: 1px solid var(--edge);
  border-top: 2px solid var(--c);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.dpa-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 40px -8px var(--c);
}
.dpa-ico {
  width: 38px;
  height: 38px;
  stroke: var(--c);
  margin-bottom: 14px;
}
.dpa-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}
.dpa-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.dpa-card a {
  color: var(--c);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.dpa-card a::after {
  content: " ←";
}
.dpa-card a:hover {
  text-decoration: underline;
}

/* --- تبلت و موبایل --- */
@media (max-width: 1024px) {
  .dpa-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 899px) {
  .dpa-stage {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 190px;
    margin-top: 24px;
  }
  .dpa-lines {
    display: none;
  }
  .dpa-orb {
    top: 0;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    font-size: 21px;
  }
  .dpa-tag {
    position: static;
    transform: none;
    justify-content: flex-start;
    white-space: normal;
    font-size: 13px;
    padding: 10px 12px;
  }
  .dpa-tag[style] {
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }
  .dpa-scroll {
    display: none;
  }
  .dpa-cards {
    margin-top: 36px;
  }
}
@media (max-width: 560px) {
  .dpa-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dpa *,
  .dpa *::before,
  .dpa *::after {
    animation: none !important;
    transition: none !important;
  }
}



/* ============ انیمیشن ورود ============ */

/* فقط وقتی JS فعال است، حالت اولیه (مخفی) اعمال می‌شود */

/* ۱) گوی */

.dpa.dpa-js .dpa-orb {
  opacity: 0;
  scale: 0.3;
}
.dpa.dpa-js.is-in .dpa-orb {
  opacity: 1;
  scale: 1;
  animation:
    dpaOrbIn 1.1s cubic-bezier(0.2, 0.8, 0.3, 1) both,
    dpaPulse 4.5s ease-in-out 1.1s infinite;
}
@keyframes dpaOrbIn {
  0% {
    opacity: 0;
    scale: 0.3;
  }
  60% {
    opacity: 1;
    scale: 1.08;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

/* ۲) جریان‌های رنگی: رسم شدن از گوی به سمت پایین */
.dpa.dpa-js .dpa-streams {
  clip-path: inset(0 -60px 100% -60px);
  transition: clip-path 1.8s cubic-bezier(0.45, 0, 0.2, 1) 0.8s;
}
.dpa.dpa-js.is-in .dpa-streams {
  clip-path: inset(0 -60px -60px -60px);
}

/* خطوط نقطه‌چین تگ‌ها */
.dpa.dpa-js .dpa-tagline {
  opacity: 0;
  transition: opacity 0.8s ease 0.9s;
}
.dpa.dpa-js.is-in .dpa-tagline {
  opacity: 1;
}

/* ۳) تگ‌ها: بعد از گوی، پشت سر هم */
.dpa.dpa-js .dpa-tag {
  opacity: 0;
  translate: 0 14px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    opacity 0.6s ease calc(1s + var(--i, 0) * 0.1s),
    translate 0.6s ease calc(1s + var(--i, 0) * 0.1s);
}
.dpa.dpa-js.is-in .dpa-tag {
  opacity: 1;
  translate: 0 0;
}

/* نشانگر اسکرول */
.dpa.dpa-js .dpa-scroll {
  opacity: 0;
  transition: opacity 0.8s ease 2.2s;
}
.dpa.dpa-js.is-in .dpa-scroll {
  opacity: 1;
}

/* ۴) کارت‌ها: با اسکرول، پله‌ای */
.dpa.dpa-js .dpa-card {
  opacity: 0;
  translate: 0 50px;
  transition:
    opacity 0.7s ease calc(var(--i, 0) * 0.14s),
    translate 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) calc(var(--i, 0) * 0.14s),
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.dpa.dpa-js .dpa-cards.is-in .dpa-card {
  opacity: 1;
  translate: 0 0;
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
  .dpa.dpa-js .dpa-orb,
  .dpa.dpa-js .dpa-streams,
  .dpa.dpa-js .dpa-tagline,
  .dpa.dpa-js .dpa-tag,
  .dpa.dpa-js .dpa-scroll,
  .dpa.dpa-js .dpa-card {
    opacity: 1 !important;
    scale: 1 !important;
    translate: 0 0 !important;
    clip-path: none !important;
    transition: none !important;
  }
}


/* ===== این بلوک را «به انتهای» CSS فعلی dpa اضافه کنید ===== */

/* دو بخش باید دقیقاً هم‌عرض باشند تا خطوط روی وسط کارت‌ها بنشینند */
/* .dpa--stage { padding-bottom: 0; }
.dpa--cards { padding-top: 0; } */

.dpa-cards { max-width: 1660px; }

/* کارت‌ها بالاتر از انتهای خطوط/درخشش قرار بگیرند */
.dpa--cards { position: relative; z-index: 1; }
.dpa--cards .dpa-cards { margin-top: 0; }

/* تنظیم دستی اتصال: اگر بین خط و کارت فاصله دیدید منفی کنید (مثلاً -12px) */
.dpa--cards { margin-top: 0; }

@media (max-width: 899px) {
  .dpa--cards .dpa-cards { margin-top: 36px; }
}


/* solution section */
.dpa-ap {
    --ap-text: #ffffff;
    --ap-muted: #b4c0d8;
    --ap-accent: #2f7bff;
    --ap-accent-soft: rgba(47, 123, 255, .35);
    width: 100%;
    max-width: 1660px;
    margin-inline: auto;
    padding: 48px 20px;
    color: var(--ap-text);
    font-family: inherit;
    text-align: center;
  }
  .dpa-ap *, .dpa-ap *::before, .dpa-ap *::after { box-sizing: border-box; }

  .dpa-ap__head { margin-bottom: 40px; }
  .dpa-ap__title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ap-text);
  }
  .dpa-ap__sub {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ap-muted);
  }
  .dpa-ap__sub strong { color: var(--ap-text); font-weight: 700; }

  /* ردیف مراحل: ۴ مرحله + ۳ اتصال */
  .dpa-ap__steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0 12px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .dpa-ap__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 8px;
    transition: transform 200ms ease;
  }
  .dpa-ap__step:hover { transform: translateY(-3px); }

  .dpa-ap__ico {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    fill: none;
    stroke: var(--ap-accent);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px var(--ap-accent-soft));
  }

  .dpa-ap__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ap-text);
  }
  .dpa-ap__desc {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ap-muted);
  }

  /* خط اتصال + فلش بین مراحل */
  .dpa-ap__link {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 90px;
    height: 56px; /* هم‌تراز با آیکون */
    color: var(--ap-accent);
  }
  .dpa-ap__link span {
    flex: 1;
    height: 2px;
    background: linear-gradient(270deg, var(--ap-accent), transparent);
    opacity: .6;
  }
  .dpa-ap__link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: dpa-ap-nudge 1.6s ease-in-out infinite;
  }
  @keyframes dpa-ap-nudge {
    0%, 100% { transform: translateX(0); opacity: .5; }
    50% { transform: translateX(-4px); opacity: 1; }
  }

  /* تبلت و موبایل: مراحل دوتایی / عمودی */
  @media (max-width: 900px) {
    .dpa-ap__steps {
      grid-template-columns: 1fr 1fr;
      gap: 32px 16px;
    }
    .dpa-ap__link { display: none; }
  }
  @media (max-width: 900px) {
  .dpa-ap__steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
  }
  .dpa-ap__link { display: none; }
}

/* موبایل: عمودی، با فلش رو به پایین */
@media (max-width: 640px) {
  .dpa-ap { padding: 32px 16px; }

  .dpa-ap__steps {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
  }

  .dpa-ap__link {
    display: flex;          /* قانون ۹۰۰ را خنثی می‌کند */
    flex-direction: column;
    align-items: center;
    width: auto;
    height: 56px;
    margin: 8px 0;
  }

  .dpa-ap__link span {
    flex: 1;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--ap-accent));
  }

  .dpa-ap__link svg {
    transform: rotate(-90deg);        /* فلش چپ ← رو به پایین */
    animation: dpa-ap-nudge-down 1.6s ease-in-out infinite;
  }
}

@keyframes dpa-ap-nudge-down {
  0%, 100% { transform: rotate(-90deg) translateX(0);    opacity: .5; }
  50%      { transform: rotate(-90deg) translateX(-4px); opacity: 1; }
}

/* ---- انیمیشن ورود پله‌ای (فقط وقتی JS فعال شد) ---- */
.dpa-ap.dpa-ap-js .dpa-ap__step,
.dpa-ap.dpa-ap-js .dpa-ap__link {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity .6s ease calc(var(--i, 0) * .18s),
    translate .6s cubic-bezier(.2, .8, .3, 1) calc(var(--i, 0) * .18s),
    transform 200ms ease;
}
.dpa-ap.dpa-ap-js.is-in .dpa-ap__step,
.dpa-ap.dpa-ap-js.is-in .dpa-ap__link {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .dpa-ap.dpa-ap-js .dpa-ap__step,
  .dpa-ap.dpa-ap-js .dpa-ap__link {
    opacity: 1 !important;
    translate: 0 0 !important;
    transition: none !important;
  }
  .dpa-ap__link svg { animation: none !important; }
}

/* ورود وابسته به اسکرول (با JS) */
.dpa-ap.dpa-ap-scroll .dpa-ap__step,
.dpa-ap.dpa-ap-scroll .dpa-ap__link {
  opacity: var(--p, 0);
  translate: 0 calc((1 - var(--p, 0)) * 28px);
  transition: transform 200ms ease;
}
