/* ============================================
   Ahmed Mostafa — Real Estate Decision Partner
   Design System V2 (Dynamic & Lively)
   Executive × Modern × Vibrant
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Custom Properties --- */
:root {
  /* Color Palette - Bolder and more contrasted */
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --black: #0F172A;
  --black-soft: #1E293B;
  --burgundy: #8B2635; /* Slightly brighter burgundy */
  --burgundy-hover: #721C28;
  --burgundy-light: rgba(139, 38, 53, 0.08);
  --burgundy-gradient: linear-gradient(135deg, #8B2635 0%, #631823 100%);
  --beige: #F3EFE9;
  --beige-dark: #E6DFD3;
  --gray: #64748B;
  --gray-light: #94A3B8;
  --gray-muted: #CBD5E1;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  /* Typography */
  --font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Segoe UI', sans-serif;

  /* Scale */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 1.75rem);
  --text-3xl: clamp(1.75rem, 1.5rem + 1.5vw, 2.25rem);
  --text-4xl: clamp(2rem, 1.75rem + 2vw, 2.75rem);
  --text-5xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.5rem, 2rem + 4vw, 4.5rem);

  /* Spacing */
  --section-py: clamp(4rem, 3rem + 6vw, 7rem);
  --section-py-lg: clamp(6rem, 4rem + 7vw, 9rem);
  --gap-sm: clamp(0.75rem, 0.5rem + 1vw, 1rem);
  --gap-md: clamp(1rem, 0.75rem + 1.25vw, 1.5rem);
  --gap-lg: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  --gap-xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --gap-2xl: clamp(3rem, 2rem + 5vw, 5rem);

  /* Container */
  --container-max: 1200px;
  --container-narrow: 840px;
  --container-px: clamp(1.5rem, 1rem + 1.5vw, 3rem);

  /* Animation */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --duration: 600ms;
  --duration-fast: 300ms;

  /* Shadows - More pronounced for V2 */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 25px 35px -5px rgba(139, 38, 53, 0.12), 0 15px 15px -5px rgba(139, 38, 53, 0.05);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-ar);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ar);
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  letter-spacing: -0.01em;
}

p {
  color: var(--gray);
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

button {
  font-family: var(--font-ar);
  border: none;
  cursor: pointer;
  background: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}

.section--beige {
  background: var(--beige);
}

.section--burgundy {
  background: var(--burgundy-gradient);
  color: var(--white);
}

.section--burgundy p, .section--burgundy h2, .section--burgundy .section-desc {
  color: var(--white);
}

.section--burgundy .section-label {
  color: var(--white);
  opacity: 0.8;
}

.section--burgundy .section-label::before {
  background: var(--white);
}

/* --- Section Header --- */
.section-header {
  margin-bottom: var(--gap-2xl);
  position: relative;
  z-index: 2;
}

.section-header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-label {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: var(--gap-md);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  direction: ltr;
  background: var(--burgundy-light);
  padding: 0.5rem 1rem;
  border-radius: 100px;
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--gap-md);
  max-width: 700px;
}

.section-desc {
  font-size: var(--text-xl);
  color: var(--gray);
  max-width: 680px;
  line-height: 1.8;
}

.section-subheader {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--gap-xl);
  margin-top: var(--gap-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: 100px;
  transition: all var(--duration-fast) var(--ease-spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform var(--duration-fast) var(--ease-smooth);
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn--primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

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

.btn--outline:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
  background: var(--burgundy-light);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--burgundy);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

/* ============================================
   NAVIGATION (Glassmorphism)
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.nav.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  flex-direction: column;
}

.nav__name {
  font-family: var(--font-en);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--black);
  line-height: 1.1;
  direction: ltr;
}

.nav__title {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  direction: ltr;
  margin-top: 0.2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--white);
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.nav.scrolled .nav__links {
  background: rgba(255,255,255,0.6);
  box-shadow: none;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray);
  transition: color var(--duration-fast) var(--ease-smooth);
  position: relative;
}

.nav__link:hover {
  color: var(--burgundy);
}

.nav__cta {
  padding: 0.75rem 1.75rem;
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
}

.nav__mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-spring);
}

/* ============================================
   HERO SECTION (Vibrant & Layered)
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: var(--section-py);
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(139,38,53,0.05) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(230,223,211,0.5) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-2xl);
  align-items: center;
}

.hero__text-block {
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-ar);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--burgundy);
  background: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--gap-lg);
  border: 1px solid var(--border-light);
}

.hero__headline {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: var(--gap-md);
}

.hero__subheadline {
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray);
  margin-bottom: var(--gap-xl);
}

.hero__text {
  font-size: var(--text-lg);
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: var(--gap-xl);
  
  padding-right: var(--gap-md);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  padding: var(--gap-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.5);
  transform: rotate(0);
  transition: transform var(--duration) var(--ease-spring);
}

.hero__card:hover {
  transform: rotate(-2deg) translateY(-10px);
}

.hero__card-title {
  font-family: var(--font-en);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
  direction: ltr;
}

.hero__card-text {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

/* Hero Dark Variant */
.hero--dark {
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.4)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero--dark .hero__headline { color: var(--white); }
.hero--dark .hero__subheadline { color: rgba(255,255,255,0.9); }
.hero--dark .hero__text { color: rgba(255,255,255,0.7); border-right-color: var(--burgundy); }
.hero--dark .hero__eyebrow { background: rgba(255,255,255,0.1); color: var(--white); border: none; backdrop-filter: blur(10px); }
.hero--dark .hero__card { background: rgba(15, 23, 42, 0.6); border-color: rgba(255,255,255,0.1); }
.hero--dark .hero__card-text { color: var(--white); }

.hero__tagline {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--gap-lg);
  opacity: 0.9;
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn--outline-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Nav on dark hero */
.nav:not(.scrolled) .nav__name { color: var(--white); }
.nav:not(.scrolled) .nav__title { color: rgba(255,255,255,0.7); }
.nav:not(.scrolled) .nav__link { color: rgba(255,255,255,0.8); }
.nav:not(.scrolled) .nav__links { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.1); backdrop-filter: blur(10px); }

/* ============================================
   SERVICES SECTION (Dynamic Cards)
   ============================================ */
.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-lg);
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius-xl);
  padding: var(--gap-lg);
  position: relative;
  transition: all var(--duration-fast) var(--ease-spring);
  border: 1px solid transparent;
  z-index: 1;
}

.service-card:nth-child(even) {
  transform: translateY(40px);
}

.service-card:hover {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  z-index: 2;
}

.service-card:nth-child(even):hover {
  transform: translateY(30px);
}

.service-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--gap-lg);
}

.service-card__icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--burgundy);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.service-card:hover .service-card__icon-wrap {
  background: var(--burgundy);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}

.service-card__icon {
  width: 32px;
  height: 32px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.service-card__number {
  font-family: var(--font-en);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.service-card:hover .service-card__number {
  color: var(--burgundy-light);
}

.service-card__title-en {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  direction: ltr;
  text-align: right;
}

.service-card__title-ar {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--gap-sm);
}

.service-card__subtitle {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--black-soft);
  margin-bottom: var(--gap-md);
}

.service-card__desc {
  font-size: var(--text-base);
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: var(--gap-lg);
}

.service-card__details {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 400ms var(--ease-smooth);
}

.service-card__details.open {
  max-height: 1000px;
  padding: var(--gap-lg);
  opacity: 1;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  border: 1px solid var(--border-light);
}

.service-card__deliverables li {
  font-size: var(--text-sm);
  color: var(--black-soft);
  font-weight: 500;
  padding: 0.5rem 0;
  padding-right: 1.5rem;
  position: relative;
  border-bottom: 1px dashed var(--border-light);
}

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

.service-card__deliverables li::before {
  content: '→';
  position: absolute;
  right: 0;
  top: 0.5rem;
  color: var(--burgundy);
  font-weight: bold;
}

.service-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--burgundy);
  padding: 0.75rem 1.5rem;
  background: var(--burgundy-light);
  border-radius: 100px;
  transition: all var(--duration-fast) var(--ease-spring);
}

.service-card__toggle:hover {
  background: var(--burgundy);
  color: var(--white);
}

.service-card__toggle-icon {
  transition: transform var(--duration-fast) var(--ease-spring);
}

.service-card__toggle.active .service-card__toggle-icon {
  transform: rotate(180deg);
}

.service-card__goal {
  margin-top: var(--gap-lg);
  padding: var(--gap-lg);
  background: var(--burgundy-light);
  border-radius: var(--radius);
  border-right: 4px solid var(--burgundy);
}

.service-card__goal-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.service-card__goal-text {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--black);
  line-height: 1.7;
  font-style: italic;
}

/* ============================================
   METHODOLOGY SECTION (Interactive Flow)
   ============================================ */
.methodology {
  background: radial-gradient(circle at 100% 0%, #1a0f12 0%, #000000 50%, #0a0a0a 100%);
  color: var(--white);
  overflow: hidden;
}

.methodology .section-title, 
.methodology .section-desc {
  color: var(--white);
}

.methodology__content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--gap-2xl);
  align-items: center;
}

.methodology__highlight {
  background: linear-gradient(120deg, #ffffff 0%, #ecd599 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-right: none; /* removed because text-fill transparent hides border color too sometimes */
  border-left: 4px solid var(--burgundy); /* add border on the other side? No let's just use box-shadow on wrap */
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  padding-right: var(--gap-lg);
  border-right: 4px solid var(--burgundy);
  margin-bottom: var(--gap-xl);
}

.methodology__flow {
  position: relative;
  padding-right: 2rem;
}

.methodology__flow::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--burgundy) 0%, rgba(255,255,255,0.1) 40%, transparent 100%);
}

.methodology__step {
  display: flex;
  gap: var(--gap-xl);
  margin-bottom: var(--gap-xl);
  position: relative;
  padding-bottom: 3rem;
}

.methodology__step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.methodology__step-dot {
  box-shadow: 0 0 15px rgba(144,28,48,0.4);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  position: absolute;
  right: -2.5rem;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--burgundy);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  border: 4px solid var(--black);
  z-index: 2;
  transition: all var(--duration-fast) var(--ease-spring);
}

.methodology__step:hover .methodology__step-dot {
  background: var(--burgundy);
  border-color: var(--burgundy);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(139, 38, 53, 0.5);
}

.methodology__step-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: var(--gap-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
  flex: 1;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.methodology__step:hover .methodology__step-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.03) 100%);
  border-color: rgba(144, 28, 48, 0.4);
  box-shadow: 0 10px 40px rgba(144, 28, 48, 0.15);
  transform: translateX(-10px);
}

.methodology__step-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.methodology__step-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

/* ============================================
   STRATEGIC PERSPECTIVE
   ============================================ */
.perspective {
  background: var(--off-white);
}

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

@media(max-width: 1024px){
  .perspective__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media(max-width: 768px){
  .perspective__grid {
    grid-template-columns: 1fr;
  }
}

.perspective__subheader {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--gap-xl);
  text-align: center;
}

.perspective__item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--duration-fast) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.perspective__item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.perspective__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.perspective__item:hover::before {
  transform: scaleX(1);
}

.perspective__item-icon {
  width: 48px;
  height: 48px;
  background: var(--burgundy-light);
  color: var(--burgundy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-lg);
  transition: transform var(--duration-fast) var(--ease-spring);
}

.perspective__item:hover .perspective__item-icon {
  transform: scale(1.1) rotate(5deg);
}

.perspective__item-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.perspective__item-text {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

.perspective__mission {
  margin-top: var(--gap-2xl);
  background: var(--burgundy);
  border-radius: var(--radius-xl);
  padding: var(--gap-2xl);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-2xl);
  position: relative;
  overflow: hidden;
}

.perspective__mission::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
}

.perspective__mission-block {
  position: relative;
  z-index: 2;
}

.perspective__mission-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--gap-sm);
}

.perspective__mission-text {
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.7;
}

/* ============================================
   IMPACT SECTION
   ============================================ */
.impact {
  background: var(--white);
}

.impact__metrics {
  display: flex;
  gap: var(--gap-md);
  margin-bottom: var(--gap-2xl);
}

.impact__metric {
  flex: 1 1 0;
  min-width: 0;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg) var(--gap-sm);
  text-align: center;
  transition: all var(--duration-fast) var(--ease-spring);
}

.impact__metric:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.impact__metric-icon {
  width: 40px;
  height: 40px;
  color: var(--burgundy);
  margin: 0 auto var(--gap-md);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.impact__metric:hover .impact__metric-icon {
  color: var(--white);
}

.impact__metric-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.impact__metric-text {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.4;
}

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

.impact__case {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--gap-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact__case::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--burgundy), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.impact__case:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
  border-color: transparent;
}

.impact__case:hover::after {
  opacity: 1;
}

.impact__case-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--gap-sm);
}

.impact__case-text {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
}

.impact__philosophy {
  text-align: center;
  padding: var(--gap-2xl);
  background: var(--off-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
}

.impact__philosophy-text {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--black);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

/* ============================================
   PRINCIPLES SECTION (Masonry-like feel)
   ============================================ */
.principles {
  background: var(--beige);
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}





.principle {
  
  
  
  background: var(--white);
  padding: var(--gap-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-fast) var(--ease-spring);
}

.principle:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  background: var(--burgundy);
  color: var(--white);
}

.principle__number {
  font-family: var(--font-en);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--burgundy-light);
  margin-bottom: var(--gap-sm);
  display: block;
}

.principle:hover .principle__number {
  color: rgba(255,255,255,0.2);
}

.principle__title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 0.75rem;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.principle:hover .principle__title,
.principle:hover .principle__text {
  color: var(--white);
}

.principle__text {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.8;
  transition: color var(--duration-fast) var(--ease-smooth);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--white);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: var(--gap-2xl);
  align-items: center;
}

.about__name {
  font-family: var(--font-en);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.25rem;
  direction: ltr;
  text-align: right;
  letter-spacing: -0.02em;
}

.about__role {
  font-family: var(--font-en);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--gap-xl);
  direction: ltr;
  text-align: right;
}

.about__text {
  font-size: var(--text-lg);
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: var(--gap-lg);
}

.about__credentials-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--gap-md);
  margin-top: var(--gap-xl);
}

.about__credentials li {
  font-size: var(--text-base);
  color: var(--black-soft);
  font-weight: 500;
  padding: 0.5rem 0;
  padding-right: 2rem;
  position: relative;
}

.about__credentials li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 0.5rem;
  color: var(--white);
  background: var(--burgundy);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.about__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about__trait {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--burgundy);
}

.about__belief {
  margin-top: var(--gap-xl);
  padding: var(--gap-xl);
  background: var(--burgundy-light);
  border-radius: var(--radius-lg);
  border-right: 4px solid var(--burgundy);
}

.about__belief-label {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: var(--gap-sm);
}

.about__belief-text {
  font-size: var(--text-lg);
  color: var(--black-soft);
  line-height: 1.9;
  font-style: italic;
}

.about__beyond {
  margin-top: var(--gap-xl);
}

.about__beyond-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--black);
  margin-bottom: var(--gap-md);
}

.about__beyond-text {
  font-size: var(--text-base);
  color: var(--gray);
  line-height: 1.9;
}

.about__portrait {
  position: relative;
}

.about__portrait::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: -20px;
  left: -20px;
  background: var(--beige);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.about__portrait img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 3/4;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   FOOTER CTA + FOOTER
   ============================================ */
.footer-cta {
  background: var(--burgundy-gradient);
  padding: var(--section-py-lg) 0;
  text-align: center;
  color: var(--white);
}

.footer-cta__title {
  font-size: var(--text-hero);
  font-weight: 800;
  margin-bottom: var(--gap-md);
}

.footer-cta__subtitle {
  font-size: var(--text-2xl);
  opacity: 0.9;
  margin-bottom: var(--gap-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  background: var(--black);
  color: var(--white);
  padding: var(--gap-2xl) 0 var(--gap-lg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap-2xl);
  padding-bottom: var(--gap-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--gap-lg);
}

.footer__brand-name {
  font-family: var(--font-en);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: 0.25rem;
  direction: ltr;
  text-align: right;
}

.footer__brand-role {
  font-size: var(--text-base);
  color: var(--burgundy);
  font-weight: 700;
  margin-bottom: var(--gap-md);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  direction: ltr;
  text-align: right;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer__contact-item:hover {
  color: var(--white);
}

/* ============================================
   ANIMATIONS (Slide Up & Staggered)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity var(--duration) var(--ease-smooth),
              transform var(--duration) var(--ease-spring);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(40px);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    border-right: none;
    padding-right: 0;
    margin: 0 auto var(--gap-xl);
  }
  
  .hero__actions {
    justify-content: center;
  }

  .hero__card {
    display: none; /* Hide decorative card on smaller screens */
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
  
  .service-card:nth-child(even) {
    transform: none;
  }
  
  .service-card:nth-child(even):hover {
    transform: translateY(-10px);
  }

  .methodology__content {
    grid-template-columns: 1fr;
  }

  .perspective__mission {
    grid-template-columns: 1fr;
  }

  .impact__metrics {
  display: flex;
  gap: var(--gap-md);
  margin-bottom: var(--gap-2xl);
}
  
  .impact__cases {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__content {
    grid-template-columns: 1fr;
  }
  
  .about__portrait {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--container-px);
    right: var(--container-px);
    flex-direction: column;
    padding: var(--gap-lg);
    border-radius: var(--radius-lg);
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    background: var(--white) !important;
  }

  .nav:not(.scrolled) .nav__link, 
  .nav:not(.scrolled) .nav__title {
    color: var(--black) !important;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: 10rem;
  }

  .impact__cases {
    grid-template-columns: 1fr;
  }

  .featured-video__grid {
    grid-template-columns: 1fr !important;
  }

  .principle {
    min-width: 85vw;
  }
}

/* LTR Adjustments */
html[dir="ltr"] .hero__visual {
    left: auto;
    right: 0;
}
html[dir="ltr"] .reveal-left {
    transform: translateX(-50px);
}
html[dir="ltr"] .reveal-left.active {
    transform: translateX(0);
}
/* Adjust general layouts based on direction if flex direction isn't enough */

html[dir="ltr"] .footer__inner, 
html[dir="ltr"] .featured-video__grid {
    direction: ltr;
}
html[dir="ltr"] body {
    font-family: var(--font-en), sans-serif;
}
/* ============================================
   GALLERY SECTION
   ============================================ */

.swiper.gallerySwiper {
  width: 100%;
  height: auto;
  padding-bottom: 50px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.gallery-item {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

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

/* Swiper Controls Customization */
.swiper-button-next, .swiper-button-prev {
  color: var(--burgundy);
}
.swiper-pagination-bullet-active {
  background: var(--burgundy);
}
.nav .container {
  max-width: 1400px;
}


/* CORRECT NAV ALIGNMENT */
.nav__inner {
  flex-direction: row-reverse !important; /* Arabic (RTL): start from left to right -> brand on left */
}
html[dir="ltr"] .nav__inner {
  flex-direction: row !important; /* English (LTR): start from left to right -> brand on left */
}



/* PERSPECTIVE CARD WRAPPER */
.perspective__card-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--duration-fast) var(--ease-spring);
}

.perspective__card-wrapper:hover {
  transform: translateY(-5px);
}

.perspective__card-wrapper .perspective__item {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
  flex-grow: 1;
}

.perspective__card-wrapper:hover .perspective__item {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: rgba(144, 28, 48, 0.2);
}

.perspective__item-desc-box {
  background: #fcfcfc;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border-light);
  border-top: 1px dashed rgba(144, 28, 48, 0.2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: border-color var(--duration-fast) ease;
}

.perspective__card-wrapper:hover .perspective__item-desc-box {
  border-color: rgba(144, 28, 48, 0.3);
  border-top: 1px dashed rgba(144, 28, 48, 0.4);
}

.perspective__item-desc {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

.methodology__highlight-wrap {
  border-right: 4px solid var(--burgundy);
}
html[dir="ltr"] .methodology__highlight-wrap {
  border-right: none;
  border-left: 4px solid var(--burgundy);
}

/* ============================================
   NEW ZIGZAG METHODOLOGY
   ============================================ */
.methodology__intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.methodology__intro .methodology__highlight {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: var(--gap-lg);
  background: linear-gradient(120deg, #ffffff 0%, #ecd599 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: none;
  padding: 0;
}

.methodology__intro-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  line-height: 1.9;
}

.methodology__zigzag {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem 0;
}

.zigzag__row {
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: center;
}

.zigzag__row:nth-child(even) {
  flex-direction: row-reverse;
}

.zigzag__number {
  flex: 0 0 35%;
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  text-align: center;
  line-height: 1;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(236,213,153,0.08) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-family: var(--font-en);
  user-select: none;
}

.zigzag__content {
  flex: 0 0 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  transition: all var(--duration-normal) var(--ease-spring);
}

.zigzag__row:hover .zigzag__content {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(236,213,153,0.2);
  box-shadow: 0 25px 60px rgba(144, 28, 48, 0.15);
}

.zigzag__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.zigzag__desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .zigzag__row, .zigzag__row:nth-child(even) {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .zigzag__number {
    flex: auto;
  }
  .zigzag__content {
    flex: auto;
    padding: 2rem;
  }
}

/* IMPACT COMPARISON TABLE */
.impact__table-wrap {
  margin-bottom: var(--gap-2xl);
}

.impact__table-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--black);
  text-align: center;
  margin-bottom: var(--gap-xl);
}

.impact__table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.impact__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}

.impact__table thead th {
  background: var(--burgundy);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.impact__table thead th:last-child {
  border-left: none;
}

.impact__table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
  color: var(--gray);
  line-height: 1.7;
  text-align: center;
  vertical-align: middle;
}

.impact__table tbody td:last-child {
  border-left: none;
}

.impact__table tbody tr:last-child td {
  border-bottom: none;
}

.impact__table tbody tr:nth-child(even) {
  background: rgba(244, 240, 236, 0.4);
}

.impact__table tbody tr:hover {
  background: rgba(144, 28, 48, 0.04);
}

@media (max-width: 768px) {
  .impact__metrics {
    flex-direction: column !important;
  }
}

.perspective__item-desc-box:hover {
  background: rgba(144, 28, 48, 0.05);
}

html[dir="ltr"] .ar-only {
  display: none !important;
}

html[dir="ltr"] .footer__brand-name,
html[dir="ltr"] .footer__brand-role {
  text-align: left;
  direction: ltr;
}
