/* Qlegy RTL — only what logical properties can't mirror: animations & arrow glyphs. */

/* Directional arrow icons flip */
body.qlegy.rtl .qlg-arrow--right,
body.qlegy.rtl .qlg-arrow--diag {
  transform: scaleX(-1);
}
body.qlegy.rtl .qlg-btn:hover .qlg-arrow--diag { transform: scaleX(-1) translate(2px, -2px); }
body.qlegy.rtl .qlg-btn:hover .qlg-arrow--right { transform: scaleX(-1) translateX(2px); }

/* Marquee scrolls the other way */
body.qlegy.rtl .qlg-marquee__track {
  animation-name: qlg-marquee-rtl;
}
@keyframes qlg-marquee-rtl {
  to { transform: translateX(100%); }
}

/* Row-hover arrows travel the mirrored direction */
body.qlegy.rtl .qlg-blog__row:hover .qlg-blog__arrow,
body.qlegy.rtl .qlg-work-list__row:hover .qlg-work-list__arrow {
  transform: scaleX(-1) translateX(4px);
}
body.qlegy.rtl .qlg-blog__arrow .qlg-arrow,
body.qlegy.rtl .qlg-work-list__arrow .qlg-arrow {
  transform: scaleX(-1);
}

/* Letter-spacing is latin-specific; Arabic reads better without it */
body.qlegy.rtl,
body.qlegy.rtl h1, body.qlegy.rtl h2, body.qlegy.rtl h3,
body.qlegy.rtl h4, body.qlegy.rtl h5, body.qlegy.rtl h6 {
  letter-spacing: 0;
}

/* Portfolio horizontal scroll drags in mirrored coordinates */
body.qlegy.rtl .qlg-portfolio__track {
  direction: ltr; /* keep transform math simple; cards carry their own rtl content */
}
