@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --primary: #5e584f;
  --primary-light: #807a6f;
  --primary-dark: #3c3830;
  --secondary: #d4a373;
  --secondary-hover: #b88656;
  --bg-color: #fbfaf8;
  --surface: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #666666;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.35);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, span, a, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  margin: 0 auto 2.8rem;
  position: relative;
  display: table;
  padding-bottom: 14px;
  color: var(--primary-dark);
  line-height: 1.35;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 52px;
  max-width: 250px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.nav-logo-img:hover {
  transform: scale(1.02);
}

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

.nav-links li a {
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  color: var(--text-dark);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

.nav-links li a.active {
  color: var(--primary);
  font-weight: 700;
}

/* Navbar Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang-switch {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.lang-switch:hover {
  color: var(--secondary);
}

.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
}

.mobile-only {
  display: none !important;
}

.desktop-only {
  display: flex;
}

.menu-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1.02rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light) !important;
  box-shadow: 0 4px 15px rgba(94, 88, 79, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(94, 88, 79, 0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary) !important;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url('../assets/01.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  padding: 120px 0 60px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(251, 250, 248, 0.92) 0%, rgba(251, 250, 248, 0.78) 45%, rgba(251, 250, 248, 0.5) 100%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(94,88,79,0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--secondary);
}

.hero-content p {
  font-size: 1.2rem;
  color: #423e35;
  line-height: 1.8;
  margin-bottom: 2.2rem;
  font-weight: 500;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(60, 56, 48, 0.22), 0 0 0 1px rgba(212, 163, 115, 0.35);
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.hero-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(60, 56, 48, 0.3), 0 0 0 1.5px rgba(212, 163, 115, 0.55);
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
}

/* ==========================================================================
   Hero Projects Showcase (Appears smoothly when video ends)
   ========================================================================== */
.hero-projects-showcase {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s ease;
  background: #141210;
}

.hero-projects-showcase.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.7s ease;
  overflow: hidden;
}

.showcase-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 5s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-slide.is-active .showcase-img {
  transform: scale(1);
}

.showcase-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2.2rem 2.2rem 2rem;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0) 0%, rgba(18, 16, 14, 0.45) 35%, rgba(18, 16, 14, 0.94) 100%);
  color: #ffffff;
  z-index: 2;
  text-align: right;
  direction: rtl;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 163, 115, 0.22);
  border: 1px solid rgba(212, 163, 115, 0.5);
  color: #f5dcc4;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 0.6rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.showcase-content h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.showcase-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.2rem;
  max-width: 440px;
  line-height: 1.5;
}

.showcase-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.3rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary-glass {
  background: linear-gradient(135deg, #d4a373 0%, #b88656 100%);
  color: #1a1612 !important;
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.4);
  border: none;
}

.btn-primary-glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 163, 115, 0.55);
  background: linear-gradient(135deg, #e0b487 0%, #c59363 100%);
}

.btn-replay-video {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-replay-video:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.showcase-dots {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.showcase-dot.is-active {
  width: 22px;
  border-radius: 8px;
  background: #d4a373;
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.7);
}

@media (max-width: 768px) {
  .showcase-content {
    padding: 1.4rem 1.2rem 1.2rem;
  }
  .showcase-content h3 {
    font-size: 1.25rem;
  }
  .showcase-content p {
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
  }
  .showcase-btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
}

.hero-visual img, 
.hero-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animated CSS Video Intro */
.css-video {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.css-video-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  animation-duration: 15s;
  animation-iteration-count: infinite;
}

.css-video-scene.scene-1 {
  background: var(--primary);
  animation-name: scene1Anim;
}
@keyframes scene1Anim {
  0%, 5% { opacity: 0; transform: scale(0.92); }
  10%, 25% { opacity: 1; transform: scale(1); }
  30%, 100% { opacity: 0; transform: scale(1.08); }
}

.css-video-scene.scene-2 {
  background: var(--primary-dark);
  color: white;
  animation-name: scene2Anim;
}
@keyframes scene2Anim {
  0%, 30% { opacity: 0; transform: translateY(20px); }
  35%, 60% { opacity: 1; transform: translateY(0); }
  65%, 100% { opacity: 0; transform: translateY(-20px); }
}

.css-video-scene.scene-3 {
  animation-name: scene3Anim;
}
@keyframes scene3Anim {
  0%, 65% { opacity: 0; }
  70%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

.css-video-scene.scene-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  animation: zoomBg 15s infinite;
}
@keyframes zoomBg {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.css-video-scene.scene-3 .overlay-text {
  position: relative;
  z-index: 2;
  color: white;
  background: rgba(0,0,0,0.55);
  padding: 1.8rem;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.css-video-scene h2 {
  font-size: 2.2rem;
  margin: 0;
  color: white;
  line-height: 1.4;
}

.css-video-scene h3 {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
  color: white;
}

.video-btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  background-color: var(--secondary);
  color: #1a1612 !important;
  font-weight: 700;
  border-radius: 30px;
  margin-top: 0.8rem;
  transition: all 0.3s ease;
}

.video-btn:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

/* Page Header (Global for subpages) */
.page-header {
  padding: 140px 0 65px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 2.7rem;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.page-header p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Cards & Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background-color: var(--primary);
  transition: height 0.3s ease;
}

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

.card:hover::before {
  height: 100%;
}

.card-icon {
  width: 58px;
  height: 58px;
  background: var(--bg-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 1.3rem;
  transition: all 0.5s ease;
}

.card:hover .card-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(360deg);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* Premium Statistics Section */
.stats-section {
  padding: 2.5rem 0 4rem;
  position: relative;
  z-index: 10;
}

.stats-container {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  color: white;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.stat-card {
  position: relative;
  flex: 1;
  padding: 1rem;
  transition: transform 0.4s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -1rem;
  top: 20%;
  height: 60%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}

.stat-card i {
  font-size: 3.2rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
  transition: transform 0.4s ease;
}

.stat-card:hover i {
  transform: scale(1.1) rotate(5deg);
}

.stat-card .stat-number {
  font-size: 3.6rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.6rem;
  font-family: inherit;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-card p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

/* Clients Marquee Section */
.clients-section {
  background-color: var(--surface);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.clients-section .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: -1.8rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.clients-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.2rem 0;
}

.clients-marquee::before,
.clients-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 160px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.clients-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--surface) 0%, transparent 100%);
}

.clients-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--surface) 0%, transparent 100%);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 35s linear infinite;
}

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

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.client-logo {
  margin: 0 1rem;
  width: 200px;
  height: 105px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.35s ease;
  padding: 0.75rem 1.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.client-logo img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  opacity: 0.95;
  filter: grayscale(15%);
  transition: all 0.35s ease;
  object-fit: contain;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
  border-color: rgba(212, 163, 115, 0.6);
}

.client-logo:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.06);
}

/* Projects Cards & Grid - 3 cols desktop, 2 cols tablet, 1 col mobile */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  position: relative;
  background: var(--surface);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(212, 163, 115, 0.45);
}

/* 4:3 Aspect Ratio Uniform Cover Image */
.project-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #eee;
  position: relative;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

.project-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(44, 40, 34, 0.88);
  color: #ffffff;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.project-photo-count {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(20, 18, 16, 0.78);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-info {
  padding: 1.4rem;
  background: var(--surface);
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--primary-dark);
  font-weight: 700;
  transition: color 0.25s ease;
}

.project-card:hover .project-info h3 {
  color: var(--secondary-hover);
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: auto;
}

.project-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-pill {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-color);
  padding: 5px 11px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.meta-pill i {
  color: var(--secondary);
  font-size: 0.8rem;
}

.meta-pill.pill-primary {
  color: var(--primary-dark);
  font-weight: 600;
  background: rgba(212, 163, 115, 0.12);
  border-color: rgba(212, 163, 115, 0.25);
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.8rem;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 30px;
  border: 1.5px solid rgba(94, 88, 79, 0.2);
  background: var(--surface);
  color: var(--primary-dark);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-btn .filter-count {
  font-size: 0.78rem;
  background: rgba(94, 88, 79, 0.12);
  padding: 2px 7px;
  border-radius: 12px;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(94, 88, 79, 0.25);
  transform: translateY(-2px);
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   Project Detail Page Components
   ========================================================================== */
.project-detail-hero {
  padding: 130px 0 45px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  position: relative;
}

.project-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
}

.project-breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-breadcrumbs a:hover {
  color: var(--secondary);
}

.project-header-info h1 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.project-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.project-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-badge-pill.gold {
  background: rgba(212, 163, 115, 0.25);
  border-color: rgba(212, 163, 115, 0.5);
  color: #f7d7b5;
}

/* Large Main Featured Image Showcase */
.project-featured-showcase {
  margin: -30px auto 3rem;
  position: relative;
  z-index: 5;
}

.project-main-image-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 60vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
  cursor: zoom-in;
  background-color: #222;
}

@media (max-width: 768px) {
  .project-main-image-wrap {
    height: 300px;
    border-radius: 14px;
  }
}

.project-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.project-main-image-wrap:hover img {
  transform: scale(1.03);
}

.image-zoom-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 40%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
  color: white;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.zoom-indicator-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(44, 40, 34, 0.85);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}

.project-main-image-wrap:hover .zoom-indicator-btn {
  background: var(--primary);
  transform: translateY(-2px);
}

/* Project Info & Metadata Layout */
.project-details-grid {
  display: grid;
  grid-template-columns: 2fr 1.15fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .project-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.project-description-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-description-card h2 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.project-description-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.project-description-card p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.project-highlights {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-color);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--primary-dark);
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.highlight-item i {
  color: var(--secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.project-meta-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.project-meta-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-color);
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #f0f0f0;
}

.meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.meta-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(212, 163, 115, 0.15);
  color: var(--secondary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.meta-content h4 {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-weight: 500;
}

.meta-content p {
  font-size: 1.02rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0;
}

/* ==========================================================================
   Before & After Draggable Slider Component
   ========================================================================== */
.before-after-section {
  margin: 3.5rem 0;
  background: var(--surface);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.before-after-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.before-after-header h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.before-after-header p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.comparison-slider-container {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  user-select: none;
  -webkit-user-select: none;
  background-color: #1a1a1a;
  touch-action: pan-y;
}

@media (max-width: 768px) {
  .before-after-section {
    padding: 1.5rem 1rem;
  }
  .comparison-slider-container {
    aspect-ratio: 4 / 3;
  }
}

.comparison-slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.img-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.img-after-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-left: 2px solid #ffffff;
}

.img-after-wrapper img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.slider-badge {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 5;
  color: white;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.badge-before-label {
  left: 16px;
  background: rgba(44, 40, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-after-label {
  right: 16px;
  background: rgba(35, 135, 75, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 3px;
  background: #ffffff;
  z-index: 4;
  transform: translateX(50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  font-size: 1rem;
  pointer-events: none;
  border: 2px solid var(--secondary);
}

.slider-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Project Thumbnails Gallery Grid
   ========================================================================== */
.gallery-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3.5rem 0 1.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-section-title h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 0;
}

.gallery-count-badge {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.project-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .project-thumbnails-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 640px) {
  .project-thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
}

.thumb-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  cursor: zoom-in;
  background-color: #eee;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.thumb-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
  border-color: var(--secondary);
}

.thumb-card:hover img {
  transform: scale(1.06);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumb-card:hover .thumb-overlay {
  opacity: 1;
}

.thumb-caption {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.thumb-stage-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(30, 27, 24, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

.thumb-stage-tag.stage-completed {
  background: rgba(35, 135, 75, 0.85);
}

.thumb-stage-tag.stage-progress {
  background: rgba(184, 134, 11, 0.9);
}

/* ==========================================================================
   Project Order CTA Section («اطلب مشروعًا مشابهًا»)
   ========================================================================== */
.project-order-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2722 100%);
  color: white;
  border-radius: 22px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  border: 1px solid rgba(212, 163, 115, 0.25);
}

.project-order-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.project-order-cta h3 {
  color: white;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
}

.project-order-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

.cta-buttons-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn-order-similar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #d4a373 0%, #b88656 100%);
  color: #1a1612 !important;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(212, 163, 115, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-order-similar:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(212, 163, 115, 0.55);
  background: linear-gradient(135deg, #e5b98f 0%, #c59363 100%);
}

.btn-whatsapp-consult {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-whatsapp-consult:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  background: #20bd5a;
}

.btn-back-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.8rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-back-portfolio:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .project-order-cta {
    padding: 2.2rem 1.25rem;
  }
  .cta-buttons-wrap {
    flex-direction: column;
    width: 100%;
  }
  .btn-order-similar,
  .btn-whatsapp-consult,
  .btn-back-portfolio {
    width: 100%;
    justify-content: center;
  }
}

/* Explore More Button */
.projects-explore-more {
  text-align: center;
  margin-top: 3.5rem;
}

.btn-explore-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0.95rem 2.2rem;
  background: #ffffff;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  text-decoration: none;
}

.btn-explore-portfolio .count-badge {
  background: var(--primary);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-explore-portfolio:hover {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(94, 88, 79, 0.25);
}

.btn-explore-portfolio:hover .count-badge {
  background: var(--secondary);
  color: #1a1612;
}

.btn-explore-portfolio i {
  transition: transform 0.3s ease;
}

.btn-explore-portfolio:hover i {
  transform: translateX(-5px);
}

/* Luxury Projects CTA Section */
.projects-cta-section {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  background: #1b1916 url('../assets/construction-night.png') center center / cover no-repeat;
  color: #ffffff;
}

.projects-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 40%, rgba(20, 18, 16, 0.72) 0%, rgba(12, 11, 10, 0.92) 100%);
  z-index: 1;
}

.projects-cta-section .container {
  position: relative;
  z-index: 2;
}

.projects-cta-card {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 26px;
  padding: 3.5rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 163, 115, 0.12);
  transition: border-color 0.4s ease;
}

.projects-cta-card:hover {
  border-color: rgba(212, 163, 115, 0.35);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.4rem;
  background: rgba(212, 163, 115, 0.16);
  border: 1px solid rgba(212, 163, 115, 0.4);
  color: #e5ba8f;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: #d4a373;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(212, 163, 115, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 163, 115, 0); }
}

.projects-cta-card h2 {
  font-size: 2.5rem;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.projects-cta-card p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 2.2rem;
  line-height: 1.8;
}

.cta-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #d4a373;
  line-height: 1.1;
  font-family: inherit;
}

.metric-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.3rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn-luxury-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 1.1rem 2.4rem;
  background: linear-gradient(135deg, #d4a373 0%, #b88656 100%);
  color: #1a1612 !important;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(212, 163, 115, 0.4);
  transition: all 0.35s ease;
  text-decoration: none;
}

.btn-luxury-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 35px rgba(212, 163, 115, 0.55);
}

.btn-luxury-cta i {
  transition: transform 0.3s ease;
}

.btn-luxury-cta:hover i {
  transform: translateX(-6px);
}

.btn-glass-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1.1rem 2.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-glass-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.cta-project-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chips-title {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 163, 115, 0.5);
}

.project-chip:hover {
  background: rgba(212, 163, 115, 0.2);
  border-color: rgba(212, 163, 115, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  left: 30px;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 2001;
}

.lightbox-close:hover {
  transform: scale(1.15) rotate(90deg);
  color: var(--secondary);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: #FFF;
  transform: scale(1.08) rotate(-10deg);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 4.5rem 0 2rem;
}

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

.footer-about p {
  color: #c4c0b8;
  margin-top: 1rem;
  line-height: 1.8;
  font-size: 1rem;
}

.footer-logo-img {
  height: 50px;
  max-width: 250px;
  object-fit: contain;
  display: block;
  margin-bottom: 1.2rem;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.5rem;
  font-size: 1.2rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul li {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c4c0b8;
}

.footer-links ul li a {
  color: #c4c0b8;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #999;
  font-size: 0.95rem;
}

/* Scroll Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE DESIGN BREAKPOINTS
   =================================================== */

/* Tablet & Smaller Laptops (<= 992px) */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding: 130px 0 60px;
  }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content h1 {
    font-size: 2.6rem;
  }
  .hero-content p {
    margin: 0 auto 2.2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
  .stat-card::after {
    display: none !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Section Title */
  .section-title {
    font-size: 1.7rem;
    margin: 0 auto 2rem;
    padding-bottom: 10px;
  }
  .section-title::after {
    width: 45px;
    height: 3px;
  }

  /* Navbar Mobile */
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .navbar .container {
    height: 65px;
    padding: 0 1.1rem;
  }
  .nav-logo-img {
    height: 40px;
    max-width: 175px;
  }
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    color: var(--primary-dark);
    cursor: pointer;
    border-radius: 8px;
    background: rgba(94, 88, 79, 0.08);
    transition: all 0.25s ease;
  }
  .menu-toggle:hover {
    background: rgba(94, 88, 79, 0.15);
    color: var(--secondary);
  }

  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    gap: 0;
    padding: 0.8rem 1rem 1.6rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid var(--secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    background: rgba(212, 163, 115, 0.12);
    color: #9c6e3b;
  }

  .nav-links li a::after {
    display: none;
  }

  .nav-links li.mobile-only .btn {
    margin: 0.8rem auto 0;
    width: 100%;
    max-width: 280px;
    padding: 0.75rem 1.5rem;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 100px 0 40px;
  }
  .hero-content h1 {
    font-size: 1.95rem;
    line-height: 1.35;
    margin-bottom: 1rem;
  }
  .hero-content p {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    font-size: 1rem;
  }
  .hero-visual {
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    margin: 0 auto;
  }
  .css-video-scene h2 {
    font-size: 1.35rem;
    line-height: 1.35;
  }
  .css-video-scene h3 {
    font-size: 1.2rem;
  }
  .css-video-scene .overlay-text {
    padding: 1.2rem;
  }

  /* Page Header Mobile */
  .page-header {
    padding: 95px 0 45px !important;
  }
  .page-header h1 {
    font-size: 1.85rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.5rem !important;
  }
  .page-header p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    padding: 0 0.5rem !important;
  }

  /* Cards Grid Mobile */
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .card {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }
  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.45rem;
    margin-bottom: 1rem;
  }
  .card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  .card p {
    font-size: 0.95rem;
  }

  /* Stats Section Mobile */
  .stats-section {
    padding: 1.5rem 0 3rem;
  }
  .stats-container {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 0.8rem;
  }
  .stat-card {
    padding: 0.4rem;
  }
  .stat-card i {
    font-size: 2.3rem;
    margin-bottom: 0.6rem;
  }
  .stat-card .stat-number {
    font-size: 2.7rem;
    margin-bottom: 0.3rem;
  }
  .stat-card p {
    font-size: 0.95rem;
  }

  /* Clients Marquee Mobile */
  .clients-section {
    padding: 3rem 0;
  }
  .clients-marquee::before,
  .clients-marquee::after {
    width: 45px;
  }
  .client-logo {
    width: 145px;
    height: 82px;
    margin: 0 0.5rem;
    padding: 0.5rem;
    border-radius: 12px;
  }
  .client-logo img {
    max-height: 50px;
  }
  .clients-section .section-subtitle {
    font-size: 0.92rem;
    margin-top: -1.2rem;
    margin-bottom: 1.6rem;
    padding: 0 0.5rem;
  }

  /* Projects Section & Cards Mobile */
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .project-card {
    border-radius: 14px;
  }
  .project-img {
    height: 215px;
  }
  .project-info {
    padding: 1.25rem;
  }
  .project-info h3 {
    font-size: 1.2rem;
  }
  .project-info p {
    font-size: 0.92rem;
  }
  .project-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
  .filter-btn {
    padding: 7px 15px;
    font-size: 0.85rem;
  }
  .btn-explore-portfolio {
    width: 100%;
    justify-content: center;
    font-size: 0.98rem;
    padding: 0.85rem 1.4rem;
  }

  /* Projects CTA Section Mobile */
  .projects-cta-section {
    padding: 50px 0;
  }
  .projects-cta-card {
    padding: 2.2rem 1.25rem;
    border-radius: 20px;
  }
  .cta-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1.1rem;
    margin-bottom: 1rem;
  }
  .projects-cta-card h2 {
    font-size: 1.65rem;
    line-height: 1.35;
    margin-bottom: 1rem;
  }
  .projects-cta-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
  }
  .cta-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
    padding: 1.2rem 0.8rem;
    margin-bottom: 1.8rem;
    border-radius: 14px;
  }
  .metric-num {
    font-size: 1.85rem;
  }
  .metric-label {
    font-size: 0.82rem;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
  }
  .btn-luxury-cta, 
  .btn-glass-cta {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.9rem 1.4rem;
  }
  .cta-project-chips {
    gap: 0.5rem;
    padding-top: 1.2rem;
  }
  .chips-title {
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
  }
  .project-chip {
    padding: 5px 11px 5px 7px;
    font-size: 0.82rem;
  }
  .project-chip img {
    width: 24px;
    height: 24px;
  }

  /* Subpages Mobile Overrides */
  .service-row {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
  }
  .service-row:nth-child(even) {
    direction: rtl !important;
  }
  .service-img img {
    height: 230px !important;
    border-radius: 14px;
  }
  .service-content h2 {
    font-size: 1.45rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.35;
  }
  .service-content p {
    font-size: 0.95rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.7;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .about-image img {
    height: 250px !important;
    border-radius: 14px;
  }
  .about-text p {
    font-size: 0.95rem !important;
    line-height: 1.75;
  }
  .goal-card {
    padding: 1.5rem 1rem !important;
  }
  .goal-card i {
    font-size: 2.4rem !important;
    margin-bottom: 1rem !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .contact-form {
    padding: 1.6rem 1.2rem !important;
    border-radius: 16px;
  }
  .contact-info-card {
    padding: 1.25rem 1rem !important;
    gap: 1rem !important;
    border-radius: 12px;
  }
  .contact-info-card i {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }
  .contact-info-card h3 {
    font-size: 1.1rem;
  }
  .contact-info-card p {
    font-size: 0.9rem;
  }

  .project-details {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2.5rem !important;
  }
  .project-description h2 {
    font-size: 1.45rem !important;
    margin-bottom: 0.9rem !important;
  }
  .project-description p {
    font-size: 0.95rem !important;
    line-height: 1.75;
  }
  .project-meta {
    padding: 1.5rem 1.2rem !important;
    border-radius: 14px;
  }
  .project-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .project-gallery img {
    height: 140px !important;
    border-radius: 10px;
  }

  /* Footer Mobile */
  footer {
    padding: 3.5rem 0 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.2rem;
    margin-bottom: 2.2rem;
  }
  .footer-about p {
    margin: 0 auto;
    max-width: 320px;
    font-size: 0.92rem;
    line-height: 1.7;
  }
  .footer-logo-img {
    margin: 0 auto 1rem;
    height: 44px;
  }
  .footer-links h4 {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
  }
  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
  }
  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-links ul li {
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    justify-content: center;
  }
  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    font-size: 0.85rem;
  }

  /* WhatsApp Float Mobile */
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* Extra Small Phones (<= 420px) */
@media (max-width: 420px) {
  .container {
    padding: 0 1rem;
  }
  .hero-content h1 {
    font-size: 1.7rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .page-header h1 {
    font-size: 1.6rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .stat-card:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 1.4rem;
  }
  .cta-metrics {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .project-gallery {
    grid-template-columns: 1fr !important;
  }
  .project-gallery img {
    height: 190px !important;
  }
}

/* ==========================================================================
   Full-Screen Luxury Lightbox / عارض الصور بملء الشاشة
   ========================================================================== */

/* Prevent background scroll when lightbox is open */
body.kw-lightbox-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Gallery images cursor and hover enhancements */
.project-gallery img,
.gallery-thumb,
.gallery-thumb img,
.lightbox-trigger,
.lightbox-trigger img {
  cursor: zoom-in !important;
}

.project-gallery img {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, filter 0.35s ease !important;
}

.project-gallery img:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18) !important;
}

/* Lightbox Root Container */
.kw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.kw-lightbox.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Frosted Dark Luxury Backdrop */
.kw-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(28, 25, 23, 0.94) 0%, rgba(10, 9, 8, 0.98) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  z-index: 1;
  cursor: zoom-out;
}

/* Lightbox Top Header */
.kw-lightbox-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  gap: 1.5rem;
}

/* Counter Pill Badge */
.kw-lightbox-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 163, 115, 0.16);
  border: 1px solid rgba(212, 163, 115, 0.4);
  color: #f0d5ba;
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  direction: ltr; /* Keeps counter formatted as 1 / 5 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.kw-lightbox-counter .kw-counter-current {
  color: #ffffff;
  font-size: 1.05rem;
}

.kw-lightbox-counter .kw-counter-divider {
  color: rgba(212, 163, 115, 0.7);
  margin: 0 1px;
}

.kw-lightbox-counter .kw-counter-total {
  color: rgba(240, 213, 186, 0.8);
}

/* Image Caption / Title */
.kw-lightbox-caption {
  flex: 1;
  text-align: center;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1rem;
  opacity: 0.95;
  direction: rtl;
}

/* Header Actions */
.kw-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Generic Icon Button */
.kw-lightbox-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.kw-lightbox-btn:hover {
  background: linear-gradient(135deg, #d4a373 0%, #b88656 100%);
  border-color: #d4a373;
  color: #1a1612;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.45);
}

.kw-lightbox-btn:active {
  transform: scale(0.96);
}

/* Close Button Special Accent */
.kw-lightbox-close {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.kw-lightbox-close:hover {
  background: #e63946;
  border-color: #e63946;
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(230, 57, 70, 0.55);
}

/* Stage / Viewport */
.kw-lightbox-stage {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 5.5rem;
  overflow: hidden;
  cursor: default;
}

.kw-lightbox-figure {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.kw-lightbox-figure.is-swiping {
  transition: none; /* Instant feedback while finger dragging */
}

.kw-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.kw-lightbox-img.is-loading {
  opacity: 0;
  transform: scale(0.96);
}

/* Loading Spinner */
.kw-lightbox-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #d4a373;
  font-size: 2.6rem;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.kw-lightbox-spinner.is-visible {
  opacity: 1;
}

/* Navigation Arrows (Prev & Next) */
.kw-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(22, 20, 18, 0.65);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.kw-lightbox-nav:hover {
  background: linear-gradient(135deg, #d4a373 0%, #b88656 100%);
  border-color: #d4a373;
  color: #1a1612;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 30px rgba(212, 163, 115, 0.55);
}

.kw-lightbox-nav:active {
  transform: translateY(-50%) scale(0.96);
}

/* Right button = Previous (Right arrow in RTL) */
.kw-lightbox-prev {
  right: 25px;
}

/* Left button = Next (Left arrow in RTL) */
.kw-lightbox-next {
  left: 25px;
}

/* Footer / Thumbnail dots */
.kw-lightbox-footer {
  position: relative;
  z-index: 10;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}

.kw-lightbox-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 90vw;
  overflow-x: auto;
  padding: 6px;
}

.kw-lightbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
}

.kw-lightbox-dot:hover {
  background: rgba(212, 163, 115, 0.8);
  transform: scale(1.25);
}

.kw-lightbox-dot.is-active {
  width: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4a373 0%, #b88656 100%);
  border-color: #d4a373;
  box-shadow: 0 0 14px rgba(212, 163, 115, 0.65);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .kw-lightbox-header {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .kw-lightbox-counter {
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
  }
  .kw-lightbox-caption {
    font-size: 0.88rem;
    padding: 0 0.5rem;
  }
  .kw-lightbox-btn {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
  .kw-lightbox-stage {
    padding: 0.5rem 0.75rem;
  }
  .kw-lightbox-figure {
    max-width: 96vw;
    max-height: 74vh;
  }
  .kw-lightbox-img {
    max-height: 74vh;
    border-radius: 10px;
  }
  .kw-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    background: rgba(22, 20, 18, 0.8);
  }
  .kw-lightbox-prev {
    right: 8px;
  }
  .kw-lightbox-next {
    left: 8px;
  }
  .kw-lightbox-footer {
    padding: 0.6rem 1rem 1rem;
  }
}

/* ==========================================================================
   English / LTR Localization Layout Support
   ========================================================================== */
html[dir="ltr"],
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[dir="ltr"] .hero::after {
  background: linear-gradient(to right, rgba(251, 250, 248, 0.94) 0%, rgba(251, 250, 248, 0.82) 45%, rgba(251, 250, 248, 0.45) 100%);
}

html[dir="ltr"] .hero-visual .showcase-btn i {
  transform: rotate(180deg);
}

html[dir="ltr"] .hero-visual .btn-replay-video i {
  transform: none;
}

html[dir="ltr"] .clients-track {
  animation: scroll-marquee-ltr 35s linear infinite;
}

@keyframes scroll-marquee-ltr {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

html[dir="ltr"] .nav-links li a::after {
  right: auto;
  left: 0;
}

html[dir="ltr"] .whatsapp-float {
  left: auto;
  right: 28px;
}

html[dir="ltr"] .kw-lightbox-header {
  direction: ltr;
}

html[dir="ltr"] .kw-lightbox-caption {
  direction: ltr;
}

html[dir="ltr"] .kw-lightbox-prev {
  right: auto;
  left: 25px;
}

html[dir="ltr"] .kw-lightbox-prev i {
  transform: rotate(180deg);
}

html[dir="ltr"] .kw-lightbox-next {
  left: auto;
  right: 25px;
}

html[dir="ltr"] .kw-lightbox-next i {
  transform: rotate(180deg);
}

html[dir="ltr"] .service-row:nth-child(even) {
  direction: ltr;
}

html[dir="ltr"] .service-row:nth-child(even) .service-content {
  direction: ltr;
  order: 2;
}

html[dir="ltr"] .service-row:nth-child(even) .service-img {
  order: 1;
}

@media (max-width: 768px) {
  html[dir="ltr"] .whatsapp-float {
    left: auto;
    right: 20px;
    bottom: 20px;
  }
  html[dir="ltr"] .kw-lightbox-prev {
    right: auto;
    left: 8px;
  }
  html[dir="ltr"] .kw-lightbox-next {
    left: auto;
    right: 8px;
  }
  html[dir="ltr"] .service-row:nth-child(even) .service-content,
  html[dir="ltr"] .service-row:nth-child(even) .service-img {
    order: initial;
  }
}

/* Phone Input Group with KSA Country Indicator */
.phone-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 1.1rem;
  background: #f4f2ee;
  border: 1px solid #ddd;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  user-select: none;
  transition: all 0.3s ease;
}

html[dir="rtl"] .phone-prefix,
body[dir="rtl"] .phone-prefix,
[dir="rtl"] .phone-prefix {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

html[dir="rtl"] .phone-input,
body[dir="rtl"] .phone-input,
[dir="rtl"] .phone-input {
  border-radius: 8px 0 0 8px;
}

html[dir="ltr"] .phone-prefix,
body[dir="ltr"] .phone-prefix,
[dir="ltr"] .phone-prefix {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

html[dir="ltr"] .phone-input,
body[dir="ltr"] .phone-input,
[dir="ltr"] .phone-input {
  border-radius: 0 8px 8px 0;
}

.phone-input {
  flex: 1;
  min-width: 0;
}

.phone-input-group:focus-within .phone-prefix {
  border-color: var(--primary);
  background: #edeae4;
  color: var(--primary);
}

.phone-input-group:focus-within .phone-input {
  border-color: var(--primary);
}

@media (max-width: 480px) {
  .phone-prefix {
    padding: 0 0.75rem;
    font-size: 0.85rem;
    gap: 0.25rem;
  }
}
