/* ==========================================================================
   ShipCube AI - Stylesheet
   Theme: Deep navy + Yellow accent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #1e2a78;
  --navy-dark: #16225f;
  --navy-deep: #0f1a4a;
  --yellow: #facc15;
  --yellow-light: #fde047;
  --bg-light: #f7f8fc;
  --white: #ffffff;
  --text-dark: #1e2a78;
  --text-body: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(30, 42, 120, 0.06);
  --shadow-md: 0 4px 12px rgba(30, 42, 120, 0.08);
  --shadow-lg: 0 10px 30px rgba(30, 42, 120, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Arabic / RTL */
html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.75;
}

html[dir="rtl"] .main-nav a.active::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .step-number,
html[dir="rtl"] .stat-number,
html[dir="rtl"] .leader-name,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .cta-title {
  letter-spacing: 0;
}

html[dir="rtl"] .service-card-list li {
  padding: 8px 18px 8px 0;
}

html[dir="rtl"] .service-card-list li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .leader-quote {
  border-left: 0;
  border-right: 3px solid var(--yellow);
  padding: 6px 18px 6px 0;
}

html[dir="rtl"] .mission-list li {
  flex-direction: row;
}

html[dir="rtl"] .contact-item {
  flex-direction: row;
}

html[dir="rtl"] .form-row,
html[dir="rtl"] .features-grid,
html[dir="rtl"] .steps-grid,
html[dir="rtl"] .service-cards,
html[dir="rtl"] .why-cards,
html[dir="rtl"] .industries-grid,
html[dir="rtl"] .values-grid {
  direction: rtl;
}

html[dir="rtl"] .hero-cta,
html[dir="rtl"] .cta-buttons {
  flex-direction: row-reverse;
}

/* Logo, footer logo, and team avatars must NOT flip */
html[dir="rtl"] .logo-img,
html[dir="rtl"] .footer-logo-img,
html[dir="rtl"] .leader-photo,
html[dir="rtl"] .team-avatar {
  direction: ltr;
}

/* Marquee is forced to LTR (see .team-marquee), so no RTL override needed */

a {
  color: var(--navy);
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}


/* Stretch the header's inner container to full viewport width so logo sits on far left and nav on far right */
.site-header .container {
  max-width: none;
  padding: 0 32px;
}

.header-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px;
  padding: 14px 0;
  width: 100%;
}

.header-inner .logo {
  flex-shrink: 0;
}

.header-inner .main-nav {
  flex-shrink: 0;
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.logo-mark {
  width: 44px;
  height: 32px;
  display: inline-block;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
}

.brand-center {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.main-nav a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover {
  color: var(--navy);
}

.main-nav a.active {
  color: var(--navy);
  font-weight: 600;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

/* Header "Get Started" button — use brand-accent yellow to make it pop */
.main-nav .btn-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

.main-nav .btn-primary:hover {
  background: #e3a82c;
  border-color: #e3a82c;
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}

/* ==========================================================================
   Futuristic effects — particle canvas, glow, glassmorphism
   ========================================================================== */
.hero-dark, .hero { position: relative; overflow: hidden; isolation: isolate; }

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-dark .particle-canvas { opacity: 0.7; }
.hero-dark .container, .hero .container { position: relative; z-index: 1; }

/* Animated gradient on hero accent */
.hero-title .accent,
.section-title .accent,
.cta-title .accent {
  background: linear-gradient(90deg, var(--yellow) 0%, #fcd34d 50%, var(--yellow) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}
@keyframes shimmerText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Typewriter caret */
[data-typewriter]::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  color: var(--yellow);
  animation: caretBlink 0.85s steps(2) infinite;
  -webkit-text-fill-color: var(--yellow);
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Glowing CTA buttons */
.btn-primary {
  position: relative;
  box-shadow: 0 6px 24px rgba(30, 42, 120, 0.28),
              0 0 0 0 rgba(250, 204, 21, 0);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(30, 42, 120, 0.45),
              0 0 0 4px rgba(250, 204, 21, 0.25);
}
.main-nav .btn-primary {
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35);
}
.main-nav .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(250, 204, 21, 0.55),
              0 0 0 4px rgba(250, 204, 21, 0.2);
}

/* Glassmorphism on cards inside dark sections */
.hero-dark .glass,
.hero .glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 3D tilt smoothing */
.service-card, .feature-card, .why-card, .value-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .particle-canvas { display: none; }
  .hero-title .accent, .section-title .accent, .cta-title .accent {
    animation: none;
  }
  [data-typewriter]::after { animation: none; }
}

/* ==========================================================================
   Mobile hamburger toggle
   ========================================================================== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Prevent body scroll when mobile nav is open */
body.nav-open { overflow: hidden; }

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero {
  padding: 56px 0 44px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(30, 42, 120, 0.06);
  border-radius: 20px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--navy);
  border-radius: 50%;
}

.eyebrow-text {
  display: block;
  text-align: center;
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--navy);
  margin: 14px 0 18px;
  letter-spacing: -1px;
}

.hero-title .accent {
  color: var(--yellow);
  display: block;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto 24px;
}

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

/* Hero variant — dark navy */
.hero-dark {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 48px;
  text-align: center;
}

.hero-dark .eyebrow-text {
  color: var(--yellow);
}

.hero-dark .hero-title {
  color: var(--white);
}

.hero-dark .hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Pill eyebrow on dark hero (home page) */
.hero-dark .eyebrow {
  background: rgba(250, 204, 21, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(250, 204, 21, 0.35);
}
.hero-dark .eyebrow::before {
  background: var(--yellow);
}

/* Stats numbers on dark hero */
.hero-dark .stats-row {
  border-top-color: rgba(255, 255, 255, 0.15);
}
.hero-dark .stat-number {
  color: var(--white);
}
.hero-dark .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* Outline CTA on dark hero — flip to white */
.hero-dark .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.hero-dark .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 32px 0 16px;
  border-top: 1px solid var(--border);
  max-width: 1000px;
  margin: 36px auto 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 38px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .accent {
  color: var(--yellow);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* dark stats variant */
.stats-dark {
  background: var(--navy);
  padding: 50px 0;
  border: none;
  margin: 0;
  max-width: none;
}

.stats-dark .stat-number,
.stats-dark .stat-number .accent {
  color: var(--white);
}

.stats-dark .stat-number .accent {
  color: var(--yellow);
}

.stats-dark .stat-label {
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title .accent {
  color: var(--yellow);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto;
}

.section-light {
  background: var(--bg-light);
}

/* ==========================================================================
   Integration Logos
   ========================================================================== */
.integrations {
  padding: 36px 0;
  text-align: center;
  background: var(--bg-light);
}

.integrations-label {
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.integration-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.integration-logo {
  width: 54px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.logo-shopify { background: #95bf47; }
.logo-amazon { background: #ff9900; color: #131a22; }
.logo-sap { background: #0a6ed1; }
.logo-woo { background: #96588a; }
.logo-oracle { background: #c74634; }
.logo-fedex { background: #4d148c; }
.logo-dhl { background: #d40511; }

/* ==========================================================================
   Cards Grid (Features)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  --card-c1: #1e2a78;
  --card-c2: #4a5fce;
  --card-shadow: rgba(30, 42, 120, 0.22);
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 26px 32px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
  overflow: hidden;
  isolation: isolate;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-c1), var(--card-c2));
  border-radius: 18px 18px 0 0;
  transition: height 0.3s ease;
  z-index: 2;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--card-c2), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px var(--card-shadow);
  border-color: transparent;
}

.feature-card:hover::before { height: 6px; }
.feature-card:hover::after { opacity: 0.12; }

.feature-card > * { position: relative; z-index: 1; }

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--card-c1), var(--card-c2));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px var(--card-shadow);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.feature-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-body);
}

/* Color themes per card */
.feature-card.fc-navy   { --card-c1: #1e2a78; --card-c2: #4a5fce; --card-shadow: rgba(30, 42, 120, 0.22); }
.feature-card.fc-green  { --card-c1: #0e8a6c; --card-c2: #14b8a6; --card-shadow: rgba(14, 138, 108, 0.22); }
.feature-card.fc-purple { --card-c1: #5b3fa5; --card-c2: #8c6ad6; --card-shadow: rgba(91, 63, 165, 0.22); }
.feature-card.fc-pink   { --card-c1: #be185d; --card-c2: #ec4899; --card-shadow: rgba(190, 24, 93, 0.22); }
.feature-card.fc-amber  { --card-c1: #d97706; --card-c2: #facc15; --card-shadow: rgba(217, 119, 6, 0.22); }
.feature-card.fc-blue   { --card-c1: #0a6ed1; --card-c2: #4ba6e8; --card-shadow: rgba(10, 110, 209, 0.22); }
.feature-card.fc-cyan   { --card-c1: #0e7490; --card-c2: #22d3ee; --card-shadow: rgba(14, 116, 144, 0.22); }
.feature-card.fc-red    { --card-c1: #b91c1c; --card-c2: #f87171; --card-shadow: rgba(185, 28, 28, 0.22); }

/* "What we automate" sub-list inside each feature card */
.feature-includes {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.feature-includes-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-includes li {
  font-size: 13.5px;
  color: var(--text-body);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.55;
}

.feature-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--card-c1), var(--card-c2));
  border-radius: 50%;
}

html[dir="rtl"] .feature-includes li {
  padding: 5px 18px 5px 0;
}

html[dir="rtl"] .feature-includes li::before {
  left: auto;
  right: 0;
}

/* Wider 6-card layout */
.features-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.features-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ==========================================================================
   How it works (numbered steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.step-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.step-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ==========================================================================
   Service cards (top half navy)
   ========================================================================== */
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 2px 8px rgba(30, 42, 120, 0.04);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 42, 120, 0.18);
  box-shadow: 0 18px 40px rgba(30, 42, 120, 0.14);
}

.service-card:hover::after {
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.5);
}

.service-card-head {
  background: linear-gradient(135deg, var(--navy) 0%, #2d3a8c 60%, #3848a8 100%);
  color: var(--white);
  padding: 26px 22px 22px;
  position: relative;
  overflow: hidden;
}

.service-card-head::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.22), transparent 70%);
  pointer-events: none;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-head::before {
  transform: scale(1.3);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 26px;
  margin-bottom: 14px;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 12px;
  transition: transform 0.28s ease, background 0.28s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(250, 204, 21, 0.25);
}

.service-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.service-card-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
}

.service-card-body {
  padding: 20px 22px 24px;
  flex: 1;
}

.service-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card-list li {
  font-size: 13.5px;
  color: var(--text-body);
  padding: 9px 0 9px 22px;
  position: relative;
  line-height: 1.55;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.service-card-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover .service-card-list li::before {
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.28);
}

.service-card-list li:hover {
  color: var(--navy);
  padding-left: 26px;
}

/* ==========================================================================
   About section split
   ========================================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.about-mission {
  background: var(--navy);
  color: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
}

.about-mission h3 {
  font-size: 26px;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 700;
}

.about-mission p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.7;
}

.mission-list {
  list-style: none;
  padding: 0;
  margin-top: 22px;
}

.mission-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.mission-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.about-story h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.about-story h2 .accent {
  color: var(--yellow);
}

.about-story > p {
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.value-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.value-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.value-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-body);
}

/* ==========================================================================
   Why Dubai cards
   ========================================================================== */
.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  --card-c1: #1e2a78;
  --card-c2: #4a5fce;
  --card-shadow: rgba(30, 42, 120, 0.22);
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 28px 34px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
  overflow: hidden;
  isolation: isolate;
}

.why-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-c1), var(--card-c2));
  border-radius: 18px 18px 0 0;
  z-index: 2;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px var(--card-shadow);
  border-color: transparent;
}

.why-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
}

.why-card .feature-icon { margin-bottom: 22px; }

.why-card.fc-navy   { --card-c1: #1e2a78; --card-c2: #4a5fce; --card-shadow: rgba(30, 42, 120, 0.22); }
.why-card.fc-green  { --card-c1: #0e8a6c; --card-c2: #14b8a6; --card-shadow: rgba(14, 138, 108, 0.22); }
.why-card.fc-amber  { --card-c1: #d97706; --card-c2: #facc15; --card-shadow: rgba(217, 119, 6, 0.22); }

.why-card h4 {
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 12px;
  font-weight: 700;
}

.why-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.contact-info-eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.15;
}

.contact-info h2 .accent {
  color: var(--yellow);
}

.contact-info > p {
  color: var(--text-body);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: 0; }

.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(30, 42, 120, 0.08);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.contact-item-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 14px;
  color: var(--text-body);
}

.contact-card-flag {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border);
}

.flag-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.contact-card-flag h4 {
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 6px;
}

.contact-card-flag p {
  color: var(--text-muted);
  font-size: 13px;
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 24px;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 42, 120, 0.1);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(30, 42, 120, 0.25);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
}

.faq-toggle {
  color: var(--yellow);
  font-size: 20px;
  font-weight: 400;
  transition: var(--transition);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 22px 18px;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
  text-align: center;
  padding: 64px 0;
  background: var(--white);
}

.cta-section.section-light { background: var(--bg-light); }

.cta-eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cta-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-title .accent { color: var(--yellow); }

.cta-text {
  color: var(--text-body);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 50px 0 24px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-text .accent { color: var(--yellow); }

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
}

.footer-nav a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-badge {
  background: rgba(250, 204, 21, 0.15);
  color: var(--yellow);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   Language toggle
   ========================================================================== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px;
  margin-right: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle .lang-opt {
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--text-muted);
  transition: var(--transition);
  user-select: none;
  line-height: 1;
  font-size: 13px;
}

.lang-toggle .lang-opt.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(30, 42, 120, 0.25);
}

.lang-toggle:hover {
  border-color: rgba(30, 42, 120, 0.25);
}

html[dir="rtl"] .lang-toggle {
  margin-right: 0;
  margin-left: 8px;
}

@media (max-width: 640px) {
  .lang-toggle .lang-opt { padding: 4px 8px; font-size: 12px; }
}

/* ==========================================================================
   Industries pill grid
   ========================================================================== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.industry-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
}

.industry-pill:hover {
  border-color: rgba(30, 42, 120, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.industry-pill .pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(250, 204, 21, 0.18);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.industries-note {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.industries-note strong { color: var(--navy); }

@media (max-width: 720px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Company sizes badges row
   ========================================================================== */
.sizes-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.size-badge {
  background: rgba(30, 42, 120, 0.06);
  color: var(--navy);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(30, 42, 120, 0.1);
}

.size-badge .accent {
  color: var(--yellow);
}

/* ==========================================================================
   Leadership / Founder Spotlight
   ========================================================================== */
.leadership-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, #f7f8fc 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.leadership-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.18), transparent 70%);
  pointer-events: none;
}

.leader-photo-wrap {
  position: relative;
}

.leader-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  object-position: center 25%;
  box-shadow: 0 20px 50px rgba(30, 42, 120, 0.18);
}

/* CEO card photo — show full portrait without head crop */
.leadership-card:nth-of-type(2) .leader-photo {
  object-fit: contain;
  background: linear-gradient(135deg, #eef0f7 0%, #ffffff 100%);
  padding: 8px;
}

.leader-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(250, 204, 21, 0.35);
  white-space: nowrap;
}

.leader-info .cta-eyebrow {
  text-align: left;
}

.leader-name {
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 8px 0 6px;
}

.leader-role {
  font-size: 17px;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 22px;
}

.leader-bio {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 24px;
}

.leader-quote {
  border-left: 3px solid var(--yellow);
  padding: 6px 0 6px 18px;
  font-size: 15px;
  font-style: italic;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 28px;
}

.leader-socials {
  display: flex;
  gap: 12px;
}

.leader-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.leader-socials a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ==========================================================================
   Team Marquee — infinite horizontal scroll
   ========================================================================== */
.team-section {
  background: var(--bg-light);
  padding: 80px 0;
  overflow: hidden;
}

.team-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  direction: ltr; /* force LTR so RTL pages don't right-align the track and push it off-screen */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.team-track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: scrollLeft 38s linear infinite;
}

.team-marquee:hover .team-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 11px)); }
}

.team-card {
  width: 240px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 22px 22px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 42, 120, 0.2);
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(30, 42, 120, 0.15);
}

.team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.team-tag {
  display: inline-block;
  background: rgba(250, 204, 21, 0.18);
  color: #b07a14;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
}

/* Leadership responsive */
@media (max-width: 900px) {
  .leadership-card {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 36px;
    text-align: center;
  }
  .leader-info .cta-eyebrow,
  .leader-quote { text-align: left; }
  .leader-photo-wrap { max-width: 280px; margin: 0 auto; }
  .leader-name { font-size: 34px; }
  .leader-socials { justify-content: center; }
}

/* ==========================================================================
   Scroll-reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

/* ==========================================================================
   AI Chatbot — floating widget
   ========================================================================== */
.cube-bot {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  font-family: inherit;
}

html[dir="rtl"] .cube-bot {
  right: auto;
  left: 22px;
}

.cube-bot-toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--navy), #4a5fce);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(30, 42, 120, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.cube-bot-toggle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  opacity: 0.6;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0%   { transform: scale(1);    opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

.cube-bot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(30, 42, 120, 0.5);
}

.cube-bot-toggle svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cube-bot-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(250, 204, 21, 0.5);
  display: none;
}

.cube-bot.has-message .cube-bot-badge { display: block; }
.cube-bot.open .cube-bot-toggle { display: none; }

.cube-bot-window {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 380px;
  height: 580px;
  max-height: calc(100vh - 44px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(30, 42, 120, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[dir="rtl"] .cube-bot-window {
  right: auto;
  left: 0;
}

.cube-bot.open .cube-bot-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cube-bot-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--navy), #4a5fce);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.cube-bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

.cube-bot-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.cube-bot-status {
  font-size: 11.5px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.cube-bot-status .dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3); }
  50%      { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.1); }
}

.cube-bot-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease;
}

.cube-bot-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

html[dir="rtl"] .cube-bot-close {
  margin-left: 0;
  margin-right: auto;
}

.cube-bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.cube-bot-msg {
  display: flex;
  margin-bottom: 12px;
  animation: msgIn 0.3s ease-out;
}

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

.cube-bot-msg.bot {
  justify-content: flex-start;
}

.cube-bot-msg.user {
  justify-content: flex-end;
}

.cube-bot-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-wrap: break-word;
}

.cube-bot-msg.bot .cube-bot-bubble {
  background: var(--bg-light);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.cube-bot-msg.user .cube-bot-bubble {
  background: linear-gradient(135deg, var(--navy), #4a5fce);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.cube-bot-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}

.cube-bot-typing span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.3s ease-in-out infinite;
}

.cube-bot-typing span:nth-child(2) { animation-delay: 0.15s; }
.cube-bot-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40%           { transform: translateY(-6px); opacity: 1; }
}

.cube-bot-suggestions {
  padding: 0 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

.cube-bot-chip {
  background: rgba(30, 42, 120, 0.06);
  color: var(--navy);
  border: 1px solid rgba(30, 42, 120, 0.12);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.cube-bot-chip:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.cube-bot-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.cube-bot-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: var(--transition);
}

.cube-bot-input input:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}

.cube-bot-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--navy), #4a5fce);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.cube-bot-send:hover {
  transform: scale(1.05);
}

.cube-bot-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mobile: full screen chatbot */
@media (max-width: 480px) {
  .cube-bot-window {
    position: fixed;
    inset: 12px;
    width: auto;
    height: auto;
    max-height: none;
  }
  .cube-bot { bottom: 16px; right: 16px; }
  html[dir="rtl"] .cube-bot { left: 16px; right: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-title { font-size: 40px; }
  .section-title, .cta-title { font-size: 32px; }
  .features-grid, .service-cards, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .why-cards, .features-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .about-split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-center { display: none; }
  .main-nav { gap: 18px; }
}

/* ==========================================================================
   Mobile (≤900px) — hamburger nav + responsive layouts
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-header .container { padding: 0 16px; }
  .header-inner { padding: 10px 0; gap: 12px; }
  .logo-img { height: 36px; }

  .header-inner .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
    margin-left: 0;
  }
  .header-inner .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--navy); }
  .main-nav .lang-toggle {
    margin-top: 12px;
    align-self: flex-start;
  }
  .main-nav .btn-primary {
    margin-top: 14px;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 18px;
    font-size: 15px;
  }

  /* Layouts */
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  .hero { padding: 50px 0 40px; }
  .hero-title { font-size: 34px; line-height: 1.15; }
  .hero-subtitle { font-size: 16px; }
  .section-title, .cta-title { font-size: 28px; }
  .leadership-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
    text-align: center;
  }
  .leader-info .cta-eyebrow,
  .leader-quote { text-align: left; }
  .leader-photo-wrap { max-width: 260px; margin: 0 auto; }
  .leader-name { font-size: 30px; }
  .leader-socials { justify-content: center; }
  .leader-bio { font-size: 14.5px; }
}

/* ==========================================================================
   Small phones (≤640px)
   ========================================================================== */
@media (max-width: 640px) {
  .hero { padding: 44px 0 32px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .section-title, .cta-title { font-size: 24px; }
  section { padding: 48px 0; }

  .features-grid, .service-cards, .steps-grid, .why-cards,
  .features-grid.cols-3, .features-grid.cols-2,
  .values-grid, .form-row { grid-template-columns: 1fr !important; gap: 16px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .stat-number { font-size: 28px; }

  .btn { padding: 11px 18px; font-size: 14px; }
  .btn-sm { padding: 10px 16px; font-size: 13px; }

  .contact-form { padding: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Team marquee — smaller cards */
  .team-card { width: 200px; padding: 18px 18px 20px; }
  .team-avatar { width: 84px; height: 84px; }
  .team-name { font-size: 16px; }
  .team-role { font-size: 12.5px; }

  /* Leadership card */
  .leadership-card { padding: 22px; gap: 22px; }
  .leader-name { font-size: 26px; }
  .leader-quote { font-size: 14px; }
  .leader-bio { font-size: 14px; }

  /* Chatbot — smaller floating + drawer-style window */
  .cube-bot { bottom: 14px; right: 14px; }
  html[dir="rtl"] .cube-bot { left: 14px; right: auto; }
  .cube-bot-toggle { width: 54px; height: 54px; }
  .cube-bot-window {
    width: calc(100vw - 28px);
    height: calc(100vh - 100px);
    max-height: 560px;
    right: 0;
    bottom: 70px;
  }
  html[dir="rtl"] .cube-bot-window { right: auto; left: 0; }

  /* Cards & sections */
  .hero-dark { padding: 56px 0 44px; }
  .hero-dark .hero-title { font-size: 28px; }
  .about-split { gap: 24px; }
  .value-card, .feature-card, .service-card, .why-card { padding: 20px; }

  /* Forms */
  .form-row { gap: 14px; }
  input, textarea, select { font-size: 16px; } /* prevent iOS auto-zoom */

  /* CTA */
  .cta-section { padding: 56px 0; }
  .cta-actions { flex-direction: column; gap: 12px; }
  .cta-actions .btn { width: 100%; }
}

/* ==========================================================================
   Very small phones (≤380px)
   ========================================================================== */
@media (max-width: 380px) {
  .hero-title { font-size: 26px; }
  .section-title, .cta-title { font-size: 22px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .logo-img { height: 32px; }
  .leadership-card { padding: 18px; }
  .leader-name { font-size: 22px; }
}
