/* ==========================================================================
   Projekte Page Styles (scoped) — /css/projekte.css
   فقط همین صفحه: header/footer/faq دست نمی‌خورن
   برند: پس‌زمینه تیره، مرز کارت‌ها #b4dcff، رادیوس 18px، انیمیشن سبک
   ========================================================================== */

body.page-projekte {
  --bg: #121212;
  --text: #ffffff;
  --muted: #cfcfcf;
  --muted-2: #9a9a9a;
  --card-border: #b4dcff;
  --card-bg: rgba(255,255,255,0.03);
  --card-bg-2: rgba(255,255,255,0.06);
  --accent: #9B5BFF;          /* بنفش نئونی du first */
  --accent-2: #6f36e8;
  --brand-red: #b30000;
  --chip-bg: #1a1a1a;
  --chip-border: #2a2a2a;
  --chip-active: #24213a;
  --grid-gap: clamp(16px, 2.5vw, 24px);
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  background-color: var(--bg);
  color: var(--text);
}

/* =========================== HERO =========================== */
body.page-projekte .hero--projects {
  position: relative;
  padding: clamp(56px, 6vw, 96px) 0;
  background:
    radial-gradient(120% 140% at 80% 10%, rgba(155,91,255,.14), transparent 60%),
    radial-gradient(120% 140% at 10% 90%, rgba(155,91,255,.08), transparent 60%);
  overflow: clip;
}
body.page-projekte .hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}
@media (max-width: 992px) {
  body.page-projekte .hero__grid { grid-template-columns: 1fr; }
}
body.page-projekte .hero_title {
  font-size: clamp(28px, 4.8vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}
body.page-projekte .hero_title .accent { color: var(--accent); }
body.page-projekte .hero__copy .text--md {
  color: var(--muted);
  margin-top: 12px;
}
body.page-projekte .hero__actions { display:flex; gap:12px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 480px) { body.page-projekte .hero__actions { flex-direction: column; } }
body.page-projekte .hero_media-img {
  display:block; border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--card-bg-2), var(--card-bg));
}
body.page-projekte .hero_video { width:100%; height:auto; display:block; }

/* ====================== FILTER BAR (Sticky) ====================== */
body.page-projekte .section--filters { padding: 8px 0 0; }
body.page-projekte .sticky-bar {
  position: sticky;
  top: var(--sticky-offset, 72px); /* اگر هدر ثابت داری، با این متغیر تنظیم کن */
  z-index: 20;
  display:flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 10px 14px;
  border: 1px solid var(--chip-border);
  background: rgba(18,18,18,.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: calc(var(--radius) + 6px);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
body.page-projekte .sticky-bar.is-stuck {
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  background: rgba(18,18,18,.82);
}
body.page-projekte .filters__chips {
  display:flex; gap:8px; flex-wrap: nowrap; overflow:auto; scrollbar-width: none;
}
body.page-projekte .filters__chips::-webkit-scrollbar { display:none; }

body.page-projekte .chip {
  appearance:none; border:1px solid var(--chip-border); background: var(--chip-bg);
  color:var(--text); padding:10px 14px; border-radius: 999px;
  font-size: 14px; line-height:1; white-space: nowrap; cursor: pointer;
  transition: transform .14s ease, background .18s ease, border-color .18s ease;
}
body.page-projekte .chip:hover { transform: translateY(-2px); border-color: #3a3a3a; }
body.page-projekte .chip.is-active {
  background: var(--chip-active);
  border-color: rgba(155,91,255,.5);
  box-shadow: 0 0 0 2px rgba(155,91,255,.12) inset;
}

body.page-projekte .filters__sort .select {
  background: var(--chip-bg); border:1px solid var(--chip-border);
  color: var(--text); border-radius: 10px; padding:10px 12px;
}

/* =========================== CASES GRID =========================== */
body.page-projekte .cases.section { padding: clamp(40px, 5vw, 80px) 0; }
body.page-projekte .section_nav { display:flex; align-items:center; gap:12px; margin-bottom: 12px; }
body.page-projekte .section_nav-title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; }
body.page-projekte .divider {
  height:1px; flex:1; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,0));
}

body.page-projekte .cases_grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--grid-gap);
}
@media (max-width: 1100px) {
  body.page-projekte .cases_grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  body.page-projekte .cases_grid { grid-template-columns: 1fr; }
}

body.page-projekte .case_card {
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-bg-2), var(--card-bg));
  overflow: hidden; display:flex; flex-direction: column;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transform: translateY(6px) scale(.995);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform .28s cubic-bezier(.22,.61,.36,1),
    box-shadow .28s ease,
    opacity .28s ease;
}
body.page-projekte .case_card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
body.page-projekte .case_card:hover,
body.page-projekte .case_card:focus-within {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow);
}

body.page-projekte .case_media {
  display:block; aspect-ratio: 16 / 9; position: relative; overflow:hidden;
  background: #0c0c0c;
}
body.page-projekte .case_media img {
  width:100%; height:100%; object-fit: cover; display:block;
  transform: scale(1.02);
  transition: transform .36s ease, filter .24s ease;
  filter: saturate(.92) contrast(1.02);
}
body.page-projekte .case_card:hover .case_media img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.06);
}

body.page-projekte .case_body { padding: 16px 16px 18px; display:flex; flex-direction: column; gap: 10px; }
body.page-projekte .case_meta { display:flex; align-items:center; flex-wrap: wrap; gap:8px; color: var(--muted-2); font-size: 13px; }
body.page-projekte .case_meta .tag {
  display:inline-block; padding:6px 10px; border-radius: 999px;
  border:1px solid rgba(180,220,255,.35);
  background: rgba(180,220,255,.10);
  color:#d9eeff; font-weight:600; font-size:12px;
}
body.page-projekte .case_meta .dot {
  width:6px; height:6px; border-radius:50%; background: rgba(255,255,255,.35); display:inline-block; margin: 0 4px;
}
body.page-projekte .case_meta .year { color: var(--muted); opacity:.9; }

body.page-projekte .case_title {
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 800; line-height: 1.2;
}
body.page-projekte .case_title a {
  color: var(--text); text-decoration: none;
  background-image: linear-gradient(currentColor,currentColor);
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .22s ease, color .22s ease;
}
body.page-projekte .case_title a:hover { color: var(--accent); background-size: 100% 1px; }

body.page-projekte .kpis { list-style:none; padding:0; margin: 4px 0 0; display:grid; gap:6px; }
body.page-projekte .kpis li { color: var(--muted); }
body.page-projekte .kpis strong {
  font-weight: 900; letter-spacing: -0.01em;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(155,91,255,.24);
}

/* متن کمکی زیر گرید */
body.page-projekte .more-cases { color: var(--muted); }

/* ====================== CTA (پایین صفحه) ====================== */
body.page-projekte .cta {
  padding: clamp(40px, 6vw, 80px) 0;
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(155,91,255,.10), transparent 60%),
    radial-gradient(120% 140% at 90% 80%, rgba(155,91,255,.08), transparent 60%);
  border-top: 1px solid rgba(255,255,255,.06);
}
body.page-projekte .cta_main-title .accent { color: var(--accent); }
body.page-projekte .cta .btn.btn--accent {
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .16s ease, box-shadow .22s ease;
}
body.page-projekte .cta .btn.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(155,91,255,.35); }

/* ====================== Reveal Utilities ====================== */
/* استفاده: به هر المنت کلاس .reveal و یکی از واریانت‌ها را بده؛ با .is-visible فعال می‌شود */
body.page-projekte .reveal { opacity:0; transform: translate3d(0,8px,0); transition: opacity .26s ease, transform .32s cubic-bezier(.22,.61,.36,1); }
body.page-projekte .reveal.is-visible { opacity:1; transform: translate3d(0,0,0); }
body.page-projekte .reveal-up { transform: translate3d(0,16px,0); }
body.page-projekte .reveal-right { transform: translate3d(-16px,0,0); }
body.page-projekte .reveal-fade { transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.page-projekte .reveal,
  body.page-projekte .case_card { transition: none !important; transform: none !important; opacity: 1 !important; }
  body.page-projekte .hero--projects,
  body.page-projekte .cta { background: none; }
}

/* ====================== Focus States (accessibility) ====================== */
body.page-projekte .case_card:focus-within,
body.page-projekte .chip:focus-visible,
body.page-projekte .case_title a:focus-visible {
  outline: 2px solid rgba(155,91,255,.65);
  outline-offset: 3px;
}

/* ====================== Small Helpers ====================== */
====================== No bleed إلى بخش‌های دیگر ====================== */
/* هیچ استایلی خارج از body.page-projekte تعریف نشده است */


/* ===== Custom Sort Dropdown (inside sticky filter bar) ===== */
body.page-projekte .sort-dropdown { position: relative; }

body.page-projekte .sort-btn {
  display:flex; align-items:center; gap:10px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform .14s ease, border-color .18s ease, background .18s ease;
}
body.page-projekte .sort-btn:hover { transform: translateY(-2px); border-color:#3a3a3a; }
body.page-projekte .sort-btn .sort-label { opacity:.75; font-size:13px; }
body.page-projekte .sort-btn .sort-value { font-weight:700; font-size:14px; }
body.page-projekte .sort-btn .icon { transition: transform .18s ease; }
body.page-projekte .sort-dropdown[aria-expanded="true"] .sort-btn .icon { transform: rotate(180deg); }

body.page-projekte .sort-menu {
  position: absolute; right:0; top: calc(100% + 8px);
  min-width: 220px; padding: 6px;
  background: #151515;
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  list-style: none; margin: 0;
  display: none; z-index: 30;
}
body.page-projekte .sort-dropdown[aria-expanded="true"] .sort-menu { display:block; }

body.page-projekte .sort-menu li {
  padding: 10px 12px; border-radius: 10px;
  cursor: pointer; color: var(--text); font-size:14px;
  transition: background .14s ease;
}
body.page-projekte .sort-menu li:hover { background: #1f1f1f; }
body.page-projekte .sort-menu li[aria-selected="true"] {
  background: var(--chip-active);
  border: 1px solid rgba(155,91,255,.35);
}

/* موبایل: منو تمام عرض نوار */
@media (max-width: 520px) {
  body.page-projekte .sort-menu {
    left: 0; right: 0; min-width: unset;
  }
}
.hero_video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px; /* مقدار دلخواه */
  overflow: hidden;
}
