/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080c10;
  --bg2: #0d1117;
  --bg3: #141b24;
  --border: rgba(255,255,255,0.08);
  --accent: #00d4ff;
  --accent2: #7c3aed;
  --accent3: #10b981;
  --text: #e2e8f0;
  --muted: #64748b;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Canvas ─── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* ─── Nav ─── */
#nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1160px;
  z-index: 100;
  padding: 0 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8,12,16,0.45);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#nav.scrolled {
  background: rgba(8,12,16,0.72);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Reddit Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.logo:hover { color: var(--accent); }
.logo:hover .logo-icon { color: var(--accent); transform: rotate(-8deg) scale(1.08); }
.logo-bracket { color: var(--accent); }
.logo-text::before { content: '['; color: var(--accent); }
.logo-text::after  { content: ']'; color: var(--accent); }

.logo-icon {
  width: 26px;
  height: 26px;
  color: var(--text);
  flex-shrink: 0;
  transition: color 0.25s, transform 0.25s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent) !important;
  font-family: var(--mono);
  font-size: 0.8rem !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8,12,16,0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 1.5rem 0; }
.mobile-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--accent); }

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  padding: 7rem 0;
}

/* ─── Reveal Animations ─── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── Hero ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hero-content { flex: 1; min-width: 0; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0,212,255,0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: rgba(0,212,255,0.04);
}
.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 0 30px rgba(0,212,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,212,255,0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--muted);
  background: rgba(255,255,255,0.04);
}

.btn-full { width: 100%; justify-content: center; }
.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat { text-align: center; }
.stat-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat span:not(.stat-label) {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── Code Window ─── */
.hero-visual { flex: 0 0 480px; }

.code-window {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.window-title {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.code-block {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #abb2bf;
  white-space: pre;
  min-height: 280px;
}
#typed-code .kw { color: #c678dd; }
#typed-code .fn { color: #61afef; }
#typed-code .str { color: #98c379; }
#typed-code .num { color: #d19a66; }
#typed-code .cm { color: #5c6370; font-style: italic; }
#typed-code .tp { color: #e5c07b; }

/* ─── Ticker ─── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 1rem 0;
  position: relative;
  z-index: 1;
}

.ticker {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ticker .sep { color: var(--accent); opacity: 0.5; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Section Headers ─── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── 3D Scroll Section ─── */
#scroll-3d {
  position: relative;
  height: 300vh;
  z-index: 1;
}

.scroll3d-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#three-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.scroll3d-labels {
  position: relative;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100%;
  padding-bottom: 10vh;
}

.s3d-label {
  position: absolute;
  bottom: 10vh;
  left: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.s3d-label.active {
  opacity: 1;
  transform: translateY(0);
}

.s3d-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.s3d-label h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 0 60px rgba(0,0,0,0.8);
}

/* ─── Services ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-icon {
  width: 48px; height: 48px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.service-list {
  list-style: none;
  margin-bottom: 1.5rem;
}
.service-list li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}
.service-list li::before {
  content: '→ ';
  color: var(--accent);
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.service-link:hover span { transform: translateX(4px); }
.service-link span { display: inline-block; transition: transform 0.2s; }

/* ─── Work ─── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.work-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 220px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.work-card.large { grid-column: 1 / -1; min-height: 280px; }

.work-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    hsla(var(--hue), 80%, 20%, 0.3) 0%,
    hsla(var(--hue), 80%, 10%, 0.1) 100%);
  z-index: 0;
  transition: opacity 0.3s;
}
.work-card:hover .work-card-bg { opacity: 1.4; }

.work-card-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(8,12,16,0.9) 0%, transparent 100%);
}

.work-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.work-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.work-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.work-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.work-metrics {
  display: flex;
  gap: 1.5rem;
}
.work-metrics span {
  font-size: 0.85rem;
  color: var(--muted);
}
.work-metrics strong { color: var(--accent); }

/* ─── Process ─── */
#process { background: var(--bg2); }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  width: 40px;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-content p { color: var(--muted); font-size: 0.95rem; }

.process-connector {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-left: 20px;
  opacity: 0.3;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .section-tag { text-align: left; }

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-text .btn-primary { margin-top: 1rem; }

.terminal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.terminal-lines {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
}

.t-line { color: var(--muted); }
.t-prompt { color: var(--accent3); margin-right: 0.5rem; }
.t-cmd { color: var(--text); }
.t-out { padding-left: 1.2rem; color: var(--muted); }
.t-green { color: var(--accent3); }

.blink {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── Contact ─── */
#contact { background: var(--bg2); }

.contact-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-box .section-tag { text-align: center; }

.contact-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-box > p {
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.contact-form { text-align: left; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-group select option { background: var(--bg3); }
.form-group textarea { resize: vertical; }

/* ─── Footer ─── */
footer {
  background: transparent;
  padding: 2rem 1rem 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.footer-inner {
  width: 100%;
  max-width: 1160px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8,12,16,0.45);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-family: var(--mono);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    padding-top: 120px;
    text-align: center;
  }
  .hero-sub { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; max-width: 480px; margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card.large { grid-column: 1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 60px; height: 1px; }
}

/* ─── Language Toggle ─── */
.lang-toggle {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.lang-toggle:hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: rgba(0, 212, 255, 0.5);
}

/* ─── Arabic / RTL ─── */
body.lang-ar {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.05rem;
}
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-actions { justify-content: flex-start; }
[dir="rtl"] .hero-stats { justify-content: flex-start; }
[dir="rtl"] .hero-tag { justify-content: flex-start; }
[dir="rtl"] .section-header { text-align: right; }
[dir="rtl"] .service-card { text-align: right; }
[dir="rtl"] .service-list { padding-right: 1rem; padding-left: 0; }
[dir="rtl"] .service-link { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .step-content { text-align: right; }
[dir="rtl"] .about-text { text-align: right; }
[dir="rtl"] .process-step { flex-direction: row-reverse; }
[dir="rtl"] .footer-inner { flex-direction: row-reverse; }
[dir="rtl"] .footer-left { text-align: right; }
[dir="rtl"] .footer-right { text-align: left; }
[dir="rtl"] .contact-box { text-align: right; }
[dir="rtl"] .form-group label { text-align: right; }
[dir="rtl"] .s3d-label { text-align: right; }
[dir="rtl"] .work-card-inner { text-align: right; }
[dir="rtl"] .work-meta { justify-content: flex-end; }
[dir="rtl"] .work-metrics { justify-content: flex-end; }
[dir="rtl"] .logo { direction: ltr; unicode-bidi: bidi-override; }

@media (max-width: 640px) {
  [dir="rtl"] .footer-inner { flex-direction: column; text-align: center; }
  [dir="rtl"] .footer-left { text-align: center; }
  [dir="rtl"] .footer-right { text-align: center; }
  [dir="rtl"] .hero-content { text-align: center; }
  [dir="rtl"] .hero-actions { justify-content: center; }
  [dir="rtl"] .hero-stats { justify-content: center; }
  [dir="rtl"] .hero-tag { justify-content: center; }
}
