/* ===== Transformera Website - Global Styles ===== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --teal:        #0d9488;
  --teal-dark:   #0f766e;
  --teal-light:  #ccfbf1;
  --navy:        #0f2b4c;
  --navy-light:  #1e3a5f;
  --navy-dark:   #0a1e36;
  --accent:      #f59e0b;
  --accent-light:#fef3c7;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-300:    #cbd5e1;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --gray-900:    #0f172a;

  /* Typography */
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --section-py: 5rem;
  --container-px: 1.5rem;
  --container-max: 1200px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 620px;
  margin: 0 auto 3rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 43, 76, 0.35);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-logo img {
  height: 42px;
  width: auto;
}
.nav-logo span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.4rem !important;
  font-size: 0.9rem !important;
  border-radius: 0.45rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--teal);
  background: linear-gradient(90deg, #2dd4bf, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero badge label */
.hero-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13,148,136,0.2);
  border: 1px solid rgba(13,148,136,0.3);
  color: #2dd4bf;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Trusted-by row */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.hero-trust-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-trust-logos img {
  height: 32px;
  width: auto;
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  padding: 3px 6px;
  object-fit: contain;
  filter: grayscale(0.3);
  transition: filter 0.3s;
}
.hero-trust-logos img:hover { filter: grayscale(0); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ---- Platform Mockup ---- */
.platform-mockup {
  width: 100%;
  max-width: 620px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.platform-mockup:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.mockup-browser-bar {
  background: #1e293b;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }
.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
}

.mockup-body {
  display: flex;
  background: #f1f5f9;
  min-height: 320px;
}

/* Mockup Sidebar */
.mockup-sidebar {
  width: 44px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0;
  gap: 0.3rem;
  flex-shrink: 0;
}
.mockup-sidebar-logo { margin-bottom: 0.5rem; }
.mockup-nav-item {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  transition: 0.2s;
  cursor: default;
}
.mockup-nav-item.active {
  background: rgba(13,148,136,0.25);
  color: #2dd4bf;
}

/* Mockup Main */
.mockup-main {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}

.mockup-welcome {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mockup-welcome-tag {
  background: rgba(13,148,136,0.4);
  font-size: 0.55rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  color: #ccfbf1;
}

/* Mockup Stats */
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.mockup-stat-card {
  background: white;
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.mockup-stat-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
}
.mockup-stat-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.mockup-stat-label {
  font-size: 0.48rem;
  color: var(--gray-500);
  line-height: 1.2;
}

/* Mockup Charts */
.mockup-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  flex: 1;
}
.mockup-chart-card {
  background: white;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mockup-chart-title {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
  width: 100%;
}
.mockup-donut { width: 100px; height: 100px; }
.mockup-bars { width: 100%; height: 80px; }
.mockup-chart-legend {
  display: flex;
  gap: 0.5rem;
  font-size: 0.48rem;
  color: var(--gray-500);
  font-weight: 600;
}
.mockup-chart-legend i { font-style: normal; }

/* Mockup AI Copilot */
.mockup-copilot {
  width: 130px;
  background: white;
  border-left: 1px solid #e2e8f0;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}
.mockup-copilot-header {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.mockup-copilot-header i { color: var(--teal); }
.mockup-copilot-msg {
  font-size: 0.45rem;
  color: var(--gray-500);
  background: #f8fafc;
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  line-height: 1.4;
}
.mockup-copilot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.mockup-copilot-chips span {
  font-size: 0.42rem;
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #bbf7d0;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-weight: 600;
}

/* Floating badges on hero */
.float-badge {
  position: absolute;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

.hero-visual .float-badge:nth-child(2) { top: 5%; right: -6%; animation-delay: 0s; }
.hero-visual .float-badge:nth-child(3) { bottom: 12%; left: -8%; animation-delay: 0.7s; }
.hero-visual .float-badge:nth-child(4) { bottom: 40%; right: -10%; animation-delay: 1.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--white);
  padding: 2.5rem 0;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ---------- Features Section ---------- */
.features {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  border-color: var(--teal);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--teal-light);
  color: var(--teal);
}

.feature-card h3 {
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ---------- Clients Section ---------- */
.clients-section {
  padding: var(--section-py) 0;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.client-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: var(--teal);
}

.client-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 2rem;
}

.client-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.client-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}

.cta-inner {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-inner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.92rem;
  margin-top: 1rem;
  line-height: 1.7;
  color: var(--gray-500);
}

.footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer ul li a {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-socials a:hover {
  background: var(--teal);
  color: var(--white);
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 9rem 0 4rem;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- About Content ---------- */
.about-content {
  padding: var(--section-py) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--gray-100) 100%);
  border-radius: 1.5rem;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.about-image img {
  max-width: 200px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.value-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 0.5rem;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ---------- Timeline ---------- */
.timeline-section {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--teal);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--teal);
}

.timeline-year {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.timeline-item p {
  font-size: 0.92rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ---------- Services ---------- */
.services-section {
  padding: var(--section-py) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.service-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 500;
}

/* ---------- Clients Detail Page ---------- */
.client-detail {
  padding: var(--section-py) 0;
}

.client-detail-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.client-detail-card:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.client-detail-icon {
  width: 100px;
  height: 100px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--teal-light), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.client-detail-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.client-location {
  font-size: 0.88rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.client-detail-info p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: var(--section-py) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 0.75rem;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-form {
  background: var(--gray-50);
  border-radius: 1rem;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---------- Map ---------- */
.map-section {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.map-placeholder {
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-badge-label { margin: 0 auto 1.25rem; }
  .hero-trust { justify-content: center; }
  .hero-visual { margin-top: 2rem; }
  .platform-mockup { transform: none; max-width: 520px; margin: 0 auto; }
  .platform-mockup:hover { transform: none; }
  .float-badge { display: none; }
  .mockup-copilot { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { display: none; }
}

@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero { padding: 8rem 0 4rem; }
  .features-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .client-detail-card { grid-template-columns: 1fr; text-align: center; }
  .client-detail-icon { margin: 0 auto; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ---------- RTL Support ---------- */
html[dir="rtl"] { direction: rtl; text-align: right; }
html[dir="rtl"] body { font-family: 'Noto Kufi Arabic', 'Inter', system-ui, sans-serif; }
html[dir="rtl"] .nav-links { direction: ltr; }
html[dir="rtl"] .nav-links a { direction: rtl; }
html[dir="rtl"] .hero-grid { direction: rtl; }
html[dir="rtl"] .platform-mockup { transform: perspective(1200px) rotateY(3deg) rotateX(2deg); }
html[dir="rtl"] .platform-mockup:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
html[dir="rtl"] .hero-visual .float-badge:nth-child(2) { right: auto; left: -6%; }
html[dir="rtl"] .hero-visual .float-badge:nth-child(3) { left: auto; right: -8%; }
html[dir="rtl"] .hero-visual .float-badge:nth-child(4) { right: auto; left: -10%; }
html[dir="rtl"] .footer-grid { direction: rtl; }
html[dir="rtl"] .btn i { transform: scaleX(-1); }
html[dir="rtl"] .timeline { padding-left: 0; padding-right: 2rem; }
html[dir="rtl"] .timeline::before { left: auto; right: 0; }
html[dir="rtl"] .timeline-item { padding-left: 0; padding-right: 2rem; }
html[dir="rtl"] .timeline-item::before { left: auto; right: -2.35rem; }
html[dir="rtl"] .client-detail-card { direction: rtl; }
html[dir="rtl"] .contact-info-card { direction: rtl; }
html[dir="rtl"] .value-item { direction: rtl; }
html[dir="rtl"] .float-badge { direction: rtl; }
html[dir="rtl"] .feature-card, html[dir="rtl"] .service-card { text-align: right; }
html[dir="rtl"] .client-location i { margin-left: 0.3rem; margin-right: 0; }

/* ---------- Language Toggle ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--gray-100);
  border-radius: 2rem;
  padding: 0.2rem;
  margin-left: 1rem;
}

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

.lang-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--gray-500);
  transition: var(--transition);
  font-family: inherit;
}

.lang-btn.active {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(13,148,136,0.3);
}

/* ---------- Bilingual Text Toggle ---------- */
html[lang="en"] .ar { display: none !important; }
html[lang="ar"] .en { display: none !important; }

/* ---------- System Group Cards ---------- */
.system-group {
  margin-bottom: 3rem;
}

.system-group-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.system-group-header:hover {
  border-color: var(--teal);
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.system-group-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.system-group-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.system-group-icon.emerald { background: linear-gradient(135deg, #10b981, #059669); }
.system-group-icon.violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.system-group-icon.rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }

.system-group-info { flex: 1; }
.system-group-info h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.system-group-info p { font-size: 0.92rem; color: var(--gray-500); margin-bottom: 0; }

.system-group-toggle {
  font-size: 1.2rem;
  color: var(--gray-500);
  transition: var(--transition);
}

.system-group.open .system-group-toggle { transform: rotate(180deg); }

.system-services {
  display: none;
  padding-left: 1rem;
}

html[dir="rtl"] .system-services { padding-left: 0; padding-right: 1rem; }

.system-group.open .system-services { display: block; }

.service-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.service-item:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-item h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.service-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-features .tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
}

/* ---------- Service Count Badge ---------- */
.service-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 2rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0 0.5rem;
}

/* --- Client logo images --- */
.client-logo-icon {
  background: #fff !important;
  padding: 0.5rem;
}
.client-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
.client-detail-icon.client-logo-icon {
  background: #fff !important;
  padding: 0.75rem;
}
.client-detail-icon.client-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .system-group-header { flex-direction: column; text-align: center; }
  .system-services { padding-left: 0; padding-right: 0; }
  .lang-toggle { margin: 0; }
}
