/* Fulltek - Modern Tech Theme */

:root,
[data-theme="dark"] {
  --ft-bg: #060912;
  --ft-bg-2: #0c1222;
  --ft-surface: rgba(255, 255, 255, 0.04);
  --ft-surface-hover: rgba(255, 255, 255, 0.08);
  --ft-border: rgba(255, 255, 255, 0.1);
  --ft-primary: #1546FC;
  --ft-primary-dark: #1035c9;
  --ft-primary-light: rgba(21, 70, 252, 0.15);
  --ft-accent: #1546FC;
  --ft-accent-2: #3b6bff;
  --ft-gradient: #1546FC;
  --ft-text: #e2e8f0;
  --ft-text-muted: #94a3b8;
  --ft-glow: 0 0 40px rgba(21, 70, 252, 0.3);
  --ft-radius: 16px;
  --ft-radius-md: 12px;
  --ft-radius-lg: 24px;
  --ft-radius-xl: 32px;
  --ft-surface-2: rgba(255, 255, 255, 0.06);
  --ft-font: 'Inter', 'Poppins', sans-serif;
  --ft-font-display: 'Space Grotesk', 'Poppins', sans-serif;
  --ft-hero-gap: 28px;
  --ft-header-h: 80px;
  --ft-header-bg: rgba(6, 9, 18, 0.95);
  --ft-header-bg-scrolled: rgba(6, 9, 18, 0.85);
  --ft-header-border: rgba(255, 255, 255, 0.08);
  --ft-hero-outer-bg: #060912;
  --ft-nav-text: #ffffff;
  --ft-marquee-bg: #0c1222;
  --ft-dot-inactive: #d1d5db;
  --ft-card-shadow: 0 14px 40px rgba(21, 70, 252, 0.18);
  --ft-input-bg: rgba(255, 255, 255, 0.03);
  --ft-card-number: rgba(255, 255, 255, 0.03);
  --ft-mobile-nav-bg: rgba(6, 9, 18, 0.98);
}

[data-theme="light"] {
  --ft-bg: #f0f4fc;
  --ft-bg-2: #ffffff;
  --ft-surface: rgba(21, 70, 252, 0.05);
  --ft-surface-hover: rgba(21, 70, 252, 0.09);
  --ft-border: rgba(21, 70, 252, 0.12);
  --ft-text: #1e293b;
  --ft-text-muted: #64748b;
  --ft-glow: 0 0 40px rgba(21, 70, 252, 0.15);
  --ft-header-bg: rgba(6, 9, 18, 0.96);
  --ft-header-bg-scrolled: rgba(6, 9, 18, 0.92);
  --ft-header-border: rgba(255, 255, 255, 0.08);
  --ft-hero-outer-bg: #ffffff;
  --ft-nav-text: #ffffff;
  --ft-marquee-bg: #e8eef9;
  --ft-dot-inactive: #cbd5e1;
  --ft-card-shadow: 0 14px 40px rgba(21, 70, 252, 0.12);
  --ft-input-bg: #ffffff;
  --ft-card-number: rgba(21, 70, 252, 0.05);
  --ft-mobile-nav-bg: rgba(6, 9, 18, 0.98);
  --ft-surface-2: #e8eef9;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

/* Arabic typography */
html[lang="ar"] {
  --ft-font: 'Cairo', sans-serif;
  --ft-font-display: 'Tajawal', 'Cairo', sans-serif;
}

html[lang="ar"] body.ft-modern h1,
html[lang="ar"] body.ft-modern h2,
html[lang="ar"] body.ft-modern h3,
html[lang="ar"] body.ft-modern h4,
html[lang="ar"] body.ft-modern h5,
html[lang="ar"] body.ft-modern h6 {
  font-family: var(--ft-font-display);
  font-weight: 700;
  letter-spacing: 0;
}

html[lang="ar"] .ft-section__label,
html[lang="ar"] .ft-nav a,
html[lang="ar"] .ft-btn,
html[lang="ar"] .ft-lang-toggle {
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .ft-contact__info h2 {
  font-weight: 800;
  line-height: 1.35;
}

/* Reset overrides */
html {
  scroll-behavior: smooth;
}

body.ft-modern {
  background: var(--ft-bg);
  color: var(--ft-text);
  font-family: var(--ft-font);
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.ft-modern h1,
body.ft-modern h2,
body.ft-modern h3,
body.ft-modern h4,
body.ft-modern h5,
body.ft-modern h6 {
  color: var(--ft-text);
  font-family: var(--ft-font-display);
}

body.ft-modern p {
  color: var(--ft-text-muted);
  font-size: 16px;
  line-height: 1.75;
}

body.ft-modern ::selection {
  background: var(--ft-primary);
  color: var(--ft-bg);
}

/* Preloader */
.ft-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  background: var(--ft-bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.ft-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ft-preloader__logo {
  height: 60px;
  animation: ft-pulse-glow 2s ease-in-out infinite;
}

.ft-preloader__bar {
  width: 200px;
  height: 3px;
  background: var(--ft-surface);
  border-radius: 3px;
  overflow: hidden;
}

.ft-preloader__bar-fill {
  height: 100%;
  width: 0;
  background: var(--ft-primary);
  border-radius: 3px;
  animation: ft-load-bar 1.8s ease-in-out forwards;
}

.ft-preloader__text {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ft-text-muted);
  animation: ft-blink 1.5s step-end infinite;
}

@keyframes ft-load-bar {
  to { width: 100%; }
}

@keyframes ft-blink {
  50% { opacity: 0.3; }
}

@keyframes ft-pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(21, 70, 252, 0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(21, 70, 252, 0.8)); }
}

/* Header */
.ft-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: var(--ft-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ft-header-border);
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.4s ease;
  transform: translateY(-100%);
  opacity: 0;
}

body.ft-loaded .ft-header {
  animation: ftHeaderDown 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ft-header.scrolled {
  padding: 10px 0;
  background: var(--ft-header-bg-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ft-header-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.ft-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ft-header a {
  text-decoration: none !important;
}

.ft-header .logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.ft-header .logo:hover img {
  transform: scale(1.05);
}

.ft-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-nav a {
  display: block;
  padding: 10px 20px;
  color: var(--ft-nav-text) !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.ft-nav a:hover,
.ft-nav a:focus,
.ft-nav a:active {
  color: var(--ft-nav-text) !important;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
}

.ft-nav a.active {
  color: var(--ft-nav-text) !important;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none !important;
}

/* Theme toggle */
.ft-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ft-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.ft-theme-toggle .fa-sun {
  display: none;
}

[data-theme="light"] .ft-theme-toggle .fa-moon {
  display: none;
}

[data-theme="light"] .ft-theme-toggle .fa-sun {
  display: inline-block;
}

[data-theme="dark"] .ft-theme-toggle .fa-moon {
  display: inline-block;
}

/* Language toggle */
.ft-lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--ft-font);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ft-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

html[lang="en"] .ft-lang-toggle__text--ar,
html[lang="ar"] .ft-lang-toggle__text--en {
  display: none;
}

html[lang="en"] .ft-lang-toggle__text--en,
html[lang="ar"] .ft-lang-toggle__text--ar {
  display: inline;
}

.ft-nav-cta {
  margin-inline-start: 12px;
  padding: 10px 24px !important;
  background: var(--ft-primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 20px rgba(21, 70, 252, 0.35);
}

.ft-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(21, 70, 252, 0.45) !important;
  background: var(--ft-primary-dark) !important;
  color: #fff !important;
}

.ft-menu-trigger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.ft-menu-trigger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ft-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.ft-menu-trigger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ft-menu-trigger.active span:nth-child(2) {
  opacity: 0;
}

.ft-menu-trigger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Hero Slider ========== */
.ft-hero {
  background: var(--ft-hero-outer-bg);
  padding: 0;
  margin: 0;
  transition: background-color 0.35s ease;
}

.ft-hero__outer {
  --hero-pad: var(--ft-hero-gap);
  padding: var(--hero-pad);
  padding-top: calc(var(--ft-header-h) + var(--hero-pad));
  padding-bottom: calc(var(--hero-pad) * 0.45);
  min-height: 100vh;
  box-sizing: border-box;
  background: var(--ft-hero-outer-bg);
  display: flex;
  flex-direction: column;
  transition: background-color 0.35s ease;
}

.ft-hero__wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ft-hero__track {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: calc(100vh - var(--ft-header-h) - var(--hero-pad) - (var(--hero-pad) * 0.45) - 28px);
  height: calc(100vh - var(--ft-header-h) - var(--hero-pad) - (var(--hero-pad) * 0.45) - 28px);
}

.ft-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.ft-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.ft-hero__slide.is-active .ft-hero__card {
  animation: ftHeroCardIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ft-hero__slide.is-active .ft-hero__media {
  animation: ftHeroKenBurns 8s ease-out forwards;
}

.ft-hero__slide.is-active .ft-hero__title {
  animation: ftHeroSlideUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.ft-hero__slide.is-active .ft-hero__subtitle {
  animation: ftHeroSlideUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.ft-hero__slide.is-active .ft-hero__actions {
  animation: ftHeroSlideUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.ft-hero__slide.is-active .ft-hero__orb--1 {
  animation: ftHeroOrbFloat 7s ease-in-out infinite;
}

.ft-hero__slide.is-active .ft-hero__orb--2 {
  animation: ftHeroOrbFloat 9s ease-in-out infinite reverse;
}

.ft-hero__card {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--ft-card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ft-hero__media {
  flex: 0 0 44%;
  width: 44%;
  height: 100%;
  background-color: #0a2560;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
  transform-origin: center center;
  will-change: transform;
}

.ft-hero__media--alt {
  background-position: 70% center;
}

.ft-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, rgba(21, 70, 252, 0.35) 100%);
  pointer-events: none;
}

.ft-hero__panel {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(145deg, #1a52ff 0%, #1546FC 35%, #1038c4 65%, #0a2d7a 100%);
  background-size: 200% 200%;
  animation: ftHeroGradient 12s ease infinite;
  overflow: hidden;
}

.ft-hero__panel-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ft-hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 75%);
}

.ft-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.ft-hero__orb--1 {
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.18);
  top: -80px;
  inset-inline-end: -60px;
}

.ft-hero__orb--2 {
  width: 200px;
  height: 200px;
  background: rgba(59, 107, 255, 0.5);
  bottom: -60px;
  inset-inline-start: 10%;
}

.ft-hero__content {
  position: relative;
  z-index: 2;
  padding: 52px 60px;
  width: 100%;
}

.ft-hero .ft-hero__title {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff !important;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

.ft-hero__title .blue-text {
  color: #ffffff !important;
  display: inline-block;
  position: relative;
}

.ft-hero__title .blue-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: ftHeroUnderline 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

html[lang="ar"] .ft-hero__title .blue-text::after {
  transform-origin: right;
}

.ft-hero__subtitle {
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  line-height: 1.85;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0 0 36px;
  max-width: 520px;
}

.ft-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ft-hero .ft-btn {
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.ft-hero .ft-btn--primary {
  background: #ffffff !important;
  color: #1546FC !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.ft-hero .ft-btn--primary:hover {
  background: #f0f4ff !important;
  color: #1035c9 !important;
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.ft-hero .ft-btn--light {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: none !important;
}

.ft-hero .ft-btn--light:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.ft-hero-btn__icon {
  font-size: 13px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ft-hero .ft-btn:hover .ft-hero-btn__icon {
  transform: translateX(4px);
}

html[lang="ar"] .ft-hero .ft-btn:hover .ft-hero-btn__icon {
  transform: translateX(-4px);
}

.ft-btn--light {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
}

.ft-btn--light:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #fff !important;
}

.ft-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #1546FC;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s ease,
              color 0.35s ease,
              box-shadow 0.35s ease;
}

.ft-hero__arrow:hover {
  background: #1546FC;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 28px rgba(21, 70, 252, 0.4);
}

.ft-hero__arrow--prev { left: 12px; }
.ft-hero__arrow--next { right: 12px; }

.ft-hero__indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.ft-hero__dot {
  position: relative;
  width: 48px;
  height: 5px;
  background: var(--ft-dot-inactive);
  border: none;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.ft-hero__dot.is-active {
  width: 64px;
}

.ft-hero__dot.is-active.is-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1546FC;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  animation: ftDotProgress 6s linear forwards;
}

html[lang="ar"] .ft-hero__dot.is-active.is-progress::before {
  transform-origin: right;
}

.ft-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.ft-btn--primary {
  background: var(--ft-primary);
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(21, 70, 252, 0.4);
}

.ft-btn--primary:hover {
  transform: translateY(-3px);
  background: var(--ft-primary-dark);
  box-shadow: 0 8px 40px rgba(21, 70, 252, 0.5);
  color: #fff !important;
}

.ft-btn--outline {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.ft-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff !important;
  transform: translateY(-3px);
}

@keyframes ft-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes ft-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ftHeroCardIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes ftHeroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

@keyframes ftHeroSlideUp {
  from {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ftHeroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ftHeroOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.08); }
}

@keyframes ftHeroUnderline {
  to { transform: scaleX(1); }
}

@keyframes ftDotProgress {
  to { transform: scaleX(1); }
}

@keyframes ftHeaderDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes ftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes ftLabelShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes ftIconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes ftMarqueeGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Metrics strip */
.ft-metrics {
  position: relative;
  z-index: 2;
  padding: 64px 0 72px;
  overflow: hidden;
}

.ft-metrics__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(21, 70, 252, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 80% at 80% 100%, rgba(21, 70, 252, 0.06), transparent 60%);
  pointer-events: none;
}

.ft-metrics__line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 70, 252, 0.45), transparent);
}

.ft-metrics__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.ft-metrics__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 28px;
  text-align: center;
}

.ft-metrics__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  inset-inline-end: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(21, 70, 252, 0.22), transparent);
}

.ft-metrics__icon {
  font-size: 20px;
  color: var(--ft-primary);
  opacity: 0.75;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.ft-metrics__item:hover .ft-metrics__icon {
  opacity: 1;
  transform: translateY(-3px);
}

.ft-metrics__value {
  font-family: var(--ft-font-display);
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1546FC 0%, #5b84ff 45%, #1546FC 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ftMetricShine 6s linear infinite;
}

.ft-metrics__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ft-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 160px;
  line-height: 1.45;
}

html[lang="ar"] .ft-metrics__label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}

.ft-metrics__item::before {
  content: '';
  width: 0;
  height: 2px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ft-primary), #5b84ff);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ft-metrics__item:hover::before {
  width: 40px;
}

@keyframes ftMetricShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Sections common */
.ft-section {
  padding: 100px 0;
  position: relative;
  transition: background-color 0.35s ease;
}

.ft-section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #1546FC, #3b6bff, #1546FC);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ftLabelShine 5s linear infinite;
}

html[lang="ar"] .ft-section__label {
  letter-spacing: 0;
  text-transform: none;
}

.ft-section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.ft-section__desc {
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
}

.ft-section__header {
  text-align: center;
  margin-bottom: 60px;
}

/* Scroll reveal */
.ft-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ft-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.ft-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ft-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.ft-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ft-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.ft-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ft-reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* About */
.ft-about {
  background: var(--ft-bg-2);
  overflow: hidden;
  transition: background-color 0.35s ease;
}

.ft-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ft-about__image-wrap {
  position: relative;
}

.ft-about__image {
  position: relative;
  border-radius: var(--ft-radius-lg);
  overflow: hidden;
  border: 2px solid rgba(21, 70, 252, 0.4);
  box-shadow: 0 16px 40px rgba(21, 70, 252, 0.15);
}

.ft-about__image img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.ft-about__content p {
  margin-bottom: 20px;
}

.ft-about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.ft-about__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  transition: all 0.3s ease;
}

.ft-about__feature:hover {
  border-color: rgba(21, 70, 252, 0.3);
  transform: translateX(8px);
}

.ft-about__feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ft-primary);
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.ft-about__feature span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ft-text);
}

/* Why Choose Us */
.ft-why {
  position: relative;
  overflow: hidden;
  background: var(--ft-bg);
}

.ft-why__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(21, 70, 252, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(21, 70, 252, 0.05), transparent 65%);
  pointer-events: none;
}

.ft-why__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 48px;
}

.ft-why-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
}

.ft-why-item__index {
  position: absolute;
  top: -10px;
  inset-inline-end: 0;
  font-family: var(--ft-font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ft-primary);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.ft-why-item__icon {
  font-size: 22px;
  color: var(--ft-primary);
  opacity: 0.85;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.ft-why-item:hover .ft-why-item__icon {
  opacity: 1;
  transform: translateY(-3px);
}

.ft-why-item__body {
  position: relative;
  min-width: 0;
}

.ft-why-item__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 14px;
  color: var(--ft-text);
  position: relative;
  border-bottom: 1px solid var(--ft-border);
}

.ft-why-item__title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  inset-inline-start: 0;
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ft-primary), #5b84ff);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ft-why-item:hover .ft-why-item__title::after {
  width: 100%;
}

.ft-why-item__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ft-text-muted);
}

/* Industries slider */
.ft-industries {
  position: relative;
  overflow: hidden;
  background: var(--ft-surface-2);
}

.ft-industries__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 100%, rgba(21, 70, 252, 0.07), transparent 70%);
  pointer-events: none;
}

.ft-industries-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.ft-industries-slider__viewport {
  overflow: hidden;
  min-width: 0;
}

.ft-industries-slider__track {
  display: flex;
  gap: 16px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.ft-industry-slide {
  position: relative;
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px 18px 14px;
  border-inline-start: 2px solid rgba(21, 70, 252, 0.35);
  background: linear-gradient(135deg, rgba(21, 70, 252, 0.04), transparent 70%);
}

.ft-industry-slide__index {
  position: absolute;
  top: 6px;
  inset-inline-end: 10px;
  font-family: var(--ft-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ft-primary);
  opacity: 0.06;
  pointer-events: none;
}

.ft-industry-slide__icon {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
  color: var(--ft-primary);
  opacity: 0.85;
}

.ft-industry-slide__body {
  min-width: 0;
}

.ft-industry-slide__title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ft-text);
  line-height: 1.35;
}

.ft-industry-slide__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ft-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ft-industries-slider__arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ft-border);
  border-radius: 50%;
  background: var(--ft-bg-2);
  color: var(--ft-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.ft-industries-slider__arrow:hover {
  background: var(--ft-primary-light);
  border-color: rgba(21, 70, 252, 0.35);
  transform: scale(1.05);
}

.ft-industries-slider__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.ft-industries-slider__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: var(--ft-border);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, width 0.3s ease;
}

.ft-industries-slider__dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--ft-primary);
}

.ft-industries-slider__dot:hover {
  transform: scale(1.15);
}

html[lang="ar"] .ft-industries-slider__arrow--prev i,
html[lang="ar"] .ft-industries-slider__arrow--next i {
  transform: scaleX(-1);
}

/* Home Careers */
.ft-careers-home {
  position: relative;
  overflow: hidden;
}

.ft-careers-home__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 30%, rgba(21, 70, 252, 0.07), transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 75%, rgba(21, 70, 252, 0.05), transparent 65%);
  pointer-events: none;
}

/* Job list cards (home + jobs page) */
.ft-job-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 44px;
}

.ft-careers-home .ft-job-list {
  margin-bottom: 44px;
}

.ft-jobs-page .ft-job-list {
  margin-bottom: 0;
  padding-bottom: 100px;
}

.ft-job-list__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 22px 26px;
  margin: 0;
  border-radius: var(--ft-radius-md);
  background: transparent;
  border: 1px solid var(--ft-border);
  color: var(--ft-text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.ft-job-list__card:hover {
  border-color: rgba(21, 70, 252, 0.35);
  box-shadow: 0 8px 28px rgba(21, 70, 252, 0.08);
  transform: translateY(-2px);
}

.ft-job-list__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  text-decoration: none;
}

.ft-job-list__link:focus-visible {
  outline: 2px solid var(--ft-primary);
  outline-offset: 2px;
}

.ft-job-list__content {
  flex: 1;
  min-width: 0;
}

.ft-job-list__title {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--ft-text);
}

.ft-job-list__company {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ft-primary);
  opacity: 0.85;
}

.ft-job-list__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-bottom: 12px;
}

.ft-job-list__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ft-text-muted);
}

.ft-job-list__meta-item i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--ft-primary);
  opacity: 0.75;
}

.ft-job-list__excerpt {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ft-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ft-job-list__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ft-job-list__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.ft-job-list__tag i {
  font-size: 10px;
}

.ft-job-list__tag--active {
  color: #c27803;
  background: rgba(194, 120, 3, 0.08);
  border-color: rgba(194, 120, 3, 0.16);
}

.ft-job-list__tag--active i {
  font-size: 6px;
  color: #c27803;
}

.ft-job-list__meta-item--deadline {
  color: var(--ft-text-muted);
}
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ft-primary);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ft-job-list__card:hover .ft-job-list__arrow {
  opacity: 1;
  transform: translateX(4px);
}

html[lang="ar"] .ft-job-list__card:hover .ft-job-list__arrow {
  transform: translateX(-4px) scaleX(-1);
}

html[lang="ar"] .ft-job-list__arrow {
  transform: scaleX(-1);
}

.ft-careers-home__footer {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.ft-careers-home__btn {
  min-width: 260px;
  justify-content: center;
}

.ft-job-list__meta-item > [data-lang="en"],
.ft-job-list__meta-item > [data-lang="ar"],
.ft-job-list__tag > [data-lang="en"],
.ft-job-list__tag > [data-lang="ar"] {
  display: none !important;
}

html[lang="en"] .ft-job-list__meta-item > [data-lang="en"],
html[lang="ar"] .ft-job-list__meta-item > [data-lang="ar"],
html[lang="en"] .ft-job-list__tag > [data-lang="en"],
html[lang="ar"] .ft-job-list__tag > [data-lang="ar"] {
  display: inline !important;
}

/* Bilingual dynamic content */
.ft-bilingual > [data-lang="en"],
.ft-bilingual > [data-lang="ar"] {
  display: none !important;
}

html[lang="en"] .ft-bilingual > [data-lang="en"],
html[lang="ar"] .ft-bilingual > [data-lang="ar"] {
  display: block !important;
}

html[lang="en"] .ft-bilingual:not(.ft-job-list__meta-item):not(.ft-job-list__tag) > span[data-lang="en"],
html[lang="ar"] .ft-bilingual:not(.ft-job-list__meta-item):not(.ft-job-list__tag) > span[data-lang="ar"],
html[lang="en"] .ft-job-list__title > [data-lang="en"],
html[lang="ar"] .ft-job-list__title > [data-lang="ar"],
html[lang="en"] .ft-job-list__excerpt > [data-lang="en"],
html[lang="ar"] .ft-job-list__excerpt > [data-lang="ar"] {
  display: block !important;
}

/* Services */
.ft-services {
  position: relative;
}

.ft-services__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(21, 70, 252, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.ft-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ft-service-card {
  position: relative;
  padding: 32px 24px;
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.35s ease,
              border-color 0.35s ease;
  overflow: hidden;
}

.ft-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ft-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ft-service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(21, 70, 252, 0.3);
  box-shadow: var(--ft-glow);
  background: var(--ft-surface-hover);
}

.ft-service-card:hover::before {
  transform: scaleX(1);
}

.ft-service-card__glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(21, 70, 252, 0.15), transparent 70%);
  top: -50px;
  right: -50px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ft-service-card:hover .ft-service-card__glow {
  opacity: 1;
}

.ft-service-card__icon {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ft-primary);
  border-radius: 50%;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(21, 70, 252, 0.35);
}

.ft-service-card__icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.ft-service-card__icon i {
  font-size: 26px;
  color: #fff;
  transition: transform 0.4s ease;
}

.ft-service-card:hover .ft-service-card__icon {
  background: var(--ft-primary-dark);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 30px rgba(21, 70, 252, 0.5);
}

.ft-service-card:hover .ft-service-card__icon img,
.ft-service-card:hover .ft-service-card__icon i {
  transform: scale(1.1);
}

.ft-service-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.ft-service-card:hover .ft-service-card__title {
  color: var(--ft-primary);
}

.ft-service-card__desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.ft-service-card__number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--ft-font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--ft-card-number);
  line-height: 1;
  transition: color 0.4s ease;
}

.ft-service-card:hover .ft-service-card__number {
  color: rgba(21, 70, 252, 0.08);
}

/* Tech Marquee */
.ft-marquee {
  padding: 40px 0;
  border-top: 1px solid var(--ft-border);
  border-bottom: 1px solid var(--ft-border);
  overflow: hidden;
  background: var(--ft-marquee-bg);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.ft-marquee__track {
  display: flex;
  gap: 60px;
  animation: ft-marquee 25s linear infinite;
  width: max-content;
}

.ft-marquee__item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--ft-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ft-text-muted);
  opacity: 0.6;
}

.ft-marquee__item i {
  color: var(--ft-primary);
  font-size: 22px;
}

@keyframes ft-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Contact */
.ft-contact {
  background: var(--ft-bg-2);
  position: relative;
  overflow: hidden;
  transition: background-color 0.35s ease;
}

.ft-contact__orb {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(21, 70, 252, 0.1);
  border-radius: 50%;
  filter: blur(100px);
  bottom: -100px;
  right: -100px;
}

.ft-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.ft-contact__info h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 20px;
}

.ft-contact__info > p {
  margin-bottom: 40px;
}

.ft-contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.ft-contact__item:hover {
  border-color: rgba(21, 70, 252, 0.3);
  transform: translateX(8px);
}

.ft-contact__item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ft-primary);
  border-radius: 12px;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.ft-contact__item-text label {
  display: block;
  font-size: 12px;
  color: var(--ft-text-muted);
  margin-bottom: 4px;
}

.ft-contact__item-text span {
  font-size: 16px;
  font-weight: 500;
  color: var(--ft-text);
}

.ft-contact__form {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
}

.ft-contact__form .form-group {
  margin-bottom: 20px;
}

.ft-contact__form input,
.ft-contact__form textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--ft-input-bg);
  border: 1px solid var(--ft-border);
  border-radius: 12px;
  color: var(--ft-text);
  font-size: 15px;
  font-family: var(--ft-font);
  transition: all 0.3s ease;
  outline: none;
}

.ft-contact__form input::placeholder,
.ft-contact__form textarea::placeholder {
  color: var(--ft-text-muted);
}

.ft-contact__form input:focus,
.ft-contact__form textarea:focus {
  border-color: var(--ft-primary);
  box-shadow: 0 0 0 3px rgba(21, 70, 252, 0.1);
}

.ft-contact__form textarea {
  min-height: 140px;
  resize: vertical;
}

.ft-contact__form button {
  width: 100%;
  padding: 16px;
  background: var(--ft-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ft-contact__form button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ft-contact__form button:hover {
  transform: translateY(-2px);
  background: var(--ft-primary-dark);
  box-shadow: 0 8px 30px rgba(21, 70, 252, 0.45);
}

.ft-contact__form button:hover::before {
  opacity: 1;
}

.ft-form-success {
  padding: 16px;
  background: rgba(21, 70, 252, 0.1);
  border: 1px solid rgba(21, 70, 252, 0.3);
  border-radius: 12px;
  color: var(--ft-primary);
  text-align: center;
  margin-top: 16px;
}

.ft-form-error {
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #f87171;
  text-align: center;
  margin-top: 16px;
}

/* Footer */
.ft-footer {
  padding: 40px 0;
  border-top: 1px solid var(--ft-border);
  text-align: center;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.ft-footer p {
  font-size: 14px;
  color: var(--ft-text-muted);
  margin: 0;
}

.ft-footer__brand {
  color: var(--ft-primary);
  font-weight: 700;
}

/* Hide old template elements */
body.ft-modern .header-area,
body.ft-modern .main-banner,
body.ft-modern .services.section,
body.ft-modern .testimonials,
body.ft-modern .contact-us,
body.ft-modern footer:not(.ft-footer),
body.ft-modern #js-preloader,
body.ft-modern .section-heading h1 {
  display: none !important;
}

body.ft-modern .section {
  margin-top: 0;
  padding-top: 0;
}

/* Stagger animation delays */
.ft-stagger-1 { transition-delay: 0.1s; }
.ft-stagger-2 { transition-delay: 0.2s; }
.ft-stagger-3 { transition-delay: 0.3s; }
.ft-stagger-4 { transition-delay: 0.4s; }
.ft-stagger-5 { transition-delay: 0.5s; }
.ft-stagger-6 { transition-delay: 0.6s; }
.ft-stagger-7 { transition-delay: 0.7s; }
.ft-stagger-8 { transition-delay: 0.8s; }

/* Responsive */
@media (max-width: 1199px) {
  .ft-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .ft-metrics__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 0;
  }

  .ft-metrics__item {
    padding: 0 20px;
  }

  .ft-metrics__item:nth-child(odd)::after {
    display: none;
  }

  .ft-metrics__item:not(:last-child)::after {
    display: none;
  }

  .ft-about__grid,
  .ft-contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ft-job-list {
    gap: 14px;
  }

  .ft-careers-home .ft-job-list {
    margin-bottom: 36px;
  }

  .ft-why__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .ft-industry-slide {
    flex: 0 0 calc(50% - 8px);
  }

  .ft-about__features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ft-menu-trigger {
    display: flex;
  }

  .ft-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    background: var(--ft-mobile-nav-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--ft-border);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 4px;
  }

  .ft-nav.open {
    right: 0;
  }

  .ft-nav a {
    padding: 14px 20px;
  }

  .ft-nav-cta {
    margin-inline-start: 0;
    margin-top: 12px;
    text-align: center;
  }

  .ft-nav .ft-theme-toggle {
    align-self: center;
    margin: 12px auto 4px;
  }

  .ft-nav .ft-lang-toggle {
    align-self: center;
    margin: 8px auto 4px;
  }

  .ft-services__grid {
    grid-template-columns: 1fr;
  }

  .ft-metrics {
    padding: 48px 0 56px;
  }

  .ft-metrics__row {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .ft-metrics__item {
    padding: 0 8px;
  }

  .ft-metrics__value {
    font-size: 2rem;
  }

  .ft-why__list {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .ft-industries-slider {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ft-industries-slider__arrow {
    display: none;
  }

  .ft-industry-slide {
    flex: 0 0 100%;
  }

  .ft-job-list__card {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
  }

  .ft-job-list__meta {
    gap: 8px 16px;
  }

  .ft-job-list__arrow {
    align-self: flex-end;
    width: 28px;
    height: 28px;
  }

  .ft-careers-home__btn {
    width: 100%;
    min-width: 0;
  }

  .ft-hero__outer {
    --hero-pad: 16px;
    padding: var(--hero-pad);
    padding-top: calc(var(--ft-header-h) + var(--hero-pad));
    padding-bottom: calc(var(--hero-pad) * 0.45);
    min-height: 100vh;
  }

  .ft-hero__track {
    min-height: calc(100vh - var(--ft-header-h) - var(--hero-pad) - (var(--hero-pad) * 0.45) - 24px);
    height: calc(100vh - var(--ft-header-h) - var(--hero-pad) - (var(--hero-pad) * 0.45) - 24px);
  }

  .ft-hero__slide {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    display: none;
    pointer-events: auto;
  }

  .ft-hero__slide.is-active {
    display: block;
    position: absolute;
    inset: 0;
  }

  .ft-hero__card {
    flex-direction: column;
    height: 100%;
  }

  .ft-hero__media {
    flex: 0 0 38%;
    width: 100%;
    height: 38%;
    min-height: 180px;
  }

  .ft-hero__panel {
    flex: 1;
    height: auto;
  }

  .ft-hero__content {
    padding: 28px 24px;
  }

  .ft-hero .ft-hero__title {
    font-size: 1.45rem;
    margin-bottom: 14px;
  }

  .ft-hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 22px;
  }

  .ft-hero__arrow {
    display: none;
  }

  .ft-contact__form {
    padding: 24px;
  }
}

/* ─── Arabic / RTL ─── */
html[lang="ar"] .ft-hero__media::after {
  background: linear-gradient(270deg, transparent 50%, rgba(21, 70, 252, 0.35) 100%);
}

html[lang="ar"] .ft-hero__arrow--prev {
  left: auto;
  right: 12px;
}

html[lang="ar"] .ft-hero__arrow--next {
  right: auto;
  left: 12px;
}

html[lang="ar"] .ft-hero__arrow--prev i::before {
  content: "\f054";
}

html[lang="ar"] .ft-hero__arrow--next i::before {
  content: "\f053";
}

html[lang="ar"] .ft-reveal-left {
  transform: translateX(40px);
}

html[lang="ar"] .ft-reveal-left.visible {
  transform: translateX(0);
}

html[lang="ar"] .ft-reveal-right {
  transform: translateX(-40px);
}

html[lang="ar"] .ft-reveal-right.visible {
  transform: translateX(0);
}

html[lang="ar"] .ft-about__feature:hover,
html[lang="ar"] .ft-contact__item:hover {
  transform: translateX(-8px);
}

html[lang="ar"] .ft-service-card__number {
  right: auto;
  left: 20px;
}

html[lang="ar"] .ft-service-card__glow {
  right: auto;
  left: -50px;
}

html[lang="ar"] .ft-marquee__track {
  animation-direction: reverse;
}

html[lang="ar"] .ft-contact__orb {
  right: auto;
  left: -100px;
}

html[lang="ar"] #form-submit i {
  transform: scaleX(-1);
}

html[lang="ar"] .ft-hero__subtitle {
  max-width: 100%;
}

@media (max-width: 767px) {
  html[lang="ar"] .ft-nav {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--ft-border);
  }

  html[lang="ar"] .ft-nav.open {
    right: auto;
    left: 0;
  }
}

/* ─── Global site animations ─── */
.ft-about__image-wrap.visible .ft-about__image {
  animation: ftFloat 5s ease-in-out infinite;
}

.ft-marquee__item {
  animation: ftMarqueeGlow 3s ease-in-out infinite;
}

.ft-marquee__item:nth-child(odd) {
  animation-delay: 0.4s;
}

.ft-service-card.visible:hover .ft-service-card__icon {
  animation: ftIconPulse 1.5s ease-in-out infinite;
}

.ft-contact__item {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.ft-contact__item:hover {
  box-shadow: 0 8px 32px rgba(21, 70, 252, 0.14);
}

.ft-contact__form button {
  position: relative;
  overflow: hidden;
}

.ft-contact__form button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.ft-contact__form button:hover::after {
  transform: translateX(100%);
}

.ft-about__feature.visible {
  transition: transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
}

.ft-about__feature.visible:hover {
  transform: translateX(8px) scale(1.02);
}

html[lang="ar"] .ft-about__feature.visible:hover {
  transform: translateX(-8px) scale(1.02);
}

html[lang="ar"] .ft-hero-btn__icon {
  transform: scaleX(-1);
}

html[lang="ar"] .ft-hero .ft-btn:hover .ft-hero-btn__icon {
  transform: scaleX(-1) translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ft-header {
    transform: none;
    opacity: 1;
  }
}
