/* ═══════════════════════════════════════════════
   رایانه شهر بندیر — bandirco.ir
   تم لوکس فیروزه‌ای | تیره/روشن | RTL
   ═══════════════════════════════════════════════ */

/* ── فونت وزیرمتن ── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-display: swap;
}

/* ── متغیرها: تم تیره (پیش‌فرض) ── */
:root {
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --teal-soft: #2dd4bf;
  --grad: linear-gradient(120deg, #06b6d4, #14b8a6 55%, #2dd4bf);

  --bg: #06110f;
  --bg-2: #0a1a17;
  --bg-3: #0e2420;
  --card: rgba(16, 38, 34, .62);
  --card-solid: #0d211d;
  --line: rgba(45, 212, 191, .16);
  --line-strong: rgba(45, 212, 191, .38);
  --text: #e8f5f2;
  --text-dim: #93b3ac;
  --veil: linear-gradient(to top, rgba(4, 14, 12, .94), rgba(4, 14, 12, .55) 45%, rgba(4, 14, 12, .35));
  --glass: rgba(6, 17, 15, .68);
  --glow: 0 0 42px rgba(20, 184, 166, .28);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);

  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── تم روشن ── */
:root[data-theme="light"] {
  --bg: #f3faf8;
  --bg-2: #e9f5f2;
  --bg-3: #dceeea;
  --card: rgba(255, 255, 255, .8);
  --card-solid: #ffffff;
  --line: rgba(13, 148, 136, .18);
  --line-strong: rgba(13, 148, 136, .45);
  --text: #0b2823;
  --text-dim: #4a6d66;
  --veil: linear-gradient(to top, rgba(3, 20, 17, .88), rgba(3, 25, 21, .45) 45%, rgba(3, 25, 21, .3));
  --glass: rgba(243, 250, 248, .78);
  --glow: 0 0 42px rgba(13, 148, 136, .18);
  --shadow: 0 24px 60px rgba(10, 60, 52, .16);
}

/* ── پایه ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

@media (pointer: fine) {
  body { cursor: none; }
  body a, body button { cursor: none; }
}

::selection { background: var(--teal); color: #04211c; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; background: none; border: none; color: inherit; }

.container { width: min(1200px, 92%); margin-inline: auto; }

/* اسکرول‌بار لوکس */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--cyan), var(--teal)); border-radius: 8px; }

/* ═══ نشانگر ماوس سفارشی ═══ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  translate: -50% -50%;
  opacity: 0;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--teal-soft);
  box-shadow: 0 0 12px var(--teal);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--line-strong);
  transition: width .35s var(--ease), height .35s var(--ease),
              border-color .35s, background .35s, opacity .3s;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: var(--text);
  letter-spacing: 1px;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
.cursor-ring.is-hover {
  width: 62px; height: 62px;
  background: rgba(20, 184, 166, .12);
  border-color: var(--teal);
}
.cursor-ring.is-drag {
  width: 74px; height: 74px;
  background: rgba(20, 184, 166, .16);
  border-color: var(--teal);
}
.cursor-ring.is-drag::after { content: '⇠ بکشید ⇢'; font-size: 11px; white-space: nowrap; }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ═══ پیش‌بارگذاری ═══ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center; place-content: center; gap: 18px;
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-logo { width: 86px; animation: breathe 1.9s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(20,184,166,.55)); }
@keyframes breathe { 50% { transform: scale(.88); opacity: .75; } }
.preloader span { font-weight: 700; letter-spacing: 2px; color: var(--text-dim); animation: pulse 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }

/* ═══ هدر و منو ═══ */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000;
  transition: background .45s, box-shadow .45s, backdrop-filter .45s, transform .45s var(--ease);
}
.header.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(0,0,0,.18);
}
.header.is-hidden { transform: translateY(-110%); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 48px; height: 48px;
  filter: drop-shadow(0 0 10px rgba(20,184,166,.5));
  transition: transform .6s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.1) rotate(-5deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 17px; font-weight: 900; }
.brand-text small { font-size: 11px; color: var(--teal-soft); letter-spacing: 2.5px; }

.nav-links { display: flex; gap: 6px; }
.nav-link {
  position: relative; display: block;
  padding: 9px 16px; font-size: 15px; font-weight: 500;
  color: var(--text-dim);
  transition: color .3s;
}
.nav-link::before {
  content: '✦';
  position: absolute; top: -4px; inset-inline: 0;
  text-align: center; font-size: 9px; color: var(--teal);
  opacity: 0; transform: translateY(8px) scale(.4);
  transition: .4s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 2px; inset-inline: 16px; height: 1.5px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .45s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::before, .nav-link.active::before { opacity: 1; transform: translateY(0) scale(1); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  position: relative; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: border-color .3s, box-shadow .3s, transform .5s var(--ease);
  overflow: hidden;
}
.theme-toggle:hover { border-color: var(--teal); box-shadow: var(--glow); transform: rotate(40deg); }
.theme-toggle svg {
  position: absolute; width: 20px; height: 20px;
  fill: none; stroke: var(--teal-soft); stroke-width: 1.8; stroke-linecap: round;
  transition: transform .55s var(--ease), opacity .4s;
}
.icon-sun { opacity: 0; transform: translateY(130%) rotate(90deg); }
.icon-moon { opacity: 1; transform: translateY(0); }
:root[data-theme="light"] .icon-sun { opacity: 1; transform: translateY(0); }
:root[data-theme="light"] .icon-moon { opacity: 0; transform: translateY(-130%) rotate(-90deg); }

.nav-cta {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 22px; border-radius: 40px;
  background: var(--grad); color: #032622;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 26px rgba(20,184,166,.35);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.nav-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,184,166,.5); }
.nav-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; z-index: 1000}
.hamburger span {
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: .4s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ هیرو / اسلایدر اصلی ═══ */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }

#heroCanvas {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-slider { position: absolute; inset: 0; touch-action: pan-y; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.hero-bg {
  position: absolute; inset: -12% 0;
  background-size: cover; background-position: center;
  transform: scale(1.12);
  will-change: transform;
}
.hero-slide.is-active .hero-bg { animation: kenburns 9s var(--ease) forwards; }
@keyframes kenburns { from { scale: 1.14; } to { scale: 1.02; } }

.hero-veil { position: absolute; inset: 0; background: var(--veil); }
.hero-veil::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 78% 50%, rgba(6,182,212,.16), transparent 65%);
}

.hero-content {
  position: relative; z-index: 4;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  gap: 20px;
  padding-top: 40px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  width: fit-content;
  padding: 8px 20px; border-radius: 30px;
  border: 1px solid rgba(45, 212, 191, .4);
  background: rgba(6, 20, 18, .45);
  backdrop-filter: blur(8px);
  color: #7ff0e2; font-size: 14px; font-weight: 500; letter-spacing: .5px;
}
.hero-kicker::before { content: '✦'; color: var(--teal-soft); font-size: 11px; }

.hero-title {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 900; line-height: 1.5;
  color: #f2fffc;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  position: relative;
}

.hero-sub { font-size: clamp(15px, 1.6vw, 19px); color: #bcd9d2; max-width: 52ch; font-weight: 300; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ورود متن اسلاید فعال */
.hero-slide .reveal-up { opacity: 0; transform: translateY(42px); }
.hero-slide.is-active .reveal-up {
  animation: rise .9s var(--ease) forwards;
}
.hero-slide.is-active .reveal-up:nth-child(1) { animation-delay: .25s; }
.hero-slide.is-active .reveal-up:nth-child(2) { animation-delay: .4s; }
.hero-slide.is-active .reveal-up:nth-child(3) { animation-delay: .55s; }
.hero-slide.is-active .reveal-up:nth-child(4) { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* دکمه‌ها */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px; border-radius: 40px;
  font-size: 15px; font-weight: 700;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s, color .35s, border-color .35s;
}
.btn-primary { background: var(--grad); color: #032622; box-shadow: 0 10px 30px rgba(20,184,166,.4); }
.btn-primary::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(20,184,166,.55); }
.btn-primary:hover::before { transform: translateX(-120%); }
.btn-ghost { border: 1px solid rgba(45,212,191,.5); color: #d9fff8; backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--teal-soft); background: rgba(20,184,166,.14); transform: translateY(-4px); box-shadow: var(--glow); }

/* کنترل‌های هیرو */
.hero-controls {
  position: absolute; inset-inline: 0; bottom: 90px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.hero-arrow {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(45,212,191,.4);
  background: rgba(6,20,18,.4); backdrop-filter: blur(8px);
  display: grid; place-items: center;
  transition: .35s var(--ease);
}
.hero-arrow svg { width: 20px; height: 20px; fill: none; stroke: #d9fff8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-arrow:hover { background: var(--teal); border-color: var(--teal); box-shadow: var(--glow); transform: scale(1.1); }
.hero-arrow:hover svg { stroke: #032622; }

.hero-bullets { display: flex; gap: 10px; }
.hero-bullet {
  width: 34px; height: 5px; border-radius: 4px;
  background: rgba(255,255,255,.24);
  overflow: hidden; position: relative;
  transition: width .4s var(--ease);
}
.hero-bullet.is-active { width: 64px; }
.hero-bullet.is-active::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad);
  transform-origin: right;
  animation: fillbar var(--slide-ms, 7000ms) linear forwards;
}
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-progress { position: absolute; bottom: 0; inset-inline: 0; height: 3px; z-index: 5; background: rgba(255,255,255,.08); }
.hero-progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s linear; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 5;
  animation: floaty 2.4s ease-in-out infinite;
}
.mouse {
  display: block; width: 26px; height: 42px;
  border: 1.5px solid rgba(217,255,248,.6); border-radius: 16px;
  position: relative;
}
.wheel {
  position: absolute; top: 8px; left: 50%; translate: -50% 0;
  width: 3px; height: 8px; border-radius: 3px;
  background: var(--teal-soft);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 50% { transform: translateY(9px); opacity: .3; } }
@keyframes floaty { 50% { transform: translateY(-8px); } }

.hero-shamseh {
  position: absolute; z-index: 4;
  inset-inline-start: -80px; top: 14%;
  width: clamp(180px, 22vw, 300px);
  stroke: rgba(45,212,191,.35); stroke-width: 1.6; fill: none;
  opacity: .8; pointer-events: none;
}
.hero-shamseh path, .hero-shamseh circle { fill: none; }
.spin-slow { animation: spin 46s linear infinite; }

/* ═══ نوار متحرک ═══ */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden; padding-block: 16px;
  position: relative; z-index: 2;
}
.ticker-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-size: 15px; font-weight: 700; color: var(--text-dim); white-space: nowrap; letter-spacing: .5px; }
.ticker-track i { color: var(--teal); font-style: normal; font-size: 12px; }
@keyframes ticker { to { transform: translateX(50%); } }

/* ═══ بخش‌ها ═══ */
.section { padding-block: 110px; position: relative; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--teal); font-size: 14px; font-weight: 700; letter-spacing: 3px;
  margin-bottom: 14px;
}
.star8 {
  display: inline-block; width: 10px; height: 10px;
  background: var(--teal);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  flex: none;
}
.section-title { font-size: clamp(26px, 4vw, 42px); font-weight: 900; line-height: 1.6; }
.section-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-sub { color: var(--text-dim); margin-top: 12px; font-weight: 300; }

/* ═══ خدمات ═══ */
.services {
  background:
    radial-gradient(46% 38% at 8% 12%, rgba(6,182,212,.07), transparent 70%),
    radial-gradient(40% 34% at 92% 88%, rgba(20,184,166,.08), transparent 70%),
    var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), border-color .45s, box-shadow .5s;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card::before {
  /* قاب گوشه به سبک تذهیب */
  content: '';
  position: absolute; inset: 10px; z-index: 2;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--teal), var(--teal)) top right / 0 1.5px,
    linear-gradient(var(--teal), var(--teal)) top right / 1.5px 0,
    linear-gradient(var(--teal), var(--teal)) bottom left / 0 1.5px,
    linear-gradient(var(--teal), var(--teal)) bottom left / 1.5px 0;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: background-size .55s var(--ease);
}
.service-card:hover::before {
  background-size: 46px 1.5px, 1.5px 46px, 46px 1.5px, 1.5px 46px;
}
.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow), var(--glow);
}

.service-media { position: relative; height: 210px; overflow: hidden; }
.service-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--card-solid) 2%, transparent 55%);
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9);
  transition: transform .8s var(--ease), filter .6s;
}
.service-card:hover .service-media img { transform: scale(1.1) rotate(1deg); filter: saturate(1.15); }

.service-body { padding: 8px 26px 28px; position: relative; }
.service-num {
  position: absolute; top: -46px; inset-inline-end: 20px;
  font-size: 54px; font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(45,212,191,.55);
  transition: .45s var(--ease);
}
.service-card:hover .service-num { color: var(--teal); -webkit-text-stroke-color: transparent; transform: translateY(-6px); text-shadow: 0 0 24px rgba(20,184,166,.5); }

.service-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-body p { font-size: 14.5px; color: var(--text-dim); font-weight: 300; }

.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--teal);
  opacity: .0; transform: translateY(8px);
  transition: .45s var(--ease);
}
.service-card:hover .service-link { opacity: 1; transform: translateY(0); }
.service-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.service-card:hover .service-link svg { animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(-5px); } }

/* ═══ نوار آمار ═══ */
.stats { position: relative; padding-block: 96px; overflow: hidden; }
.stats-bg {
  position: absolute; inset: -20% 0;
  background-size: cover; background-position: center;
  will-change: transform;
}
.stats-veil {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(3,22,19,.96) 20%, rgba(6,48,42,.82));
}
.stats-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px; text-align: center;
}
.stat { padding: 22px 10px; border-inline-start: 1px solid rgba(45,212,191,.22); }
.stat:first-child { border-inline-start: none; }
.stat-num, .stat-plus {
  font-size: clamp(38px, 5vw, 58px); font-weight: 900;
  background: linear-gradient(120deg, #7ff0e2, #2dd4bf);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { display: block; color: #bcd9d2; margin-top: 4px; font-size: 15px; }

/* ═══ اسلایدر میانی ═══ */
.works { background: var(--bg-2); overflow: hidden; }

.works-slider { position: relative; }
.works-track {
  display: flex; gap: 26px;
  padding-inline: max(4%, (100% - 1200px) / 2);
  cursor: grab;
  will-change: transform;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y; /* سوایپ افقی لمسی را به جاوااسکریپت می‌سپارد */
}
.works-track.is-grabbing { cursor: grabbing; }

.work-card {
  position: relative; flex: 0 0 clamp(260px, 30vw, 400px);
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .55s var(--ease), box-shadow .55s, border-color .45s;
}
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) brightness(.9);
  transition: transform .9s var(--ease), filter .6s;
  pointer-events: none;
}
.work-card figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 70px 26px 26px;
  background: linear-gradient(to top, rgba(3,18,15,.95), rgba(3,18,15,.55) 55%, transparent);
  transform: translateY(14px);
  transition: transform .55s var(--ease);
}
.work-card h3 { color: #f0fffb; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.work-card h3::before { content: '✦ '; color: var(--teal-soft); font-size: 13px; }
.work-card p {
  color: #a9cdc5; font-size: 13.5px; font-weight: 300;
  opacity: 0; transform: translateY(10px);
  transition: .5s var(--ease) .08s;
}
.work-card:hover { transform: translateY(-12px); border-color: var(--line-strong); box-shadow: var(--shadow), var(--glow); }
.work-card:hover img { transform: scale(1.08); filter: saturate(1.1) brightness(1); }
.work-card:hover figcaption { transform: translateY(0); }
.work-card:hover p { opacity: 1; transform: translateY(0); }

.works-nav { display: flex; align-items: center; gap: 18px; margin-top: 44px; }
.works-arrow {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center; flex: none;
  transition: .35s var(--ease);
}
.works-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.works-arrow:hover { background: var(--teal); border-color: var(--teal); box-shadow: var(--glow); }
.works-arrow:hover svg { stroke: #032622; }
.works-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.works-bar span { display: block; height: 100%; width: 20%; background: var(--grad); border-radius: 3px; transition: width .4s var(--ease), margin-inline-start .4s var(--ease); }

/* ═══ درباره ما ═══ */
.about {
  background:
    radial-gradient(40% 50% at 90% 10%, rgba(6,182,212,.07), transparent 70%),
    var(--bg);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 6vw, 80px); align-items: center;
}
.about-frame { position: relative; }
.about-frame img {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6; object-fit: cover;
}
.about-frame::before {
  content: '';
  position: absolute; inset: 22px -22px -22px 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  z-index: -1;
}
.about-ornament {
  position: absolute; top: -54px; inset-inline-end: -44px;
  width: 130px;
  stroke: var(--teal); stroke-width: 2; fill: none;
  filter: drop-shadow(0 0 12px rgba(20,184,166,.45));
}
.about-body .section-title { margin-bottom: 18px; }
.about-body > p { color: var(--text-dim); font-weight: 300; }

.about-list { margin-block: 26px 30px; display: grid; gap: 13px; }
.about-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15.5px; font-weight: 500;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: .4s var(--ease);
}
.about-list li:hover { border-color: var(--line-strong); transform: translateX(-8px); box-shadow: var(--glow); }

/* ═══ تماس ═══ */
.contact { background: var(--bg-2); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.contact-card {
  text-align: center;
  padding: 44px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.contact-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow), var(--glow); }
.contact-icon {
  width: 76px; height: 76px; margin: 0 auto 20px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(6,182,212,.16), rgba(20,184,166,.12));
  border: 1px solid var(--line-strong);
  clip-path: polygon(50% 0, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0 50%, 15% 15%);
  transition: .5s var(--ease);
}
.contact-card:hover .contact-icon { transform: rotate(45deg) scale(1.08); background: var(--grad); }
.contact-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--teal-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: .5s var(--ease); }
.contact-card:hover .contact-icon svg { stroke: #032622; transform: rotate(-45deg); }
.contact-card h3 { font-size: 19px; margin-bottom: 10px; }
.contact-card p { color: var(--text-dim); font-size: 15px; font-weight: 300; }
.contact-tel {
  font-size: 24px; font-weight: 900; letter-spacing: 1px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  transition: filter .3s;
}
.contact-tel:hover { filter: brightness(1.25); }

/* ═══ فوتر ═══ */
.footer { position: relative; background: var(--bg-3); border-top: 1px solid var(--line); overflow: hidden; }
.footer-pattern {
  /* گره هشت‌پر ایرانی */
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%2314b8a6' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M36 6 43 29 66 36 43 43 36 66 29 43 6 36 29 29Z'/%3E%3Ccircle cx='36' cy='36' r='9'/%3E%3Cpath d='M0 0 12 12M72 0 60 12M0 72 12 60M72 72 60 60'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-block: 70px 50px;
}
.footer-brand p { margin-top: 18px; color: var(--text-dim); font-size: 14px; font-weight: 300; max-width: 34ch; }
.footer-col h4 {
  font-size: 16px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.footer-col h4::before {
  content: ''; width: 9px; height: 9px; background: var(--teal); flex: none;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-contact li { color: var(--text-dim); font-size: 14px; transition: color .3s, padding .3s; }
.footer-col a:hover { color: var(--teal-soft); padding-inline-start: 6px; }
.footer-bottom {
  position: relative;
  border-top: 1px solid var(--line);
  padding-block: 20px;
  text-align: center;
  color: var(--text-dim); font-size: 13px;
}

/* ═══ دکمه بازگشت به بالا ═══ */
.to-top {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(20,184,166,.4);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: .45s var(--ease);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-5px); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: #032622; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ انیمیشن ورود با اسکرول ═══ */
.reveal-up { opacity: 0; transform: translateY(46px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-up.is-in { opacity: 1; transform: translateY(0); }
/* هیرو منطق خودش را دارد */
.hero .reveal-up { transition: none; }

/* ═══ ریسپانسیو ═══ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    opacity: 0; visibility: hidden;
    transition: .5s var(--ease);
  }
  .nav-links.is-open { opacity: 1; visibility: visible; z-index: 999; }
  .nav-links .nav-link { font-size: 22px; padding: 14px 26px; }
  .hamburger { display: flex; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 12px; border-radius: 50%; }
  .hero-controls { bottom: 74px; }
  .hero-shamseh { display: none; }
  .stat { border: none; }
  .work-card { height: 420px; }
}

@media (max-width: 560px) {
  .section { padding-block: 74px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions .btn { padding: 12px 24px; font-size: 14px; }
  .about-ornament { width: 90px; top: -34px; inset-inline-end: -14px; }
}

/* ═══ کاهش حرکت ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal-up, .hero-slide .reveal-up { opacity: 1; transform: none; }
}
