/* =========================================================
   GLOBAL LAYERS & Z-INDEX ORDER
   ---------------------------------------------------------
   site background/particles   → z-index: 0   (خارج از این فایل)
   sections, header, footer    → z-index: 1
   cards / interactive pieces  → z-index: 2+
   sticky/mobile overlays      → z-index: 10+
   ========================================================= */

/* محتوا بالاتر از ذرات/پس‌زمینه سراسری */
header, main, footer, .section { position: relative; z-index: 1; }


/* کارت‌ها یک لایه بالاتر از متن ساده */
.card, .sv__card, .sc__card, .ld__card, #ai-cases .card.case { position: relative; z-index: 2; }

/* افکت Tilt: آماده‌ی 3D (بدون تغییر UI) */
.tilt--on{
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform .18s ease;
}

/* هایلایت موس (اختیاری) */
.tilt--hl{
  position:absolute; inset:-40%; pointer-events:none; z-index:5;
  background: radial-gradient(220px 220px at 50% 50%, rgba(255,255,255,.10), transparent 60%);
  mix-blend-mode: screen; opacity:0; transition: opacity .2s ease;
}
.tilt--on:hover .tilt--hl{ opacity:.9; }

/* =========================================================
   AI HERO (hero.ai-hero) — محتوا حفظ / بک‌گراند سکشن حذف
   ========================================================= */

.hero.ai-hero{
  position: relative;
  overflow: clip;
  padding: clamp(56px, 8vw, 120px) 0;
  color: #e0e0e0;
  background: none !important;            /* ⟵ بک‌گراند سکشن حذف شد */
  z-index: 3;                              /* هیرو بالای لایه‌های عمومی */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ذرات داخل هیرو پشت محتوا بمونن */
.hero.ai-hero .ai-particles{
  position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.0; mix-blend-mode:normal;
  /* اگر خواستی فعال کنی: opacity توسط JS */
}

/* لایه محتوایی هیرو */
.hero.ai-hero .hero_wrap{
  display:grid; position:relative; z-index:2;
  grid-template-columns: minmax(0,1.2fr) minmax(0,0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items:center;
}

/* تیتر گرادیانت/گلو (حفظ می‌ماند) */
.hero.ai-hero .hero_main{ max-width: 840px; }
.hero.ai-hero .hero_main-title{
  font-size: clamp(32px, 5.2vw, 64px);
  line-height: 1.05;
  margin: 0 0 .35em;
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  animation: text-glow 2.2s ease-in-out infinite alternate;
}
@keyframes text-glow{
  from{ text-shadow:0 0 6px rgba(0,198,255,.45), 0 0 12px rgba(0,114,255,.25); }
  to{   text-shadow:0 0 12px rgba(0,198,255,.9),  0 0 24px rgba(0,114,255,.65); }
}

.hero.ai-hero .text--md{
  font-size: clamp(14px, 1.45vw, 18px);
  margin: .25rem 0 1rem;
  opacity:.95;
}

/* دکمه‌ها */
.hero.ai-hero .hero_actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:14px; }
.hero.ai-hero .btn{ display:inline-flex; align-items:center; gap:.5rem; padding:12px 22px; border-radius:999px; font-weight:600; text-decoration:none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; position:relative; z-index:2; overflow:hidden; }
.hero.ai-hero .btn--accent{ background: linear-gradient(90deg,#00c6ff,#0072ff); color:#fff; border:0; box-shadow: 0 8px 24px rgba(0,198,255,.28); }
.hero.ai-hero .btn--accent:hover{ transform: translateY(-3px); box-shadow:0 12px 28px rgba(0,198,255,.38); }
.hero.ai-hero .btn--outline{ background: transparent; color:#d9e9ff; border:1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.hero.ai-hero .btn--outline:hover{ background: rgba(255,255,255,.06); }

/* برق دکمه */
.hero.ai-hero .btn-shine::before{
  content:""; position:absolute; inset:0; left:-90%; transform: skewX(-30deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 100%);
  transition:left .7s ease;
}
.hero.ai-hero .btn-shine:hover::before{ left:120%; }

/* KPI chips */
.hero.ai-hero .hero_kpis{ display:flex; flex-wrap:wrap; gap:8px 12px; margin-top:16px; list-style:none; padding:0; }
.hero.ai-hero .hero_kpis li{ background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:8px 14px; font-size:15px; line-height:1.3; white-space:nowrap; }
.hero.ai-hero .hero_kpis .kpi{ font-weight:700; color:#4cd2ff; margin-right:6px; }

/* مدیا */
.hero.ai-hero .hero_media{ position:relative; z-index:2; justify-self:end; align-self:center; }
.hero.ai-hero .hero_media-img{
  position:relative; overflow:hidden; border-radius:22px;
  width: clamp(300px, 35vw, 480px); aspect-ratio:4/3;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.hero.ai-hero .hero_media-img img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; border-radius:inherit; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero.ai-hero .hero_media-img:hover img { transform: scale(1.05) rotate3d(1,1,0,5deg); }

/* Glow داینامیک قاب (حفظ؛ چون داخل قاب است نه سکشن) */
.hero.ai-hero .hero_media-img.glow::after{
  content:""; position:absolute; inset:-5px; border-radius:inherit; z-index:-1; opacity:.5;
  background: linear-gradient(45deg,#8a2be2,#4169e1,#00c6ff);
  background-size: 400% 400%; animation: heroGlow 10s ease infinite;
}
@keyframes heroGlow{
  0%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
  100%{ background-position:0% 50%; }
}

/* ریسپانسیو هیرو */
@media (max-width:992px){
  .hero.ai-hero .hero_wrap{ grid-template-columns:1fr; text-align:center; gap:50px; }
  .hero.ai-hero .hero_media{ justify-self:center; }
  .hero.ai-hero .hero_media-img{ width: min(80vw, 480px); }
  .hero.ai-hero .hero_actions, .hero.ai-hero .hero_kpis{ justify-content:center; }
}
@media (prefers-reduced-motion: reduce){
  .hero.ai-hero .hero_main-title{ animation:none; text-shadow:none; }
  .hero.ai-hero .hero_media-img.glow::after{ animation:none; }
}

/* =========================================================
   SERVICES (sv) — کارت‌ها حفظ / بک‌گراند سکشن حذف
   ========================================================= */

.sv{
  position:relative; z-index:1;
  padding: clamp(64px, 8vw, 120px) 0;
  background: none !important;            /* ⟵ حذف بک‌گراند سکشن */
  color:#eaf2ff;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.sv__container{ max-width:1280px; margin-inline:auto; padding-inline:20px; }

.sv__grid{
  display:grid; gap:28px;
  grid-template-columns: repeat(3, minmax(0,1fr));
  list-style:none; padding:0; margin:0;
  justify-items:center; justify-content:center;
}
@media (max-width:1200px){ .sv__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){  .sv__grid{ grid-template-columns: 1fr; } }

/* کارت‌ها (بدون تغییر ظاهری) */
.sv__card{
  --hue:260;
  position:relative; overflow:hidden; isolation:isolate;
  width:100%; max-width: 420px; aspect-ratio: 4/5;
  border-radius:24px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 50px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
  transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .45s;
}
.sv__card::before{ content:""; position:absolute; inset:-2px; border-radius:inherit; z-index:1; pointer-events:none; background: conic-gradient(from 0turn, hsl(var(--hue) 80% 60% / .35), transparent 12%, transparent 88%, hsl(var(--hue) 80% 60% / .35)); filter: blur(10px); opacity:.9; }
.sv__card::after{  /* aurora روی کارت (حفظ) */ 
  content:""; position:absolute; inset:-22%; border-radius:inherit; z-index:1; pointer-events:none;
  background:
    radial-gradient(60% 40% at 25% 20%, hsl(var(--hue) 90% 60% / .16), transparent 60%),
    radial-gradient(55% 45% at 80% 75%, hsl(calc(var(--hue)+35) 90% 55% / .14), transparent 65%),
    radial-gradient(65% 50% at 20% 85%, hsl(calc(var(--hue)-25) 95% 65% / .10), transparent 60%);
  mix-blend-mode: screen; animation: sv-aurora 12s ease-in-out infinite alternate;
}
@keyframes sv-aurora{ 0%{ transform: translate3d(-2%,-2%,0) rotate(.4deg); opacity:.9; } 100%{ transform: translate3d( 2%, 2%,0) rotate(-.4deg); opacity:1; } }

.sv__bg{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.sv__bg img{ width:100%; height:100%; object-fit:cover; display:block; transform: translateZ(0) scale(1.02); filter: brightness(.92) contrast(1.1) saturate(1.1); transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; }
.sv__bg-overlay{ position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(10,14,26,0) 0%, rgba(10,14,26,.35) 55%, rgba(10,14,26,.65) 100%); }

.sv__badge{ position:absolute; left:18px; top:18px; z-index:3; display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:14px; background: rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.sv__badge img{ width:28px; height:28px; display:block; }
.sv__badge-title{ margin:0; font-weight:800; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.35); }
.sv__linebreak{ display:block; }

.sv__body{ position:absolute; left:0; right:0; bottom:0; z-index:2; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border-top:1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); padding: 22px 20px; transform: translateZ(30px); }
.sv__title{ margin:0 0 8px; color:#fff; font-weight:800; letter-spacing:.3px; }
.sv__text{ margin:0 0 14px; color:#e8f4fd; opacity:.95; }

.sv__btn{ display:inline-flex; align-items:center; gap:.5rem; padding:12px 18px; border-radius:999px; font-weight:700; text-decoration:none; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.sv__btn--accent{ background: linear-gradient(90deg, hsl(var(--hue) 70% 55%), hsl(calc(var(--hue)+30) 70% 55%)); color:#fff; border:0; box-shadow: 0 10px 24px hsla(var(--hue), 80%, 55%, .28); }
.sv__btn--accent:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px hsla(var(--hue),80%,55%,.38); }

@media (hover:hover) and (pointer:fine){
  .sv__card:hover{ transform: translateY(-10px) scale(1.015); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 34px hsla(var(--hue),85%,62%,.35); border-color: rgba(255,255,255,.18); }
  .sv__card:hover .sv__bg img{ transform: translateZ(0) scale(1.08); filter: brightness(1.02) contrast(1.18) saturate(1.2); }
}
@media (prefers-reduced-motion: reduce){
  .sv__card, .sv__bg img{ transition:none; }
  .sv__card::after{ animation:none; }
}

/* =========================================================
   AI CASES (#ai-cases) — فقط سکشن بی‌پس‌زمینه؛ کارت‌ها حفظ
   ========================================================= */

section#ai-cases.ai-cases.section{
  padding: 120px 0;
  background: none !important;                 /* ⟵ حذف بک‌گراند سکشن */
  position: relative; overflow: hidden; z-index:1;
}
#ai-cases .container{ max-width:1200px; margin:0 auto; padding:0 20px; position:relative; z-index:2; }

#ai-cases .section_head{ text-align:center; margin-bottom:80px; padding:0; background:none; border:none; box-shadow:none; position:relative; z-index:5; }
#ai-cases .section_head .h1{
  font-size: 3.5rem; font-weight:900; color:#ffffff; margin-bottom:25px; letter-spacing:-0.02em; line-height:1.1;
  background: none !important; -webkit-text-fill-color: inherit; text-shadow:none;
}
#ai-cases .section_head .text--md{ font-size:1.4rem; color:#e8f4fd; font-weight:400; margin:0; opacity:.9; }

#ai-cases .cards.cases_list{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap:50px; list-style:none; padding:0; margin:0;
}

#ai-cases .card.case{
  background: rgba(255,255,255,0.03);
  border-radius:30px; overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 50px rgba(10,27,46,.4), 0 5px 15px rgba(74,123,200,.1), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  transition: all .6s cubic-bezier(.165,.84,.44,1);
  position:relative; transform-origin:center center; z-index:2;
}
#ai-cases .card.case::before{ content:""; position:absolute; inset:0; background: linear-gradient(135deg, rgba(255,255,255,.02) 0%, rgba(74,123,200,.05) 100%); opacity:0; transition:opacity .4s; pointer-events:none; }
#ai-cases .card.case:hover::before{ opacity:1; }
#ai-cases .card.case:hover{
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 40px 80px rgba(10,27,46,.5), 0 10px 30px rgba(74,123,200,.2), inset 0 1px 0 rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
}

/* مدیای داخل کارت (حفظ می‌ماند) */
#ai-cases .case .case_media{
  width:100%; height:240px;
  background: linear-gradient(135deg, #0f2847 0%, #2c5aa0 50%, #4a7bc8 100%);
  display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; z-index:2;
}
#ai-cases .case_media::after{ content:""; position:absolute; inset:0; background: radial-gradient(circle at center, rgba(255,255,255,.1) 0%, transparent 70%); opacity:0; transition:opacity .4s; }
#ai-cases .card.case:hover .case_media::after{ opacity:1; }
#ai-cases .case_media img.lazy{
  max-width:80%; max-height:80%; object-fit:cover; border-radius:20px;
  box-shadow: 0 15px 40px rgba(10,27,46,.3), 0 5px 15px rgba(0,0,0,.2);
  transition: all .5s cubic-bezier(.165,.84,.44,1); filter: brightness(.95) contrast(1.1);
}
#ai-cases .card.case:hover .case_media img.lazy{ transform: scale(1.08) rotate(2deg); filter: brightness(1.05) contrast(1.15); }

/* متن/متریک‌ها */
#ai-cases .case .case_body{ padding:40px 35px 35px; position:relative; background: rgba(0,0,0,0.1); }
#ai-cases .case_body::before{ content:""; position:absolute; top:0; left:20px; right:20px; height:1px; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.1) 50%, transparent 100%); }
#ai-cases .case_body .case_title{ font-size:1.6rem; font-weight:700; color:#fff; margin:0 0 25px; letter-spacing:.01em; line-height:1.3; position:relative; }
#ai-cases .case_title::after{ content:""; position:absolute; bottom:-8px; left:0; width:40px; height:2px; background: linear-gradient(90deg, #4a7bc8 0%, #6fa8dc 100%); border-radius:1px; }

#ai-cases .case_body .metrics{ list-style:none; padding:0; margin:0 0 30px; }
#ai-cases .metrics li{ font-size:1.1rem; color:#e8f4fd; margin-bottom:12px; display:flex; align-items:center; position:relative; padding-left:8px; }
#ai-cases .metrics li::before{ content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); width:3px; height:3px; background:#4a7bc8; border-radius:50%; box-shadow: 0 0 6px rgba(74,123,200,.6); }
#ai-cases .metrics .kpi{
  display:inline-block; min-width:65px; font-weight:800; color:#fff;
  background: linear-gradient(135deg, #4a7bc8 0%, #6fa8dc 50%, #4a7bc8 100%);
  border-radius:12px; padding:8px 16px; margin-right:18px; font-size:1rem;
  box-shadow: 0 6px 18px rgba(74,123,200,.25), inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.1);
  text-align:center; text-shadow: 0 1px 2px rgba(10,27,46,.4); position:relative; overflow:hidden;
}
#ai-cases .metrics .kpi::before{ content:""; position:absolute; top:0; left:-100%; width:100%; height:100%; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.2) 50%, transparent 100%); transition:left .6s ease; }
#ai-cases .card.case:hover .metrics .kpi::before{ left:100%; }

/* دکمه */
#ai-cases .case_body .btn.btn--outline.btn--arrow{
  display:inline-flex; align-items:center; color:#fff; font-weight:600; font-size:1rem;
  border:2px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05);
  padding:12px 28px; border-radius:50px; transition: all .4s cubic-bezier(.165,.84,.44,1);
  cursor:pointer; text-decoration:none; backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.1); position:relative; overflow:hidden;
}
#ai-cases .btn.btn--outline.btn--arrow::before{ content:""; position:absolute; top:0; left:-100%; width:100%; height:100%; background: linear-gradient(90deg, #4a7bc8 0%, #6fa8dc 100%); transition:left .4s ease; z-index:-1; }
#ai-cases .btn.btn--outline.btn--arrow:hover::before{ left:0; }
#ai-cases .btn.btn--outline.btn--arrow:hover{ border-color: rgba(255,255,255,.4); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(74,123,200,.3), inset 0 1px 0 rgba(255,255,255,.2); }
#ai-cases .btn .icon.icon-arrow-right{ margin-left:10px; font-size:1rem; transition: transform .3s ease; }
#ai-cases .btn:hover .icon.icon-arrow-right{ transform: translateX(5px); }

/* ریسپانسیو AI Cases */
@media (max-width:1000px){ #ai-cases .cards.cases_list{ grid-template-columns:1fr; gap:40px; } }
@media (max-width:768px){
  section#ai-cases.ai-cases.section{ padding:80px 0; }
  #ai-cases .section_head .h1{ font-size:2.8rem; }
  #ai-cases .case .case_body{ padding:30px 25px; }
  #ai-cases .case .case_media{ height:200px; }
}
@media (max-width:480px){
  #ai-cases .cards.cases_list{ gap:30px; }
  #ai-cases .section_head .h1{ font-size:2.4rem; }
  #ai-cases .section_head .text--md{ font-size:1.2rem; }
}

/* =========================================================
   AB (Benefits), AP (Process), SC (Showcase), LD (Lead)
   — بک‌گراند سکشن حذف، محتوا/کارت‌ها حفظ
   ========================================================= */

/* Benefits */
.ab{
  position:relative; overflow:hidden;
  padding: clamp(64px, 8vw, 120px) 0;
  background: none !important;         /* ⟵ حذف بک‌گراند سکشن */
  color:#e0e0e0; font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.ab__container{ max-width:1280px; margin-inline:auto; padding-inline:20px; display:flex; justify-content:space-between; align-items:center; gap:50px; flex-wrap:wrap; position:relative; z-index:2; }
.ab__title{
  font-size: clamp(28px, 5.2vw, 56px); line-height:1.08; margin:0 0 .4em;
  background:linear-gradient(45deg,#8a2be2,#4169e1);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
  animation: ab-text-glow 2.2s ease-in-out infinite alternate;
}
@keyframes ab-text-glow{
  from{ text-shadow:0 0 6px rgba(138,43,226,.45), 0 0 12px rgba(65,105,225,.25); }
  to  { text-shadow:0 0 12px rgba(138,43,226,.9),  0 0 24px rgba(65,105,225,.6); }
}
.ab__tags{ display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.ab__tag{ display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; background:#222c42; color:#b0b0b0; border:1px solid #3a4b6c; transition:.25s; backdrop-filter: blur(6px); }
.ab__tag i{ color:#00c6ff; } .ab__tag:hover{ background:#3a4b6c; color:#fff; }
.ab__list{ list-style:none; padding:0; margin:22px 0 0; }
.ab__list li{ position:relative; padding-left:26px; margin:0 0 10px; }
.ab__list li::before{ content:"✓"; position:absolute; left:0; top:0; width:18px; height:18px; display:inline-grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#00c6ff,#0072ff); color:#fff; font-size:12px; box-shadow:0 0 10px rgba(0,198,255,.35); }
.ab__actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }

.ab__card{
  --hue: 260deg; --glow: rgba(124,92,255,.55);
  position:relative; overflow:hidden; isolation:isolate; border-radius:22px; aspect-ratio: 9/16;
  background: radial-gradient(120% 100% at 50% 100%, rgba(10,14,26,.86) 0%, rgba(10,14,26,.96) 60%);
  border:1px solid rgba(255,255,255,.08); box-shadow: 0 18px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, filter .45s; width:100% !important; max-width:380px;
}
.ab__card::before{ content:""; position:absolute; inset:-2px; z-index:1; pointer-events:none; background: conic-gradient(from 0turn, hsl(var(--hue) 80% 60% / .35), transparent 10%, transparent 90%, hsl(var(--hue) 80% 60% / .35)); filter: blur(8px); opacity:.9; }
.ab__card::after{
  content:""; position:absolute; inset:-20%; z-index:1; pointer-events:none;
  background:
    radial-gradient(60% 40% at 30% 20%, hsl(var(--hue) 90% 60% / .18), transparent 60%),
    radial-gradient(50% 40% at 80% 70%, hsl(calc(var(--hue)+40) 90% 55% / .14), transparent 60%),
    radial-gradient(70% 50% at 20% 80%, hsl(calc(var(--hue)-30) 95% 65% / .12), transparent 60%);
  mix-blend-mode: screen; animation: ab-aurora 11s ease-in-out infinite alternate;
}
@keyframes ab-aurora{ 0%{ transform:translate3d(-2%,-2%,0) rotate(.5deg); opacity:.9; } 100%{ transform:translate3d( 2%, 2%,0) rotate(-.5deg); opacity:1; } }
.ab__card img{ position:relative; z-index:2; width:100%; height:100%; object-fit:cover; display:block; border-radius:inherit; filter: brightness(1.02) contrast(1.1) saturate(1.1) hue-rotate(6deg); transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; transform: translateZ(24px); }
.ab__card:hover{ transform: translateY(-12px) scale(1.02); box-shadow: 0 26px 70px rgba(0,0,0,.5), 0 0 32px var(--glow); }
.ab__card:hover img{ transform: scale(1.06) rotate(-.4deg); filter: brightness(1.08) contrast(1.18) saturate(1.2) hue-rotate(10deg); }



/* Process (AP) */
.ap{
  position:relative; overflow:hidden;
  padding: clamp(64px, 8vw, 120px) 0;
  background: none !important;        /* ⟵ حذف بک‌گراند سکشن */
  color:#e8f4fd; font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.ap__container{ max-width:1200px; margin-inline:auto; padding-inline:20px; position:relative; z-index:2; }
.ap__grid{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 60px); align-items:center; }
@media (max-width: 968px){ .ap__grid{ grid-template-columns: 1fr; gap: 50px; } }

.ap__title{
  font-size: clamp(28px, 5vw, 48px); line-height:1.12; margin:0 0 12px;
  background: linear-gradient(90deg, #ffffff 0%, #e8f4fd 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent; color:transparent;
  text-shadow: 0 4px 12px rgba(10,27,46,.35); letter-spacing:.2px;
}
.ap__sub{ margin:0 0 24px; color:#bfd5ee; font-weight:500; text-shadow:0 2px 6px rgba(10,27,46,.3); }

.ap__steps{ list-style:none; padding:0; margin:0 0 24px; counter-reset: ap-step; position:relative; }
.ap__steps::before{ content:""; position:absolute; left:20px; top:8px; bottom:8px; width:2px; background: linear-gradient(180deg, #ffffff1a, #ffffff08); border-radius:2px; }
.ap__step{
  position:relative; display:grid; grid-template-columns: 54px 1fr; gap:12px; padding:14px 16px; margin:10px 0;
  border:1px solid rgba(255,255,255,.10); border-radius:16px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 10px 32px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.03); backdrop-filter: blur(10px);
  transition: transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s, border-color .3s;
}
.ap__step:hover{ transform: translateX(8px); box-shadow: 0 14px 38px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.ap__badge{ width:54px; height:54px; border-radius:14px; display:grid; place-items:center; font-weight:800; font-size:1.2rem; color:#fff; background: linear-gradient(135deg, #2c5aa0, #4a7bc8); box-shadow: 0 6px 20px rgba(44,90,160,.3), inset 0 1px 0 rgba(255,255,255,.25); text-shadow: 0 1px 2px rgba(10,27,46,.4); }
.ap__step-body h4{ margin:2px 0 6px; font-weight:800; color:#fff; text-shadow:0 2px 6px rgba(10,27,46,.35); }
.ap__step-body p{ margin:0; color:#bfd5ee; }

.ap__actions{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 8px; }
.ap .btn.btn--accent.btn--arrow{
  padding:12px 28px; border-radius:999px; border:1px solid rgba(44,90,160,.3);
  background: linear-gradient(90deg, #2c5aa0, #4a7bc8); color:#fff;
  box-shadow: 0 6px 20px rgba(44,90,160,.3), inset 0 1px 0 rgba(255,255,255,.15);
  text-shadow:0 1px 2px rgba(10,27,46,.3);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.ap .btn.btn--accent.btn--arrow:hover{ background: linear-gradient(90deg, #4a7bc8, #6fa8dc); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(44,90,160,.4), inset 0 1px 0 rgba(255,255,255,.2); }
.ap .btn.btn--outline.btn--arrow{ padding:12px 28px; border-radius:999px; background: rgba(255,255,255,.08); color:#4a7bc8; border:2px solid rgba(44,90,160,.4); backdrop-filter: blur(8px); }
.ap .btn.btn--outline.btn--arrow:hover{ background: rgba(44,90,160,.18); color:#fff; border-color:#4a7bc8; transform: translateY(-3px); }

.ap__media{ margin:0; }
.ap__frame{ position:relative; border-radius:22px; overflow:hidden; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); box-shadow: 0 15px 40px rgba(10,27,46,.35), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.ap__frame img{ display:block; width:100%; height:auto; border-radius:inherit; transition: transform .5s ease; }
.ap__frame:hover img{ transform: scale(1.04); }
.ap__particles{ position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:0; opacity:.45; display:block; }

.ap__caption{ display:flex; align-items:center; gap:10px; margin-top: 14px; color:#e8f4fd; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 10px 14px; backdrop-filter: blur(8px); }
.ap__caption .icon-check{ color:#9d6bff; }

@media (prefers-reduced-motion: reduce){
  .ap__step{ transition:none; }
  .ap__frame img{ transition:none; }
}

/* Showcase (SC) */
.sc{
  position:relative; overflow:hidden;
  padding: clamp(64px, 8vw, 120px) 0;
  background: none !important;         /* ⟵ حذف بک‌گراند سکشن */
  color:#e8f4fd; font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; z-index:2;
}
.sc__container{ max-width:1200px; margin-inline:auto; padding-inline:20px; }
.sc__head{ text-align:center; margin-bottom: clamp(32px,4vw,64px); }
.sc__title{
  font-size: clamp(28px, 5vw, 56px); line-height:1.1; margin:0 0 10px;
  background: linear-gradient(90deg, #fff 0%, #e8f4fd 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
  text-shadow: 0 4px 12px rgba(10,27,46,.35);
}
.sc__sub{ margin:0; color:#bfd5ee; }

.sc__grid{ display:grid; gap:28px; grid-template-columns: repeat(4, minmax(0,1fr)); justify-items:center; justify-content:center; list-style:none; padding:0; margin:0; }
@media (max-width:1200px){ .sc__grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width:900px){  .sc__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:560px){  .sc__grid{ grid-template-columns: 1fr; } }

.sc__card{
  --hue:260;
  position:relative; overflow:hidden; isolation:isolate; width:100%; max-width:360px; border-radius:24px;
  background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 50px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
  transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .45s, filter .45s;
}
.sc__card::before{ content:""; position:absolute; inset:-2px; border-radius:inherit; z-index:1; pointer-events:none; background: conic-gradient(from 0turn, hsl(var(--hue) 80% 60% / .35), transparent 12%, transparent 88%, hsl(var(--hue) 80% 60% / .35)); filter: blur(10px); opacity:.9; }
.sc__card::after{
  content:""; position:absolute; inset:-22%; border-radius:inherit; z-index:1; pointer-events:none;
  background:
    radial-gradient(60% 40% at 25% 20%, hsl(var(--hue) 90% 60% / .16), transparent 60%),
    radial-gradient(55% 45% at 80% 75%, hsl(calc(var(--hue)+35) 90% 55% / .14), transparent 65%),
    radial-gradient(65% 50% at 20% 85%, hsl(calc(var(--hue)-25) 95% 65% / .10), transparent 60%);
  mix-blend-mode: screen; animation: sc-aurora 12s ease-in-out infinite alternate;
}
@keyframes sc-aurora{ 0%{ transform: translate3d(-2%,-2%,0) rotate(.4deg); opacity:.9; } 100%{ transform: translate3d( 2%, 2%,0) rotate(-.4deg); opacity:1; } }

.sc__img{ position:relative; width:100%; height: 220px; overflow:hidden; z-index:2; }
.sc__img img{ width:100%; height:100%; object-fit:cover; display:block; filter: brightness(.95) contrast(1.1) saturate(1.1); transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; }
@media (max-width: 560px){ .sc__img{ height: 200px; } }

.sc__card-title{ position:relative; z-index:3; margin:0; text-align:center; padding: 18px 16px 22px; color:#fff; font-weight:800; line-height:1.25; background: rgba(0,0,0,.22); backdrop-filter: blur(6px); border-top: 1px solid rgba(255,255,255,.10); text-shadow: 0 1px 2px rgba(10,27,46,.35); }

@media (hover:hover) and (pointer:fine){
  .sc__card:hover{ transform: translateY(-10px) scale(1.02); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 34px hsla(var(--hue),85%,62%,.35); border-color: rgba(255,255,255,.18); }
  .sc__card:hover .sc__img img{ transform: scale(1.08); filter: brightness(1.02) contrast(1.18) saturate(1.2); }
}
@media (prefers-reduced-motion: reduce){
  .sc__card, .sc__img img{ transition:none; }
  .sc__card::after{ animation:none; }
}

/* =========================================================
   LEAD CAPTURE (LD) - COMPLETE SECTION
   ========================================================= */

.ld {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0;
  background: none !important;
  color: #eaf2ff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  z-index: 2;
}

.ld__container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 20px;
  position: relative;
  z-index: 2;
}

.ld__card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: stretch;
  border-radius: 30px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 30px 60px rgba(10, 27, 46, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  isolation: isolate;
}

.ld__card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(from 0turn, #7b5cff44, transparent 12%, transparent 88%, #6fa8dc44);
  filter: blur(10px);
  opacity: .9;
}

/* ========== INFO (متن سمت چپ) ========== */

.ld__info {
  position: relative;
  z-index: 1;
}

.ld__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.8vw, 48px);
  line-height: 1.12;
  background: linear-gradient(90deg, #fff, #e8f4fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 4px 12px rgba(10, 27, 46, .35);
}

.ld__sub {
  margin: 0 0 16px;
  color: #cfe2f7;
}

.ld__list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.ld__list li {
  position: relative;
  padding-left: 40px;
  margin: 12px 0;
  color: #fff;
  font-weight: 600;
}

.ld__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a7bc8, #6fa8dc);
  box-shadow: 0 6px 16px rgba(74, 123, 200, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.ld__list li::after {
  content: "✓";
  position: absolute;
  left: 6.5px;
  top: 50%;
  transform: translateY(-54%);
  font-weight: 800;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(10, 27, 46, .4);
}

/* ========== FORM (فرم سمت راست) ========== */

.ld__form {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 15px 35px rgba(10, 27, 46, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px; /* فاصله بین المان‌ها */
}

/* Honeypot */
.ld__hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ردیف نام و ایمیل */
.ld__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ld__field {
  display: block;
}

/* Input fields */
.ld__input {
  width: 100%;
  appearance: none;
  border: 2px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .12s ease;
}

.ld__input::placeholder {
  color: rgba(255, 255, 255, .65);
}

.ld__input:focus {
  outline: none;
  border-color: rgba(111, 168, 220, .65);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 8px 24px rgba(111, 168, 220, .25), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}

/* Button - فاصله از بالا اضافه شد */
.ld__btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  padding: 16px 22px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4a7bc8, #6fa8dc 55%, #4a7bc8);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(74, 123, 200, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  margin-top: 8px; /* فاصله اضافی */
}

.ld__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(74, 123, 200, .45);
}

.ld__btn:active {
  transform: translateY(0);
}

/* Note زیر دکمه */
.ld__note {
  margin: 0;
  font-size: .9rem;
  color: #d7e8ff;
  opacity: .9;
  text-align: center;
}

/* ========== RESPONSIVE ========== */
/* === LAYERS: BG(0) → PARTICLES(1) → CONTENT(2) === */

/* بک‌گراند و ذرات سایت */
body.page-ai .site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.page-ai .site-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
}

/* بک‌گراند سکشن‌ها رو شفاف کن تا particles زیرشون دیده شه */
body.page-ai .hero.ai-hero,
body.page-ai .sv,
body.page-ai section#ai-cases.ai-cases.section,
body.page-ai .ab,
body.page-ai .ap,
body.page-ai .sc,
body.page-ai .ld {
  background: transparent !important;
}

/* شبه‌عناصر تولیدکننده بک‌گراند رو خاموش کن */
body.page-ai section#ai-cases.ai-cases.section::before,
body.page-ai .sv::before,
body.page-ai .ab::before,
body.page-ai .ap::before,
body.page-ai .sc::before,
body.page-ai .ld::before {
  content: none !important;
  display: none !important;
}

/* بک‌گراند case_media رو هم شفاف کن */
body.page-ai #ai-cases .case_media {
  background: transparent !important;
}

body.page-ai #ai-cases .card.case::before {
  content: none !important;
}

/* خود main شفاف باشد */
body.page-ai main {
  background: transparent !important;
}

/* دکمه Scroll-to-top */
body.page-ai #scrollTrigger {
  position: fixed;
  z-index: 1200 !important;
}
/* =============================== 
   REDUCE CARD HEIGHTS 
   =============================== */



/* Services Cards */
.sv__card {
  aspect-ratio: 4/5 !important;
  max-height: 460px;
}

/* Showcase Cards */
.sc__img {
  height: 180px !important;
}

/* Case Cards */
#ai-cases .case__media {
  height: 200px !important;
}

@media (max-width: 768px) {
  #ai-benefits .ab__card,
  .sv__card {
    aspect-ratio: 16/9 !important;
    max-height: none;
  }
}
/* =========================================================
   AB (BENEFITS) - 4 CARDS FIX + RESPONSIVE 
   ========================================================= */

/* پاک کن این بخش‌ها از CSS قبلی: خط 277-332 */
.ab{
  position:relative; 
  overflow:hidden;
  padding: clamp(64px, 8vw, 120px) 0;
  background: none !important;
  color:#e0e0e0; 
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ab__container{ 
  max-width:1400px; /* عریض‌تر برای 4 کارت */
  margin-inline:auto; 
  padding-inline:20px; 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
  gap:50px; 
  flex-wrap:wrap; 
  position:relative; 
  z-index:2; 
}

.ab__title{
  font-size: clamp(28px, 5.2vw, 56px); 
  line-height:1.08; 
  margin:0 0 .4em;
  background:linear-gradient(45deg,#8a2be2,#4169e1);
  -webkit-background-clip:text; 
  background-clip:text; 
  -webkit-text-fill-color:transparent; 
  color:transparent;
  animation: ab-text-glow 2.2s ease-in-out infinite alternate;
}

@keyframes ab-text-glow{
  from{ text-shadow:0 0 6px rgba(138,43,226,.45), 0 0 12px rgba(65,105,225,.25); }
  to  { text-shadow:0 0 12px rgba(138,43,226,.9),  0 0 24px rgba(65,105,225,.6); }
}

.ab__tags{ 
  display:flex; 
  flex-wrap:wrap; 
  gap:12px; 
  margin-top:18px; 
}

.ab__tag{ 
  display:inline-flex; 
  align-items:center; 
  gap:8px; 
  padding:8px 14px; 
  border-radius:999px; 
  background:#222c42; 
  color:#b0b0b0; 
  border:1px solid #3a4b6c; 
  transition:.25s; 
  backdrop-filter: blur(6px); 
}

.ab__tag i{ color:#00c6ff; } 
.ab__tag:hover{ background:#3a4b6c; color:#fff; }

.ab__list{ 
  list-style:none; 
  padding:0; 
  margin:22px 0 0; 
}

.ab__list li{ 
  position:relative; 
  padding-left:26px; 
  margin:0 0 10px; 
}

.ab__list li::before{ 
  content:"✓"; 
  position:absolute; 
  left:0; 
  top:0; 
  width:18px; 
  height:18px; 
  display:inline-grid; 
  place-items:center; 
  border-radius:50%; 
  background:linear-gradient(135deg,#00c6ff,#0072ff); 
  color:#fff; 
  font-size:12px; 
  box-shadow:0 0 10px rgba(0,198,255,.35); 
}

.ab__actions{ 
  display:flex; 
  gap:12px; 
  flex-wrap:wrap; 
  margin-top:26px; 
}

/* ========== MEDIA (4 کارت) ========== */

.ab__media{ 
  display: grid;
  /* desktop بزرگ: 4 ستون */
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  justify-items: center;
  position: relative; 
  z-index: 2; 
}

/* کارت‌ها - عمودی در همه حالات */
.ab__card{
  --hue: 260deg; 
  --glow: rgba(124,92,255,.55);
  position: relative; 
  overflow: hidden; 
  isolation: isolate; 
  border-radius: 22px; 
  
  /* ⬇️ اینجا مهمه: نسبت 9:16 ثابت */
  aspect-ratio: 9/16 !important;
  width: 100%;
  max-width: 320px; /* حداکثر عرض */
  height: auto; /* ارتفاع خودکار بر اساس aspect-ratio */
  
  background: radial-gradient(120% 100% at 50% 100%, rgba(10,14,26,.86) 0%, rgba(10,14,26,.96) 60%);
  border: 1px solid rgba(255,255,255,.08); 
  box-shadow: 0 18px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, filter .45s;
}

.ab__card::before{ 
  content:""; 
  position:absolute; 
  inset:-2px; 
  z-index:1; 
  pointer-events:none; 
  background: conic-gradient(from 0turn, hsl(var(--hue) 80% 60% / .35), transparent 10%, transparent 90%, hsl(var(--hue) 80% 60% / .35)); 
  filter: blur(8px); 
  opacity:.9; 
}

.ab__card::after{
  content:""; 
  position:absolute; 
  inset:-20px; 
  z-index:1; 
  pointer-events:none;
  background:
    radial-gradient(60% 40% at 30% 20%, hsl(var(--hue) 90% 60% / .18), transparent 60%),
    radial-gradient(50% 40% at 80% 70%, hsl(calc(var(--hue)+40) 90% 55% / .14), transparent 60%),
    radial-gradient(70% 50% at 20% 80%, hsl(calc(var(--hue)-30) 95% 65% / .12), transparent 60%);
  mix-blend-mode: screen; 
  animation: ab-aurora 11s ease-in-out infinite alternate;
}

@keyframes ab-aurora{ 
  0%{ transform:translate3d(-2px,-2px,0) rotate(.5deg); opacity:.9; } 
  100%{ transform:translate3d(2px,2px,0) rotate(-.5deg); opacity:1; } 
}

/* عکس داخل کارت */
.ab__card img{ 
  position: relative; 
  z-index: 2; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; /* عکس پر می‌کنه بدون بریدگی */
  object-position: center; /* مرکز عکس نشون داده میشه */
  display: block; 
  border-radius: inherit; 
  filter: brightness(1.02) contrast(1.1) saturate(1.1) hue-rotate(6deg); 
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; 
}

.ab__card:hover{ 
  transform: translateY(-12px) scale(1.02); 
  box-shadow: 0 26px 70px rgba(0,0,0,.5), 0 0 32px var(--glow); 
}

.ab__card:hover img{ 
  transform: scale(1.06); 
  filter: brightness(1.08) contrast(1.18) saturate(1.2) hue-rotate(10deg); 
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Desktop بزرگ: 4 کارت در یک ردیف */
@media (min-width: 1200px) {
  .ab__media {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1320px;
    margin-inline: auto;
  }
}

/* Tablet بزرگ: 3 کارت */
@media (min-width: 900px) and (max-width: 1199px) {
  .ab__media {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .ab__card {
    max-width: 300px;
  }
}

/* Tablet کوچک: 2 کارت - عمودی باقی می‌مونه */
@media (min-width: 640px) and (max-width: 899px) {
  .ab__media {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .ab__card {
    aspect-ratio: 9/16 !important; /* همچنان عمودی */
    max-width: 280px;
  }
  
  .ab__container {
    flex-direction: column;
    text-align: center;
  }
}

/* موبایل: 1 کارت - عمودی */
@media (max-width: 639px) {
  .ab__media {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .ab__card {
    aspect-ratio: 9/16 !important; /* عمودی می‌مونه */
    max-width: 340px;
    margin-inline: auto;
  }
  
  .ab__container {
    flex-direction: column;
    text-align: center;
  }
}

/* موبایل خیلی کوچک */
@media (max-width: 400px) {
  .ab__card {
    max-width: 100%;
  }
}

/* حذف انیمیشن برای Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .ab__card,
  .ab__card img {
    transition: none;
  }
  
  .ab__card::after {
    animation: none;
  }
  
  .ab__title {
    animation: none;
  }
}
/* =========================================================
   AB (BENEFITS) - 4 CARDS + RESPONSIVE FIX
   ========================================================= */

.ab{
  position: relative; 
  overflow: hidden;
  padding: clamp(64px, 8vw, 120px) 0;
  background: none !important;
  color: #e0e0e0; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ab__container{ 
  max-width: 1400px;
  margin-inline: auto; 
  padding-inline: 20px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 50px; 
  flex-wrap: wrap; 
  position: relative; 
  z-index: 2; 
}

.ab__main {
  flex: 1 1 400px;
  max-width: 100%;
}

.ab__title{
  font-size: clamp(28px, 5.2vw, 56px); 
  line-height: 1.08; 
  margin: 0 0 .4em;
  background: linear-gradient(45deg, #8a2be2, #4169e1);
  -webkit-background-clip: text; 
  background-clip: text; 
  -webkit-text-fill-color: transparent; 
  color: transparent;
  animation: ab-text-glow 2.2s ease-in-out infinite alternate;
}

@keyframes ab-text-glow{
  from{ text-shadow: 0 0 6px rgba(138,43,226,.45), 0 0 12px rgba(65,105,225,.25); }
  to{ text-shadow: 0 0 12px rgba(138,43,226,.9), 0 0 24px rgba(65,105,225,.6); }
}

.ab__tags{ 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
  margin-top: 18px; 
}

.ab__tag{ 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  padding: 8px 14px; 
  border-radius: 999px; 
  background: #222c42; 
  color: #b0b0b0; 
  border: 1px solid #3a4b6c; 
  transition: .25s; 
  backdrop-filter: blur(6px); 
}

.ab__tag i{ color: #00c6ff; } 
.ab__tag:hover{ background: #3a4b6c; color: #fff; }

.ab__list{ 
  list-style: none; 
  padding: 0; 
  margin: 22px 0 0; 
}

.ab__list li{ 
  position: relative; 
  padding-left: 26px; 
  margin: 0 0 10px; 
}

.ab__list li::before{ 
  content: "✓"; 
  position: absolute; 
  left: 0; 
  top: 0; 
  width: 18px; 
  height: 18px; 
  display: inline-grid; 
  place-items: center; 
  border-radius: 50%; 
  background: linear-gradient(135deg, #00c6ff, #0072ff); 
  color: #fff; 
  font-size: 12px; 
  box-shadow: 0 0 10px rgba(0,198,255,.35); 
}

.ab__actions{ 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  margin-top: 26px; 
}

/* ========== MEDIA (4 کارت عمودی) ========== */

.ab__media{ 
  flex: 1 1 100%;
  display: grid;
  gap: 24px;
  justify-items: center;
  position: relative; 
  z-index: 2;
}

/* کارت‌ها */
.ab__card{
  --hue: 260deg; 
  --glow: rgba(124,92,255,.55);
  position: relative; 
  overflow: hidden; 
  isolation: isolate; 
  border-radius: 22px; 
  
  /* نسبت ثابت 9:16 */
  aspect-ratio: 9/16;
  width: 100%;
  max-width: 300px;
  
  background: radial-gradient(120% 100% at 50% 100%, rgba(10,14,26,.86) 0%, rgba(10,14,26,.96) 60%);
  border: 1px solid rgba(255,255,255,.08); 
  box-shadow: 0 18px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s;
}

.ab__card::before{ 
  content: ""; 
  position: absolute; 
  inset: -2px; 
  z-index: 1; 
  pointer-events: none; 
  background: conic-gradient(from 0turn, hsl(var(--hue) 80% 60% / .35), transparent 10%, transparent 90%, hsl(var(--hue) 80% 60% / .35)); 
  filter: blur(8px); 
  opacity: .9; 
}

.ab__card::after{
  content: ""; 
  position: absolute; 
  inset: -20px; 
  z-index: 1; 
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 30% 20%, hsl(var(--hue) 90% 60% / .18), transparent 60%),
    radial-gradient(50% 40% at 80% 70%, hsl(calc(var(--hue) + 40) 90% 55% / .14), transparent 60%),
    radial-gradient(70% 50% at 20% 80%, hsl(calc(var(--hue) - 30) 95% 65% / .12), transparent 60%);
  mix-blend-mode: screen; 
  animation: ab-aurora 11s ease-in-out infinite alternate;
}

@keyframes ab-aurora{ 
  0%{ transform: translate3d(-2px, -2px, 0) rotate(.5deg); opacity: .9; } 
  100%{ transform: translate3d(2px, 2px, 0) rotate(-.5deg); opacity: 1; } 
}

.ab__card img{ 
  position: relative; 
  z-index: 2; 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  object-position: center;
  display: block; 
  border-radius: inherit; 
  filter: brightness(1.02) contrast(1.1) saturate(1.1); 
  transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; 
}

.ab__card:hover{ 
  transform: translateY(-12px) scale(1.02); 
  box-shadow: 0 26px 70px rgba(0,0,0,.5), 0 0 32px var(--glow); 
}

.ab__card:hover img{ 
  transform: scale(1.06); 
  filter: brightness(1.08) contrast(1.18) saturate(1.2); 
}

/* ========== RESPONSIVE ========== */

/* Desktop بزرگ: 4 ستون */
@media (min-width: 1200px) {
  .ab__media {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop: 3 ستون */
@media (min-width: 900px) and (max-width: 1199px) {
  .ab__media {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet: 2 ستون */
@media (min-width: 640px) and (max-width: 899px) {
  .ab__container {
    flex-direction: column;
    text-align: center;
  }
  
  .ab__media {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .ab__card {
    max-width: 280px;
  }
}

/* موبایل: 1 ستون */
@media (max-width: 639px) {
  .ab__container {
    flex-direction: column;
    text-align: center;
  }
  
  .ab__media {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .ab__card {
    max-width: 340px;
  }
}

@media (max-width: 400px) {
  .ab__card {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab__card,
  .ab__card img {
    transition: none;
  }
  
  .ab__card::after,
  .ab__title {
    animation: none;
  }
}
/* =========================================================
   FEATURES SHOWCASE - 4 CARDS SECTION
   ========================================================= */

.features-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 120px) 0;
  background: none !important;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  z-index: 2;
}

.features-showcase__wrapper {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ========== CONTENT (متن سمت چپ) ========== */

.features-showcase__content {
  flex: 1 1 400px;
  max-width: 100%;
}

.features-showcase__title {
  font-size: clamp(28px, 5.2vw, 56px);
  line-height: 1.08;
  margin: 0 0 .4em;
  background: linear-gradient(45deg, #8a2be2, #4169e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: features-title-glow 2.2s ease-in-out infinite alternate;
}

@keyframes features-title-glow {
  from {
    text-shadow: 0 0 6px rgba(138, 43, 226, .45), 0 0 12px rgba(65, 105, 225, .25);
  }
  to {
    text-shadow: 0 0 12px rgba(138, 43, 226, .9), 0 0 24px rgba(65, 105, 225, .6);
  }
}

.features-showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.features-showcase__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #222c42;
  color: #b0b0b0;
  border: 1px solid #3a4b6c;
  transition: all .25s ease;
  backdrop-filter: blur(6px);
}

.features-showcase__tag i {
  color: #00c6ff;
}

.features-showcase__tag:hover {
  background: #3a4b6c;
  color: #fff;
  transform: translateY(-2px);
}

.features-showcase__list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.features-showcase__list li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 10px;
  color: #e8f4fd;
}

.features-showcase__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 198, 255, .35);
}

.features-showcase__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ========== GALLERY (کارت‌های سمت راست) ========== */

.features-showcase__gallery {
  flex: 1 1 100%;
  display: grid;
  gap: 24px;
  justify-items: center;
  position: relative;
  z-index: 2;
}

/* کارت‌ها */
.features-showcase__card {
  --card-hue: 260deg;
  --card-glow: rgba(124, 92, 255, .55);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 300px;
  background: radial-gradient(120% 100% at 50% 100%, rgba(10, 14, 26, .86) 0%, rgba(10, 14, 26, .96) 60%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}

/* Color variants */
.features-showcase__card--1 { --card-hue: 260deg; --card-glow: rgba(124, 92, 255, .55); }
.features-showcase__card--2 { --card-hue: 205deg; --card-glow: rgba(74, 123, 200, .55); }
.features-showcase__card--3 { --card-hue: 320deg; --card-glow: rgba(255, 92, 157, .55); }
.features-showcase__card--4 { --card-hue: 175deg; --card-glow: rgba(92, 255, 200, .55); }

/* Glow effects */
.features-showcase__card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  pointer-events: none;
  background: conic-gradient(
    from 0turn,
    hsl(var(--card-hue) 80% 60% / .35),
    transparent 10%,
    transparent 90%,
    hsl(var(--card-hue) 80% 60% / .35)
  );
  filter: blur(8px);
  opacity: .9;
  border-radius: inherit;
}

.features-showcase__card::after {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 30% 20%, hsl(var(--card-hue) 90% 60% / .18), transparent 60%),
    radial-gradient(50% 40% at 80% 70%, hsl(calc(var(--card-hue) + 40deg) 90% 55% / .14), transparent 60%),
    radial-gradient(70% 50% at 20% 80%, hsl(calc(var(--card-hue) - 30deg) 95% 65% / .12), transparent 60%);
  mix-blend-mode: screen;
  animation: features-aurora 11s ease-in-out infinite alternate;
  border-radius: inherit;
}

@keyframes features-aurora {
  0% {
    transform: translate3d(-2px, -2px, 0) rotate(.5deg);
    opacity: .9;
  }
  100% {
    transform: translate3d(2px, 2px, 0) rotate(-.5deg);
    opacity: 1;
  }
}

/* Image inside card */
.features-showcase__card img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
  filter: brightness(1.02) contrast(1.1) saturate(1.1);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s;
}

/* Hover effects */
.features-showcase__card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .5), 0 0 32px var(--card-glow);
}

.features-showcase__card:hover img {
  transform: scale(1.06);
  filter: brightness(1.08) contrast(1.18) saturate(1.2);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Desktop بزرگ: 4 ستون */
@media (min-width: 1200px) {
  .features-showcase__gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop متوسط: 3 ستون */
@media (min-width: 900px) and (max-width: 1199px) {
  .features-showcase__gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet: 2 ستون */
@media (min-width: 640px) and (max-width: 899px) {
  .features-showcase__wrapper {
    flex-direction: column;
    text-align: center;
  }

  .features-showcase__gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .features-showcase__card {
    max-width: 280px;
  }
}

/* موبایل: 1 ستون */
@media (max-width: 639px) {
  .features-showcase__wrapper {
    flex-direction: column;
    text-align: center;
  }

  .features-showcase__gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .features-showcase__card {
    max-width: 340px;
  }
}

/* موبایل خیلی کوچک */
@media (max-width: 400px) {
  .features-showcase__card {
    max-width: 100%;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .features-showcase__card,
  .features-showcase__card img,
  .features-showcase__tag {
    transition: none;
  }

  .features-showcase__card::after,
  .features-showcase__title {
    animation: none;
  }
}
/* =========================================================
   FIX TILT FOR FEATURES-SHOWCASE CARDS
   ========================================================= */

/* اطمینان از ترکیب صحیح transform */
.features-showcase__card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Hover باید با JS ترکیب بشه نه override */
.features-showcase__card:hover {
  /* فقط translateY و scale - بقیه توسط JS */
  box-shadow: 0 26px 70px rgba(0, 0, 0, .5), 0 0 32px var(--card-glow);
}

/* عکس جدا از کارت transform بشه */
.features-showcase__card:hover img {
  transform: scale(1.06) !important;
  filter: brightness(1.08) contrast(1.18) saturate(1.2);
}

/* Tilt global class */
.tilt--on {
  transform-style: preserve-3d !important;
  will-change: transform;
}

/* Debug: اگه این کلاس اضافه شد، tilt فعاله */
.tilt--on::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: lime; /* نقطه سبز کوچیک برای دیباگ */
  border-radius: 50%;
  opacity: 0.5;
  z-index: 9999;
  pointer-events: none;
}

/* موبایل: Tilt خاموش */
@media (hover: none), (pointer: coarse) {
  .tilt--on {
    transform: none !important;
  }
}
/* =========================================================
   SERVICES (SV) - IMAGE TOP + GRADIENT BOTTOM
   ========================================================= */

.sv {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 8vw, 120px) 0;
  background: none !important;
  color: #eaf2ff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sv__container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ========== HEADER (SEO) ========== */

.sv__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.sv__header-title {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
  background: linear-gradient(90deg, #ffffff 0%, #e8f4fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

.sv__header-desc {
  margin: 0;
  color: #bfd5ee;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.6;
}

/* ========== GRID ========== */

.sv__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: center;
  justify-content: center;
}

@media (max-width: 1200px) {
  .sv__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sv__grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CARD ========== */

.sv__card {
  --hue: 260;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  border-radius: 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .30), 
              inset 0 1px 0 rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), 
              box-shadow .45s, 
              border-color .45s;
}

/* Color variants */
.sv__card--1 { --hue: 260; } /* Purple */
.sv__card--2 { --hue: 205; } /* Blue */
.sv__card--3 { --hue: 320; } /* Pink */
.sv__card--4 { --hue: 175; } /* Cyan */
.sv__card--5 { --hue: 30; }  /* Orange */
.sv__card--6 { --hue: 150; } /* Green */

/* Glow effects */
.sv__card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background: conic-gradient(
    from 0turn,
    hsl(var(--hue) 80% 60% / .35),
    transparent 12%,
    transparent 88%,
    hsl(var(--hue) 80% 60% / .35)
  );
  filter: blur(10px);
  opacity: .9;
}

.sv__card::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 25% 20%, hsl(var(--hue) 90% 60% / .16), transparent 60%),
    radial-gradient(55% 45% at 80% 75%, hsl(calc(var(--hue) + 35deg) 90% 55% / .14), transparent 65%),
    radial-gradient(65% 50% at 20% 85%, hsl(calc(var(--hue) - 25deg) 95% 65% / .10), transparent 60%);
  mix-blend-mode: screen;
  animation: sv-aurora 12s ease-in-out infinite alternate;
}

@keyframes sv-aurora {
  0% {
    transform: translate3d(-2%, -2%, 0) rotate(.4deg);
    opacity: .9;
  }
  100% {
    transform: translate3d(2%, 2%, 0) rotate(-.4deg);
    opacity: 1;
  }
}

/* ========== MEDIA (عکس بالا) ========== */

.sv__media {
  position: relative;
  width: 100%;
  height: 50%;
  overflow: hidden;
  z-index: 2;
  flex-shrink: 0;
  border-radius: 24px 24px 0 0;
}

.sv__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.95) contrast(1.1) saturate(1.1);
  transition: filter .6s;
  transform: none !important;
}

/* ========== CONTENT (متن + gradient پایین) ========== */

.sv__content {
  position: relative;
  width: 100%;
  height: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  
  /* Gradient با رنگ کارت */
  background: linear-gradient(
    180deg,
    hsla(var(--hue), 45%, 20%, 0.95) 0%,
    hsla(var(--hue), 55%, 15%, 0.98) 50%,
    hsla(var(--hue), 60%, 12%, 1) 100%
  );
  
  border-radius: 0 0 24px 24px;
  backdrop-filter: blur(8px);
}

.sv__title {
  margin: 0 0 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .3px;
  transform: none !important;
}

.sv__text {
  margin: 0 0 auto;
  color: #e8f4fd;
  opacity: .95;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

/* ========== BUTTON ========== */

.sv__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 12px;
  transition: transform .25s ease, 
              box-shadow .25s ease, 
              background .25s ease;
}

.sv__btn--accent {
  background: linear-gradient(
    90deg,
    hsl(var(--hue) 75% 60%),
    hsl(calc(var(--hue) + 25deg) 75% 60%)
  );
  color: #fff;
  border: 0;
  box-shadow: 0 8px 20px hsla(var(--hue), 80%, 55%, .3);
}

.sv__btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px hsla(var(--hue), 80%, 55%, .45);
}

.sv__btn .icon {
  font-size: 0.85rem;
  transition: transform .3s ease;
}

.sv__btn:hover .icon {
  transform: translateX(3px);
}

/* ========== HOVER EFFECTS ========== */

@media (hover: hover) and (pointer: fine) {
  .sv__card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 
                0 0 34px hsla(var(--hue), 85%, 62%, .35);
    border-color: rgba(255, 255, 255, .18);
  }

  .sv__card:hover .sv__media img {
    filter: brightness(1.02) contrast(1.18) saturate(1.2);
  }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .sv__header-title {
    font-size: 2rem;
  }
  
  .sv__header-desc {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv__card,
  .sv__media img {
    transition: none;
  }

  .sv__card::after {
    animation: none;
  }
}
/* =========================================================
   SERVICES (SV) - RESPONSIVE FIX
   ========================================================= */

.sv {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 8vw, 120px) 0;
  background: none !important;
  color: #eaf2ff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sv__container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ========== HEADER ========== */

.sv__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.sv__header-title {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.12;
  margin: 0 0 16px;
  background: linear-gradient(90deg, #ffffff 0%, #e8f4fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 4px 12px rgba(10, 27, 46, .35);
  font-weight: 900;
}

.sv__header-text {
  margin: 0;
  color: #cfe2f7;
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: .95;
}

/* ========== GRID ========== */

.sv__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: center;
}

@media (max-width: 1200px) {
  .sv__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sv__grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CARD ========== */

.sv__card {
  --hue: 260;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .30), 
              inset 0 1px 0 rgba(255, 255, 255, .06);
  
  /* ✅ ارتفاع دینامیک برای محتوای بیشتر */
  min-height: 480px;
  display: flex;
  flex-direction: column;
  
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), 
              box-shadow .45s, 
              border-color .45s;
}

/* Color variants */
.sv__card--1 { --hue: 260deg; }
.sv__card--2 { --hue: 205deg; }
.sv__card--3 { --hue: 320deg; }
.sv__card--4 { --hue: 175deg; }
.sv__card--5 { --hue: 30deg; }
.sv__card--6 { --hue: 150deg; }

/* Glow effects */
.sv__card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background: conic-gradient(
    from 0turn,
    hsl(var(--hue) 80% 60% / .35),
    transparent 12%,
    transparent 88%,
    hsl(var(--hue) 80% 60% / .35)
  );
  filter: blur(10px);
  opacity: .9;
}

.sv__card::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 25% 20%, hsl(var(--hue) 90% 60% / .16), transparent 60%),
    radial-gradient(55% 45% at 80% 75%, hsl(calc(var(--hue) + 35deg) 90% 55% / .14), transparent 65%),
    radial-gradient(65% 50% at 20% 85%, hsl(calc(var(--hue) - 25deg) 95% 65% / .10), transparent 60%);
  mix-blend-mode: screen;
  animation: sv-aurora 12s ease-in-out infinite alternate;
}

@keyframes sv-aurora {
  0% { transform: translate3d(-2%, -2%, 0) rotate(.4deg); opacity: .9; }
  100% { transform: translate3d(2%, 2%, 0) rotate(-.4deg); opacity: 1; }
}

/* ========== BACKGROUND IMAGE ========== */

.sv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.sv__bg img {
  width: 100%;
  height: 100%;
  /* ✅ عکس کامل نشون داده بشه */
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(.92) contrast(1.1) saturate(1.1);
  transition: filter .6s;
  transform: none !important;
}

.sv__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0) 0%,
    rgba(10, 14, 26, .35) 55%,
    rgba(10, 14, 26, .85) 100%
  );
}

/* ========== BADGE ========== */

.sv__badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(10px);
}

.sv__badge-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  /* ✅ متن بریده نشه */
  white-space: nowrap;
}

.sv__linebreak {
  display: block;
}

/* ========== BODY (پایین کارت) ========== */

.sv__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  border-top: 1px solid rgba(255, 255, 255, .12);
  /* ✅ padding بیشتر برای متن بلندتر */
  padding: 24px 20px;
  transform: translateZ(30px);
  
  /* ✅ ارتفاع دینامیک */
  min-height: fit-content;
  max-height: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sv__title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .3px;
  line-height: 1.3;
  /* ✅ متن در 2 خط نشون داده بشه */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: visible;
}

.sv__text {
  margin: 0;
  color: #e8f4fd;
  opacity: .95;
  font-size: 0.92rem;
  line-height: 1.5;
  /* ✅ متن در 3 خط نشون داده بشه */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: visible;
}

/* ========== BUTTON ========== */

.sv__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin-top: auto;
  flex-shrink: 0;
  transition: transform .3s ease, 
              box-shadow .3s ease;
}

.sv__btn--accent {
  background: linear-gradient(
    135deg,
    hsl(var(--hue) 70% 55%),
    hsl(calc(var(--hue) + 30deg) 70% 55%)
  );
  color: #fff;
  border: 0;
  box-shadow: 0 8px 24px hsla(var(--hue), 80%, 55%, .35),
              inset 0 1px 0 rgba(255, 255, 255, .2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.sv__btn--accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, .3) 50%,
    transparent 100%
  );
  transition: left .6s ease;
}

.sv__btn--accent:hover::before {
  left: 100%;
}

.sv__btn--accent:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px hsla(var(--hue), 80%, 55%, .45),
              inset 0 1px 0 rgba(255, 255, 255, .3);
}

.sv__btn .icon {
  font-size: 0.85rem;
  transition: transform .3s ease;
}

.sv__btn:hover .icon {
  transform: translateX(4px);
}

/* ========== HOVER ========== */

@media (hover: hover) and (pointer: fine) {
  .sv__card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 
                0 0 40px hsla(var(--hue), 85%, 62%, .4);
    border-color: rgba(255, 255, 255, .18);
  }

  .sv__card:hover .sv__bg img {
    filter: brightness(1.05) contrast(1.18) saturate(1.2);
  }
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1200px) {
  .sv__card {
    max-width: 380px;
    min-height: 460px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .sv__header {
    margin-bottom: 40px;
  }
  
  .sv__header-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  
  .sv__header-text {
    font-size: 1rem;
  }
  
  .sv__card {
    max-width: 100%;
    min-height: 440px;
  }
  
  .sv__body {
    padding: 20px 18px;
  }
  
  .sv__title {
    font-size: 1.05rem;
    /* ✅ در موبایل همه متن نشون داده بشه */
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  
  .sv__text {
    font-size: 0.9rem;
    /* ✅ در موبایل همه متن نشون داده بشه */
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .sv__grid {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv__card,
  .sv__btn {
    transition: none;
  }

  .sv__card::after {
    animation: none;
  }
  
  .sv__btn--accent::before {
    display: none;
  }
}

/* =========================================================
   SERVICES - COMPACT CONTENT AREA (FINAL)
   ========================================================= */

/* قسمت پایین gradient را کوتاه می‌کنیم */
.sv__content {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  
  /* Gradient با رنگ کارت */
  background: linear-gradient(
    180deg,
    hsla(var(--hue), 45%, 20%, 0.92) 0%,
    hsla(var(--hue), 55%, 15%, 0.96) 50%,
    hsla(var(--hue), 60%, 12%, 1) 100%
  ) !important;
  
  backdrop-filter: blur(12px) saturate(150%) !important;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0 0 24px 24px;
  
  /* کوتاه‌تر */
  padding: 14px 16px 12px !important;
  
  display: flex;
  flex-direction: column;
  gap: 6px !important;
}

/* تیتر - استایل زیبا + کوتاه */
.sv__title {
  margin: 0 !important;
  color: #fff;
  font-weight: 800;
  font-size: 1rem !important;
  letter-spacing: .4px;
  line-height: 1.25 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
  
  /* فقط 1 خط */
  display: -webkit-box;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* متن توضیحات - استایل زیبا + کوتاه */
.sv__text {
  margin: 0 !important;
  color: rgba(232, 244, 253, 0.92);
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  
  /* فقط 1 خط */
  display: -webkit-box;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* دکمه - بدون تغییر اندازه، فقط margin */
.sv__btn {
  margin-top: 6px !important;
}

/* ========== RESPONSIVE - کوتاه‌تر در موبایل ========== */

/* Tablet */
@media (max-width: 1200px) {
  .sv__content {
    padding: 12px 14px 10px !important;
    gap: 5px !important;
  }
  
  .sv__title {
    font-size: 0.95rem !important;
  }
  
  .sv__text {
    font-size: 0.82rem !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .sv__content {
    padding: 10px 12px 9px !important;
    gap: 4px !important;
  }
  
  .sv__title {
    font-size: 0.9rem !important;
  }
  
  .sv__text {
    font-size: 0.8rem !important;
  }
  
  .sv__btn {
    margin-top: 5px !important;
  }
}

/* Mobile کوچک */
@media (max-width: 640px) {
  .sv__content {
    padding: 9px 10px 8px !important;
  }
}
/* =========================================================
   SERVICES - SHORTER CARD HEIGHT (UNIFORM)
   ========================================================= */

/* کارت‌ها کوتاه‌تر */
.sv__card {
  aspect-ratio: 3/4 !important; /* نسبت کوتاه‌تر */
  min-height: auto !important;
  max-height: 420px !important; /* حداکثر قد */
}

/* عکس بالا کوتاه‌تر */
.sv__media {
  height: 55% !important; /* 55% به جای 50% */
  flex-shrink: 0;
}

/* محتوا پایین */
.sv__content {
  height: 45% !important; /* 45% به جای 50% */
  padding: 14px 16px 12px !important;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1200px) {
  .sv__card {
    max-height: 400px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .sv__card {
    max-height: 380px !important;
  }
  
  .sv__media {
    height: 60% !important;
  }
  
  .sv__content {
    height: 40% !important;
    padding: 12px 12px 10px !important;
  }
}

/* Mobile کوچک */
@media (max-width: 640px) {
  .sv__card {
    max-height: 360px !important;
  }/* =========================================================
   SERVICES - FINAL FIX (قد یکسان + استایل متن)
   ========================================================= */

/* کارت‌ها - قد یکسان */
.sv__card {
  aspect-ratio: 3/4 !important;
  min-height: 400px !important;
  max-height: 420px !important;
}

/* عکس بالا */
.sv__media {
  height: 58% !important;
  flex-shrink: 0;
}

/* محتوا پایین */
.sv__content {
  height: 42% !important;
  padding: 16px 16px 14px !important;
  gap: 8px !important;
  
  background: linear-gradient(
    180deg,
    hsla(var(--hue), 45%, 20%, 0.92) 0%,
    hsla(var(--hue), 55%, 15%, 0.96) 50%,
    hsla(var(--hue), 60%, 12%, 1) 100%
  ) !important;
  
  backdrop-filter: blur(12px) saturate(150%) !important;
}

/* تیتر - استایل زیبا */
.sv__title {
  margin: 0 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.5px !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5) !important;
  
  display: -webkit-box;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* متن - استایل زیبا */
.sv__text {
  margin: 0 !important;
  color: rgba(232, 244, 253, 0.95) !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  letter-spacing: 0.3px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3) !important;
  
  display: -webkit-box;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* دکمه */
.sv__btn {
  margin-top: 6px !important;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1200px) {
  .sv__card {
    min-height: 380px !important;
    max-height: 400px !important;
  }
  
  .sv__content {
    padding: 14px 14px 12px !important;
  }
  
  .sv__title {
    font-size: 1rem !important;
  }
  
  .sv__text {
    font-size: 0.85rem !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .sv__card {
    min-height: 360px !important;
    max-height: 380px !important;
  }
  
  .sv__media {
    height: 60% !important;
  }
  
  .sv__content {
    height: 40% !important;
    padding: 12px 12px 10px !important;
    gap: 6px !important;
  }
  
  .sv__title {
    font-size: 0.95rem !important;
  }
  
  .sv__text {
    font-size: 0.82rem !important;
    -webkit-line-clamp: 1 !important;
  }
}

/* Mobile کوچک */
@media (max-width: 640px) {
  .sv__card {
    min-height: 340px !important;
    max-height: 360px !important;
  }
  
  .sv__content {
    padding: 10px 10px 9px !important;
  }
}
/* === FIX: Hamburger Clickable === */

/* مطمئن شو particles کلیک رو نگیره */
body.page-ai .site-particles,
body.page-ai .site-particles *,
body.page-ai .site-background,
body.page-ai .site-background * {
  pointer-events: none !important;
}

/* همبرگر باید کاملاً کلیک‌پذیر باشه */
.hamburger,
.hamburger *,
.mobile-menu-toggle,
.mobile-menu-toggle *,
#menuToggle,
#menuToggle input {
  pointer-events: auto !important;
  position: relative;
  z-index: 9999 !important;
}

/* وقتی منو باز میشه */
.mobile-menu {
  pointer-events: auto !important;
  z-index: 9998 !important;
}

/* اگه overlay داری که جلوی همبرگر میشینه */
.hero.ai-hero .ai-particles,
.hero.ai-hero .ai-particles * {
  pointer-events: none !important;
}
/* اضافه کن به mobile-menu.css یا هر CSS اصلی */

/* Canvas particles نباید کلیک بگیره */
#particle-background,
#particle-background canvas {
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Header و hamburger بالاتر باشن */
.header {
  z-index: 10000 !important;
}

.df-hamburger {
  position: relative !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

