*,
*::before,
*::after {
  box-sizing: border-box;
}

/* (font import removed: chat label removed) */

html {
  min-height: 100%;
  background-color: #000000;
  /* Make sure negative z-index pseudo-elements still render */
  position: relative;
  isolation: isolate;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: transparent;
  color: #f9fafb;
  /* Scroll snap makes sections feel like separate "pages".
     Keep it off to avoid visible transition bands with photo wallpaper. */
  scroll-snap-type: none;
  scroll-behavior: smooth;
}

/* Wallpaper layer (real element so it always renders) */
.site-wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    /* dark overlay first so wallpaper stays consistent */
    linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.74) 45%, rgba(0, 0, 0, 0.92) 100%),
    url("background_wallpaper/wallpaper.png");
  /* Full-screen wallpaper like before */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  filter: grayscale(1) contrast(1.08) brightness(0.82);
}

.site-wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(248, 250, 252, 0.06) 1px,
    transparent 0
  );
  background-size: 18px 18px;
  opacity: 0.16;
}

/* Ensure main UI is above wallpaper */
.site-header,
.logo-strip,
.side-nav,
.page-main,
.site-footer {
  position: relative;
  z-index: 2;
}

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

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

.site-header {
  position: relative;
  z-index: 20;
  background-color: transparent;
  border-bottom: none;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 160px; /* controls how long the fade is */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.72) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0; /* keep fade behind header content (logo/menu) */
  pointer-events: none;
}

/* Logo strip */

.logo-strip {
  display: none;
}

.logo-strip::before,
.logo-strip::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-strip::before {
  left: 0;
  background: linear-gradient(to right, #000000 0%, rgba(0, 0, 0, 0) 100%);
}

.logo-strip::after {
  right: 0;
  background: linear-gradient(to left, #000000 0%, rgba(0, 0, 0, 0) 100%);
}

.logo-strip__track {
  display: inline-flex;
  align-items: center;
  gap: 64px;
  padding: 0 64px;
  white-space: nowrap;
  animation: logo-strip-scroll 40s linear infinite;
}

.logo-strip__item {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  opacity: 0.85;
}

@keyframes logo-strip-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1; /* ensure header content stays above fade overlay */
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo__img {
  height: 44px;
  width: auto;
  display: block;
}

.header-logo__text {
  display: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.95);
}

body.rtl .header-logo__text {
  letter-spacing: 0;
  text-transform: none;
}

.header-logo.is-fallback .header-logo__img {
  display: none;
}

.header-logo.is-fallback .header-logo__text {
  display: inline-block;
}

.header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-menu-label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f9fafb;
}

/* Arabic: remove letter spacing that looks like extra spaces */
body.rtl .header-menu-label {
  letter-spacing: 0;
  text-transform: none;
}

.header-burger {
  width: 40px;
  height: 32px;
  border: none;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
  cursor: pointer;
}

.header-burger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background-color: #f9fafb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.side-nav-open .header-burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.side-nav-open .header-burger span:nth-child(2) {
  opacity: 0;
}

.side-nav-open .header-burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.header-lang {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.4);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background-color: rgba(15, 23, 42, 0.85);
}

.header-lang:hover {
  background-color: rgba(15, 23, 42, 1);
}

.page-main {
  background-color: transparent;
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.side-nav {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.side-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.side-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(260px, 70vw);
  height: 100%;
  /* Ensure panel is visible even if backdrop-filter is unsupported */
  background: rgba(0, 0, 0, 0.62);
  overflow: hidden;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-nav__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Match footer overlay gradient */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.62) 45%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.side-nav__panel > * {
  position: relative;
  z-index: 1;
}

.side-nav__close {
  align-self: flex-end;
  border: none;
  background: transparent;
  color: #f9fafb;
  font-size: 1.4rem;
  cursor: pointer;
  margin-bottom: 8px;
}

.side-nav__link {
  color: #f9fafb;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.side-nav__link + .side-nav__link {
  margin-top: 6px;
}

.side-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
  transition: width 0.18s ease;
}

body.rtl .side-nav__link::after {
  left: auto;
  right: 0;
}

.side-nav__link:hover::after {
  width: 100%;
}

.side-nav__lang-toggle {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: transparent;
  color: #f9fafb;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.side-nav--open {
  pointer-events: auto;
}

.side-nav--open .side-nav__backdrop {
  opacity: 1;
}

.side-nav--open .side-nav__panel {
  opacity: 1;
  transform: translateX(0);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.9);
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8vw;
  text-align: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative; /* allow particle layers to sit inside each section */
}

.section--hero {
  color: #f9fafb;
  justify-content: center; /* keep hero content centered horizontally */
  align-items: center;
  text-align: center;
  background-color: transparent;
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 110px;
}

.hero-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  width: 100%;
  max-width: 1200px;
}

.hero-text {
  max-width: 980px;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  min-height: calc(100vh - 220px);
  justify-content: center;
  align-items: center;
}

.hero-kicker {
  margin-bottom: 16px;
}

.hero-heading {
  font-size: clamp(1.85rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 16px;
  /* Prevent layout shift when Typed.js strings wrap differently (mobile/RTL). */
  min-height: calc(2 * 1.15em);
}

.hero-heading .typed-static {
  font-weight: 300; /* thinner "We create" */
  opacity: 0.95;
  white-space: nowrap; /* keep "We create" together */
  margin-inline-end: 0.35ch; /* visible spacing before typed word (flex trims trailing spaces) */
}

.hero-heading .typed-target {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
  white-space: nowrap; /* keep typed phrase from breaking */
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 22px rgba(255, 255, 255, 0.35),
    0 0 44px rgba(255, 255, 255, 0.22);
}

.hero-typed {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap; /* keep "We create <typed>" as one line */
}

.typed-static {
  white-space: normal;
}

.hero-typed .typed-target {
  display: inline-block;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .hero-heading {
    font-size: clamp(1.55rem, 7.2vw, 2.2rem);
    line-height: 1.2;
    min-height: calc(1 * 1.2em);
  }
}

/* Typed.js cursor should match hero headline scale */
.hero-heading .typed-cursor {
  font-weight: 600;
  opacity: 0.9;
}

.hero-subheading {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.7;
}


/* (Hero AI line removed) */

/* Tailwind-like utility colors used in rotating pills */
.bg-teal-400 {
  background-color: #2dd4bf;
}

.text-teal-800 {
  color: #115e59;
}

.bg-red-400 {
  background-color: #fb7185;
}

.text-red-800 {
  color: #7f1d1d;
}

.bg-blue-400 {
  background-color: #38bdf8;
}

.text-blue-800 {
  color: #0f172a;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.hero-cta-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-cta-secondary {
  border-color: rgba(249, 250, 251, 0.4);
  color: #f9fafb;
}

.hero-media {
  display: none;
}

/* RTL language support */
body.rtl {
  direction: rtl;
}

body.rtl .section,
body.rtl .section--dark,
body.rtl .section--white {
  text-align: right;
}

body.rtl .hero-shell {
  flex-direction: row-reverse;
  justify-content: center;
}

body.rtl .header-inner {
  flex-direction: row-reverse;
}

body.rtl .header-right {
  flex-direction: row-reverse;
}

body.rtl .section__inner--center {
  text-align: center;
}

/* keep 'Why us' main headline centered even in RTL */
body.rtl .section--why .section__title--center {
  text-align: center;
}

/* and 'Services' main headline centered in RTL */
body.rtl .section--services .section__title--center {
  text-align: center;
}

/* center top text (label + title) for Why us and Services */
.section--why .section__inner--wide,
.section--services .section__inner--wide {
  text-align: center;
}

/* keep AI section headline centered and content readable */
.section--ai .section__inner--wide {
  text-align: center;
}

.section--pricing .section__inner--wide {
  text-align: center;
}

/* ABOUT / WHY US (new layout) */
.section--about {
  align-items: flex-start;
  padding-top: 120px;
  background-color: #25C2B4; /* teal background for About page section */
}

.section--about::before {
  content: none; /* remove black gradient overlay from this section */
}

.about-section-inner {
  text-align: center;
}

.about-title {
  margin-top: 6px;
}

.about-services-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.about-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about-service__icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
}

.about-icon-svg {
  width: 28px;
  height: 28px;
}

.about-service__label {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.about-shell {
  margin-top: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.about-heading {
  margin: 0 0 16px;
  font-size: 1.6rem;
  text-align: left;
}

.about-body {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: #d1d5db;
  line-height: 1.8;
  text-align: left;
}

.about-body--center {
  text-align: center;
}

.about-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-media__frame {
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, #020617 0, #000000 70%);
}

.about-media__placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.about-media__placeholder span {
  padding: 0 16px;
  text-align: center;
}

body.rtl .about-section-inner {
  text-align: center;
}

body.rtl .about-heading,
body.rtl .about-body {
  text-align: right;
}

body.rtl .about-body--center {
  text-align: center;
}

@media (max-width: 900px) {
  .about-shell {
    max-width: 100%;
  }
}

.services-ai-intro {
  max-width: 720px;
  margin: 18px auto 32px;
  font-size: 0.98rem;
  color: #d1d5db;
  line-height: 1.8;
}

.pricing-intro {
  max-width: 720px;
  margin: 14px auto 24px;
  font-size: 0.98rem;
  color: #e5e5e5;
  line-height: 1.8;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.pricing-grid--single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

/* AI request + payment flow */
.ai-flow-shell {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.ai-flow-shell .section__label {
  text-align: center;
}

.ai-flow-intro {
  margin: 10px auto 0;
  max-width: 760px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.ai-flow-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 22px;
  align-items: start;
}

.ai-flow-form {
  margin-top: 0;
}

.ai-flow-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ai-flow-price {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.ai-flow-price__label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.ai-flow-price__value {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ai-flow-aside__card {
  border-radius: 18px;
  padding: 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.25)
  );
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.ai-flow-aside__k {
  margin: 0 0 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.ai-flow-aside__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ai-flow-aside__list li {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.rtl .ai-flow-aside__list li {
  padding-left: 0;
  padding-right: 14px;
}

.ai-flow-aside__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.rtl .ai-flow-aside__list li::before {
  left: auto;
  right: 0;
}

.ai-payment-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}

.ai-payment-card {
  border-radius: 18px;
  padding: 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.ai-payment-card--price {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.25)
  );
}

.ai-payment-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rtl .ai-payment-row {
  flex-direction: row-reverse;
}

.ai-payment-row:last-child {
  border-bottom: none;
}

.ai-payment-row--notes .ai-payment-v {
  text-align: left;
  white-space: pre-wrap;
}

.rtl .ai-payment-row--notes .ai-payment-v {
  text-align: right;
}

.ai-payment-k {
  color: rgba(255, 255, 255, 0.76);
}

.ai-payment-v {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
  text-align: right;
}

.rtl .ai-payment-v {
  text-align: left;
}

.ai-payment-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 0;
}

.ai-payment-row--total .ai-payment-k,
.ai-payment-row--total .ai-payment-v {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 800;
}

.ai-payment-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.ai-payment-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  font-size: 0.92rem;
}

.ai-payment-error {
  margin-top: 18px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

@media (max-width: 900px) {
  .ai-flow-grid,
  .ai-payment-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(2, 6, 23, 0.95) 60%
  );
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  padding: 22px 22px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pricing-card:hover,
.pricing-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(248, 250, 252, 0.32);
  box-shadow: 0 32px 95px rgba(0, 0, 0, 0.7);
}

.pricing-card.is-active {
  transform: translateY(-2px);
  /* Keep border color consistent with "What we work on" cards */
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 32px 95px rgba(0, 0, 0, 0.7);
}

.pricing-card:active {
  transform: translateY(-1px);
}

.pricing-card--highlight {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.pricing-card__header {
  margin-bottom: 14px;
}

.pricing-card__name {
  margin: 0 0 6px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9fafb;
}

.pricing-card__price {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.pricing-card__price span {
  display: inline-block;
}

.pricing-card__amount {
  margin-right: 6px;
}

.pricing-card__currency {
  font-size: 0.9rem;
  opacity: 0.8;
}

.pricing-card__price--stacked span {
  display: block;
  font-size: 0.95rem;
}

.pricing-card__tagline {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.section--products {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 90px;
}

.products-intro {
  max-width: 820px;
  margin: 14px auto 26px;
  font-size: 0.98rem;
  color: #d1d5db;
  line-height: 1.85;
  text-align: center;
}

.products-layout {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.products-layout--single {
  grid-template-columns: 1fr;
}

.products-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 22px;
}

.products-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.22);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.products-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 250, 252, 0.45);
  background: rgba(2, 6, 23, 0.55);
}

.products-pill--cta {
  border-color: rgba(248, 250, 252, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.products-cta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.products-cta__card {
  width: 100%;
  max-width: 860px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.88) 70%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  padding: 22px;
  text-align: center;
}

.products-cta__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: rgba(248, 250, 252, 0.98);
}

.products-cta__sub {
  margin: 0;
  color: rgba(209, 213, 219, 0.96);
  line-height: 1.75;
}

.products-cta__btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.35);
  background: rgba(248, 250, 252, 0.08);
  color: rgba(248, 250, 252, 0.98);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.products-cta__btn:hover {
  transform: translateY(-1px);
  background: rgba(248, 250, 252, 0.12);
  border-color: rgba(248, 250, 252, 0.5);
}

.products-section + .products-section {
  margin-top: 28px;
}

.products-section__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.products-section__title {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f9fafb;
}

.products-section__sub {
  margin: 0;
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.product-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(2, 6, 23, 0.92) 60%
  );
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 250, 252, 0.32);
  box-shadow: 0 32px 95px rgba(0, 0, 0, 0.7);
}

.product-card--spotlight {
  border-color: rgba(34, 197, 94, 0.22);
}

.product-frame {
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0) 55%),
    rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px;
}

.product-frame__inner {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  display: grid;
  place-items: center;
  background-image: radial-gradient(circle at 1px 1px, rgba(248, 250, 252, 0.06) 1px, transparent 0);
  background-size: 18px 18px;
}

.product-frame__label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.product-card__body {
  padding: 18px 18px 18px;
  text-align: left;
}

body.rtl .product-card__body {
  text-align: right;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.22);
  background: rgba(249, 250, 251, 0.06);
  color: #e5e7eb;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-badge--muted {
  opacity: 0.85;
}

.product-badge--accent {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.1);
}

.product-card__name {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #f9fafb;
}

.product-card__desc {
  margin: 0 0 14px;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.75;
}

.product-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.9);
}

.product-price__currency {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-left: 6px;
}

body.rtl .product-price__currency {
  margin-left: 0;
  margin-right: 6px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.35);
  background: transparent;
  color: #f9fafb;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.product-link:hover {
  transform: translateY(-1px);
  background: rgba(249, 250, 251, 0.08);
  border-color: rgba(249, 250, 251, 0.5);
}

.buy-panel {
  position: sticky;
  top: 92px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at top, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.85) 65%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.buy-panel__top {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.buy-panel__kicker {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

.buy-panel__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: #f9fafb;
}

.buy-panel__sub {
  margin: 0;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.75;
}

.buy-panel__box {
  padding: 18px 20px 22px;
}

.buy-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
}

.buy-select,
.buy-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.6);
  color: #f9fafb;
  font-family: inherit;
}

.buy-row {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.buy-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #f9fafb;
}

.buy-price__currency {
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buy-qty {
  width: 110px;
}

.buy-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.buy-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: #e5e7eb;
  font-size: 0.92rem;
  line-height: 1.7;
}

.buy-cta {
  margin-top: 16px;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #f9fafb;
  color: #0b0f17;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.buy-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

.buy-note {
  margin: 12px 0 0;
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer--short {
  min-height: auto;
  padding: 72px 32px 44px;
  scroll-snap-align: unset;
  scroll-snap-stop: normal;
  /* On pages where the section above is already dark (e.g. Contact),
     a gradient overlay causes a visible band. Use a solid surface instead. */
  background-color: rgba(0, 0, 0, 0.84);
}

.site-footer--short::before {
  content: none;
}

/* MiMouse product page */
.section--product {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 90px;
}

.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.product-hero__title {
  margin: 10px 0 12px;
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.product-hero__sub {
  margin: 0;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.9;
  max-width: 760px;
}

.product-specs {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-spec {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.55);
  padding: 12px 14px;
}

.product-spec__k {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

.product-spec__v {
  margin: 0;
  color: #f9fafb;
  line-height: 1.5;
}

.product-hero__cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-hero__media {
  display: grid;
  gap: 14px;
}

.product-frame--hero {
  aspect-ratio: 4 / 3;
}

.product-buybox {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.92) 65%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  padding: 18px 18px 20px;
}

.product-buybox__kicker {
  margin: 0 0 6px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
}

.product-buybox__price {
  margin: 0 0 12px;
  color: #f9fafb;
  font-size: 1.8rem;
  font-weight: 600;
}

.product-buybox__cur {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-left: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.rtl .product-buybox__cur {
  margin-left: 0;
  margin-right: 6px;
}

.product-buybox__list {
  margin: 0;
  padding: 0 0 0 16px;
  color: #e5e7eb;
  line-height: 1.8;
}

body.rtl .product-buybox__list {
  padding-left: 0;
  padding-right: 16px;
}

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

.product-story__card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.55);
  padding: 18px 18px 20px;
  color: #d1d5db;
  line-height: 1.9;
}

.product-story__card h2 {
  margin: 0 0 10px;
  color: #f9fafb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.product-lineup {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-lineup li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: baseline;
}

.product-lineup strong {
  color: #f9fafb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.rtl .product-lineup li {
  grid-template-columns: 1fr 90px;
}

body.rtl .product-lineup strong {
  text-align: right;
}

@media (max-width: 1000px) {
  .products-layout {
    grid-template-columns: 1fr;
  }
  .buy-panel {
    position: relative;
    top: auto;
  }
  .product-hero {
    grid-template-columns: 1fr;
  }
  .product-story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pricing-card__list {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  flex: 1 1 auto;
}

.pricing-card__list li {
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.7;
  padding: 4px 0;
}

.pricing-card__cta {
  margin-top: auto;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.55);
  background: transparent;
  color: #f9fafb;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  align-self: center;
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

.pricing-card__cta--primary {
  background-color: #f9fafb;
  color: #0b0f17;
  border-color: transparent;
}

.pricing-card__cta:hover {
  transform: translateY(-1px);
  background-color: rgba(249, 250, 251, 0.08);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

body.rtl .pricing-grid {
  direction: rtl;
}

body.rtl .pricing-card {
  text-align: right;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.ai-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(2, 6, 23, 0.95) 60%
  );
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  padding: 20px 22px 22px;
  text-align: left;
}

.ai-card__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9fafb;
}

.ai-card__subtitle {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #9ca3af;
}

.ai-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-card__list li {
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.7;
  padding: 4px 0;
}

/* AI offers bubbles (expandable) */
.ai-bubbles {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center last row */
  gap: 14px;
  align-items: flex-start;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.ai-bubble {
  width: auto;
  flex: 0 0 calc((100% - 3 * 14px) / 4); /* perfectly equal pills */
  height: 48px; /* keep all bubbles identical */
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.3);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.ai-bubble__label {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* truncate from the end (no center clipping) */
  text-align: center;
}

.ai-bubble:hover {
  transform: translateY(-1px);
  background: rgba(2, 6, 23, 0.6);
  border-color: rgba(248, 250, 252, 0.55);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

.ai-bubble.is-open {
  border-color: rgba(248, 250, 252, 0.75);
  background: rgba(2, 6, 23, 0.75);
}

.ai-bubble__panel {
  flex: 0 0 100%;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(248, 250, 252, 0.22);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.95) 65%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  /* animated expand/collapse (JS toggles .is-open + [hidden]) */
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  will-change: max-height, opacity, transform;
  transition: max-height 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 200ms ease,
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.ai-bubble__panel[hidden] {
  display: none;
}

.ai-bubble__panel-inner {
  padding: 18px 20px 20px;
  text-align: left;
}

.ai-bubble__k {
  margin: 12px 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(156, 163, 175, 0.95);
}

.ai-bubble__k:first-child {
  margin-top: 0;
}

.ai-bubble__v {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
}

.ai-bubble__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ai-bubble__list li {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  padding-left: 14px;
  position: relative;
}

.ai-bubble__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  position: absolute;
  left: 0;
  top: 0.6em;
  background: rgba(248, 250, 252, 0.75);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}

body.rtl .ai-bubble__panel-inner {
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .ai-bubble__panel {
    transition: none;
    transform: none;
  }
}

body.rtl .ai-bubble__list li {
  padding-left: 0;
  padding-right: 14px;
}

body.rtl .ai-bubble__list li::before {
  left: auto;
  right: 0;
}

@media (max-width: 900px) {
  .ai-bubbles {
    max-width: 760px;
  }
  .ai-bubble {
    flex-basis: calc((100% - 1 * 14px) / 2);
  }
}

@media (max-width: 520px) {
  .ai-bubble {
    flex-basis: 100%;
  }
}

/* AI breakdown under cards */
.ai-breakdown {
  margin-top: 22px;
}

.ai-breakdown__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  text-align: center;
}

.ai-breakdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ai-breakdown__card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.55);
  padding: 14px 14px 16px;
  text-align: left;
}

.ai-breakdown__card h4 {
  margin: 0 0 8px;
  color: #f9fafb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  line-height: 1.35;
}

.ai-breakdown__card p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.75;
  font-size: 0.92rem;
}

body.rtl .ai-breakdown__card {
  text-align: right;
}

@media (max-width: 900px) {
  .ai-breakdown__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.rtl .ai-card {
  text-align: right;
}

body.rtl .section--pricing .section__inner--wide {
  text-align: center;
}

@media (max-width: 900px) {
  .ai-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Portfolio */
.section--portfolio {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 260px; /* give room for the watermark so it doesn't get clipped */
  position: relative;
  overflow: hidden;
}

.section--portfolio .section__inner--wide {
  text-align: center;
}

/* Big logo watermark under Portfolio (not Services) */
.section--portfolio::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px; /* keep it inside the section so it stays fully visible */
  width: min(660px, 78vw); /* ~60% of the previous 1100px size */
  height: 520px;
  transform: translateX(-50%);
  background-image: url("Logo/newlogo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.12;
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 900px) {
  .section--portfolio::after {
    bottom: -30px;
    width: min(520px, 86vw);
    height: 420px;
    opacity: 0.1;
  }
}

.portfolio-intro {
  max-width: 720px;
  margin: 14px auto 28px;
  font-size: 0.98rem;
  color: #d1d5db;
  line-height: 1.8;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

/* Portfolio: image-only tiles */
.portfolio-shot {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid rgba(248, 250, 252, 0.45); /* thick nav-style border */
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(2, 6, 23, 0.92) 60%
  );
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  /* grid item */
}

.portfolio-shot:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 250, 252, 0.75);
  box-shadow: 0 32px 95px rgba(0, 0, 0, 0.7);
}

.portfolio-shot__media {
  aspect-ratio: 16 / 10;
  background: rgba(2, 6, 23, 0.9);
  position: relative;
}

/* Portfolio images */
.portfolio-shot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.05);
}

.portfolio-shot--first .portfolio-shot__media img {
  /* the first screenshot has important content on the left */
  object-position: left center;
}

/* "What we work on" (topography-style) */
.section--workon {
  /* Match AI section background/spacing */
  background-color: transparent; /* let global photo show through */
  color: #f9fafb;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 140px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}

.section--workon .section__inner--wide {
  text-align: center; /* match AI section headline alignment */
}

.workon-shell {
  position: relative;
  padding: 0;
  text-align: center;
}

.workon-title {
  margin: 0;
}

.workon-sub {
  margin: 10px auto 28px;
  max-width: 920px;
  color: rgba(209, 213, 219, 0.92);
  line-height: 1.9;
}

.workon-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 44px;
  text-align: left;
}

.workon-grid .workon-card:last-child {
  /* With 3 cards, keep the last one centered on its own row */
  grid-column: 1 / -1;
  justify-self: center;
  width: min(560px, 100%);
}

.workon-next {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: left;
}

.workon-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(2, 6, 23, 0.95) 60%
  );
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  padding: 20px 22px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.workon-card:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 250, 252, 0.32);
  box-shadow: 0 32px 95px rgba(0, 0, 0, 0.7);
}

.workon-card__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.98);
}

.workon-card__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  max-width: 560px;
}

.workon-tagline {
  margin: 34px 0 0;
  color: rgba(248, 250, 252, 0.72);
  letter-spacing: 0.12em;
}

body.rtl .workon-grid {
  text-align: right;
}

body.rtl .workon-next {
  text-align: right;
}

body.rtl .workon-card {
  text-align: right;
}

@media (max-width: 900px) {
  .workon-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


.portfolio-card__body {
  padding: 18px 18px 20px;
}

.portfolio-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #9ca3af;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.22);
  background: rgba(249, 250, 251, 0.06);
  color: #e5e7eb;
}

.portfolio-dot {
  opacity: 0.65;
}

.portfolio-meta {
  opacity: 0.9;
}

.portfolio-card__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #f9fafb;
}

.portfolio-card__desc {
  margin: 0;
  color: #d1d5db;
  font-size: 0.98rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

.section--dark {
  background-color: transparent;
  color: #f9fafb;
}

/* Clock section */
.section--clock {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 110px;
}

.section--clock .clock-title {
  margin-top: -16px;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.section--clock .clock-brand {
  margin-bottom: 8px;
  opacity: 0.9;
  display: block;
  width: 100%;
  text-align: center;
}

.clock-intro {
  max-width: 720px;
  margin: 14px auto 28px;
  font-size: 0.98rem;
  color: #d1d5db;
  line-height: 1.8;
}

.clock-wrap {
  /* Use container width so it doesn't overflow section padding on mobile */
  width: min(520px, 100%);
  margin: 20px auto 0;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  position: relative;
  display: grid;
  place-items: center;
}

.ticker {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  position: relative;
  border: 1px solid rgba(248, 250, 252, 0.14);
  background: radial-gradient(circle at 50% 45%, rgba(248, 250, 252, 0.06), rgba(0, 0, 0, 0) 60%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  /* Rotation is controlled by scroll via the clock hand (no constant spinning). */
}

.ticker::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.1);
}

.ticker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 70%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 78%);
  pointer-events: none;
}

.tick {
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--i) * 6deg));
  z-index: 1;
}

.tick__line {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: rgba(248, 250, 252, 0.35);
  /* Static ticks (only the clock hand moves). */
}

/* slightly longer marks each 5 */
.tick--major .tick__line {
  height: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.85),
    0 0 22px rgba(255, 255, 255, 0.55),
    0 0 38px rgba(255, 255, 255, 0.35);
}

/* Clock hand driven by scroll */
.clock-hand {
  position: absolute;
  inset: 0;
  z-index: 3;
  transform: rotate(var(--hand-rot, 0deg));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.clock-hand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 44%;
  transform: translate(-50%, -100%);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65), 0 10px 40px rgba(0, 0, 0, 0.65);
}

.clock-hand::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #000000;
  border: 2px solid rgba(248, 250, 252, 0.9);
}

/* Hour hand (Makkah time) */
.clock-hand--hour {
  z-index: 2;
  transform: rotate(var(--hour-rot, 0deg));
}

.clock-hand--hour::before {
  width: 5px;
  height: 28%;
  background: rgba(248, 250, 252, 0.78);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65), 0 10px 40px rgba(0, 0, 0, 0.55);
}

.clock-hand--hour::after {
  width: 12px;
  height: 12px;
  border-width: 2px;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .clock-wrap {
    width: min(380px, 100%);
  }
}

/* Override for services section so tsParticles background shows through */
.section--services {
  background-color: transparent;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 140px;
  padding-bottom: 140px;
}

/* Extra spacing only when Pricing comes right after Services (home page) */
.section--services + .section--pricing {
  padding-top: 190px;
}

.section--ai {
  background-color: transparent; /* let global photo show through */
  color: #f9fafb;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 140px;
  position: relative;
  overflow: hidden;
}

.section--pricing {
  background-color: transparent; /* let global photo show through */
  color: #f9fafb;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 72px;
  min-height: auto;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

 .section--why {
  background-color: transparent; /* allow specific variants (like About) to control bg */
  position: relative;
  overflow: hidden;
}

.section--why::before {
  content: none;
}

.section--white {
  background-color: #ffffff;
  color: #000000;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  position: relative;
  padding-top: 96px;
  padding-bottom: 120px;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 0
  );
  background-size: 26px 26px;
}

.section--white::before {
  content: none;
}

.section--white::after {
  content: none;
}

/* Hero headline */

.hero-copy {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: 520px;
  flex: 0 0 45%;
}

.hero-line + .hero-line {
  margin-top: 0.4em;
}

.hero-word {
  display: inline-block;
}

.hero-word--primary {
  color: #f9fafb;
}

.hero-word--muted {
  color: #a3a3a3;
}

.hero-comparison {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-comparison .why-grid {
  max-width: 640px;
}

.hero-comparison .why-card {
  animation: float-card 16s ease-in-out infinite alternate;
}

.hero-comparison .why-card:nth-child(2) {
  animation-duration: 20s;
  animation-delay: 1.2s;
}

@keyframes float-card {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.01);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Hero text animation */

.hero-line {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-line-fade 0.9s ease-out forwards;
}

.hero-line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-line:nth-child(2) {
  animation-delay: 0.3s;
}

.hero-line:nth-child(3) {
  animation-delay: 0.5s;
}

.hero-line:nth-child(4) {
  animation-delay: 0.7s;
}

.hero-line:nth-child(5) {
  animation-delay: 0.9s;
}

@keyframes hero-line-fade {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-block {
  display: inline-block;
  vertical-align: middle;
}

.hero-block--small {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 0.5rem;
  border-radius: 0.3rem;
  background: radial-gradient(circle at 30% 20%, #ffffff, #111827);
  overflow: hidden;
}

.hero-block--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-block--light {
  background: radial-gradient(circle at 30% 20%, #f9fafb, #4b5563);
}

.section__inner {
  max-width: 720px;
  position: relative;
  z-index: 1; /* keep content above particle layers */
}

/* Ensure hero content stays above background layers */
.hero-shell {
  position: relative;
  z-index: 1;
}

/* Hero social buttons (right edge) */
.hero-social-float {
  position: static;
  margin-top: 14px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 5;
  justify-content: center;
}

.hero-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(249, 250, 251, 0.35);
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(10px);
  color: rgba(249, 250, 251, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.hero-social-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hero-social-btn:hover {
  transform: translateY(-2px);
  background: rgba(249, 250, 251, 0.08);
  border-color: rgba(249, 250, 251, 0.7);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.7);
}

@media (max-width: 900px) {
  .hero-social-float {
    gap: 10px;
    margin-top: 12px;
  }

  .hero-social-btn {
    width: 40px;
    height: 40px;
  }

  .hero-social-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Vanta background removed for publishing performance */

.section--hero::after {
  content: none;
}

.section__inner--wide {
  max-width: 1400px;
  margin: 0 auto;
}

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

.section__label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
}

body.rtl .section__label {
  /* Arabic labels look misaligned with uppercase + wide tracking */
  text-transform: none;
  letter-spacing: 0;
}

.section__label--light {
  color: #e5e5e5;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  margin: 0;
}

.section__title--center {
  text-align: center;
}

.section__title--services {
  margin-top: 4px;
}

.section__title--sub {
  margin-top: 8px;
}

.about-title {
  font-family: "Bebas Neue", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 3.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 8px 0 4px;
}

body.rtl .about-title {
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.typed-static {
  font-weight: 400;
}

.typed-target {
  font-weight: 600;
}

/* Services */

.services-visual-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.services-visual-row > .hover-3d {
  flex: 1 1 48%;
  max-width: none;
}

/* Custom 3D hover effect compatible with daisyUI-style markup */
.hover-3d {
  position: relative;
  perspective: 1200px;
}

.hover-3d > :first-child {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center center;
}


.service-pane {
  width: 100%;
  min-height: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(2, 6, 23, 0.92) 60%
  );
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  padding: 0 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.service-pane__title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-pane__header {
  padding: 22px 28px 18px;
  border-radius: 18px 18px 0 0;
  color: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.service-pane__header--basic {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.7), rgba(15, 23, 42, 0.2));
}

.service-pane__header--pro {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.7), rgba(15, 23, 42, 0.2));
}

.service-pane__name {
  margin: 0 0 6px;
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-pane__time {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.service-pane__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}

.service-pane__list li {
  padding: 14px 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.95rem;
  color: #e5e7eb;
  text-align: center;
}

.service-pane__cta {
  margin: 24px auto 0;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background-color: transparent;
  color: #ffffff;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
  display: none; /* services page: remove buttons from service boxes */
}

/* basic/pro share same style (intentionally no overrides) */

.service-pane__cta:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-1px);
}

/* Why us */

.why-intro {
  max-width: 760px;
  margin: 18px auto 28px;
  font-size: 0.98rem;
  color: #d1d5db;
  line-height: 1.8;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.why-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(2, 6, 23, 0.92) 60%
  );
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  padding: 20px 24px 22px;
  text-align: left;
  opacity: 0;
  transform: translateY(24px);
  animation: why-card-in 0.8s ease-out forwards;
}

.why-card--old {
  animation-delay: 0.12s;
}

.why-card--new {
  animation-delay: 0.28s;
}

.why-card__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.why-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-card__list li {
  font-size: 0.95rem;
  color: #e5e7eb;
  line-height: 1.7;
  padding: 6px 0;
}

@keyframes why-card-in {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: 32px;
}

.service-card {
  text-align: left;
}

.service-card h3 {
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #d4d4d4;
  line-height: 1.7;
}

/* Projects */

.section--projects {
  background-color: #050505;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin-top: 32px;
}

.project-card {
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  border-radius: 16px;
  padding: 16px 16px 18px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.project-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background-color: #050505;
  margin-bottom: 12px;
}

.project-card__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 4px;
}

.project-card__title {
  font-size: 1.35rem;
  margin: 0 0 6px;
}

.project-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: #d4d4d4;
  line-height: 1.7;
}

/* Contact */

.section--contact {
  /* Let the global wallpaper show, then fade into a dark surface */
  background-color: transparent;
  color: #f9fafb;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  position: relative;
  padding-top: 96px;
  padding-bottom: 120px;
}

.section--contact::before {
  /* Match Pricing section: no dark overlay, just the global wallpaper */
  content: none;
}

.section--contact::after {
  content: none;
}

.section--contact .section__inner--center {
  position: relative;
  z-index: 1;
}

.section--contact .section__label {
  color: #e5e7eb;
}

.section--contact .section__title {
  color: #f9fafb;
}

.section--contact .section__inner--center {
  text-align: center;
}

.contact-highlight {
  animation: contact-pulse 0.9s ease-out 0s 1;
}

@keyframes contact-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  40% {
    transform: scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

.contact-form {
  margin-top: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact-form__row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-field {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.contact-field:nth-child(3),
.contact-textarea {
  flex-basis: 100%;
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
  color: #9ca3af;
}

.contact-input,
.contact-textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.75);
  color: #f9fafb;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.18s ease, background-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(156, 163, 175, 0.8);
}

.contact-select {
  height: 40px;
  background-color: rgba(0, 0, 0, 0.78);
  border-color: rgba(248, 250, 252, 0.22);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px; /* room for arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(248, 250, 252, 0.9) 50%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 16px,
    calc(100% - 12px) 16px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-select option {
  background-color: #000000;
  color: #ffffff;
}

.contact-field:hover .contact-input,
.contact-field:hover .contact-textarea {
  border-color: rgba(248, 250, 252, 0.3);
}

.contact-field:focus-within .contact-input,
.contact-field:focus-within .contact-textarea {
  transform: translateY(-1px);
  border-color: rgba(248, 250, 252, 0.55);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

.contact-field:focus-within .contact-select {
  background-color: rgba(0, 0, 0, 0.9);
  background-position:
    calc(100% - 18px) 15px,
    calc(100% - 12px) 15px; /* tiny nudge = subtle “animate” */
}

body.rtl .contact-select {
  padding-right: 12px;
  padding-left: 42px;
  background-position:
    18px 16px,
    12px 16px;
}

body.rtl .contact-field:focus-within .contact-select {
  background-position:
    18px 15px,
    12px 15px;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: 2px solid rgba(249, 250, 251, 0.7);
  outline-offset: 1px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.btn--primary {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn--primary:hover {
  transform: translateY(-1px);
  background-color: #111827;
  border-color: #111827;
}

.btn--ghost {
  background-color: transparent;
  color: #000000;
  border-color: #d4d4d4;
}

.btn--ghost:hover {
  background-color: #f3f4f6;
}

/* Hero-specific button colors for better contrast on black */
.hero-cta-row .btn--primary {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.hero-cta-row .btn--ghost {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(249, 250, 251, 0.7);
}

/* Contact buttons on dark background */
.section--contact .btn--primary {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.section--contact .btn--ghost {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(249, 250, 251, 0.35);
}

/* =========================
   Page load fade-in (global)
   ========================= */
@media (prefers-reduced-motion: no-preference) {
  .site-header,
  .logo-strip,
  .page-main,
  .site-footer {
    animation: page-fade-in 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    will-change: opacity, transform, filter;
  }

  .logo-strip {
    animation-delay: 0ms;
  }

  .site-header {
    animation-delay: 20ms;
  }

  .page-main {
    animation-delay: 60ms;
  }

  .site-footer {
    animation-delay: 80ms;
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.section--contact .btn--ghost:hover {
  background-color: rgba(249, 250, 251, 0.08);
  border-color: rgba(249, 250, 251, 0.6);
}

/* Responsive layout tweaks */

@media (max-width: 800px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.text-shadow-pop-top {
  -webkit-animation: text-shadow-pop-top 1.2s ease-in-out infinite alternate;
  animation: text-shadow-pop-top 1.2s ease-in-out infinite alternate;
}

@-webkit-keyframes text-shadow-pop-top {
  0% {
    text-shadow: 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555,
      0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    text-shadow: 0 -1px #555555, 0 -2px #555555, 0 -3px #555555,
      0 -4px #555555, 0 -5px #555555, 0 -6px #555555, 0 -7px #555555,
      0 -8px #555555;
    -webkit-transform: translateY(8px);
    transform: translateY(8px);
  }
}

.focus-in-contract-bck {
  -webkit-animation: focus-in-contract-bck 1s
    cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: focus-in-contract-bck 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@-webkit-keyframes focus-in-contract-bck {
  0% {
    letter-spacing: 0.4em;
    -webkit-transform: translateZ(300px);
    transform: translateZ(300px);
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(12px);
    transform: translateZ(12px);
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes focus-in-contract-bck {
  0% {
    letter-spacing: 0.4em;
    -webkit-transform: translateZ(300px);
    transform: translateZ(300px);
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateZ(12px);
    transform: translateZ(12px);
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes text-shadow-pop-top {
  0% {
    text-shadow: 0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555,
      0 0 #555555, 0 0 #555555, 0 0 #555555, 0 0 #555555;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  100% {
    text-shadow: 0 -1px #555555, 0 -2px #555555, 0 -3px #555555,
      0 -4px #555555, 0 -5px #555555, 0 -6px #555555, 0 -7px #555555,
      0 -8px #555555;
    -webkit-transform: translateY(8px);
    transform: translateY(8px);
  }
}

/* Footer */

.site-footer {
  background-color: transparent;
  color: #e5e5e5;
  padding: 80px 32px 56px;
  text-align: center;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.35) 18%,
    rgba(0, 0, 0, 0.68) 55%,
    rgba(0, 0, 0, 0.92) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer__top {
  max-width: 820px;
  margin: 0 auto 56px;
}

.site-footer__brand {
  font-family: "Bebas Neue", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.site-footer__tagline {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #d4d4d4;
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.45);
  background-color: #000000;
  color: #f9fafb;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-pill svg {
  width: 18px;
  height: 18px;
  display: block;
}

.site-footer__nav-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-pill {
  min-width: 120px;
  padding: 10px 22px;
  border-radius: 999px;
  background-color: #000000;
  border: 1px solid rgba(249, 250, 251, 0.22);
  color: #f9fafb;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.rtl .nav-pill {
  text-transform: none;
  letter-spacing: 0;
}

.site-footer__scroll {
  margin-bottom: 28px;
}

.scroll-circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background-color: #000000;
  color: #f9fafb;
}

.site-footer__watermark {
  height: 320px;
  margin: 10px auto 18px;
  max-width: 1000px;
  background-image: url("Logo/newlogo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.12;
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
}

@media (max-width: 900px) {
  .site-footer__watermark {
    height: 220px;
    opacity: 0.1;
  }
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1040px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: #9ca3af;
}

.site-footer__links {
  display: flex;
  gap: 16px;
}

.site-footer__link {
  color: #9ca3af;
}

/* =========================
   AI Chatbot (static widget)
   ========================= */

#root {
  position: fixed;
  inset: 0;
  pointer-events: none; /* only the widget itself is clickable */
  z-index: 9999;
}

#root .App {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chat-toggle-button {
  pointer-events: auto;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.75);
  background: #000000;
  color: rgba(248, 250, 252, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.8),
    0 0 0 4px rgba(248, 250, 252, 0.06),
    0 0 28px rgba(248, 250, 252, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease,
    filter 0.18s ease;
  filter: drop-shadow(0 0 18px rgba(248, 250, 252, 0.12));
  animation: chatGlowPulse 2.8s ease-in-out infinite;
}

.chat-toggle-button:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(255, 255, 255, 1);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.85),
    0 0 0 4px rgba(248, 250, 252, 0.09),
    0 0 40px rgba(248, 250, 252, 0.26);
  filter: drop-shadow(0 0 26px rgba(248, 250, 252, 0.2));
}

.chat-toggle-button svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 10px rgba(248, 250, 252, 0.35));
}

.chat-ask-badge {
  pointer-events: auto;
  position: fixed;
  right: 96px;
  bottom: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(0, 0, 0, 0.86);
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.chat-ask-badge:hover {
  transform: translateY(-1px);
}

.chat-ask-badge.is-hidden {
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  pointer-events: none;
}

@keyframes chatGlowPulse {
  0%,
  100% {
    box-shadow:
      0 18px 55px rgba(0, 0, 0, 0.8),
      0 0 0 4px rgba(248, 250, 252, 0.05),
      0 0 26px rgba(248, 250, 252, 0.16);
    filter: drop-shadow(0 0 16px rgba(248, 250, 252, 0.11));
  }
  50% {
    box-shadow:
      0 18px 55px rgba(0, 0, 0, 0.8),
      0 0 0 4px rgba(248, 250, 252, 0.08),
      0 0 34px rgba(248, 250, 252, 0.24);
    filter: drop-shadow(0 0 22px rgba(248, 250, 252, 0.18));
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-toggle-button {
    animation: none;
  }
}

.chat-intro-toast {
  pointer-events: auto;
  position: fixed;
  right: 96px;
  bottom: 28px;
  max-width: min(320px, calc(100vw - 140px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(0, 0, 0, 0.86);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: chatIntroIn 220ms ease-out;
  z-index: 10000;
}

.chat-intro-toast__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 4px;
  background: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  flex: 0 0 auto;
}

.chat-intro-toast__text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-intro-toast__close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
}

.chat-intro-toast__close:hover {
  color: rgba(255, 255, 255, 0.95);
}

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

body.rtl .chat-intro-toast {
  right: auto;
  left: 96px;
}

.chatbox-container {
  pointer-events: auto;
  position: fixed;
  bottom: 96px;
  right: 20px;
  width: min(420px, calc(100vw - 40px));
  height: min(600px, calc(100vh - 140px));
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: radial-gradient(
      circle at top,
      rgba(15, 23, 42, 0.92) 0%,
      rgba(2, 6, 23, 0.92) 65%
    );
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.chatbox-container.is-open {
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: no-preference) {
  .chatbox-container.is-open {
    animation: chatBoxOpenIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transform-origin: bottom right;
  }

  body.rtl .chatbox-container.is-open {
    transform-origin: bottom left;
  }

  .chatbox-container.is-open.is-closing {
    animation: chatBoxCloseOut 200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

@keyframes chatBoxOpenIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes chatBoxCloseOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(6px);
  }
}

.chatbox-container.is-minimized {
  height: 64px;
}

.chatbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75),
    rgba(2, 6, 23, 0.35)
  );
}

.chatbox-header .header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chatbox-header .status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}

.chatbox-header .header-text h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbox-header .status-text {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: rgba(156, 163, 175, 0.95);
}

.chatbox-header .header-actions {
  display: inline-flex;
  gap: 8px;
}

.chatbox-header .header-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(248, 250, 252, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.chatbox-header .header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(248, 250, 252, 0.22);
  transform: translateY(-1px);
}

.chatbox-messages {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.message {
  display: flex;
}

.message.user {
  justify-content: flex-end;
}

.message.bot {
  justify-content: flex-start;
}

.message-content {
  max-width: 80%;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.message-text {
  white-space: pre-wrap; /* preserve new lines for bullet lists */
  line-height: 1.45;
  word-break: break-word;
}

.message-text.is-typing::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 1em;
  border-right: 2px solid rgba(248, 250, 252, 0.9);
  margin-inline-start: 6px;
  animation: chatCaretBlink 900ms steps(1, end) infinite;
  vertical-align: -0.1em;
}

@keyframes chatCaretBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.message.user .message-content {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.96);
  border-bottom-right-radius: 6px;
}

.message.bot .message-content {
  background: rgba(2, 6, 23, 0.65);
  color: rgba(229, 231, 235, 0.95);
  border-bottom-left-radius: 6px;
}

.message-time {
  margin-top: 6px;
  font-size: 0.72rem;
  color: rgba(156, 163, 175, 0.9);
}

.chatbox-input {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.chatbox-input input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.65);
  color: rgba(248, 250, 252, 0.96);
  font-family: inherit;
  outline: none;
}

.chatbox-input input::placeholder {
  color: rgba(156, 163, 175, 0.9);
}

.chatbox-input input:focus {
  border-color: rgba(248, 250, 252, 0.45);
  box-shadow: 0 0 0 3px rgba(248, 250, 252, 0.1);
}

.send-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease;
}

.send-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(248, 250, 252, 0.45);
}

/* RTL: swap corner */
body.rtl .chat-toggle-button {
  right: auto;
  left: 20px;
}

body.rtl .chat-ask-badge {
  right: auto;
  left: 96px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

body.rtl .chatbox-container {
  right: auto;
  left: 20px;
}

/* Mobile: full-screen chat, keep button in corner */
@media (max-width: 520px) {
  /* Use stable viewport units on iOS (reduces zoom/reflow while scrolling) */
  html {
    scroll-behavior: auto;
  }

  .section {
    min-height: 100svh;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .header-inner {
    padding-top: calc(16px + env(safe-area-inset-top));
    padding-left: calc(18px + env(safe-area-inset-left));
    padding-right: calc(18px + env(safe-area-inset-right));
  }

  .header-burger {
    border-radius: 12px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(248, 250, 252, 0.16);
    /* Ensure 3 lines are always visible on iOS */
    justify-content: center;
    gap: 6px;
  }

  .header-burger span {
    width: 100%;
    height: 3px;
    background-color: rgba(248, 250, 252, 0.98);
  }

  /* Reduce heavy effects on iPhone/mobile to prevent lag */
  .site-wallpaper {
    /* fixed + filter is expensive on iOS; use darker overlay instead */
    filter: none;
  }

  .side-nav__panel,
  .chatbox-container,
  .chat-intro-toast {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .chat-toggle-button {
    animation: none;
    filter: none;
  }

  .chat-toggle-button {
    bottom: 16px;
    right: 16px;
    width: 58px;
    height: 58px;
  }

  body.rtl .chat-toggle-button {
    left: 16px;
  }

  .chat-intro-toast {
    right: 84px;
    bottom: 24px;
    max-width: min(320px, calc(100vw - 120px));
  }

  .chat-ask-badge {
    right: 84px;
    bottom: 24px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  body.rtl .chat-intro-toast {
    right: auto;
    left: 84px;
  }

  body.rtl .chat-ask-badge {
    left: 84px;
  }

  /* Mobile: keep chat smaller so header X is always visible */
  .chatbox-container {
    left: 16px;
    right: 16px;
    bottom: 84px;
    width: auto;
    height: min(520px, calc(100dvh - 160px));
    max-height: calc(100dvh - 160px);
    border-radius: 18px;
  }

  .chatbox-header {
    /* iPhone notch safe area */
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  /* Clock: remove glows/shadows on iPhone (perf) */
  .ticker {
    box-shadow: none;
    background: rgba(0, 0, 0, 0.25);
  }

  .tick--major .tick__line {
    /* Keep hour ticks clearly visible even after removing heavy effects */
    width: 3px;
    height: 22px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.22);
  }

  .clock-hand::before,
  .clock-hand--hour::before {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-ask-badge {
    transition: none;
  }
}
