/* =========================================================
   Alirezza — Portfolio Site
   Dark + Blue theme
========================================================= */

:root {
  --bg: #0a0f1c;
  --bg-alt: #0d1526;
  --surface: #101b30;
  --surface-2: #142140;
  --border: rgba(148, 178, 255, 0.14);
  --border-strong: rgba(148, 178, 255, 0.28);

  --blue-500: #3b82f6;
  --blue-400: #4f9dff;
  --blue-300: #60a5fa;
  --cyan-400: #38bdf8;

  --text: #eaf1ff;
  --text-dim: #a9bad8;
  --text-faint: #7488ab;

  --gradient-brand: linear-gradient(120deg, var(--cyan-400), var(--blue-400) 55%, #7c9cff);
  --gradient-radial: radial-gradient(circle, rgba(79,157,255,0.35), transparent 70%);

  --shadow-glow: 0 0 0 1px var(--border), 0 20px 60px -20px rgba(59, 130, 246, 0.35);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.16,.8,.24,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  margin: 0;
  line-height: 1.15;
  color: var(--text);
}

p { margin: 0; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: #1F51FF;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 14px;
}
.eyebrow.center { display: block; text-align: center; }

.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.5px; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-sub { margin-top: 14px; color: var(--text-dim); font-size: 16px; }

/* ---------- Background FX ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite;
}
.blob-a {
  width: 520px; height: 520px;
  top: -160px; left: -120px;
  background: var(--blue-500);
}
.blob-b {
  width: 480px; height: 480px;
  bottom: -180px; right: -140px;
  background: #3b82f6;
  animation-delay: -6s;
  animation-duration: 22s;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,178,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,178,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

/* ---------- Progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 18px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(10, 15, 28, 0.75);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin-inline-end: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #1F51FF;
  color: #fff;
  font-weight: 800;
}
.brand-name { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: var(--text); background: rgba(148,178,255,0.08); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-primary {
  background: #1F51FF;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px -8px rgba(59,130,246,0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(59,130,246,0.75); }
.btn-ghost {
  background: rgba(148,178,255,0.06);
  border-radius: 12px;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(56, 75, 248, 0.12); border-color: #1F51FF; transform: translateY(-2px); }
.btn-outline {
  margin-top: 26px;
  border-radius: 12px;
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { background: rgba(56, 75, 248, 0.12); border-color: #1F51FF; transform: translateY(-2px); }

.header-cta { margin-inline-start: 4px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(148,178,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.lang-toggle svg { width: 17px; height: 17px; flex-shrink: 0; }
.lang-toggle:hover {
  color: var(--text);
  background: rgba(56, 75, 248, 0.12);
 border-color: #1F51FF;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: rgba(148,178,255,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.nav-toggle span {
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 100px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero-text {
  max-width: 520px;
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num, .stat-plus {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}
.stat-plus { color: var(--cyan-400); }
.stat-label { font-size: 13.5px; color: var(--text-faint); margin-top: 2px; }

.hero-visual { display: flex; justify-content: center; }
.hero-photo-wrap {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-photo {
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -20px rgba(59,130,246,0.5);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
}
.ring-1 { inset: 6%; animation: spin 26s linear infinite; }
.ring-2 { inset: -4%; border-color: rgba(56,189,248,0.18); animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-chip {
  position: absolute;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(16, 27, 48, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6);
  animation: chip-float 5s ease-in-out infinite;
}
.chip-1 { top: 6%; left: -8%; animation-delay: 0s; }
.chip-2 { bottom: 12%; right: -12%; animation-delay: -1.6s; }
.chip-3 { bottom: -2%; left: 4%; animation-delay: -3.2s; }
@keyframes chip-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--cyan-400);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 0.4; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- About ---------- */
.about { padding: 120px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p { margin-bottom: 18px; font-size: 16px; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--blue-500), transparent);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -30px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.15);
}
.timeline-year {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--blue-300);
  margin-bottom: 6px;
}
.timeline-item h3 { font-size: 18px; margin-bottom: 6px; }
.timeline-item p { font-size: 14.5px; }

/* ---------- Services ---------- */
.services { padding: 100px 0 120px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--gradient-radial);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 24px;
  border-radius: 14px;
  background: rgba(59,130,246,0.14);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; }

/* ---------- Portfolio ---------- */
.portfolio { padding: 20px 0 130px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 120px 100px;
  gap: 2px;
}
.project-img-btn {
  display: block;
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
  position: relative;
}
.project-img-btn.is-main { grid-row: 1 / 2; grid-column: 1 / 3; }
.project-img-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.project-img-btn::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(10,15,28,0.45);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.project-img-btn:hover img { transform: scale(1.08); }
.project-img-btn:hover::after { opacity: 1; }

.project-body { padding: 24px 24px 28px; }
.project-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--cyan-400);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.project-body h3 { font-size: 21px; margin-bottom: 10px; }
.project-body p { font-size: 14.5px; }
.project-body em { color: var(--text-faint); font-style: italic; font-size: 13px; }

/* ---------- Contact ---------- */
.contact { padding: 20px 0 130px; }
.contact-panel {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 420px; height: 420px;
  background: var(--gradient-radial);
  opacity: 0.6;
  pointer-events: none;
}
.contact-copy { max-width: 560px; margin-bottom: 44px; position: relative; }

.contact-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(10,15,28,0.5);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.contact-card:hover {
  transform: translateY(-5px);
  border-color: #1F51FF;
  background: rgba(56, 117, 248, 0.08);
}
.contact-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(59,130,246,0.16);
  color: var(--blue-300);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-info { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-size: 12px; color: var(--text-faint); }
.contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 320px; }
.footer-links h4 {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.25s, transform 0.25s;
  width: fit-content;
}
.footer-links a:hover { color: var(--cyan-400); transform: translateX(4px); }

.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.footer-domain { letter-spacing: 0.5px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(16,27,48,0.85);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 18px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s var(--ease);
  z-index: 500;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #1F51FF; color: #fff; transform: translateY(-4px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 20, 0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content {
  margin: 0;
  max-width: min(880px, 90vw);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease);
}
.lightbox.open .lightbox-content { transform: scale(1); }
.lightbox-content img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
}
.lightbox-content figcaption {
  text-align: center;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.25s, transform 0.25s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.14); transform: rotate(90deg); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-photo-wrap { width: min(280px, 70vw); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-links { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(13,21,38,0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s var(--ease);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .lang-toggle { padding: 8px 10px; }
  .lang-toggle span { display: none; }

  .hero { padding: 140px 0 80px; }
  .hero-stats { gap: 26px; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 40px 24px; }
  .contact-links { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   Persian (fa) language + RTL layout
========================================================= */
html[lang="fa"] body,
html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4,
html[lang="fa"] .brand-name,
html[lang="fa"] .btn,
html[lang="fa"] .nav-link,
html[lang="fa"] .stat-num,
html[lang="fa"] .lang-toggle {
  font-family: 'Vazirmatn', 'Inter', Tahoma, sans-serif;
}

html[lang="fa"] .eyebrow,
html[lang="fa"] .stat-label,
html[lang="fa"] .timeline-year,
html[lang="fa"] .project-tag,
html[lang="fa"] .footer-links h4 {
  letter-spacing: 0;
}

html[dir="rtl"] .chip-1 { left: auto; right: -8%; }
html[dir="rtl"] .chip-2 { right: auto; left: -12%; }
html[dir="rtl"] .chip-3 { left: auto; right: 4%; }

html[dir="rtl"] .timeline { padding-left: 0; padding-right: 30px; }
html[dir="rtl"] .timeline::before { left: auto; right: 5px; background: linear-gradient(var(--blue-500), transparent); }
html[dir="rtl"] .timeline-dot { left: auto; right: -30px; }

html[dir="rtl"] .back-to-top { right: auto; left: 24px; }
html[dir="rtl"] .lightbox-close { right: auto; left: 28px; }
html[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }
html[dir="rtl"] .nav-link.active::after { left: 14px; right: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
