/* Small catalog extension: keeps the original Silkroad visual application untouched. */
.sr-catalog-extension {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 104px max(24px, calc((100vw - 1120px) / 2));
  color: #f5f7f6;
  background: #2c2c2c;
  font-family: Arial, sans-serif;
}
.sr-catalog-extension::before,
.sr-catalog-extension::after {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border: 1px dashed rgba(204, 220, 41, .35);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.sr-catalog-extension::before { top: -28vw; right: -18vw; }
.sr-catalog-extension::after { bottom: -28vw; left: -20vw; }
.sr-catalog-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
.sr-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; color: #ccdc29; font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sr-kicker::before { width: 8px; height: 8px; border-radius: 50%; background: #ccdc29; box-shadow: 0 0 0 5px rgba(204,220,41,.13); content: ""; }
.sr-catalog-heading { max-width: 800px; margin: 0 0 56px; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.03; letter-spacing: -.05em; }
.sr-catalog-heading strong { color: #ccdc29; font-weight: inherit; }
.sr-catalog-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.sr-catalog-card { min-height: 245px; padding: 31px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.045); backdrop-filter: blur(6px); }
.sr-catalog-card h2 { margin: 0 0 14px; color: #ccdc29; font-size: 1.35rem; letter-spacing: -.02em; }
.sr-catalog-card p { max-width: 670px; margin: 0; color: #e2e8e5; font-size: 1rem; line-height: 1.75; }
.sr-catalog-card blockquote { margin: 0; font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.35; }
.sr-partner-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sr-partner { padding: 10px 13px; border: 1px solid rgba(204,220,41,.47); border-radius: 999px; color: #f5f7f6; font-size: .9rem; font-weight: 700; }
.sr-contact { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; margin-top: 20px; padding: 30px; border: 1px solid rgba(204,220,41,.55); border-radius: 20px; background: #ccdc29; color: #252525; }
.sr-contact h2 { margin: 0 0 7px; font-size: 1.65rem; letter-spacing: -.03em; }
.sr-contact p { margin: 0; }
.sr-contact a { display: inline-flex; align-items: center; justify-content: center; padding: 13px 16px; border-radius: 999px; background: #2c2c2c; color: #fff; font-size: .9rem; font-weight: 800; overflow-wrap: anywhere; }
.sr-socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.sr-socials a { padding: 9px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; font-size: .8rem; font-weight: 700; }
.sr-socials a:hover { border-color: #ccdc29; color: #ccdc29; }
html[dir="rtl"] .sr-catalog-extension { font-family: Tahoma, Arial, sans-serif; text-align: right; }
html[dir="rtl"] .sr-kicker { letter-spacing: 0; }
.sr-menu-extension { cursor: pointer; }
/* The original React menu closes by assigning a zero height inline.  Keep only the injected entries out of view until its native toggle opens that panel. */
.MuiBox-root[style*="height: 0px"] .sr-menu-extension,
.MuiBox-root[style*="height:0px"] .sr-menu-extension { display: none !important; }
.sr-menu-extension:hover { color: #ccdc29 !important; }
@media (max-width: 700px) {
  .sr-catalog-extension { padding: 76px 24px; }
  .sr-catalog-grid { grid-template-columns: 1fr; }
  .sr-catalog-card { min-height: auto; padding: 24px; }
  .sr-contact { grid-template-columns: 1fr; padding: 24px; }
}

/* Mobile contact action: keep the original primary email button legible and inside its visual container. */
@media (max-width: 700px) {
  a.MuiButtonBase-root[href^="mailto:"] {
    box-sizing: border-box !important;
    width: fit-content !important;
    max-width: calc(100vw - 80px) !important;
    min-width: 0 !important;
    padding: 12px 18px !important;
    font-size: clamp(.66rem, 3.1vw, .82rem) !important;
    line-height: 1.2 !important;
    letter-spacing: .04em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html[dir="rtl"] .sr-catalog-extension {
    direction: rtl;
  }

  html[dir="rtl"] .sr-contact a {
    direction: ltr;
    unicode-bidi: plaintext;
  }
}

/* Arabic contact refinement requested by the owner. */
html[dir="rtl"] .sr-original-contact-heading,
html[dir="rtl"] .sr-original-contact-copy,
html[dir="rtl"] .sr-contact > div {
  text-align: center !important;
}

/* Independent mobile project stage. The original GSAP projects stay intact for desktop and are hidden only on phones. */
.sr-mobile-scroll-stage { display: none; }

@media (max-width: 700px) {
  .sr-original-projects-mobile-hidden { display: none !important; }

  .sr-mobile-scroll-host {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  .sr-mobile-scroll-stage {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
    background: #2c2c2c;
  }

  /* The stage has a physical spacer. Its viewport starts at the same offset
     used by the fixed state, so entering and leaving never shifts the card. */
  .sr-mobile-scroll-viewport {
    position: absolute;
    top: var(--sr-mobile-pin-top, min(7svh, 76px));
    right: 0;
    left: 0;
    z-index: 20;
    box-sizing: border-box;
    width: 100%;
    height: min(82svh, 760px);
    overflow: hidden;
    scrollbar-width: none;
    touch-action: none;
  }

  .sr-mobile-scroll-viewport.is-active {
    position: fixed;
    top: var(--sr-mobile-pin-top, min(7svh, 76px));
    right: 0;
    left: 0;
  }

  .sr-mobile-scroll-viewport.is-after {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .sr-mobile-scroll-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    contain: paint;
  }

  html[dir="rtl"] .sr-mobile-scroll-track { direction: rtl; }

  .sr-mobile-scroll-panel {
    position: relative !important;
    inset: auto !important;
    box-sizing: border-box !important;
    flex: 0 0 calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    height: calc(100% - 24px) !important;
    min-height: 0 !important;
    margin: 12px 8px !important;
    overflow: hidden !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .sr-mobile-show-more { cursor: pointer; }

  .sr-mobile-scroll-panel *,
  .sr-mobile-scroll-panel .MuiTypography-root {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html[dir="rtl"] .sr-mobile-scroll-panel,
  html[dir="rtl"] .sr-mobile-scroll-panel * {
    letter-spacing: 0 !important;
    word-spacing: normal !important;
  }

  .sr-mobile-scroll-dots {
    position: absolute;
    right: 0;
    bottom: 26px;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 8px;
    pointer-events: none;
  }

  .sr-mobile-scroll-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(204, 220, 41, .75);
    border-radius: 50%;
    background: transparent;
    pointer-events: auto;
  }

  .sr-mobile-scroll-dots button.is-active {
    background: #ccdc29;
    box-shadow: 0 0 0 4px rgba(204, 220, 41, .16);
  }
}

/* Keep decorative oversized vectors from creating a horizontal document on iPhone Safari. */
@media (max-width: 700px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
  }

  #root {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }
}


/* Additive app design and development section. It reuses the catalogue extension palette and stays isolated from the original React UI. */
.sr-app-development {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(250px, .95fr);
  gap: 28px;
  align-items: center;
  margin-top: 20px;
  padding: 36px;
  overflow: hidden;
  border: 1px solid rgba(204,220,41,.48);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(204,220,41,.13), rgba(255,255,255,.035) 58%, rgba(0,0,0,.1));
}
.sr-app-development::before {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(204,220,41,.25);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.sr-app-copy,
.sr-app-visual,
.sr-app-capability-grid { position: relative; z-index: 1; }
.sr-app-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #ccdc29;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sr-app-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccdc29;
  box-shadow: 0 0 0 5px rgba(204,220,41,.13);
  content: "";
}
.sr-app-copy h2 {
  max-width: 620px;
  margin: 0 0 16px;
  color: #f5f7f6;
  font-size: clamp(1.8rem, 3.5vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.05em;
}
.sr-app-copy h2 strong { color: #ccdc29; font-weight: inherit; }
.sr-app-intro {
  max-width: 590px;
  margin: 0 0 24px;
  color: #e2e8e5;
  font-size: 1rem;
  line-height: 1.75;
}
.sr-app-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid #2c2c2c;
  border-radius: 999px;
  background: #ccdc29;
  color: #252525;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.sr-app-cta:hover { transform: translateY(-2px); background: #e2ef55; }
.sr-app-cta span { font-size: 1.1rem; line-height: 1; }
.sr-app-visual {
  display: grid;
  min-height: 290px;
  place-items: center;
}
.sr-phone-shell {
  position: relative;
  width: 164px;
  height: 300px;
  padding: 8px;
  border: 2px solid rgba(245,247,246,.75);
  border-radius: 28px;
  background: #141414;
  box-shadow: 18px 22px 0 rgba(204,220,41,.15), 0 22px 48px rgba(0,0,0,.4);
  transform: rotate(7deg);
}
.sr-phone-shell::before,
.sr-phone-shell::after {
  position: absolute;
  left: -4px;
  width: 3px;
  border-radius: 4px 0 0 4px;
  background: #ccdc29;
  content: "";
}
.sr-phone-shell::before { top: 68px; height: 28px; }
.sr-phone-shell::after { top: 108px; height: 44px; }
.sr-phone-speaker {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 2;
  width: 50px;
  height: 5px;
  border-radius: 999px;
  background: #060606;
  transform: translateX(-50%);
}
.sr-phone-screen {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  padding: 25px 13px 12px;
  overflow: hidden;
  border-radius: 21px;
  background: #e9efdf;
  color: #252525;
}
.sr-phone-status,
.sr-phone-nav { display: flex; align-items: center; justify-content: space-between; font-size: 7px; font-weight: 800; }
.sr-phone-status { opacity: .72; }
.sr-phone-brand { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 12px; font-weight: 900; letter-spacing: -.04em; }
.sr-phone-brand-mark { width: 17px; height: 17px; border-radius: 5px; background: #ccdc29; box-shadow: inset 0 0 0 4px #252525; }
.sr-phone-greeting { display: flex; flex-direction: column; gap: 5px; margin-top: 24px; }
.sr-phone-greeting span { display: block; width: 58%; height: 5px; border-radius: 9px; background: rgba(37,37,37,.24); }
.sr-phone-greeting span + span { width: 38%; background: rgba(37,37,37,.12); }
.sr-phone-hero-card { position: relative; height: 73px; margin-top: 17px; padding: 12px; overflow: hidden; border-radius: 13px; background: #252525; }
.sr-phone-hero-card::after { position: absolute; right: -18px; bottom: -24px; width: 90px; height: 90px; border: 13px solid #ccdc29; border-radius: 50%; content: ""; }
.sr-phone-card-line { display: block; width: 54%; height: 6px; border-radius: 9px; background: #f5f7f6; }
.sr-phone-card-line.short { width: 36%; margin-top: 7px; opacity: .52; }
.sr-phone-card-orb { position: absolute; top: 20px; right: 23px; width: 22px; height: 22px; border-radius: 50%; background: #ccdc29; }
.sr-phone-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.sr-phone-mini-grid span { height: 34px; border: 1px solid rgba(37,37,37,.08); border-radius: 8px; background: rgba(255,255,255,.55); }
.sr-phone-nav { gap: 5px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(37,37,37,.12); }
.sr-phone-nav span { width: 10px; height: 10px; border-radius: 3px; background: rgba(37,37,37,.3); }
.sr-phone-nav span:first-child { background: #ccdc29; }
.sr-app-capability-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sr-app-capability { padding: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(0,0,0,.12); }
.sr-app-capability h3 { margin: 0 0 8px; color: #ccdc29; font-size: 1rem; line-height: 1.3; }
.sr-app-capability p { margin: 0; color: #e2e8e5; font-size: .86rem; line-height: 1.65; }
html[dir="rtl"] .sr-app-development { direction: rtl; }
html[dir="rtl"] .sr-app-kicker { letter-spacing: 0; }
html[dir="rtl"] .sr-app-cta span { transform: scaleX(-1); }
@media (max-width: 700px) {
  .sr-app-development { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .sr-app-copy h2 { font-size: clamp(1.85rem, 9vw, 2.7rem); }
  .sr-app-intro { font-size: .95rem; }
  .sr-app-visual { min-height: 270px; }
  .sr-app-capability-grid { grid-template-columns: 1fr; }
  .sr-app-capability { padding: 16px; }
  html[dir="rtl"] .sr-app-copy,
  html[dir="rtl"] .sr-app-kicker { text-align: center; justify-content: center; }
  .sr-app-cta { margin-inline: auto; }
}
