/* =========================
   BASE — variables, reset, typography, layout
   Loaded by every page / before all section stylesheets.
========================= */

:root {
  --navy: #0F172A;
  --blue: #2563EB;
  --teal: #06B6D4;
  --purple: #8B5CF6;
  --white: #FFFFFF;
  --gray: #64748B;
  --bg: #F8FAFC;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, var(--blue), var(--teal), var(--purple));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: 'Cairo', 'Montserrat', sans-serif;;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.required { color: #ef4444 !important; }

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Global section sizing */
.about, .industries-v2, .section-solutions, .contact {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.about > .container,
.industries-v2 > .container,
.section-solutions > .container,
.contact > .container {
  width: 100%;
}

/* Shared gradient text utility */
.text-gradient {
  background: var(--blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shared title underline */
.title-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #5b6ef5 0%, #a78bfa 100%);
  margin: 16px auto 0;
  border-radius: 10px;
}

/* Section header centred variant */
.section-header-centered {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtext {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================
   RTL BASE
========================= */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] body {
  font-family: 'Cairo', 'Montserrat', sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: 'Cairo', 'Montserrat', sans-serif;
  font-size: 24px;
  letter-spacing: 0;
}

[dir="rtl"] * {
  font-family: 'Cairo', 'Montserrat', sans-serif;
}

/* =========================
   RESPONSIVE — base
========================= */
@media (max-width: 992px) {
  .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .grid-half-half { grid-template-columns: 1fr; gap: 3rem; }
  .about-item { text-align: left; }
  .inner-border-left { border-left: none; border-top: 3px solid var(--teal); padding-left: 0; padding-top: 20px; }
  .interactive-controls { justify-content: center; }
  .info-card { justify-content: center; text-align: left; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-title, .industries-v2 .section-header-centered h2, .main-heading { font-size: 32px; }
  .about-item { flex-direction: column; align-items: center; text-align: center; }
  .interactive-controls { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
  .section-title, .industries-v2 .section-header-centered h2 { font-size: 28px; }
}
/* =========================
   RTL — Font Awesome Icon Fix
   Prevents empty boxes when direction: rtl is set on a parent.
   Add this after all your other RTL rules.
========================= */

[dir="rtl"] i[class*="fa-"],
[dir="rtl"] i[class*="fas"],
[dir="rtl"] i[class*="far"],
[dir="rtl"] i[class*="fab"],
[dir="rtl"] i[class*="fal"],
[dir="rtl"] i[class*="fad"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}