/* ==========================================
   WEBDESIGN.CSS - 3D HERO & MODERN DESIGN
   ========================================== */



/* ==========================================
/* ================= HERO 3D — CLEAN + RESPONSIVE ================= */

/* متغیرهای منعطف برای اندازه‌ها */
:root{
  --hero-gap: clamp(28px, 4vw, 64px);
  --hero-min-h: clamp(88vh, 100vh, 120vh);
  --cube-size: clamp(200px, 26vw, 340px);          /* مکعب کوچیک‌تر از قبل */
  --cube-z: calc(var(--cube-size) / 2);            /* نصف برای translateZ */
}

/* ریشه‌ی سکشن */
.df-hero-3d{
  position: relative;
  min-height: var(--hero-min-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg,#0f0c29 0%,#302b63 50%,#24243e 100%);
  isolation: isolate; /* فیلترها و بلِندها مزاحم هم نشن */
}

/* لایه‌های پس‌زمینه (پارالاکس) */
.df-hero-bg-layers{
  position: absolute; inset: 0;
  pointer-events:none; z-index:1;
}
.df-layer{
  position:absolute; inset:0;
  background-size: cover; background-position:center;
  transition: transform .12s ease-out, opacity .3s;
  opacity:.55; /* کمی سبک‌تر */
}

/* شبکه‌ی محتوا */
.df-hero-3d .df-container{
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hero-gap);
  align-items: center;
  padding-left: clamp(24px,5vw,64px);
  padding-right: clamp(24px,5vw,64px);
}

/* ستون متن */
.df-hero-main{ max-width: 640px; }
.df-hero-title{
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 18px;
  color:#fff;
  text-shadow:
    2px 2px 0 rgba(102,126,234,.28),
    4px 4px 0 rgba(118,75,162,.18);
}
.df-hero-3d .df-text-md{
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,.88);
  line-height: 1.6; margin-bottom: 22px;
}
.df-hero-actions{ gap:14px; flex-wrap:wrap; }

/* ستون مدیا (صحنه‌ی مکعب) */
.df-hero-media-3d{
  position: relative;
  height: auto;          /* به اندازه‌ی صحنه */
  min-height: calc(var(--cube-size) + 40px);
  display:flex; align-items:center; justify-content:center;
  perspective: 1400px;
}

/* صحنه و مکعب */
.df-3d-scene{
width: var(--cube-size); 
height: var(--cube-size);
transform-style: preserve-3d;
position: relative;
will-change: transform;
}

.df-3d-cube{
position:absolute; inset:0;
transform-style: preserve-3d;
transition: transform .5s ease-out;
animation: cubeRotate 22s linear infinite;
will-change: transform;
transform: translateZ(0);
}

@keyframes cubeRotate{
  0%   { transform: rotateX(0deg)   rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}
.df-3d-cube:hover{ animation-play-state: paused; }

/* وجه‌ها */
.df-cube-face{
position:absolute;
width: var(--cube-size); 
height: var(--cube-size);
border:1px solid rgba(102,126,234,.28);
background: rgba(0, 0, 0, 0.8);
overflow:hidden;
box-shadow: 0 0 22px rgba(102,126,234,.25);
backface-visibility: hidden;
will-change: transform;
}
.df-cube-face img{
  width:100%; height:100%; object-fit:cover;
  opacity:.85; transition: opacity .25s;
}
.df-cube-face:hover img{ opacity:1; }

/* موقعیت‌دهی با نصف اندازه */
.df-cube-front  { transform: translateZ(var(--cube-z)); }
.df-cube-back   { transform: rotateY(180deg)  translateZ(var(--cube-z)); }
.df-cube-left   { transform: rotateY(-90deg)  translateZ(var(--cube-z)); }
.df-cube-right  { transform: rotateY(90deg)   translateZ(var(--cube-z)); }
.df-cube-top    { transform: rotateX(90deg)   translateZ(var(--cube-z)); }
.df-cube-bottom { transform: rotateX(-90deg)  translateZ(var(--cube-z)); }

/* المان‌های شناور هماهنگ و سبک */
.df-floating-elements{
  position:absolute; inset:0; pointer-events:none; z-index: 9;
}
.df-float-card{
  position:absolute;
  padding:10px 18px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  color:#fff; font-size:.95rem; font-weight:600;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  animation: float 3.3s ease-in-out infinite;
}
.df-float-1{ top:10%; left:8%;  animation-delay:0s;    }
.df-float-2{ top:28%; right:10%; animation-delay:.35s; }
.df-float-3{ bottom:18%; left:16%;animation-delay:.7s; }
@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-16px); }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1100px){
  :root{ --cube-size: clamp(180px, 34vw, 280px); }
  .df-hero-3d .df-container{
    grid-template-columns: 1fr;          /* استک عمودی */
    text-align: center;
  }
  .df-hero-main{ margin: 0 auto; }
  .df-hero-media-3d{ order: 2; }         /* متن اول، مکعب بعدش */
}

@media (max-width: 560px){
  :root{ --cube-size: clamp(160px, 50vw, 220px); }
  .df-float-card{ font-size:.9rem; padding:8px 14px; }
  .df-float-1{ top:8%;  left:6%;  }
  .df-float-2{ top:24%; right:8%; }
  .df-float-3{ bottom:14%; left:12%; }
}

/* ==========================================
   3D CARDS
   ========================================== */

.df-card-3d {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 140px;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.df-card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-gradient-1);
  opacity: 0;
  border-radius: 20px;
  transition: opacity 0.3s;
  z-index: -1;
}

.df-card-3d:hover::before {
  opacity: 0.1;
}

.df-card-3d:hover {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

/* Card Glow Effect */
.df-card-hover {
  overflow: hidden;
}

.df-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.df-card-hover:hover .df-card-glow {
  opacity: 1;
  animation: glowMove 2s ease-in-out infinite;
}

@keyframes glowMove {
  0%, 100% { transform: translate(-10%, -10%); }
  50% { transform: translate(10%, 10%); }
}

/* ==========================================
   3D TEXT EFFECT
   ========================================== */

.df-3d-text {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #ed64a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 0 rgba(102, 126, 234, 0.3),
               4px 4px 0 rgba(118, 75, 162, 0.2);
  transition: text-shadow 0.3s;
}

/* ==========================================
   KPI CARDS 3D
   ========================================== */
/* ======= KPI (clean version) ======= */

/* گرادیان fallback اگر جای دیگه ست نشده */
:root{
  --color-gradient-1: linear-gradient(90deg,#a78bfa 0%, #60a5fa 50%, #34d399 100%);
}

.df-kpi-section{
  background: linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);
  padding: 120px 0 90px;
}
.df-kpi-section .df-container{
  padding-left: clamp(28px, 6vw, 80px);
  padding-right: clamp(28px, 6vw, 80px);
}

.df-kpi-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: clamp(24px, 3.6vw, 44px);
  margin-top: 48px;
}

.df-kpi-card{
  position:relative;
  background: rgba(255,255,255,.05);
  
  border:1px solid rgba(102,126,234,.3);
  border-radius:24px;
  padding: clamp(28px,3.2vw,44px);
  text-align:center;
  transform-style: preserve-3d;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  color:#eef;
}
/* هر تزئین احتمالی از قبل را خاموش کن */
.df-kpi-card::before, .df-kpi-card::after{ content:none; display:none; }

.df-kpi-card:hover{
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(102,126,234,.6);
  box-shadow: 0 30px 60px rgba(102,126,234,.35);
}

/* عدد بزرگ با گرادیان + fallback */
.df-kpi-card .df-num{
  font-size: clamp(38px,5.3vw,62px);
  font-weight: 800;
  line-height:1.05;
  margin: 0 0 10px;
  background-image: var(--color-gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color:#a5b4fc; /* fallback */
}

/* فقط اولین المان بعد از عدد را به‌عنوان لیبل نگه دار */
.df-kpi-card .df-num + *{
  display:block !important;
  font-size: clamp(15px,1.8vw,22px);
  font-weight:700;
  color:#f5f7ff;
  margin:0;
}

/* بقیهٔ خواهر/برادرهای بعد از عدد را کامل مخفی کن */
.df-kpi-card .df-num ~ *:not(:first-child){
  display:none !important;
}

/* اگر ساختار کارت wrapper داخلی دارد، وسط‌چین و ارتفاع مناسب */
.df-kpi-card .df-card-inner{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; min-height:220px;
}

/* موبایل */
@media (max-width:700px){
  .df-kpi-section{ padding: 90px 0 70px; }
  .df-kpi-grid{ grid-template-columns:1fr; gap:20px; }
}
/* ==== KPI: دیده‌شدن لیبل‌ها + تایپو بزرگ‌تر + حذف دکور ==== */

/* فاصله‌ی افقی و تایپو عنوان/توضیح سکشن */
section.df-kpi-section .df-container{
  padding-left: clamp(28px, 6vw, 80px);
  padding-right: clamp(28px, 6vw, 80px);
}
section.df-kpi-section .df-h1{
  text-align: center;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: .2px;
  margin-bottom: 14px;
}
section.df-kpi-section .df-text-md{
  text-align: center;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  opacity: .95;
  margin: 0 auto 36px;
  max-width: 920px;
}

/* گرید با کارت‌های پهن‌تر و فاصله بیشتر */
section.df-kpi-section .df-kpi-grid{
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: clamp(24px, 3.6vw, 44px);
}

/* کارت مینیمال */
section.df-kpi-section .df-kpi-card{
  padding: clamp(30px, 3.2vw, 48px);
  border-radius: 24px;
  text-align: center;
  color: #eef;
  position: relative;
}
/* دکورها/نقاط بنفش را کامل خاموش کن */
section.df-kpi-section .df-kpi-card::before,
section.df-kpi-section .df-kpi-card::after,
section.df-kpi-section .df-kpi-card .df-card-glow,
section.df-kpi-section .df-kpi-card .df-shape-ghost,
section.df-kpi-section .df-kpi-card .df-dot,
section.df-kpi-section .df-kpi-card [class*="dot"]{
  content: none !important; display: none !important;
}

/* عدد بزرگ با گرادیان (به همراه fallback رنگ) */
:root{
  --color-gradient-1: linear-gradient(90deg,#a78bfa 0%, #60a5fa 50%, #34d399 100%);
}
section.df-kpi-section .df-kpi-card .df-num{
  font-size: clamp(42px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  margin: 0 0 10px;
  background-image: var(--color-gradient-1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #a5b4fc; /* fallback */
}

/* فقط لیبل را بعد از عدد نشان بده، بقیه را ببند */
section.df-kpi-section .df-kpi-card .df-num + .df-kpi-label{
  display: block !important;
}
section.df-kpi-section .df-kpi-card .df-kpi-label{
  font-size: clamp(16px, 1.9vw, 24px);
  font-weight: 700;
  color: #f5f7ff;
  margin: 0;
}
section.df-kpi-section .df-kpi-card .df-num ~ *:not(.df-kpi-label){
  display: none !important;
}

/* چیدمان داخلی کارت */
section.df-kpi-section .df-kpi-card .df-card-inner{
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; min-height: 220px;
}


.df-kpi-card .df-num{
  white-space: nowrap;   /* نذار بشکنه به خط بعد */
  display: inline-block; /* مطمئن که تو یه خط بمونه */
}
/* ==== KPI number alignment fix ==== */
.df-kpi-card{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;            /* نذاره چیزی از کارت بیرون بزنه */
  padding: 44px 32px;          /* padding متعادل */
  min-height: 240px;           /* ارتفاع پایه تا عدد جا بشه */
  box-sizing: border-box;
}

.df-kpi-card .df-card-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* عدد همیشه وسط و داخل کارت */
.df-kpi-card .df-num{
  white-space: nowrap;
  display: block;
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.1;
  margin: 0 0 8px;
  overflow-wrap: normal;
  text-overflow: ellipsis;
}

/* لیبل پایین عدد */
.df-kpi-card .df-kpi-label{
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  color: #f5f7ff;
  text-align: center;
}
/* === Force KPI number size === */
.df-kpi-card .df-num{
  font-size: 52px !important;   /* هر عددی که می‌خوای */
  line-height: 1.1 !important;
}
/* === KPI: fix vertical alignment across cards === */

/* گرید: آیتم‌ها کش بیایند تا هم‌قد شوند */
.df-kpi-section .df-kpi-grid{
  align-items: stretch;
}

/* خود کارت: محتوا از بالا شروع شود (نه وسط) */
.df-kpi-section .df-kpi-card{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* مهم: از بالا */
  align-items: center;
  padding-top: 44px;
  padding-bottom: 36px;
}

/* داخل کارت: شروع از بالا و هم‌قد */
.df-kpi-section .df-kpi-card .df-card-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;    /* مهم */
  height: 100%;
}

/* فاصلهٔ عدد تا لیبل */
.df-kpi-section .df-kpi-card .df-num{
  margin-bottom: 12px;
  white-space: nowrap;
}

/* لیبل: ارتفاع ثابت تا تفاوت یک‌خط/دوخط باعث جابه‌جایی نشود */
.df-kpi-section .df-kpi-card .df-kpi-label{
  line-height: 1.32;
  min-height: 2.6em;              /* ≈ ارتفاع دو خط */
  display: flex;
  align-items: center;             /* تک‌خطی وسط همین باکس می‌ایستد */
  text-align: center;
  padding: 0 4px;
}
/* موبایل */
@media (max-width:700px){
  section.df-kpi-section{ padding: 90px 0 70px; }
  section.df-kpi-section .df-kpi-grid{ grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================
   SCOPE GRID 3D
   ========================================== */
/* ===== SCOPE (clean & roomy, like KPI) ===== */

section.df-scope-section{
  background:#0f0c29;
  padding:120px 0 100px;
}
section.df-scope-section .df-container{
  padding-left: clamp(28px, 6vw, 80px);
  padding-right: clamp(28px, 6vw, 80px);
}

/* عنوان سکشن بزرگ و وسط‌چین */
section.df-scope-section .df-h1{
  text-align:center;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height:1.12;
  letter-spacing:.2px;
  margin:0 0 14px;
}

/* گرید با مین‌ویدث بالاتر تا کارت‌ها به لبه‌ها نچسبند */
section.df-scope-section .df-scope-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: clamp(24px, 3.6vw, 44px);
  margin-top:48px;
  list-style:none;
  padding:0;
}

/* کارت‌ها مینیمال و خوانا */
section.df-scope-section .df-scope-grid .df-card{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:14px;
  padding: clamp(28px, 3.2vw, 44px);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  text-align:center;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  color:#eef;
  position:relative;
}
/* خاموش کردن دکورهای 3Dِ به‌ارث‌رسیده */
section.df-scope-section .df-scope-grid .df-card::before,
section.df-scope-section .df-scope-grid .df-card::after{
  content:none !important; display:none !important;
}

/* آیکن و متن درشت‌تر */
section.df-scope-section .df-card-icon{
  font-size: clamp(26px, 3vw, 34px);
  filter: drop-shadow(0 0 10px rgba(102,126,234,.45));
}
section.df-scope-section .df-card-text{
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight:700;
  color:#f5f7ff;
}

/* هُور افکت لطیف */
section.df-scope-section .df-scope-grid .df-card:hover{
  background: rgba(102,126,234,.10);
  border-color: rgba(102,126,234,.45);
  transform: translateY(-6px);
}

/* ریسپانسیو */
@media (max-width: 900px){
  section.df-scope-section{ padding:90px 0 80px; }
  section.df-scope-section .df-scope-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* ===== SCOPE — equal heights + kill decorations ===== */

/* شبکه: کشیدن کارت‌ها به یک قد در هر ردیف */
section.df-scope-section .df-scope-grid{
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;               /* کارت در یک ردیف هم‌قد شود */
  gap: clamp(24px, 3.6vw, 44px);
}

/* کارت‌ها: قد یکسان و مرکزچین محتوا */
section.df-scope-section .df-scope-grid .df-card{
  height: 220px;                      /* قد ثابت دسکتاپ */
  min-height: 220px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: clamp(28px, 3.2vw, 44px);
  border-radius: 24px;
  position: relative;
}

/* موبایل/تبلت: اجازه‌ی چندخطی و قدِ اتوماتیک */
@media (max-width: 900px){
  section.df-scope-section .df-scope-grid .df-card{
    height: auto; min-height: 180px;
  }
}

/* دکورهای مزاحم که قد را متفاوت می‌کنند را خاموش کن */
section.df-scope-section .df-scope-grid .df-card::before,
section.df-scope-section .df-scope-grid .df-card::after,
section.df-scope-section .df-scope-grid .df-card .df-card-glow,
section.df-scope-section .df-scope-grid .df-card .df-shape-ghost,
section.df-scope-section .df-scope-grid .df-card .df-dot,
section.df-scope-section .df-scope-grid .df-card [class*="dot"]{
  content: none !important; display: none !important;
}

/* اندازه‌ها یکنواخت */
section.df-scope-section .df-card-icon{
  font-size: clamp(26px, 3vw, 34px);
}
section.df-scope-section .df-card-text{
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 700; text-align: center;
  max-width: 20ch;                    /* شکست کنترل‌شده، ولی قد ثابت می‌ماند */
}


/* ==========================================
   PROCESS SECTION WITH PARALLAX
   ========================================== */
/* ===== SO ARBEITEN WIR (features + process) ===== */
.df-features-section{
  background: linear-gradient(135deg,#302b63 0%,#24243e 100%);
  padding: clamp(80px,7vw,120px) 0;
  position: relative; overflow: hidden;
}

/* کانتینر: دو ستون در دسکتاپ، تک ستون در موبایل */
.df-features-section .df-container{
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* مدیا کمی پهن‌تر */
  gap: clamp(24px,4vw,48px);
  padding-left: clamp(24px,6vw,72px);
  padding-right: clamp(24px,6vw,72px);
  align-items: center;
}
@media (max-width: 980px){
  .df-features-section .df-container{
    grid-template-columns: 1fr;
  }
}

/* گروه مدیا: دو کارت تصویری با همپوشانی شیک */
.df-features-media{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 420px;
}
.df-features-media-item{
  position: absolute;
  inset: 0 auto auto 0;
  width: 72%;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  transform-origin: center;
}
.df-features-media-item img{ width:100%; height:100%; object-fit:cover; display:block; }

/* کارت اول (dashboard) */
.df-features-media .df-dashboard{
  transform: translate(-6%, -4%) rotate(-2deg);
}
/* کارت دوم (preview) رو روی اولی بیاریم */
.df-features-media .df-preview{
  left: auto; right: -6%;
  transform: translate(0%, 10%) rotate(3deg);
  width: 68%;
  z-index: 2;
}

/* Hover لطیف در دسکتاپ */
@media (hover:hover){
  .df-features-media-item:hover{ transform: translateY(-6px) scale(1.02); }
}

/* محتوای راست: تیتر و پروسه */
.df-features-content .df-features-title{
  text-align: left;
  font-size: clamp(28px,3.4vw,42px);
  line-height: 1.12;
  margin: 0 0 10px;
}
@media (max-width:980px){
  .df-features-content .df-features-title{ text-align:center; }
}

/* لیست استپ‌ها: تایم‌لاین عمودی با کارت‌های تمیز */
.df-process{
  position: relative;
  margin-top: 16px;
  padding-left: 6px;
}
.df-process::before{
  content:"";
  position:absolute; left: 14px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(#8b5cf6,#60a5fa);
  opacity:.35;
}
.df-step{
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  gap: 16px;
  padding: 16px 16px;
  margin: 8px 0 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.df-step:hover{
  transform: translateX(6px);
  border-color: rgba(102,126,234,.45);
  background: rgba(102,126,234,.12);
}

/* شماره‌ی استپ به صورت پِل بنفش/آبی */
.df-step .df-h5{
  width: 38px; height: 38px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #0f0f14;
  background: linear-gradient(135deg,#a78bfa,#60a5fa);
  box-shadow: 0 8px 20px rgba(99,102,241,.35);
  margin: 2px 0 0 0;
  justify-self: center;
  position: relative;
}
.df-step .df-h5::after{
  content:"";
  position:absolute; left: 50%; top: 100%;
  width: 2px; height: 14px; transform: translateX(-50%);
  background: linear-gradient(#8b5cf6,#60a5fa);
  opacity:.55;
}

/* تیتر و متن هر استپ */
.df-step h3{
  margin: 2px 0 6px; font-size: clamp(18px,1.8vw,22px); line-height:1.25;
}
.df-step p{
  margin: 0; opacity: .92; font-size: 15.5px; line-height: 1.55;
}

/* پارالاکس بیس (اگر JS نباشد هم استایل دارد) */
.df-parallax-item{ will-change: transform; transition: transform .12s ease-out; }


/* remove timeline + mini line under step number */
.df-process::before{ display:none !important; }
.df-step .df-h5::after{ display:none !important; }

/* کمی تراز و فاصله‌ی تمیزتر (اختیاری) */
.df-step{
  padding: 18px 20px !important;
  border-radius: 18px !important;
}
.df-step .df-h5{ margin-top: 0 !important; }

/* ==========================================
   BENEFITS GRID 3D
   ========================================== */
/* ===== BENEFITS — spacing + heading + grid ===== */
.df-benefits-section{
  background:#1a1a2e;
  padding: clamp(80px,7vw,120px) 0;
}
.df-benefits-section .df-container{
  /* فاصلهٔ امن از دیواره‌ها */
  padding-left: clamp(28px, 6vw, 80px);
  padding-right: clamp(28px, 6vw, 80px);
}

/* تیتر بالای سکشن */
.df-benefits-section .df-h1{
  text-align:center;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height:1.14;
  letter-spacing:.2px;
  margin: 0 0 8px;
}
.df-benefits-section .df-text-md{
  /* اگر پاراگراف توضیح داری */
  text-align:center;
  font-size: clamp(16px,1.8vw,20px);
  opacity:.95;
  max-width: 880px;
  margin: 0 auto 28px;
}

/* گرید کارت‌ها با فاصلهٔ بیشتر از هم و از لبه‌ها */
.df-benefits-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 3.6vw, 44px);
  margin-top: 40px;
}

/* کارت تمیز و وسط‌چین */
.df-benefits-grid .df-card{
  position:relative;
  background: rgba(255,255,255,.05);
  
  border:1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: clamp(28px,3vw,40px);
  text-align:center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow:hidden;
  color:#eef;
}
.df-benefits-grid .df-card:hover{
  transform: translateY(-6px);
  border-color: rgba(102,126,234,.5);
  box-shadow: 0 22px 50px rgba(102,126,234,.28);
}

/* آیکون PNG بالا */
.df-benefit-icon{
  width: 84px; height: 84px;
  object-fit: contain; display:block; margin: 0 auto 14px;
  filter: drop-shadow(0 0 10px rgba(102,126,234,.5));
}

/* تایپو کارت */
.df-benefits-grid h4{ font-size: clamp(18px,1.9vw,22px); margin: 6px 0 8px; }
.df-benefits-grid p{ font-size: 15.5px; line-height:1.55; opacity:.92; margin:0; }

/* هر دکور قبلی (glow/ghost/svg) را خاموش کن */
.df-benefits-grid .df-card-glow,
.df-benefits-grid .df-shape-ghost{ display:none !important; }

/* موبایل */
@media (max-width:700px){
  .df-benefits-section{ padding: 72px 0; }
  .df-benefits-grid{ grid-template-columns:1fr; gap:22px; }
}

/* ==========================================
   CASES 3D
   ========================================== */

.df-cases-section {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
  padding: 100px 0;
}

.df-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.df-case-3d {
  background: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
}

.df-case-3d:hover {
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.3);
}

.df-case-3d .df-media {
  height: 250px;
  overflow: hidden;
}

.df-case-3d .df-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.df-case-3d:hover .df-media img {
  transform: scale(1.1);
}


.df-case-3d .df-main {
  padding: 24px;
  color: #fff;
}

/* ==========================================
   TECH SECTION
   ========================================== */

.df-tech-section {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  padding: 100px 0;
}

.df-floating-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.df-floating-logos img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  transition: all 0.3s;
}

.df-floating-logos img:hover {
  filter: grayscale(0%) brightness(1);
  transform: translateY(-10px) scale(1.1);
}

/* ==========================================
   ACCORDION 3D
   ========================================== */

.df-accordion-3d {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.df-accordion-3d:hover {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* ==========================================
   REVEAL ANIMATIONS
   ========================================== */

.df-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.df-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
  .df-hero-3d .df-container {
    grid-template-columns: 2fr;
    gap: 100px;
  }
  
  .df-hero-media-3d {
    height: 400px;
  }
  
  .df-3d-scene,
  .df-3d-cube {
    width: 300px;
    height: 300px;
  }
  
  .df-cube-face {
    width: 300px;
    height: 300px;
  }
  
  .df-cube-front  { transform: translateZ(150px); }
  .df-cube-back   { transform: rotateY(180deg) translateZ(150px); }
  .df-cube-left   { transform: rotateY(-90deg) translateZ(150px); }
  .df-cube-right  { transform: rotateY(90deg) translateZ(150px); }
  .df-cube-top    { transform: rotateX(90deg) translateZ(150px); }
  .df-cube-bottom { transform: rotateX(-90deg) translateZ(150px); }
}

@media (max-width: 768px) {
  .df-hero-3d {
    min-height: auto;
    padding: 80px 0;
  }
  
  .df-hero-title {
    font-size: 2rem;
  }
  
  .df-hero-media-3d {
    height: 300px;
  }
  
  .df-3d-scene,
  .df-3d-cube {
    width: 250px;
    height: 250px;
  }
  
  .df-cube-face {
    width: 250px;
    height: 250px;
  }
  
  .df-cube-front  { transform: translateZ(125px); }
  .df-cube-back   { transform: rotateY(180deg) translateZ(125px); }
  .df-cube-left   { transform: rotateY(-90deg) translateZ(125px); }
  .df-cube-right  { transform: rotateY(90deg) translateZ(125px); }
  .df-cube-top    { transform: rotateX(90deg) translateZ(125px); }
  .df-cube-bottom { transform: rotateX(-90deg) translateZ(125px); }
  
  .df-kpi-grid,
  .df-scope-grid,
  .df-benefits-grid,
  .df-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .df-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .df-hero-actions .df-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   LOADING & LAZY IMAGES
   ========================================== */

img.df-lazy {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 0.3s, filter 0.3s;
}

img.loaded,
img:not(.df-lazy) {
  opacity: 1 !important;
  filter: none !important;
}

/* ==========================================
   BUTTONS
   ========================================== */

.df-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  overflow: hidden;
}

.df-btn-accent {
  background: var(--color-gradient-1);
  color: #fff;
  border: none;
}

.df-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.df-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.df-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.6);
}

.lux-shine {
  overflow: hidden;
}

.lux-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.lux-shine:hover::before {
  left: 100%;
}

/* ==========================================
   UTILITIES
   ========================================== */

.df-section {
  padding: 80px 0;
  color: #fff;
}

.df-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.df-h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.df-text-md {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.df-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 48px 0;
}

.d-flex {
  display: flex;
}

.d-inline-block {
  display: inline-block;
}

/* ===== CASE HIGHLIGHTS ===== */
.df-cases-section {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
  padding: 110px 0;
}

.df-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(28px, 3vw, 44px);
  margin-top: 56px;
}

.df-case-3d {
  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.df-case-3d:hover {
  border-color: rgba(102, 126, 234, 0.6);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(102, 126, 234, 0.35);
}

.df-case-3d .df-media {
  height: 240px;
  overflow: hidden;
}
.df-case-3d .df-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.df-case-3d:hover .df-media img {
  transform: scale(1.08);
}

.df-case-3d .df-main {
  flex: 1;
  padding: 26px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* عنوان کیس */
.df-case-3d .df-main-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

/* تگ‌ها */
.df-case-3d .df-tags {
  margin-bottom: 12px;
}
.df-case-3d .df-tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: #ddd;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 6px;
}

/* KPIs */
.df-case-3d .df-kpis {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: #bde0fe;
  font-weight: 600;
}
.df-case-3d .df-kpis li {
  margin-bottom: 4px;
}

/* CTA Link (واضح شبیه دکمه) */
.df-case-3d .df-link {
  align-self: flex-start;
  background: linear-gradient(90deg,#667eea,#764ba2);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.df-case-3d .df-link:hover {
  background: linear-gradient(90deg,#764ba2,#667eea);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(102,126,234,.35);
}

/* ===== Brands strip ===== */
.df-brands-strip{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap: clamp(28px, 4vw, 48px) clamp(36px, 6vw, 64px);
  margin-top: 40px;
  padding: 8px 0;
}

.df-brands-strip .df-logo{
  height: clamp(38px, 4.6vw, 56px);
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(.85) contrast(1.05);
  opacity: .8;
  transition: transform .3s ease, filter .3s ease, opacity .3s ease;
}

.df-brands-strip .df-logo:hover{
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: translateY(-6px) scale(1.05);
}

/* هم‌خوانی بصری با کارت‌های تیره */
.df-tech-section .df-divider{ margin: 36px 0; opacity:.25; }

/* موبایل: فاصله‌ها کمی کمتر */
@media (max-width:700px){
  .df-brands-strip{ gap: 22px 28px; }
  .df-brands-strip .df-logo{ height: 40px; }
}
/* ===== Tech + Brands center alignment ===== */
.df-tech-section .df-container{
  text-align: center;
}

.df-tech-section .df-h1{
  text-align: center;
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 20px;
}

/* لوگوهای تکنولوژی وسط */
.df-tech-logos{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

/* برندها هم وسط */
.df-brands-strip{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 48px) clamp(36px, 6vw, 64px);
  margin-top: 36px;
}
