:root {
  --bg: #f5f7fb;
  --bg-alt: #eef2f8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --card: rgba(255, 255, 255, 0.92);
  --card-strong: rgba(255, 255, 255, 0.98);
  --text: #132238;
  --muted: rgba(19, 34, 56, 0.72);
  --line: rgba(19, 34, 56, 0.1);
  --accent: #4c8dff;
  --accent-strong: #2f6ef2;
  --accent-secondary: #25b59f;
  --shadow: 0 20px 50px rgba(19, 34, 56, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(76, 141, 255, 0.12), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(37, 181, 159, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #f2f5fa 40%, #edf2f7 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(19, 34, 56, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 34, 56, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 90%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-heading {
  margin: 0 auto 44px;
  max-width: 900px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  margin-inline: auto;
}

.section-subtitle {
  margin: 14px auto 0;
  max-width: 60ch;
  font-size: 1.05rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #04111d;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: rgba(245, 247, 251, 0.82);
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
}

.nav-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(76, 141, 255, 0.16), rgba(37, 181, 159, 0.14));
  border: 1px solid rgba(19, 34, 56, 0.08);
  color: var(--text);
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
}

.brand-copy span {
  font-size: 0.82rem;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta,
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(76, 141, 255, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(19, 34, 56, 0.08);
  color: var(--text);
}

.nav-cta:hover,
.button:hover,
.nav-cta:focus-visible,
.button:focus-visible,
.filter-btn:hover,
.filter-btn:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.service-card:hover,
.project-card:hover,
.tech-card:hover,
.process-card:hover,
.why-card:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(19, 34, 56, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  padding-top: 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 690px;
}

.hero-lead {
  margin-top: 18px;
  font-size: 1.08rem;
  max-width: 60ch;
}

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

.credibility-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.credibility-strip span,
.profile-tags span,
.project-category,
.project-chip,
.tech-card {
  border: 1px solid rgba(19, 34, 56, 0.08);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
}

.credibility-strip span {
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.94rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

@media (min-width: 1025px) {
  .profile-card-lifted {
    transform: translateY(-28px);
  }
}

.profile-card {
  position: relative;
  width: min(100%, 470px);
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(19, 34, 56, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.96)),
    radial-gradient(circle at top, rgba(76, 141, 255, 0.12), transparent 40%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: auto -16% -18% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 181, 159, 0.18), transparent 65%);
  filter: blur(12px);
}

.profile-frame {
  aspect-ratio: 1 / 0.96;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(240, 244, 250, 0.98), rgba(228, 235, 245, 0.9));
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transform: scale(1.18);
}

.profile-meta {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}

.profile-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-tags span {
  padding: 8px 12px;
  font-size: 0.84rem;
}

.floating-stat {
  display: none;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.about-section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.about-copy {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.about-copy p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.services-grid,
.portfolio-grid,
.tech-grid,
.process-grid,
.why-grid {
  display: grid;
  gap: 18px;
}

.service-card,
.project-card,
.process-card,
.final-cta,
.modal-shell,
.why-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 253, 0.92));
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 24px;
  display: grid;
  gap: 14px;
  min-height: 220px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  border-color: rgba(76, 141, 255, 0.2);
  background: linear-gradient(180deg, rgba(76, 141, 255, 0.07), rgba(255, 255, 255, 0.92));
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(76, 141, 255, 0.16), rgba(37, 181, 159, 0.12));
  border: 1px solid rgba(19, 34, 56, 0.08);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.portfolio-section {
  position: relative;
}

.portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-bottom: 1px solid rgba(19, 34, 56, 0.08);
}

.project-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-category,
.project-chip {
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.82rem;
}

.project-chip {
  color: var(--accent-strong);
}

.project-industry {
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: -6px;
}

.automation-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-stack span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.05);
  border: 1px solid rgba(19, 34, 56, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.project-results {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
}

.project-results li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-secondary);
  font-size: 0.86rem;
  font-weight: 700;
}

.project-results li::before {
  content: "✔";
  font-size: 0.76rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.text-link,
.button-link {
  color: var(--text);
  font-weight: 700;
}

.button-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tech-rail {
  overflow: hidden;
  padding-bottom: 8px;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.tech-marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: tech-marquee 34s linear infinite;
  will-change: transform;
}

.tech-rail:hover .tech-marquee {
  animation-play-state: paused;
}

@keyframes tech-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.tech-track {
  display: flex;
  gap: 16px;
  min-width: max-content;
  padding: 8px 2px 18px;
}

.tech-card {
  flex: 0 0 auto;
  min-width: 206px;
  padding: 22px 20px 20px;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tech-logo {
  width: 88px;
  height: 88px;
  display: grid;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(19, 34, 56, 0.12));
}

.tech-name {
  font-weight: 700;
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.98);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.process-avatar-card {
  position: relative;
  justify-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.96));
  border: 1px solid rgba(19, 34, 56, 0.08);
  box-shadow: 0 16px 30px rgba(19, 34, 56, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 1025px) {
  .process-avatar-card:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    color: var(--accent-strong);
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 1;
  }
}

.process-avatar-card img {
  width: 100%;
  max-width: 260px;
  display: block;
  margin-bottom: 6px;
  filter: drop-shadow(0 16px 22px rgba(19, 34, 56, 0.08));
}

.process-avatar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 141, 255, 0.18);
  box-shadow: 0 22px 38px rgba(19, 34, 56, 0.1);
}

.process-avatar-card p {
  max-width: 26ch;
}

.process-card span {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.why-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.why-card {
  padding: 34px 26px;
  color: var(--text);
  text-align: center;
  min-height: 200px;
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.why-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.why-card h3 {
  font-size: 1.15rem;
}

.contact-grid {
  align-items: start;
  grid-template-columns: 1fr;
}

.contact-copy {
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.contact-lead {
  max-width: 60ch;
  font-size: 1.05rem;
  margin-top: -6px;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-strong);
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(76, 141, 255, 0.22);
  background: rgba(255, 255, 255, 1);
}

.site-footer {
  padding: 26px 0 36px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid rgba(19, 34, 56, 0.08);
  padding-top: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.case-study-modal {
  width: min(1000px, calc(100% - 24px));
  border: 0;
  padding: 0;
  background: transparent;
}

.case-study-modal::backdrop {
  background: rgba(19, 34, 56, 0.2);
  backdrop-filter: blur(6px);
}

.modal-shell {
  position: relative;
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(19, 34, 56, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
}

.modal-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(19, 34, 56, 0.08);
  background: rgba(19, 34, 56, 0.04);
}

.modal-eyebrow {
  margin-top: 18px;
}

.modal-intro {
  max-width: 74ch;
  margin-top: 12px;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.case-study-grid article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 34, 56, 0.06);
}

.case-study-grid h3 {
  margin-bottom: 10px;
}

.modal-button {
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .services-grid,
  .process-grid,
  .why-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 84px 0;
  }

  .nav-shell {
    position: relative;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: grid;
    gap: 12px;
    padding: 18px;
    margin-top: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 34, 56, 0.08);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 10px 0;
  }

  .nav-cta {
    width: 100%;
    margin-top: 4px;
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .hero-actions,
  .footer-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .services-grid,
  .process-grid,
  .why-grid,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .process-showcase {
    grid-template-columns: 1fr;
  }

  .process-avatar {
    width: min(100%, 380px);
  }

  .tech-card {
    min-width: 188px;
  }

  .tech-logo {
    width: 76px;
    height: 76px;
  }

  .hero-visual {
    display: grid;
    gap: 14px;
  }

  .profile-card {
    padding: 18px;
  }

  .modal-shell {
    padding: 20px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .button,
  .nav-cta,
  .filter-btn,
  .tech-card,
  .why-card {
    width: 100%;
  }
}

/* Language Switcher */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-trigger:hover,
.lang-trigger:focus-visible {
  background: #ffffff;
  border-color: rgba(19, 34, 56, 0.15);
  box-shadow: 0 4px 12px rgba(19, 34, 56, 0.05);
}

.lang-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.5;
  transition: transform 0.25s ease;
}

.lang-switcher.is-active .lang-icon {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid rgba(19, 34, 56, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(19, 34, 56, 0.12);
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 110;
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-switcher.is-active .lang-menu {
  display: flex;
}

.lang-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease;
}

.lang-menu li:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.lang-menu li[aria-selected="true"] {
  background: rgba(76, 141, 255, 0.08);
  color: var(--accent-strong);
  font-weight: 700;
}

.lang-code {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(19, 34, 56, 0.05);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.lang-menu li[aria-selected="true"] .lang-code {
  background: rgba(76, 141, 255, 0.12);
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] body {
  font-family: 'Manrope', sans-serif; /* Keep same font, but browser handles RTL */
}

[dir="rtl"] .brand {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .tech-rail {
  direction: ltr;
}

[dir="rtl"] .lang-trigger {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-menu li {
  flex-direction: row-reverse;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 18px;
}

[dir="rtl"] .modal-shell {
  text-align: right;
}

[dir="rtl"] .case-study-grid {
  text-align: right;
}

[dir="rtl"] .hero-visual {
  order: -1;
}

[dir="rtl"] .process-avatar-card::after {
  content: "←";
  right: auto;
  left: -14px;
}

[dir="rtl"] .credibility-strip {
  justify-content: flex-start;
}

[dir="rtl"] .hero-actions {
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 480px) {
  [dir="rtl"] .hero-actions {
    flex-direction: column;
  }
}

[dir="rtl"] .service-card,
[dir="rtl"] .project-card,
[dir="rtl"] .process-card,
[dir="rtl"] .why-card {
  text-align: right;
}

[dir="rtl"] .social-links {
  justify-content: flex-end;
}

[dir="rtl"] .social-link:not(:last-child) {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .footer-shell {
  flex-direction: row-reverse;
  justify-content: space-between;
}

@media (max-width: 768px) {
  [dir="rtl"] .footer-shell {
    flex-direction: column;
  }
}