/* ==========================================
   Font Face Declarations
   ========================================== */

/* Nexa Font Family (English/LTR) */
@font-face {
  font-family: "Nexa-V2";
  src: url("../fonts/nexa/Nexa-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* @font-face {
    font-family: 'Nexa-V2';
    src: url('../fonts/nexa/Nexa-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
} */

@font-face {
  font-family: "Nexa-V2";
  src: url("../fonts/nexa/Nexa-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* @font-face {
    font-family: 'Nexa-V2';
    src: url('../fonts/nexa/Nexa-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
} */

@font-face {
  font-family: "Nexa-V2";
  src: url("../fonts/nexa/Nexa-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Note: Nexa-Regular.ttf is broken (contains italic glyphs), using Nexa-Book.ttf for weight 400 instead */

@font-face {
  font-family: "Nexa-V2";
  src: url("../fonts/nexa/Nexa-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* @font-face {
    font-family: 'Nexa-V2';
    src: url('../fonts/nexa/Nexa-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
} */

@font-face {
  font-family: "Nexa-V2";
  src: url("../fonts/nexa/Nexa-XBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* @font-face {
    font-family: 'Nexa-V2';
    src: url('../fonts/nexa/Nexa-XBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
} */

@font-face {
  font-family: "Nexa-V2";
  src: url("../fonts/nexa/Nexa-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* @font-face {
    font-family: 'Nexa-V2';
    src: url('../fonts/nexa/Nexa-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
} */

@font-face {
  font-family: "Nexa-V2";
  src: url("../fonts/nexa/Nexa-Heavy.ttf") format("truetype");
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}

/* @font-face {
    font-family: 'Nexa-V2';
    src: url('../fonts/nexa/Nexa-HeavyItalic.ttf') format('truetype');
    font-weight: 950;
    font-style: italic;
    font-display: swap;
} */

/* IBM Plex Sans Arabic Font Family (Arabic/RTL) */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/Ibm/IBMPlexSansArabic-Thin_0.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/Ibm/IBMPlexSansArabic-ExtraLight_0.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/Ibm/IBMPlexSansArabic-Light_0.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/Ibm/IBMPlexSansArabic-Regular_0.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/Ibm/IBMPlexSansArabic-Medium_0.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/Ibm/IBMPlexSansArabic-SemiBold_0.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/Ibm/IBMPlexSansArabic-Bold_0.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================
   CSS Reset & Base Styles
   ========================================== */

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

:root {
  /* Colors - Customize these for your brand */
  --color-primary: #ff5e27;
  --color-secondary: #64748b;
  /* Kept as is for now, maybe update if needed */
  --color-accent: #ff5e27;
  /* Using primary as accent for now */
  --color-text: #ffffff;
  --color-text-light: #a0a0a0;
  /* Light gray for muted text */
  --color-bg: #2e2e2e;
  --color-bg-light: #3e3e3e;
  /* Slightly lighter for cards/sections */
  --color-border: #404040;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3rem;
  /* 48px */
  --space-3xl: 4rem;
  /* 64px */

  /* Typography */
  --font-primary: "Nexa-V2", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Nexa-V2", -apple-system,
    BlinkMacSystemFont, sans-serif;

  /* Breakpoints (for reference) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
  font-style: normal;
}

ul {
  list-style: none;
}

/* RTL Support - Apply when HTML has lang="ar" or dir="rtl" */
html[lang="ar"],
html[dir="rtl"],
body.rtl {
  direction: rtl;
}

html[lang="ar"] body,
html[lang="ar"],
.arabic {
  font-family: var(--font-arabic);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================
   Container & Layout
   ========================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-sm {
  max-width: 640px;
}

.container-lg {
  max-width: 1400px;
}

.container-fluid {
  max-width: 100%;
}

/* ==========================================
   Flexbox Utilities
   ========================================== */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-nowrap {
  flex-wrap: nowrap;
}

.items-start {
  align-items: flex-start;
}

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

.items-end {
  align-items: flex-end;
}

.items-stretch {
  align-items: stretch;
}

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

.justify-center {
  justify-content: center;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.flex-1 {
  flex: 1;
}

.flex-auto {
  flex: auto;
}

/* ==========================================
   Grid Utilities
   ========================================== */

.grid {
  display: grid;
}

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

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

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

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

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================
   Spacing Utilities (Margin & Padding)
   ========================================== */

/* Margin All Sides */
.m-0 {
  margin: 0;
}

.m-xs {
  margin: var(--space-xs);
}

.m-sm {
  margin: var(--space-sm);
}

.m-md {
  margin: var(--space-md);
}

.m-lg {
  margin: var(--space-lg);
}

.m-xl {
  margin: var(--space-xl);
}

.m-2xl {
  margin: var(--space-2xl);
}

.m-auto {
  margin: auto;
}

/* Margin Top */
.mt-0 {
  margin-top: 0;
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

/* Margin Bottom */
.mb-0 {
  margin-bottom: 0;
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

/* Margin Inline Start (RTL-aware left) */
.ms-0 {
  margin-inline-start: 0;
}

.ms-xs {
  margin-inline-start: var(--space-xs);
}

.ms-sm {
  margin-inline-start: var(--space-sm);
}

.ms-md {
  margin-inline-start: var(--space-md);
}

.ms-lg {
  margin-inline-start: var(--space-lg);
}

.ms-xl {
  margin-inline-start: var(--space-xl);
}

.ms-auto {
  margin-inline-start: auto;
}

/* Margin Inline End (RTL-aware right) */
.me-0 {
  margin-inline-end: 0;
}

.me-xs {
  margin-inline-end: var(--space-xs);
}

.me-sm {
  margin-inline-end: var(--space-sm);
}

.me-md {
  margin-inline-end: var(--space-md);
}

.me-lg {
  margin-inline-end: var(--space-lg);
}

.me-xl {
  margin-inline-end: var(--space-xl);
}

.me-auto {
  margin-inline-end: auto;
}

/* Legacy Margin Left/Right (use ms/me for RTL support) */
.ml-0 {
  margin-left: 0;
}

.ml-sm {
  margin-left: var(--space-sm);
}

.ml-md {
  margin-left: var(--space-md);
}

.ml-lg {
  margin-left: var(--space-lg);
}

.ml-auto {
  margin-left: auto;
}

.mr-0 {
  margin-right: 0;
}

.mr-sm {
  margin-right: var(--space-sm);
}

.mr-md {
  margin-right: var(--space-md);
}

.mr-lg {
  margin-right: var(--space-lg);
}

.mr-auto {
  margin-right: auto;
}

/* Margin X & Y */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-sm {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.my-md {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.my-lg {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.my-xl {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* Padding All Sides */
.p-0 {
  padding: 0;
}

.p-xs {
  padding: var(--space-xs);
}

.p-sm {
  padding: var(--space-sm);
}

.p-md {
  padding: var(--space-md);
}

.p-lg {
  padding: var(--space-lg);
}

.p-xl {
  padding: var(--space-xl);
}

.p-2xl {
  padding: var(--space-2xl);
}

/* Padding Top */
.pt-0 {
  padding-top: 0;
}

.pt-xs {
  padding-top: var(--space-xs);
}

.pt-sm {
  padding-top: var(--space-sm);
}

.pt-md {
  padding-top: var(--space-md);
}

.pt-lg {
  padding-top: var(--space-lg);
}

.pt-xl {
  padding-top: var(--space-xl);
}

.pt-2xl {
  padding-top: var(--space-2xl);
}

/* Padding Bottom */
.pb-0 {
  padding-bottom: 0;
}

.pb-xs {
  padding-bottom: var(--space-xs);
}

.pb-sm {
  padding-bottom: var(--space-sm);
}

.pb-md {
  padding-bottom: var(--space-md);
}

.pb-lg {
  padding-bottom: var(--space-lg);
}

.pb-xl {
  padding-bottom: var(--space-xl);
}

.pb-2xl {
  padding-bottom: var(--space-2xl);
}

/* Padding Inline Start (RTL-aware) */
.ps-sm {
  padding-inline-start: var(--space-sm);
}

.ps-md {
  padding-inline-start: var(--space-md);
}

.ps-lg {
  padding-inline-start: var(--space-lg);
}

.ps-xl {
  padding-inline-start: var(--space-xl);
}

/* Padding Inline End (RTL-aware) */
.pe-sm {
  padding-inline-end: var(--space-sm);
}

.pe-md {
  padding-inline-end: var(--space-md);
}

.pe-lg {
  padding-inline-end: var(--space-lg);
}

.pe-xl {
  padding-inline-end: var(--space-xl);
}

/* Padding X & Y */
.px-sm {
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.px-md {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.px-lg {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.px-xl {
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.px-2xl {
  padding-left: var(--space-2xl);
  padding-right: var(--space-2xl);
}

.py-sm {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.py-md {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.py-lg {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.py-xl {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.py-2xl {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* ==========================================
   Typography Utilities
   ========================================== */

/* Font Sizes */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1.2;
}

/* Font Weights - Includes all Nexa weights */
.font-thin {
  font-weight: 100;
}

.font-extralight {
  font-weight: 200;
}

.font-light {
  font-weight: 300;
}

.font-book {
  font-weight: 350;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-xbold {
  font-weight: 800;
}

.font-black {
  font-weight: 900;
}

.font-heavy {
  font-weight: 950;
}

/* Text Alignment */
.text-left {
  text-align: left;
}

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

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

/* RTL-aware text alignment */
.text-start {
  text-align: start;
}

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

/* Text Transform */
.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

/* Font Families */
.font-nexa {
  font-family: var(--font-primary);
}

.font-arabic {
  font-family: var(--font-arabic);
}

/* Line Height */
.leading-tight {
  line-height: 1.25;
}

.leading-normal {
  line-height: 1.5;
}

.leading-relaxed {
  line-height: 1.75;
}

/* ==========================================
   Color Utilities
   ========================================== */

/* Text Colors */
.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

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

.text-muted {
  color: var(--color-text-light);
}

.text-white {
  color: #ffffff;
}

.text-black {
  color: #000000;
}

/* Background Colors */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-accent {
  background-color: var(--color-accent);
}

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

.bg-white {
  background-color: #ffffff;
  color: #000000;
  /* Force black text on white bg */
}

/* New bg-dark utility */
.bg-dark {
  background-color: var(--color-bg);
}

.bg-black {
  background-color: #000000;
}

/* ==========================================
   Display & Visibility
   ========================================== */

.block {
  display: block;
}

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

.inline {
  display: inline;
}

.hidden {
  display: none;
}

.invisible {
  visibility: hidden;
}

/* ==========================================
   Width & Height
   ========================================== */

.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.w-screen {
  width: 100vw;
}

.h-full {
  height: 100%;
}

.h-auto {
  height: auto;
}

.h-screen {
  height: 100vh;
}

/* ==========================================
   Position
   ========================================== */

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

/* ==========================================
   Direction Utilities (RTL/LTR)
   ========================================== */

.ltr {
  direction: ltr;
}

.rtl {
  direction: rtl;
}

/* ==========================================
   Border & Radius
   ========================================== */

.border {
  border: 1px solid var(--color-border);
}

.border-0 {
  border: 0;
}

.border-t {
  border-top: 1px solid var(--color-border);
}

.border-b {
  border-bottom: 1px solid var(--color-border);
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* ==========================================
   Shadow
   ========================================== */

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   Common Components
   ========================================== */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
  font-weight: 350;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 1.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #475569;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
}

.card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: var(--space-lg);
}

.card-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.card-body {
  padding: var(--space-md) 0;
}

.card-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* ==========================================
   Responsive Utilities
   ========================================== */

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }

  .md\:flex {
    display: flex;
  }

  .md\:block {
    display: block;
  }

  .md\:text-left {
    text-align: left;
  }

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

  .md\:text-right {
    text-align: right;
  }
}

/* ==========================================
   WordPress Specific Styles
   ========================================== */

/* Alignment Classes (WordPress uses these) */
.alignleft {
  float: left;
  margin-right: var(--space-md);
}

.alignright {
  float: right;
  margin-left: var(--space-md);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* WordPress Image Captions */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: var(--space-sm);
}

/* WordPress Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-md);
}

/* Screen Reader Text (Accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   Utility Classes
   ========================================== */

.transition {
  transition: all 0.3s ease;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.pointer {
  cursor: pointer;
}

.select-none {
  user-select: none;
}

.list-none {
  list-style-type: none;
}

/* WordPress Menu Styles - Desktop Navbar */
.navbar {
  padding-inline: 1.25rem;
  padding-block: 1.3rem;
}

.navbar .menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .menu-item {
  margin: 0;
}

.navbar .menu-item a {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.navbar .menu-item a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Active State (WordPress classes) */
.navbar .current-menu-item > a,
.navbar .current_page_item > a,
.navbar .current-menu-ancestor > a {
  color: var(--color-primary);
}

.navbar .current-menu-item > a:hover,
.navbar .current_page_item > a:hover,
.navbar .current-menu-ancestor > a:hover {
  color: white;
}

/* Dropdown Toggle Button */
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-toggle:hover {
  color: var(--color-primary);
}

.dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Project Cards */
.project-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  border-radius: 2rem;
}

.product-img {
  position: relative;
  overflow: hidden;
  height: 70%;
}

.project-card-content {
  padding: var(--space-lg);
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

/* ==========================================
   Partners Slider
   ========================================== */
.partners-slider-wrapper {
  position: relative;
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.partners-slider-wrapper:active {
  cursor: grabbing;
}

.partners-slider {
  display: flex;
  will-change: transform;
}

.partners-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
}

.partners-slide img {
  max-width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* main slider  */
.main-slider-tag {
  color: var(--color-primary);
  max-width: 160px;
  min-width: 160px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  padding: var(--space-sm) var(--space-md);
}

.main-slider-btn {
  font-size: 0.875rem;
  cursor: pointer;
}

.about-section h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.about-section a.btn {
  padding-inline: 2.5rem;
  padding-block: 0.6rem;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.partners-section {
  /* margin-bottom: 4rem; */
}

.stats-section {
  margin-block: 4rem;
}

.stats-section .stats-title {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.cta-section {
  padding-block: 4rem;
}

.cta-section .cta-section-title {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
}

.cta-section .cta-section-text {
  font-size: 1rem;
  font-weight: 350;
  max-width: 20rem;
  text-align: center;
  color: #fbfbfb;
}

.cta-section .cta-section-btn {
  border-radius: 0.75rem;
  /* More square */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-section-btn:hover {
  animation: bounce-smooth 2s infinite ease-in-out;
  box-shadow: 0 15px 30px rgba(255, 94, 39, 0.3);
  /* Glow effect */
}

@keyframes bounce-smooth {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Hero Section */
#home {
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

/* Hero Slider - Responsive Height */
#home.h-screen {
  height: 100svh;
  /* Use svh for better mobile support */
}

/* Mobile: Reduce minimum height */
@media (max-width: 767px) {
  #home {
    min-height: 500px;
    height: auto;
  }

  #home .container {
    padding-bottom: var(--space-xl);
  }
}

/* Tablet: Slightly reduced height */
@media (min-width: 768px) and (max-width: 1023px) {
  #home {
    min-height: 600px;
  }
}

/* Ensure background images cover and don't repeat */
#home [style*="background-image"],
#home .bg-cover {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

/* Footer Section */
.footer-section {
  background-color: var(--color-primary);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1.5fr 1.2fr 1fr;
    gap: var(--space-xl);
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  height: 50px;
  width: auto;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2e2e2e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.footer-links-grid {
  display: flex;
  gap: var(--space-2xl);
}

.footer-links-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-xl);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-col li {
  margin: 0;
}

.footer-links-col a {
  font-size: 0.875rem;
  color: #2e2e2e;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-weight: 600;
}

.footer-links-col a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-contact-list li {
  font-size: 0.875rem;
  color: #2e2e2e;
  display: flex;
  gap: var(--space-xs);
}

.contact-label {
  color: #2e2e2e;
  min-width: 3rem;
  font-weight: 600;
}

.footer-contact-list a {
  color: #2e2e2e;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-weight: 600;
}

.footer-contact-list a:hover {
  opacity: 0.7;
}

.footer-social-icons {
  display: flex;
  gap: var(--space-md);
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  /* background-color: rgba(46, 46, 46, 0.1); */
  color: #2e2e2e;
  transition: background-color 0.3s ease;
}

.footer-social-icon:hover {
  background-color: rgba(46, 46, 46, 0.2);
}

.footer-copyright {
  border-top: 1px solid rgba(46, 46, 46, 0.2);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-copyright p {
  font-size: 0.875rem;
  color: #2e2e2e;
  margin: 0;
}

/* Scroll to Top Button */
.scroll-top-btn {
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  padding: 0;
}

.scroll-top-btn.visible {
  display: flex;
}

/* Skip Link */
.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  padding: 1rem;
  background: var(--color-primary);
  color: white;
  border-radius: 0.5rem;
  clip: auto;
  width: auto;
  height: auto;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ==========================================
   About Page Styles
   ========================================== */

/* About Page Background Wrapper */
.about-bg-wrapper {
  position: relative;
  overflow: hidden;
}

.about-bg-image {
  position: absolute;
  inset: 0;
  background-image: url(../images/bg/about-bg-2.svg);
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

.about-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(46, 46, 46, 0.6) 0%,
    rgba(46, 46, 46, 0.85) 50%,
    rgba(46, 46, 46, 1) 100%
  );
  opacity: 0.7;
}

/* About Hero Section */
.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 180px;
  padding-bottom: var(--space-2xl);
  z-index: 1;
}

.about-hero-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.about-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.about-hero-underline {
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 0 auto var(--space-xl);
}

.about-hero-text {
  font-size: 1rem;
  font-weight: 350;
  color: #d1d5db;
  line-height: 1.8;
  text-align: center;
}

@media (min-width: 768px) {
  .about-hero-title {
    font-size: 3rem;
  }

  .about-hero-text {
    font-size: 1.125rem;
  }
}

/* Mission & Vision Section */
.mission-vision-section {
  position: relative;
  padding: var(--space-xl) 0 var(--space-3xl);
  z-index: 1;
}

.mission-vision-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  transition: transform 0.3s ease;
}

.mission-vision-card:hover {
  transform: translateY(-5px);
}

.mission-vision-card:last-child {
  margin-bottom: 0;
}

.mv-card-content {
  flex: 1;
}

.mv-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.mv-card-text {
  font-size: 1rem;
  font-weight: 350;
  color: #d1d5db;
  line-height: 1.8;
}

.mv-card-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.mv-card-icon svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .mission-vision-card {
    flex-direction: row;
    padding: var(--space-2xl);
  }

  .mv-card-icon {
    width: 120px;
    height: 120px;
  }

  .mv-card-title {
    font-size: 2rem;
  }
}

/* Values & Team Background Wrapper */
.values-team-bg-wrapper {
  position: relative;
  overflow: hidden;
}

.values-team-bg-image {
  position: absolute;
  inset: 0;
  background-image: url("../images/bg/values-team-bg.svg");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

.values-team-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(46, 46, 46, 0.6) 0%,
    rgba(46, 46, 46, 0.85) 50%,
    rgba(46, 46, 46, 1) 100%
  );
  opacity: 0.6;
}

/* Values Section */
.values-section {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
  z-index: 1;
}

.values-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.values-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Value Card - Mobile First (Horizontal) */
.value-card {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-lg);
  gap: var(--space-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border-radius: 1.25rem;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 94, 39, 0.1);
}

.value-card-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  writing-mode: horizontal-tb;
  margin: 0;
}

.value-card-title {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: left;
}

.value-card-content {
  /* Mobile: Always visible or handled gracefully */
  display: block;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
}

/* On mobile, stack them if content is present */
@media (max-width: 767px) {
  .value-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .value-card-header {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .value-card-number,
  .value-card-title {
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0;
  }
}

@media (min-width: 768px) {
  .values-grid {
    gap: var(--space-md);
    flex-wrap: nowrap;
  }

  /* Restore Vertical Layout for Tablet+ and handle Hover Expansion */
  .value-card {
    width: 100px;
    height: 380px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-lg);
    padding-block: 2rem;
    gap: 0;
    overflow: hidden;
    /* Hide content when collapsed */
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .value-card-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    transition: all 0.4s ease;
  }

  .value-card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0;
    padding-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease 0.15s, margin-top 0.3s ease, padding-top 0.3s ease;
  }

  /* Hover State */
  .value-card:hover {
    width: 400px;
    /* Expand expanded width */
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    /* Adjusted shadow */
    align-items: flex-start;
    padding-inline: var(--space-xl);
  }

  .value-card:hover .value-card-header {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    gap: var(--space-md);
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-md);
  }

  .value-card:hover .value-card-content {
    max-height: 300px;
    opacity: 1;
    margin-top: var(--space-lg);
    padding-top: 0;
    width: 100%;
  }

  .value-card-number {
    font-size: 1.25rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateX(50%);
    right: 50%;
    position: relative;
    transition: all 0.4s ease;
  }

  .value-card-title {
    font-size: 0.9rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    text-align: center;
    transition: all 0.4s ease;
    white-space: nowrap;
  }

  /* Transform text to horizontal on hover */
  .value-card:hover .value-card-number {
    writing-mode: horizontal-tb;
    transform: none;
    right: auto;
    font-size: 1.5rem;
    margin-right: 0;
  }

  .value-card:hover .value-card-title {
    writing-mode: horizontal-tb;
    transform: none;
    text-align: left;
    font-size: 1.25rem;
    white-space: normal;
  }
}

@media (min-width: 1024px) {
  .values-grid {
    gap: 3rem;
  }

  .value-card {
    width: 100px;
    height: 390px;
  }

  .value-card:hover {
    width: 450px;
  }

  .value-card-number {
    font-size: 1.5rem;
  }

  .value-card-title {
    font-size: 1.3rem;
  }

  .value-card:hover .value-card-title {
    font-size: 1.5rem;
  }
}

/* Team Section */
.team-section {
  position: relative;
  padding: var(--space-3xl) 0;
  z-index: 1;
}

.team-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
  min-height: 200px;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-card-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.team-card-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.team-card-bio {
  font-size: 1rem;
  font-weight: 350;
  /* font-book */
  color: #e0e0e0;
  line-height: 1.6;
  max-width: 90%;
}

.team-card-photo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.team-card-photo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 300px;
  /* Assuming transparent cutout images based on design */
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@media (min-width: 992px) {
  .team-card {
    flex-direction: row;
    align-items: stretch;
    /* Logical Properties for RTL Support */
    padding-block-start: 2.5rem;
    /* Top padding */
    padding-block-end: 2.5rem;
    /* Bottom padding (keeping symmetrical or as needed) */
    padding-inline-start: 3rem;
    /* Left padding (English) / Right padding (Arabic) */
    padding-inline-end: 0;
    gap: 0;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    /* Ensure image doesn't break rounded corners */
  }

  .team-card-content {
    flex: 0 0 55%;
    padding-inline-end: var(--space-xl);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
  }

  .team-card-photo {
    flex: 0 0 45%;
    height: 100%;
    position: absolute;
    /* Take out of flow to fill height */
    inset-inline-end: 2.5rem;
    /* Match vertical padding roughly */
    bottom: 0;
    top: auto;
    /* Removed top: 0 as requested */
    /* Fill full height */
    display: flex;
    align-items: flex-end;
    /* Align image to bottom */
    justify-content: flex-end;
    /* In RTL this might need explicit handling if logical properties don't cover it fully for flex children alignment relative to direction, but visual check needed. Usually flex-end follows direction. */
  }

  .team-card-photo img {
    height: 100%;
    /* Take full available height */
    width: auto;
    max-height: none;
    /* remove limits */
    object-fit: contain;
    /* standard defaults, overrides below */
    object-position: bottom right;
    transform-origin: bottom right;
    /* No margin bottom, let it sit on the edge */
    margin-right: 0;
    /* Flush to right edge? User said 'take much space' */
  }

  /* Explicit RTL Overrides for non-logical properties or specific adjustments */
  .rtl .team-card-photo img,
  [dir="rtl"] .team-card-photo img {
    object-position: bottom left;
    transform-origin: bottom left;
    margin-right: auto;
    margin-left: 0;
  }
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card-photo img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .team-section-title {
    font-size: 2rem;
  }

  .team-card {
    flex-direction: row;
    align-items: center;
    padding: var(--space-xl);
    min-height: 240px;
  }

  .team-card-photo {
    width: 200px;
    height: 220px;
    max-width: none;
    margin: 0;
  }

  .team-card-name {
    font-size: 1.5rem;
  }
}

@media (min-width: 992px) {
  .team-card {
    min-height: 270px;
  }
}

@media (min-width: 1024px) {
  .team-card-photo {
    width: 220px;
    height: 255px;
  }
}

/* ==========================================
   Services Page Styles
   Supports LTR (English) and RTL (Arabic)
   ========================================== */

/* Services Hero Section */
.services-hero {
  padding-top: 160px;
  padding-bottom: var(--space-3xl);
  background-color: var(--color-bg);
  position: relative;
}

.services-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 768px) {
  .services-hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .services-hero-title {
    font-size: 3.5rem;
  }
}

/* Services Section */
.services-section {
  padding-bottom: var(--space-3xl);
  background-color: var(--color-bg);
}

/* Services Accordion Container */
.services-accordion {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual Service Item */
.service-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.service-item:last-child {
  border-bottom: none;
}

/* Service Header (Clickable Area) */
.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.service-header:hover .service-title {
  opacity: 0.8;
}

.service-header:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Service Title */
.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  transition: opacity 0.3s ease;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .service-title {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .service-title {
    font-size: 2rem;
  }
}

/* Toggle Button */
.service-toggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-inline-start: var(--space-md);
}

.service-toggle:hover {
  border-color: var(--color-primary);
  background: rgba(255, 94, 39, 0.1);
}

.service-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.toggle-icon {
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Active State - Rotate to X */
.service-item.active .toggle-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

/* Service Content (Expandable) - Using CSS Grid for smooth animation */
.service-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-out, opacity 0.4s ease-out;
  opacity: 0;
  overflow: hidden;
  /* Required for smooth animation */
}

.service-content > .service-inner {
  overflow: hidden;
  min-height: 0;
  /* Required for grid row to collapse properly */
}

.service-item.active .service-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* Service Inner Layout */
.service-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  position: relative;
  min-height: 0;
  /* Essential for collapse animation */
  /* Required for CSS Grid height animation */
}

/* Force min-height only when active to separate layout size from collapse mechanics */
.service-item.active .service-inner {
  min-height: 200px;
}

@media (min-width: 768px) {
  .service-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
  }

  .service-item.active .service-inner {
    min-height: 280px;
  }
}

@media (min-width: 1024px) {
  .service-item.active .service-inner {
    min-height: 320px;
  }
}

/* Service Text */
.service-text {
  position: relative;
  z-index: 2;
}

.service-text p {
  font-size: 0.95rem;
  font-weight: 350;
  color: #d1d5db;
  line-height: 1.8;
  margin: 0;
  text-align: start;
}

@media (min-width: 768px) {
  .service-text p {
    font-size: 1rem;
  }
}

/* Service Image Container */
.service-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  order: -1;
  z-index: 1;
}

@media (min-width: 768px) {
  .service-image {
    /* height: 280px; removed fixed height */
    order: 0;
  }
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-item:hover .service-image img {
  transform: scale(1.05);
}

/* Image Gradient Overlay - Creates the fade effect */
.service-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* LTR: Gradient from right to left (visible on left) */
[dir="ltr"] .service-image-overlay,
html:not([dir="rtl"]) .service-image-overlay {
  background: linear-gradient(
    to left,
    rgba(46, 46, 46, 0) 0%,
    rgba(46, 46, 46, 0) 30%,
    rgba(46, 46, 46, 0.4) 50%,
    rgba(46, 46, 46, 0.8) 70%,
    rgba(46, 46, 46, 1) 100%
  );
}

/* RTL: Gradient from left to right (visible on right) */
[dir="rtl"] .service-image-overlay {
  background: linear-gradient(
    to right,
    rgba(46, 46, 46, 0) 0%,
    rgba(46, 46, 46, 0) 30%,
    rgba(46, 46, 46, 0.4) 50%,
    rgba(46, 46, 46, 0.8) 70%,
    rgba(46, 46, 46, 1) 100%
  );
}

/* Mobile: Bottom gradient */
@media (max-width: 767px) {
  [dir="ltr"] .service-image-overlay,
  html:not([dir="rtl"]) .service-image-overlay,
  [dir="rtl"] .service-image-overlay {
    background: linear-gradient(
      to bottom,
      rgba(46, 46, 46, 0) 0%,
      rgba(46, 46, 46, 0.3) 50%,
      rgba(46, 46, 46, 0.8) 80%,
      rgba(46, 46, 46, 1) 100%
    );
  }
}

/* Services RTL Specific Adjustments */
[dir="rtl"] .service-text p {
  text-align: start;
}

[dir="rtl"] .service-title {
  text-align: start;
}

[dir="rtl"] .service-toggle {
  margin-inline-start: var(--space-md);
  margin-inline-end: 0;
}

/* Services Animation Enhancements */
.service-item.active .service-text {
  animation: serviceFadeInUp 0.4s ease-out 0.1s both;
}

.service-item.active .service-image {
  animation: serviceFadeInUp 0.4s ease-out 0.2s both;
}

@keyframes serviceFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .service-content {
    transition: none;
  }

  .toggle-icon {
    transition: none;
  }

  .service-image img {
    /* transition: none; */
  }

  .service-item.active .service-text,
  .service-item.active .service-image {
    /* animation: none; */
  }
}

/* Services Focus States */
.service-header:focus {
  outline: none;
}

.service-header:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Services Hover Effects */
.service-item:hover .service-toggle {
  border-color: rgba(255, 255, 255, 0.4);
}

.service-item.active:hover .service-toggle {
  border-color: var(--color-primary);
}

/* Services Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-hero {
    padding-top: 140px;
  }

  .service-header {
    padding: var(--space-md) 0;
  }

  .service-inner {
    gap: var(--space-lg);
  }
}

/* Services Large Desktop */
@media (min-width: 1280px) {
  .services-accordion {
    max-width: 1100px;
  }

  .service-header {
    padding: var(--space-xl) 0;
  }

  .service-title {
    font-size: 2.25rem;
  }
}

/* Services Print Styles */
@media print {
  .service-toggle {
    display: none;
  }

  .service-content {
    max-height: none !important;
    opacity: 1 !important;
  }

  .service-image-overlay {
    display: none;
  }
}

/* ==========================================
   Projects Page Styles
   Supports LTR (English) and RTL (Arabic)
   ========================================== */

/* Projects Hero Section */
.projects-hero {
  padding-top: 160px;
  padding-bottom: var(--space-xl);
  background-color: var(--color-bg);
  text-align: center;
}

.projects-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .projects-hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .projects-hero-title {
    font-size: 3.5rem;
  }
}

/* Projects Video Section */
.projects-video-section {
  padding-bottom: var(--space-2xl);
  background-color: var(--color-bg);
}

.projects-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 16 / 9;
}

.projects-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projects-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video Controls Overlay */
.video-controls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-lg);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.5) 100%
  );
  opacity: 1;
  transition: opacity 0.3s ease;
}

.projects-video-wrapper:hover .video-controls {
  opacity: 1;
}

/* Video Controls Top (Volume) */
.video-controls-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Video Controls Center (Play/Pause) */
.video-controls-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
}

.video-control-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.video-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.play-btn {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.rewind-btn,
.forward-btn {
  width: 48px;
  height: 48px;
}

/* Video Controls Bottom (Progress Bar) */
.video-controls-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.video-time {
  font-size: 0.875rem;
  color: #fff;
  min-width: 40px;
  font-variant-numeric: tabular-nums;
}

.progress-bar-wrapper {
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.progress-filled {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

/* RTL Support for Progress Bar */
html[dir="rtl"] .progress-filled {
  left: auto;
  right: 0;
}

html[dir="rtl"] .progress-handle {
  left: auto;
  right: 0%;
  transform: translate(50%, -50%);
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.progress-bar-wrapper:hover .progress-handle {
  opacity: 1;
}

/* Hidden class for video icons */
.video-controls .hidden {
  display: none !important;
}

/* Projects Filter Section */
.projects-section {
  padding: var(--space-xl) 0 var(--space-3xl);
  background-color: var(--color-bg);
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  /* Glass Effect (Same as .glass-panel) */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.001);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 1px 1px 11px 0px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);

  border-radius: 2rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: inherit;
}

.filter-btn:hover {
  background: rgba(255, 94, 39, 0.15);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  /* background: rgba(255, 94, 39, 0.2); */
  /* border-color: var(--color-primary); */
  color: var(--color-primary);
  position: relative;
}

/* .filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
} */

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Project Card Animation for Filtering */
.project-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.hidden {
  display: none;
}

.project-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

/* Projects Pagination */
.projects-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.pagination-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Projects Page Responsive */
@media (max-width: 767px) {
  .projects-hero {
    padding-top: 140px;
  }

  .projects-hero-title {
    font-size: 2rem;
  }

  .video-controls-center {
    gap: var(--space-lg);
  }

  .play-btn {
    width: 56px;
    height: 56px;
  }

  .rewind-btn,
  .forward-btn {
    width: 40px;
    height: 40px;
  }

  .volume-slider {
    width: 60px;
  }

  .projects-filters {
    gap: var(--space-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-sm);
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .projects-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
}

/* Projects Page RTL Support */
/* Note: Pagination arrows are manually swapped in Arabic HTML (projects-ar.html)
   so no CSS transform needed. If using same HTML for both languages,
   uncomment below to flip arrows via CSS instead:
   html[dir="rtl"] .projects-pagination .pagination-prev svg,
   html[dir="rtl"] .projects-pagination .pagination-next svg {
       transform: scaleX(-1);
   }
*/

/* ==========================================
   Project Details Page Styles
   ========================================== */

/* Project Details Hero Section */
.project-details-hero {
  background-color: var(--color-bg);
}

.project-details-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .project-details-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .project-details-title {
    font-size: 3.5rem;
  }
}

/* Project Carousel Wrapper */
.project-carousel-wrapper {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .project-carousel-wrapper {
    height: 60vh;
    max-height: 600px;
  }
}

@media (min-width: 1024px) {
  .project-carousel-wrapper {
    height: 70vh;
    max-height: 670px;
  }
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.carousel-nav-btn:hover {
  background: rgba(255, 94, 39, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .carousel-nav-btn {
    width: 56px;
    height: 56px;
  }
}

/* Carousel Dot Indicators */
.carousel-dots {
  pointer-events: none;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--color-primary);
  width: 12px;
  height: 12px;
}

/* RTL Support for Carousel */
html[dir="rtl"] .carousel-nav-btn svg {
  transform: scaleX(-1);
}

/* RTL Support for Hero Slider */
html[dir="rtl"] #slider-prev svg,
html[dir="rtl"] #slider-next svg {
  transform: scaleX(-1);
}

/* ==========================================
   Project Info Section
   ========================================== */

.project-info-section {
  position: relative;
  padding-bottom: var(--space-3xl);
  margin-top: 1rem;
}

.project-description p {
  color: #d1d5db;
}

/* Project Info Grid - matches stats-section pattern */
.project-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Project Info Card */
.project-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* text-align: center; */
  padding: var(--space-lg);
  position: relative;
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-info-card:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-5px);
}

.project-info-card:hover .project-info-icon img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 94, 39, 0.4));
}

/* Vertical divider between cards on desktop */
@media (min-width: 1024px) {
  .project-info-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    /* background-color: rgba(255, 255, 255, 0.2); */
  }

  /* RTL support */
  html[dir="rtl"] .project-info-card:not(:last-child)::after {
    right: auto;
    left: 0;
  }
}

.project-info-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: capitalize;
  letter-spacing: 0.05em;
  transition: color 0.4s ease;
}

.project-info-card:hover .project-info-label {
  color: var(--color-primary);
}

.project-info-value {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.4s ease;
}

/* Optional: Make value white or keep as is. User only mentioned title. */

@media (min-width: 768px) {
  .project-info-value {
    font-size: 1.125rem;
  }
}

.project-info-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-info-icon svg,
.project-info-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.4s ease;
}

.project-info-icon svg path {
  transition: fill 0.4s ease;
}

.project-info-card:hover .project-info-icon svg,
.project-info-card:hover .project-info-icon img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(255, 94, 39, 0.4));
}

.project-info-card:hover .project-info-icon svg path {
  fill: var(--color-primary);
}

/* ==========================================
   Process Section (Video Player)
   ========================================== */

.process-section {
  position: relative;
  padding-bottom: var(--space-3xl);
}

.process-section-title {
  font-size: 2rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .process-section-title {
    font-size: 2.5rem;
  }
}

/* Process Video Wrapper */
.process-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 16 / 9;
}

.process-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Process Video Controls */
.process-video-controls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-lg);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.5) 100%
  );
  opacity: 1;
  transition: opacity 0.3s ease;
}

.process-video-wrapper:hover .process-video-controls {
  opacity: 1;
}

/* Process Play Button - Glass Effect */
.process-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.process-play-btn:hover {
  background: rgba(255, 94, 39, 0.3);
  border-color: var(--color-primary);
}

@media (min-width: 768px) {
  .process-play-btn {
    width: 80px;
    height: 80px;
  }
}

/* Process Fullscreen Button - Glass Effect */
.process-fullscreen-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-inline-start: var(--space-md);
}

.process-fullscreen-btn:hover {
  background: rgba(255, 94, 39, 0.3);
  border-color: var(--color-primary);
}

/* Video Controls Bottom Bar */
.process-video-controls .video-controls-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.process-video-controls .video-time {
  font-size: 0.875rem;
  color: #fff;
  min-width: 40px;
}

.process-video-controls .progress-bar-wrapper {
  flex: 1;
  cursor: pointer;
  padding: var(--space-sm) 0;
}

.process-video-controls .progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.process-video-controls .progress-filled {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.process-video-controls .progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.process-video-controls .progress-bar-wrapper:hover .progress-handle {
  opacity: 1;
}

/* RTL Support for Progress Bar */
html[dir="rtl"] .process-video-controls .progress-filled {
  left: auto;
  right: 0;
}

html[dir="rtl"] .process-video-controls .progress-handle {
  left: auto;
  right: 0%;
  transform: translate(50%, -50%);
}

/* Project Details Page Responsive */
@media (max-width: 767px) {
  .project-details-hero {
    padding-top: 0;
  }

  .process-video-controls {
    padding: var(--space-md);
  }

  .process-video-controls .video-controls-bottom {
    gap: var(--space-sm);
  }

  .process-video-controls .video-time {
    font-size: 0.75rem;
    min-width: 32px;
  }
}

/* ==========================================
   Project Details Page
   ========================================== */

/* Hero Section */
.project-details-hero {
  /* padding-bottom: var(--space-3xl); */
}

.project-details-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  background: linear-gradient(to right, #ff5e27, #ff8e64);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.project-carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.project-carousel-container {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-carousel-slide {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  /* Ensure each slide takes full width */
}

.project-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.carousel-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Info Cards */
.project-info-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Faint border */
  border-radius: 16px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  transition: transform 0.3s ease;
}

.project-info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.project-info-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-xs);
}

.project-info-icon img,
.project-info-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  /* Ensure icons are white */
}

.project-info-label {
  font-size: 1rem;
  color: #9ca3af;
  font-weight: 600;
}

.project-info-value {
  font-size: 1.125rem;
  color: #ffffff;
  font-weight: 500;
}

/* Process Video */
.process-section-title {
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.process-video-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: #000;
}

.process-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* YouTube Video Embed */
.youtube-video-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: #000;
}

.youtube-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Fallback for non-YouTube videos */
.video-fallback-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.video-fallback-poster {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transition: transform 0.3s ease;
}

.video-fallback-poster:hover {
  transform: scale(1.02);
}

.video-fallback-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.video-fallback-play {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-fallback-poster:hover .video-fallback-play {
  transform: scale(1.1);
  background: #fff;
  color: var(--color-primary);
}

.video-fallback-play svg {
  margin-left: 4px;
}

.video-fallback-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
}

/* Custom Video Controls Overlay */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-video-wrapper:hover .video-overlay,
.process-video-wrapper.paused .video-overlay {
  opacity: 1;
}

/* Video Top Controls (Volume) */
.video-top-controls {
  display: flex;
  justify-content: center;
  width: 100%;
}

.volume-pill {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

/* Video Center Controls (Play/Skip) */
.video-center-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.control-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn-circle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.control-btn-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
}

.control-btn-large svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Video Bottom Controls (Timeline) */
.video-bottom-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
}

.video-time-text {
  font-family: monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  min-width: 45px;
}

.video-progress-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* For rounded corners, but handle needs to stick out? No, sleek design usually internal */
}

/* Progress bar styling to match design (sleek white line) */
.video-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: white;
  border-radius: 3px;
}

/* RTL Adjustments */
html[dir="rtl"] .video-progress-bar {
  left: auto;
  right: 0;
}

/* ==========================================
   Contact Us Page Styles
   ========================================== */

/* Main Section Padding */
.contact-section {
  padding-top: 180px;
  /* Space for fixed header */
  padding-bottom: var(--space-3xl);
}

.contact-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* Contact Form Card */
.contact-form-card {
  background: rgba(30, 30, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: var(--space-2xl);
  max-width: 900px;
  /* Approximate width from design */
  margin: 0 auto var(--space-2xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-card-header {
  margin-bottom: var(--space-xl);
}

.contact-card-title {
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.contact-card-subtitle {
  font-size: 1.125rem;
  color: #cccccc;
  font-weight: 300;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: flex;
  gap: var(--space-lg);
}

.form-group {
  flex: 1;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  /* Slightly lighter than card bg */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  /* Slightly rounded corners */
  padding: 16px 20px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: #666;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: #ff7a4d;
  /* Lighter orange */
  transform: translateY(-2px);
}

/* Location Cards */
.location-cards-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.location-card {
  background: rgba(30, 30, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  /* Stack on mobile */
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .location-card {
    flex-direction: row;
    align-items: stretch;
    padding: var(--space-md);
    gap: 0;
  }
}

.location-map {
  flex: 1 1 55%;
  border-radius: 16px;
  overflow: hidden;
  height: 180px;
  position: relative;
}

@media (min-width: 768px) {
  .location-map {
    height: 160px;
  }
}

.location-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Map specific styling updates (overlay buttons matching screenshot) */
.map-overlay-btn {
  position: absolute;
  background: white;
  color: #333;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.map-btn-view {
  top: 10px;
  left: 10px;
}

.map-zoom-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-btn-zoom {
  width: 30px;
  height: 30px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  margin-left: 8px;
}

@media (min-width: 768px) {
  .location-info {
    flex: 0 0 45%;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-sm) var(--space-lg);
    justify-content: center;
  }
}

.location-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--space-2xs);
}

.location-title span {
  color: white;
  font-weight: 400;
}

.location-address {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: var(--space-xs);
}

.location-contact-item {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-xs);
  text-decoration: none;
}

.location-email {
  font-size: 1rem;
  color: var(--color-primary);
  text-decoration: none;
}

.location-contact-label {
  color: var(--color-primary);
}

.location-contact-value {
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .contact-title {
    font-size: 2rem;
  }

  .location-title {
    font-size: 1.25rem;
  }

  .location-contact-item {
    font-size: 1.1rem;
  }

  .location-email {
    font-size: 0.9rem;
  }
}

/* RTL support for location card separator */
html[dir="rtl"] .location-info {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================
   Dropdown Menu
   ========================================== */
.menu-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--space-sm);
  padding: var(--space-sm);
  min-width: 140px;
  display: none;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 100;
  margin-top: var(--space-sm);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Invisible bridge to prevent menu from closing when moving cursor over the gap */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: calc(var(--space-sm) * -1);
  left: 0;
  width: 100%;
  height: var(--space-sm);
  background: transparent;
}

.menu-item-dropdown:hover .dropdown-menu,
.menu-item-dropdown.active .dropdown-menu {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.dropdown-menu li a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  white-space: nowrap;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-primary);
  text-decoration: none;
}

/* ==========================================
   RTL (Right-to-Left) Support
   Arabic language specific styles
   ========================================== */

/* Base RTL direction */
html[dir="rtl"],
html[lang="ar"],
body.rtl,
body.lang-ar {
  direction: rtl;
  text-align: right;
}

/* RTL Font Family */
html[dir="rtl"] body,
html[lang="ar"] body,
body.lang-ar {
  font-family: var(--font-arabic);
}

/* RTL Flexbox direction adjustments */
html[dir="rtl"] .flex-row,
body.lang-ar .flex-row {
  flex-direction: row-reverse;
}

html[dir="rtl"] .flex-row-reverse,
body.lang-ar .flex-row-reverse {
  flex-direction: row;
}

/* Keep some elements LTR in RTL context */
html[dir="rtl"] .ltr-always,
body.lang-ar .ltr-always {
  direction: ltr;
  text-align: left;
}

/* RTL margin/padding adjustments */
html[dir="rtl"] .ms-auto,
body.lang-ar .ms-auto {
  margin-inline-start: auto;
}

html[dir="rtl"] .me-auto,
body.lang-ar .me-auto {
  margin-inline-end: auto;
}

/* RTL Header/Navigation */
/* RTL Header/Navigation - Removed row-reverse as direction:rtl handles this natively */
/* html[dir="rtl"] .navbar,
body.lang-ar .navbar {
    flex-direction: row; 
} */

/* html[dir="rtl"] .navbar .menu,
body.lang-ar .navbar .menu {
    flex-direction: row;
} */

/* RTL Text alignment utilities */
html[dir="rtl"] .text-left,
body.lang-ar .text-left {
  text-align: right;
}

html[dir="rtl"] .text-right,
body.lang-ar .text-right {
  text-align: left;
}

/* RTL Float utilities */
html[dir="rtl"] .float-left,
body.lang-ar .float-left {
  float: right;
}

html[dir="rtl"] .float-right,
body.lang-ar .float-right {
  float: left;
}

/* RTL Hero Section */
html[dir="rtl"] .hero-content,
body.lang-ar .hero-content {
  text-align: right;
}

/* RTL Footer */
html[dir="rtl"] .footer,
body.lang-ar .footer {
  text-align: right;
}

html[dir="rtl"] .footer-grid,
body.lang-ar .footer-grid {
  direction: rtl;
}

/* RTL Contact Form */
html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea,
body.lang-ar .form-group input,
body.lang-ar .form-group textarea {
  text-align: right;
}

/* RTL Accordion */
html[dir="rtl"] .accordion-header,
body.lang-ar .accordion-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .accordion-header svg,
body.lang-ar .accordion-header svg {
  margin-left: 0;
  margin-right: auto;
}

/* RTL Project Cards */
html[dir="rtl"] .project-card-content,
body.lang-ar .project-card-content {
  text-align: right;
}

/* RTL Service Items */
html[dir="rtl"] .service-item,
body.lang-ar .service-item {
  text-align: right;
}

/* RTL Team Cards */
html[dir="rtl"] .team-card,
body.lang-ar .team-card {
  text-align: right;
}

/* RTL Stats Section */
html[dir="rtl"] .stats-grid,
body.lang-ar .stats-grid {
  direction: rtl;
}

/* RTL Buttons with icons */
html[dir="rtl"] .btn svg,
body.lang-ar .btn svg {
  margin-left: 0;
  margin-right: var(--space-xs);
}

html[dir="rtl"] .btn-icon-right svg,
body.lang-ar .btn-icon-right svg {
  margin-right: 0;
  margin-left: var(--space-xs);
}

/* RTL Breadcrumbs */
html[dir="rtl"] .breadcrumb,
body.lang-ar .breadcrumb {
  flex-direction: row-reverse;
}

/* RTL Lists */
html[dir="rtl"] ul,
html[dir="rtl"] ol,
body.lang-ar ul,
body.lang-ar ol {
  padding-right: var(--space-md);
  padding-left: 0;
}

/* RTL Mobile Menu */
html[dir="rtl"] [data-mobile-menu],
body.lang-ar [data-mobile-menu] {
  text-align: right;
}

/* RTL Language Switcher */
html[dir="rtl"] .language-switcher-simple,
body.lang-ar .language-switcher-simple {
  flex-direction: row-reverse;
}

/* RTL Scroll to Top - keep on left in RTL */
html[dir="rtl"] .scroll-to-top,
body.lang-ar .scroll-to-top {
  right: auto;
  left: var(--space-lg);
}

/* RTL Partners Slider */
html[dir="rtl"] .partners-slider,
body.lang-ar .partners-slider {
  direction: rtl;
}

/* RTL About Section */
html[dir="rtl"] .about-content,
body.lang-ar .about-content {
  text-align: right;
}

/* Prevent RTL for specific elements that should stay LTR */
html[dir="rtl"] .phone-number,
html[dir="rtl"] .email-address,
html[dir="rtl"] code,
html[dir="rtl"] pre,
body.lang-ar .phone-number,
body.lang-ar .email-address,
body.lang-ar code,
body.lang-ar pre {
  direction: ltr;
  unicode-bidi: embed;
}

.curser-pointer {
  cursor: pointer;
}
