/* ==========================================================================
   شركة الفجر للمقاولات والتشطيبات وحمامات السباحة - Luxury Web Platform
   Design System: Deep Obsidian, Royal Gold, Frosted Glass & Luxury Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@300;400;500;700&family=Outfit:wght@400;600;700&display=swap');

:root {
  /* Colors */
  --bg-dark: #070D14;
  --bg-surface: #0C1724;
  --bg-card: #112032;
  --bg-card-hover: #162a42;
  --bg-light: #F8F5EE;
  --bg-light-2: #F0E9DC;
  
  --gold-50: #FCF8ED;
  --gold-100: #F7EDD0;
  --gold-200: #EED79E;
  --gold-400: #D8AF54;
  --gold-primary: #C59B4B;
  --gold-dark: #A57D33;
  --gold-glow: rgba(197, 155, 75, 0.35);

  --accent-teal: #1FB3B3;
  --accent-blue: #1E6091;

  --text-white: #FFFFFF;
  --text-cream: #F5EFE6;
  --text-muted: #8E9EA7;
  --text-dark: #0F1923;
  --text-dark-muted: #596A7A;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(197, 155, 75, 0.3);
  --border-gold-strong: rgba(197, 155, 75, 0.65);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 30px rgba(197, 155, 75, 0.25);

  /* Geometry & Animation */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --header-height: 84px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  font-size: 16px;
}

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-cream);
  line-height: 1.8;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 100px;
  position: relative;
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}
.section-light h2, .section-light h3, .section-light h4 {
  color: var(--text-dark);
}
.section-light .section-desc {
  color: var(--text-dark-muted);
}

/* Badges & Section Headers */
.section-header {
  max-width: 760px;
  margin-bottom: 60px;
}
.section-header.text-center {
  margin-inline: auto;
  text-align: center;
}

.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(197, 155, 75, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-200);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.gold-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.section-title .gold-gradient-text {
  background: linear-gradient(125deg, #FFF0D0 0%, var(--gold-400) 45%, var(--gold-primary) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.8;
}

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #ECC880 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  color: #070E17;
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(197, 155, 75, 0.45);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #2fe578 0%, #1ea956 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  font-weight: 800;
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-cream);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(197, 155, 75, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-100);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border: 1.5px solid #0F1923;
  color: #0F1923;
  background: transparent;
}
.btn-outline-dark:hover {
  background: #0F1923;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ================= Header ================= */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(7, 13, 20, 0.75);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(197, 155, 75, 0.15);
  transition: all var(--transition-base);
}
.site-header.scrolled {
  background: rgba(6, 11, 18, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  height: 74px;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(197, 155, 75, 0.4));
}
.brand-titles {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-tagline {
  font-size: 0.72rem;
  color: var(--gold-200);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: #B3C4D4;
  position: relative;
  transition: all var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-100);
  background: rgba(255, 255, 255, 0.04);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 18px;
  left: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: rgba(197, 155, 75, 0.08);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--gold-200);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ================= Hero Section ================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 70px;
  display: flex;
  align-items: center;
  background: 
    radial-gradient(1200px 600px at 85% 10%, rgba(197, 155, 75, 0.18), transparent 70%),
    radial-gradient(900px 500px at 10% 90%, rgba(31, 179, 179, 0.12), transparent 70%),
    linear-gradient(180deg, #050A0F 0%, #07101B 50%, #0B1726 100%);
  overflow: hidden;
}

.hero-backdrop-glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(197, 155, 75, 0.1) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-main-title {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 22px;
}
.hero-main-title .highlight {
  display: block;
  background: linear-gradient(120deg, #FFE8B8 0%, #D4AF37 50%, #A97A24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #B5C5D5;
  line-height: 1.9;
  margin-bottom: 34px;
  max-width: 600px;
  font-weight: 300;
}
.hero-subtitle strong {
  color: #FFFFFF;
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #CFDFEC;
}
.trust-item i {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

/* Hero Showcase Card */
.hero-visual-wrapper {
  position: relative;
}
.hero-composite-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-gold);
  background: var(--bg-surface);
}
.hero-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.hero-composite-card:hover .hero-main-img {
  transform: scale(1.04);
}

.hero-floating-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  left: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(7, 15, 24, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 155, 75, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.floating-meta h4 {
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 2px;
}
.floating-meta p {
  font-size: 0.82rem;
  color: var(--gold-200);
}
.floating-location {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(197, 155, 75, 0.15);
  font-size: 0.75rem;
  color: var(--gold-100);
  font-weight: 700;
  white-space: nowrap;
}

.floating-stat-pill {
  position: absolute;
  top: -20px;
  left: -15px;
  background: linear-gradient(135deg, #11253B, #0A1724);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  z-index: 3;
}
.stat-pill-num {
  font-family: 'Cairo', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-100);
  line-height: 1;
}
.stat-pill-label {
  font-size: 0.78rem;
  color: #B4C6D6;
  line-height: 1.3;
}

/* ================= Key Stats Grid ================= */
.stats-strip {
  background: #060B12;
  border-block: 1px solid rgba(197, 155, 75, 0.15);
  padding-block: 40px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-box {
  text-align: center;
  padding: 10px;
  position: relative;
}
.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(197, 155, 75, 0.3), transparent);
}
.stat-value {
  font-family: 'Cairo', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-200);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 0.92rem;
  color: #8C9FA8;
  font-weight: 500;
}

/* ================= Interactive Calculator ================= */
.calculator-card {
  background: linear-gradient(165deg, #0E1B2A 0%, #08121D 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}
.calculator-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(197, 155, 75, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: start;
}

.calc-group {
  margin-bottom: 28px;
}
.calc-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}
.calc-label span {
  color: var(--gold-400);
  font-weight: 400;
}

.calc-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.calc-chip {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #CAD7E2;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.calc-chip:hover {
  border-color: var(--border-gold);
  background: rgba(197, 155, 75, 0.08);
  color: #FFFFFF;
}
.calc-chip.active {
  background: linear-gradient(135deg, rgba(197, 155, 75, 0.25), rgba(197, 155, 75, 0.12));
  border-color: var(--gold-primary);
  color: var(--gold-100);
  box-shadow: 0 4px 15px rgba(197, 155, 75, 0.2);
}

/* Range Slider */
.range-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.range-val-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-200);
}
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  direction: ltr;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 3px solid #070E17;
  cursor: pointer;
  box-shadow: 0 0 10px var(--gold-primary);
  transition: transform var(--transition-fast);
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Result Box */
.calc-result-box {
  background: rgba(6, 12, 19, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.result-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}
.result-header h4 {
  font-size: 1.15rem;
  color: var(--gold-100);
}
.result-price-range {
  font-family: 'Cairo', sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
}
.result-price-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #CAD7E2;
}
.result-row strong {
  color: var(--gold-200);
}
.calc-disclaimer {
  font-size: 0.75rem;
  color: #798D9C;
  line-height: 1.5;
}

/* ================= Before & After Interactive ================= */
.ba-tabs-control {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ba-tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid rgba(197, 155, 75, 0.4);
  background: #FFFFFF;
  color: #070E17;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.ba-tab-btn:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}
.ba-tab-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #070E17;
  box-shadow: 0 6px 18px rgba(197, 155, 75, 0.35);
}

.before-after-wrapper {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
  user-select: none;
  touch-action: pan-y;
}
.ba-img-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
  z-index: 2;
  pointer-events: none;
}
.ba-before .ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-badge {
  position: absolute;
  top: 20px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 5;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.ba-badge-after {
  left: 20px;
  background: rgba(30, 160, 90, 0.9);
  color: #FFFFFF;
}
.ba-badge-before {
  right: 20px;
  background: rgba(18, 30, 44, 0.9);
  color: var(--gold-200);
  border: 1px solid var(--border-gold);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--gold-primary);
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}
.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 3px solid #070E17;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  color: #070E17;
  font-size: 1.1rem;
  font-weight: 900;
}

/* ================= Services Matrix ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  background: var(--bg-card);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.service-card:hover::after {
  opacity: 1;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(197, 155, 75, 0.12);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-200);
  margin-bottom: 22px;
}
.service-number {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: 'Cairo', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #FFFFFF;
}
.service-summary {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  flex-grow: 1;
}
.service-specs-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}
.service-specs-list li {
  font-size: 0.85rem;
  color: #CBD8E4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-specs-list li::before {
  content: '✓';
  color: var(--gold-primary);
  font-weight: bold;
}

/* ================= Projects Portfolio ================= */
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #B5C6D4;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  border-color: var(--border-gold);
  color: #FFFFFF;
}
.filter-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #070E17;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(197, 155, 75, 0.35);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.project-media-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #000;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-category-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 13, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--gold-100);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}

.project-location-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.75rem;
  z-index: 2;
}

.project-content {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-title {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  font-size: 0.82rem;
  color: var(--gold-200);
}

/* ================= Workflow Steps ================= */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  position: relative;
  transition: all var(--transition-base);
}
.workflow-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
  background: var(--bg-card);
}
.workflow-step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-primary));
  color: #070E17;
  font-family: 'Cairo', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(197, 155, 75, 0.4);
}
.workflow-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.workflow-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ================= Booking & Contact ================= */
.booking-section-wrapper {
  background: linear-gradient(135deg, #091421 0%, #060D17 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

.booking-info-panel {
  padding: 50px 40px;
  background: radial-gradient(circle at top right, rgba(197, 155, 75, 0.15), transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.booking-features-list {
  list-style: none;
  padding: 0;
  margin-block: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.booking-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.bf-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(197, 155, 75, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bf-text h5 {
  font-size: 0.98rem;
  color: #FFFFFF;
  margin-bottom: 2px;
}
.bf-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.contact-direct-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}
.direct-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #CADAE7;
}
.direct-item i {
  color: var(--gold-primary);
}

.booking-form-panel {
  padding: 50px 40px;
  background: rgba(8, 17, 28, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #CAD8E4;
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  background: rgba(197, 155, 75, 0.06);
  box-shadow: 0 0 15px rgba(197, 155, 75, 0.2);
}
.form-select option {
  background: #0B1726;
  color: #FFFFFF;
}

/* ================= Footer ================= */
.site-footer {
  background: #04080D;
  border-top: 1px solid rgba(197, 155, 75, 0.2);
  padding-top: 70px;
  padding-bottom: 30px;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand-p {
  font-size: 0.9rem;
  color: #8C9FA8;
  line-height: 1.8;
  margin-top: 14px;
  max-width: 360px;
}
.footer-col-title {
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 2px;
  background: var(--gold-primary);
}
.footer-links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-link {
  font-size: 0.88rem;
  color: #8C9FA8;
  transition: color var(--transition-fast);
}
.footer-link:hover {
  color: var(--gold-100);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #6C7D89;
  flex-wrap: wrap;
  gap: 14px;
}

/* Floating Contact Widget */
.floating-actions-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 1.4rem;
  transition: all var(--transition-base);
  cursor: pointer;
}
.float-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}
.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.6);
}
.float-call {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--gold-200);
}
.float-call:hover {
  transform: scale(1.1);
  border-color: var(--gold-primary);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 12, 0.88);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}
.modal-dialog {
  width: 100%;
  max-width: 820px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: none; }
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

/* ================= Responsive Breakpoints ================= */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .booking-section-wrapper {
    grid-template-columns: 1fr;
  }
  .booking-form-panel {
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }
  .nav-desktop, .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .calculator-card {
    padding: 24px 20px;
  }
  .services-grid, .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Lead Collection & Recontacting CRM System Styles
   ========================================================================== */

/* Enhanced Lead Form */
.form-step-indicators {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}
.form-step-indicators::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 15%;
  left: 15%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 1;
}
.step-dot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.step-dot.active {
  background: rgba(197, 155, 75, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-100);
}
.step-dot.completed {
  background: rgba(30, 160, 90, 0.2);
  border-color: #2fe578;
  color: #2fe578;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Quick Select Radio Tiles */
.radio-tiles-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.radio-tile {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}
.radio-tile:hover {
  border-color: var(--border-gold);
  background: rgba(197, 155, 75, 0.06);
}
.radio-tile.selected {
  border-color: var(--gold-primary);
  background: rgba(197, 155, 75, 0.18);
  color: var(--gold-100);
  box-shadow: 0 4px 14px rgba(197, 155, 75, 0.2);
}
.radio-tile-title {
  font-size: 0.84rem;
  font-weight: 700;
  display: block;
}
.radio-tile-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

/* Lead Submission Success Modal */
.lead-success-card {
  text-align: center;
  padding: 36px 30px;
}
.lead-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  border: 2px solid #25D366;
  color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.35);
}
.lead-ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(197, 155, 75, 0.15);
  border: 1px dashed var(--gold-primary);
  color: var(--gold-100);
  font-family: ui-monospace, monospace;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-block: 16px;
}
.lead-summary-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-block: 18px;
  text-align: right;
  font-size: 0.86rem;
  color: #B8CBD8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Leads Management Drawer (CRM) */
.crm-drawer-toggle {
  position: fixed;
  bottom: 86px;
  left: 24px;
  z-index: 95;
  background: linear-gradient(135deg, #1A314A 0%, #0F2032 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  color: var(--gold-100);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all var(--transition-base);
}
.crm-drawer-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(197, 155, 75, 0.35);
}
.crm-leads-count {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-primary);
  color: #070E17;
  font-weight: 900;
  font-size: 0.72rem;
}

.crm-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 12, 0.8);
  backdrop-filter: blur(8px);
  z-index: 210;
  display: none;
  justify-content: flex-end;
}
.crm-drawer-overlay.open {
  display: flex;
}
.crm-drawer {
  width: 100%;
  max-width: 640px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
  animation: slideLeft 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.crm-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
}
.crm-header h3 {
  font-size: 1.25rem;
  color: #FFFFFF;
}
.crm-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.crm-filter-bar {
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.crm-tab-chip {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #B4C6D6;
  cursor: pointer;
  white-space: nowrap;
}
.crm-tab-chip.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #070E17;
  font-weight: 700;
}

.crm-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual Lead Card */
.lead-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all var(--transition-fast);
  position: relative;
}
.lead-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}
.lead-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.lead-client-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
}
.lead-date {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.lead-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.status-new {
  background: rgba(30, 144, 255, 0.15);
  border: 1px solid rgba(30, 144, 255, 0.4);
  color: #60A5FA;
}
.status-contacted {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}
.status-scheduled {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.lead-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.82rem;
  color: #B5C6D4;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.lead-specs-grid strong {
  color: var(--gold-200);
}

.lead-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}
.lead-btn-recontact-wa {
  flex: 1;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.lead-btn-recontact-wa:hover {
  transform: translateY(-2px);
  background: #20b859;
}
.lead-btn-call {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.lead-btn-call:hover {
  background: rgba(255, 255, 255, 0.15);
}
.lead-status-select {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CAD7E2;
  font-size: 0.78rem;
  cursor: pointer;
}

.crm-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

@media (max-width: 600px) {
  .form-grid-2col {
    grid-template-columns: 1fr;
  }
  .crm-drawer {
    max-width: 100%;
  }
  .lead-specs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Zero-Gravity & Motion Physics System (فلسفة الحركة وانعدام الجاذبية)
   ========================================================================== */

/* 1. Interactive Stardust & Cosmic Particle Canvas */
.gravity-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 2. Floating Cosmic Orbs & Ambient Depth */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 1;
  will-change: transform;
  animation: orbDrift 20s ease-in-out infinite alternate;
}
.orb-gold {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(197, 155, 75, 0.45) 0%, rgba(197, 155, 75, 0) 70%);
  top: 10%;
  right: -5%;
}
.orb-cyan {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(31, 179, 179, 0.35) 0%, rgba(31, 179, 179, 0) 70%);
  bottom: 5%;
  left: -5%;
  animation-duration: 26s;
  animation-direction: alternate-reverse;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.1); }
  100% { transform: translate(40px, -20px) scale(0.95); }
}

/* 3. Weightless Levitation (طفو متذبذب سلس) */
.levitate-slow {
  animation: levitateSlow 7s ease-in-out infinite;
  will-change: transform;
}
.levitate-reverse {
  animation: levitateReverse 8.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes levitateSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(0.4deg); }
}
@keyframes levitateReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(12px) rotate(-0.5deg); }
}

/* 4. Glassmorphism & Diffuse Weightless Shadows (الزجاج المصقول والظلال المعلقة) */
.glass-panel-floating {
  background: rgba(11, 23, 38, 0.65) !important;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(197, 155, 75, 0.28) !important;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 40px -10px rgba(197, 155, 75, 0.18) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-floating:hover {
  border-color: rgba(197, 155, 75, 0.6) !important;
  box-shadow: 
    0 35px 80px -15px rgba(0, 0, 0, 0.85),
    0 0 55px rgba(197, 155, 75, 0.28) !important;
}

/* 5. 3D Card Tilt with Specular Reflection (تفاعل ثلاثي الأبعاد مع الفأرة) */
.project-card, .service-card, .hero-composite-card {
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

/* Card Glare Overlay */
.card-specular-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 4;
  background: radial-gradient(circle 350px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 235, 190, 0.16), transparent 75%);
}
.project-card:hover .card-specular-glare,
.service-card:hover .card-specular-glare {
  opacity: 1;
}

/* 6. Magnetic Springs for Floating CTAs */
.magnetic-spring {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* 7. Expanded 6-Video Theater Grid */
.video-theater-card {
  background: rgba(11, 23, 38, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(197, 155, 75, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(197, 155, 75, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.video-theater-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--gold-primary);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.85), 0 0 40px rgba(197, 155, 75, 0.25);
}
.video-theater-media {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.video-theater-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-theater-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 13, 20, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold-200);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.video-theater-loc {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.75);
  color: #CAD7E2;
  font-size: 0.72rem;
  z-index: 2;
}

/* 7.1 Engineering File Showcase Placeholder (Retained Cards without video) */
.video-placeholder-media {
  position: relative;
  aspect-ratio: 16/9;
  background: #050B12;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.72) contrast(1.08);
}
.video-theater-card:hover .video-placeholder-img {
  transform: scale(1.05);
  filter: brightness(0.85);
}
.video-placeholder-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 14, 23, 0.35) 0%, rgba(7, 14, 23, 0.88) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  z-index: 2;
}
.video-placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(197, 155, 75, 0.18);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 0 25px rgba(197, 155, 75, 0.35);
  animation: pulseGoldGlow 3s infinite ease-in-out;
}
.video-placeholder-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 25, 41, 0.94);
  border: 1px solid rgba(197, 155, 75, 0.55);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--gold-200);
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.video-placeholder-banner .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
  display: inline-block;
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseGoldGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(197, 155, 75, 0.25); transform: scale(1); }
  50% { box-shadow: 0 0 28px rgba(197, 155, 75, 0.5); transform: scale(1.05); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* 8. Accessibility: Respect User's Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .levitate-slow, .levitate-reverse, .floating-orb {
    animation: none !important;
  }
  .gravity-canvas {
    display: none !important;
  }
  .project-card, .service-card, .hero-composite-card, .magnetic-spring {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   9. Interactive 3D Construction & Finishing Studio Banner (#studio-3d)
   ========================================================================== */
.studio-3d-section {
  position: relative;
  padding-block: 100px;
  background:
    radial-gradient(1000px 500px at 15% 20%, rgba(31, 179, 179, 0.14), transparent 70%),
    radial-gradient(1000px 500px at 85% 80%, rgba(197, 155, 75, 0.16), transparent 70%),
    linear-gradient(180deg, #060C14 0%, #091523 50%, #070E17 100%);
  border-top: 1px solid rgba(197, 155, 75, 0.2);
  border-bottom: 1px solid rgba(197, 155, 75, 0.2);
  overflow: hidden;
}

.studio-3d-shell {
  background: rgba(11, 22, 35, 0.85);
  border: 1px solid rgba(197, 155, 75, 0.35);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 40px rgba(197, 155, 75, 0.12);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.studio-3d-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  background: rgba(6, 12, 20, 0.9);
  border-bottom: 1px solid rgba(197, 155, 75, 0.22);
}

.studio-phase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-phase-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CAD7E2;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.studio-phase-btn:hover {
  border-color: var(--gold-primary);
  color: #FFF;
  background: rgba(197, 155, 75, 0.12);
}
.studio-phase-btn.active {
  background: linear-gradient(135deg, #ECC880 0%, var(--gold-primary) 60%, var(--gold-dark) 100%);
  color: #070E17;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(197, 155, 75, 0.35);
}

.studio-env-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-tool-btn {
  padding: 7px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 155, 75, 0.28);
  color: var(--gold-200);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.studio-tool-btn:hover, .studio-tool-btn.active {
  background: rgba(197, 155, 75, 0.22);
  border-color: var(--gold-primary);
  color: #FFF;
}

.studio-3d-body {
  display: grid;
  grid-template-columns: 1fr 350px;
  min-height: 540px;
}

.studio-canvas-wrap {
  position: relative;
  width: 100%;
  height: 540px;
  background: radial-gradient(circle at 50% 45%, #10253A 0%, #050C14 100%);
  cursor: grab;
  overflow: hidden;
  user-select: none;
}
.studio-canvas-wrap:active {
  cursor: grabbing;
}

#arch3dCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.studio-canvas-hud-top {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 3;
}

.studio-hud-badge {
  pointer-events: auto;
  background: rgba(7, 14, 23, 0.82);
  border: 1px solid rgba(197, 155, 75, 0.45);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 12px;
  color: #FFF;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-camera-presets {
  pointer-events: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.studio-scrubber-bar {
  position: absolute;
  bottom: 16px;
  right: 20px;
  left: 20px;
  background: rgba(7, 14, 23, 0.88);
  border: 1px solid rgba(197, 155, 75, 0.4);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
}

.studio-scrubber-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-200);
  white-space: nowrap;
}

.studio-scrubber-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1FB3B3 0%, var(--gold-primary) 100%);
  cursor: pointer;
}
.studio-scrubber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFF;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 12px rgba(197, 155, 75, 0.9);
  cursor: pointer;
}

.studio-inspector-panel {
  background: rgba(8, 16, 26, 0.96);
  border-right: 1px solid rgba(197, 155, 75, 0.22);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hotspot-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.hotspot-pill-btn {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CAD7E2;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hotspot-pill-btn:hover, .hotspot-pill-btn.active {
  background: rgba(197, 155, 75, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-100);
}

.inspector-spec-box {
  background: rgba(17, 32, 50, 0.75);
  border: 1px solid rgba(197, 155, 75, 0.35);
  border-radius: 16px;
  padding: 16px;
}

.video-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

@media (max-width: 992px) {
  .studio-3d-body,
  .studio-3d-main {
    grid-template-columns: 1fr;
  }
  .studio-canvas-wrap {
    height: 440px;
  }
  .studio-inspector-panel {
    border-right: none;
    border-top: 1px solid rgba(197, 155, 75, 0.22);
  }
}

/* ==========================================================================
   10. Complete Studio 3D Controls & Full-Website 3D Animation Engine
   ========================================================================== */

/* Global 3D Ambient Background Canvas */
.global-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

body > header,
body > main,
body > footer,
.top-utility-bar {
  position: relative;
  z-index: 2;
}

/* 3D Rotating Architectural Cube in Brand Header */
.cube-3d-scene {
  width: 34px;
  height: 34px;
  perspective: 300px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  flex-shrink: 0;
}

.cube-3d {
  width: 22px;
  height: 22px;
  position: relative;
  transform-style: preserve-3d;
  animation: spinCube3D 10s linear infinite;
}

.cube-3d-face {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold-primary);
  background: rgba(197, 155, 75, 0.18);
  box-shadow: inset 0 0 8px rgba(197, 155, 75, 0.45), 0 0 10px rgba(31, 179, 179, 0.25);
  backdrop-filter: blur(2px);
}
.cube-3d-face.front  { transform: rotateY(0deg) translateZ(11px); }
.cube-3d-face.back   { transform: rotateY(180deg) translateZ(11px); }
.cube-3d-face.right  { transform: rotateY(90deg) translateZ(11px); }
.cube-3d-face.left   { transform: rotateY(-90deg) translateZ(11px); }
.cube-3d-face.top    { transform: rotateX(90deg) translateZ(11px); background: rgba(31, 179, 179, 0.28); }
.cube-3d-face.bottom { transform: rotateX(-90deg) translateZ(11px); }

@keyframes spinCube3D {
  0%   { transform: rotateX(-22deg) rotateY(0deg) rotateZ(0deg); }
  50%  { transform: rotateX(22deg) rotateY(180deg) rotateZ(10deg); }
  100% { transform: rotateX(-22deg) rotateY(360deg) rotateZ(0deg); }
}

/* Hero 3D Stage & Parallax Depth Layers */
.hero-section {
  perspective: 1400px;
  transform-style: preserve-3d;
}

.hero-bg-layer img {
  animation: hero3dPanZoom 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero3dPanZoom {
  0%   { transform: scale(1.06) translate3d(0, 0, 0) rotateZ(0deg); }
  50%  { transform: scale(1.13) translate3d(-1.5%, -1%, 20px) rotateZ(-0.4deg); }
  100% { transform: scale(1.08) translate3d(1.5%, 1%, 10px) rotateZ(0.4deg); }
}

.hero-grid {
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.hero-content {
  transform-style: preserve-3d;
  transform: translateZ(30px);
}

.hero-headline {
  transform: translateZ(45px);
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.75), 0 0 30px rgba(197, 155, 75, 0.18);
}

.hero-actions {
  transform: translateZ(55px);
}

.hero-trust-row {
  transform: translateZ(40px);
}

.hero-showcase-card {
  transform-style: preserve-3d;
  animation: heroCardFloat3D 6.5s ease-in-out infinite;
  box-shadow:
    0 35px 80px -15px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(197, 155, 75, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.hero-showcase-card .showcase-floating-tag {
  transform: translateZ(50px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(197, 155, 75, 0.4);
}

.hero-showcase-card .showcase-meta {
  transform: translateZ(38px);
}

@keyframes heroCardFloat3D {
  0%, 100% {
    transform: perspective(1100px) translate3d(0, 0px, 40px) rotateX(2deg) rotateY(-5deg);
  }
  50% {
    transform: perspective(1100px) translate3d(0, -16px, 65px) rotateX(-3deg) rotateY(4deg);
  }
}

/* Universal 3D Card System (Stats, Services, Videos, Portfolio, Workflow) */
.stats-grid,
.services-grid,
.portfolio-grid,
.workflow-grid {
  perspective: 1400px;
  transform-style: preserve-3d;
}

.stat-box,
.service-card,
.portfolio-item,
.workflow-card,
.trust-pill {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  position: relative;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* Continuous Subtle 3D Idle Animation when not hovered */
.stat-box:not(.is-tilting),
.service-card:not(.is-tilting),
.workflow-card:not(.is-tilting) {
  animation: idleFloat3D 7s ease-in-out infinite;
}
.stat-box:nth-child(2n):not(.is-tilting),
.service-card:nth-child(2n):not(.is-tilting),
.workflow-card:nth-child(2n):not(.is-tilting) {
  animation-delay: -2.3s;
  animation-duration: 8.2s;
}
.stat-box:nth-child(3n):not(.is-tilting),
.service-card:nth-child(3n):not(.is-tilting),
.workflow-card:nth-child(3n):not(.is-tilting) {
  animation-delay: -4.5s;
  animation-duration: 7.6s;
}

@keyframes idleFloat3D {
  0%, 100% {
    transform: perspective(1100px) translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
  }
  33% {
    transform: perspective(1100px) translate3d(0, -7px, 12px) rotateX(1.8deg) rotateY(-1.8deg);
  }
  66% {
    transform: perspective(1100px) translate3d(0, 4px, 6px) rotateX(-1.4deg) rotateY(1.8deg);
  }
}

/* Inner Card Elements Popping Out in Z-Space (True 3D Parallax Depth) */
.stat-box .stat-number {
  display: block;
  transform: translateZ(42px);
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 22px rgba(197, 155, 75, 0.35);
}
.stat-box .stat-label {
  display: block;
  transform: translateZ(26px);
}
.stat-box .stat-sub {
  display: block;
  transform: translateZ(16px);
}

.service-card .service-num-badge,
.service-card .video-duration-pill {
  transform: translateZ(48px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.65);
}
.service-card .service-card-body {
  transform-style: preserve-3d;
  transform: translateZ(28px);
}
.service-card .service-card-title {
  transform: translateZ(36px);
}

.portfolio-item .portfolio-overlay {
  transform-style: preserve-3d;
  transform: translateZ(35px);
}
.portfolio-item .portfolio-cat-tag {
  transform: translateZ(50px);
}
.portfolio-item .portfolio-item-title {
  transform: translateZ(42px);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.85);
}

.workflow-card .workflow-step-num {
  transform: translateZ(45px);
  box-shadow: 0 12px 25px rgba(197, 155, 75, 0.4);
}
.workflow-card .workflow-title {
  transform: translateZ(30px);
}

/* 3D Specular Gold & Cyan Light Glare on Cards */
.card-glare-3d {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 6;
  background: radial-gradient(
    circle 320px at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 226, 155, 0.24) 0%,
    rgba(31, 179, 179, 0.1) 45%,
    transparent 75%
  );
  mix-blend-mode: screen;
}

.is-tilting .card-glare-3d {
  opacity: 1;
}

/* 3D Scroll-Driven Perspective Entrance Animation */
.reveal-3d {
  opacity: 0;
  transform: perspective(1200px) translate3d(0, 65px, -110px) rotateX(16deg) scale(0.94);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-3d.is-visible {
  opacity: 1;
  transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

/* Studio 3D Matching Classes for index.html */
.studio-phase-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-phase-btn .phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.75rem;
  font-weight: 800;
}

.studio-env-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 155, 75, 0.3);
  color: var(--gold-100);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}
.studio-env-btn:hover,
.studio-env-btn.active {
  background: rgba(197, 155, 75, 0.25);
  border-color: var(--gold-primary);
  color: #FFF;
  box-shadow: 0 0 18px rgba(197, 155, 75, 0.35);
}

.studio-3d-main {
  display: grid;
  grid-template-columns: 1fr 370px;
  min-height: 550px;
}

@media (max-width: 992px) {
  .studio-3d-main {
    grid-template-columns: 1fr;
  }
}

.studio-hud-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  pointer-events: none;
  z-index: 4;
}

.studio-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(6, 12, 20, 0.82);
  border: 1px solid rgba(197, 155, 75, 0.45);
  color: var(--gold-100);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.studio-camera-bar {
  position: absolute;
  bottom: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.studio-cam-btn {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: rgba(7, 14, 23, 0.86);
  border: 1px solid rgba(197, 155, 75, 0.35);
  color: #DCE7F0;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.studio-cam-btn:hover,
.studio-cam-btn.active {
  background: var(--gold-primary);
  color: #070E17;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 155, 75, 0.4);
}

.inspector-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(31, 179, 179, 0.16);
  border: 1px solid rgba(31, 179, 179, 0.45);
  color: #5EEAD4;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.inspector-title {
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.4;
}

.inspector-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.inspector-spec-list {
  list-style: none;
  padding: 14px 16px;
  margin: 0;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(197, 155, 75, 0.22);
  border-radius: 14px;
  font-size: 0.83rem;
  color: #D0DEE8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inspector-hotspot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hotspot-Quick-btn {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CAD7E2;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hotspot-Quick-btn:hover,
.hotspot-Quick-btn.active {
  background: rgba(197, 155, 75, 0.22);
  border-color: var(--gold-primary);
  color: var(--gold-100);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 155, 75, 0.25);
}

.studio-3d-shell > .studio-scrubber-bar {
  position: static;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(197, 155, 75, 0.22);
  background: rgba(5, 10, 18, 0.95);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.scrubber-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold-200);
}

.scrubber-track-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}

.scrubber-track-wrap input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1FB3B3 0%, var(--gold-primary) 100%);
  cursor: pointer;
}
.scrubber-track-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFF;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 14px rgba(197, 155, 75, 0.95);
  cursor: pointer;
}

.scrubber-val-badge {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(197, 155, 75, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-100);
  font-size: 0.82rem;
  font-weight: 800;
}

/* Video Filter Buttons & Duration Badge */
.video-filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(197, 155, 75, 0.28);
  color: #CAD7E2;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.video-filter-btn:hover,
.video-filter-btn.active {
  background: linear-gradient(135deg, #ECC880 0%, var(--gold-primary) 60%, var(--gold-dark) 100%);
  color: #070E17;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197, 155, 75, 0.35);
}

.video-duration-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 14, 23, 0.88);
  border: 1px solid rgba(31, 179, 179, 0.55);
  color: #5EEAD4;
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 3;
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   11. 3D Static Fallback Mode, iOS Safari Touch Optimization & CRM DB Bar
   ========================================================================== */

/* Static 3D Fallback Layer (#studio3dFallback) */
.studio-3d-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #050C14;
  display: none;
  overflow: hidden;
}

.studio-canvas-wrap.fallback-active .studio-3d-fallback {
  display: block;
}

.studio-canvas-wrap.fallback-active #arch3dCanvas,
.studio-canvas-wrap.fallback-active .studio-camera-bar {
  display: none !important;
}

.studio-3d-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.84) contrast(1.06);
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.fallback-stage-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(5, 11, 20, 0.65) 100%);
}

.fallback-mode-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  left: 18px;
  text-align: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(7, 14, 23, 0.9);
  border: 1px solid var(--gold-primary);
  color: var(--gold-100);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.fallback-pin {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 25, 41, 0.92);
  border: 2px solid var(--gold-primary);
  color: var(--gold-100);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(197, 155, 75, 0.6);
  transition: all 0.25s ease;
}

.fallback-pin:hover,
.fallback-pin.active {
  background: var(--gold-primary);
  color: #070E17;
  transform: translate(-50%, -50%) scale(1.22);
  box-shadow: 0 0 28px rgba(255, 224, 150, 0.95);
}

/* iOS Safari & Touch Device Optimization */
#arch3dCanvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.ba-slider-container {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

input[type="range"] {
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) and (pointer: coarse) {
  /* Larger touch thumbs for iPhone & Android */
  input[type="range"]::-webkit-slider-thumb {
    width: 28px !important;
    height: 28px !important;
  }
  .ba-handle-circle {
    width: 48px !important;
    height: 48px !important;
  }
  .studio-phase-btn,
  .studio-env-btn,
  .studio-cam-btn,
  .hotspot-Quick-btn,
  .calc-option-btn,
  .tier-pill-btn {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }
}

/* CRM Automated Backend Status Bar & Search */
.crm-db-status-bar {
  padding: 10px 24px;
  background: rgba(16, 185, 129, 0.08);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #A7F3D0;
}

.crm-db-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.db-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  display: inline-block;
}

.db-dot.local {
  background: #F59E0B;
  box-shadow: 0 0 10px #F59E0B;
}

.crm-mini-action-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(197, 155, 75, 0.35);
  color: var(--gold-100);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.crm-mini-action-btn:hover {
  background: var(--gold-primary);
  color: #070E17;
}

.crm-search-wrap {
  padding: 12px 24px 4px;
  background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   14. Unreal / glTF 2.0 PBR Engine Telemetry, Separated Meshes & Raycasting UI
   ========================================================================== */
.studio-gltf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 24px;
  background: linear-gradient(90deg, rgba(8, 22, 38, 0.96), rgba(14, 34, 54, 0.92));
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

.gltf-telemetry-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gltf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(15, 29, 46, 0.85);
  border: 1px solid rgba(197, 155, 75, 0.28);
  color: var(--gold-100);
  font-size: 0.74rem;
  font-weight: 700;
}

.gltf-badge-active {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
  color: #A7F3D0;
}

.gltf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-glb-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(197, 155, 75, 0.16);
  border: 1px solid rgba(197, 155, 75, 0.48);
  color: var(--gold-100);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s ease;
}

.studio-glb-download-btn:hover {
  background: var(--gold-primary);
  color: #070E17;
  transform: translateY(-1px);
}

.studio-meshes-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(5, 11, 19, 0.92);
  border-bottom: 1px solid rgba(197, 155, 75, 0.18);
}

.meshes-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-200);
}

.meshes-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mesh-layer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.mesh-layer-chip .mesh-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.35;
  transition: all 0.22s ease;
}

.mesh-layer-chip.active {
  background: rgba(31, 179, 179, 0.14);
  border-color: rgba(197, 155, 75, 0.55);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.mesh-layer-chip.active .mesh-dot {
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
}

.inspector-spatial-box {
  background: rgba(4, 10, 18, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spatial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.spatial-row code {
  font-family: monospace;
  font-size: 0.73rem;
  color: #7DD3FC;
  background: rgba(14, 165, 233, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.studio-theme-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.theme-style-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(197, 155, 75, 0.08);
  border: 1px solid rgba(197, 155, 75, 0.28);
  color: var(--gold-100);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

.theme-style-chip:hover {
  background: rgba(197, 155, 75, 0.22);
}

.theme-style-chip.active {
  background: linear-gradient(135deg, var(--gold-primary), #9E7932);
  border-color: var(--gold-100);
  color: #070E17;
  box-shadow: 0 4px 14px rgba(197, 155, 75, 0.45);
}

.studio-live-quote-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12), rgba(11, 25, 41, 0.95));
  border-top: 1px solid rgba(16, 185, 129, 0.32);
}

.live-quote-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.live-quote-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #A7F3D0;
}

.live-quote-amount {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--gold-100);
  background: rgba(197, 155, 75, 0.18);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(197, 155, 75, 0.45);
}

.live-quote-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.studio-quote-sync-btn {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #10B981, #059669);
  border: 1px solid #6EE7B7;
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.studio-quote-sync-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

/* ==========================================================================
   15. World-Class Architectural UX: Preloader, LTR/RTL, Marquee, Light Mode,
       AOS Micro-Interactions & Mobile 3D Touch Scroll-Guard
   ========================================================================== */

/* 15.1 Professional Luxury 3D Preloader (#alfajrPreloader) */
.alfajr-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 42%, #0F2236 0%, #070E17 70%, #03070C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s ease, transform 0.65s ease;
}

.alfajr-preloader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.04);
}

.preloader-inner {
  width: 100%;
  max-width: 440px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.preloader-emblem-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.preloader-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.preloader-ring-outer {
  inset: 0;
  border: 2px solid rgba(197, 155, 75, 0.25);
  border-top-color: #ECC880;
  border-right-color: #1FB3B3;
  animation: preloaderSpin 2.4s linear infinite;
  box-shadow: 0 0 28px rgba(197, 155, 75, 0.28);
}

.preloader-ring-inner {
  inset: 10px;
  border: 1.5px dashed rgba(31, 179, 179, 0.45);
  animation: preloaderSpinReverse 4s linear infinite;
}

.preloader-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(236, 200, 128, 0.55));
  transition: filter 0.3s ease, transform 0.3s ease;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes preloaderSpinReverse {
  to { transform: rotate(-360deg); }
}

.preloader-brand-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--gold-100);
  letter-spacing: 0.3px;
}

.preloader-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 20px;
}

.preloader-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 155, 75, 0.3);
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1FB3B3 0%, #C59B4B 55%, #FEF08A 100%);
  box-shadow: 0 0 16px rgba(236, 200, 128, 0.85);
  transition: width 0.18s ease-out;
}

.preloader-meta-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.preloader-asset-tag {
  color: #5EEAD4;
  font-family: monospace;
  font-weight: 700;
}

.preloader-percent {
  color: var(--gold-100);
  font-weight: 900;
  font-size: 0.92rem;
}

/* 15.2 Header Utility Buttons (Dark/Light Mode + AR/EN Toggle) */
.header-util-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 155, 75, 0.35);
  color: var(--gold-100);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.header-util-btn:hover {
  background: rgba(197, 155, 75, 0.22);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(197, 155, 75, 0.3);
}

/* 15.3 Trust Signals & Global Partners Infinite Marquee */
.trust-brands-section {
  padding: 20px 0 28px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(197, 155, 75, 0.14);
  border-bottom: 1px solid rgba(197, 155, 75, 0.14);
  background: linear-gradient(90deg, rgba(7, 14, 23, 0.85), rgba(13, 27, 43, 0.65), rgba(7, 14, 23, 0.85));
}

.trust-brands-header {
  text-align: center;
  margin-bottom: 14px;
}

.trust-brands-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brands-marquee-viewport {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.brands-marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: scrollBrandsMarquee 32s linear infinite;
}

.brands-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollBrandsMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: grayscale(100%) opacity(0.68);
  transition: all 0.3s ease;
  cursor: default;
  user-select: none;
}

.brand-partner-pill:hover {
  filter: grayscale(0%) opacity(1);
  border-color: var(--gold-primary);
  background: rgba(197, 155, 75, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(197, 155, 75, 0.22);
}

.brand-partner-mark {
  font-size: 1.35rem;
}

.brand-partner-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.brand-partner-text strong {
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #F8FAFC;
}

.brand-partner-text span {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--gold-200);
  letter-spacing: 0.5px;
}

/* 15.4 Smooth Scroll Micro-Interactions (AOS / GSAP-Style Reveal) */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1), transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 15.5 Mobile 3D Touch Scroll-Guard ("Tap to Interact with 3D Model") */
#arch3dCanvas.scroll-locked {
  touch-action: pan-y !important;
  pointer-events: none;
}

.studio-touch-guard {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: radial-gradient(circle at center, rgba(7, 14, 23, 0.18) 0%, rgba(7, 14, 23, 0.52) 100%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.studio-touch-guard.is-active {
  display: flex;
}

.touch-interact-btn {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  border-radius: 18px;
  background: rgba(7, 14, 23, 0.88);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-100);
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), 0 0 24px rgba(197, 155, 75, 0.35);
  transition: all 0.25s ease;
}

.touch-interact-btn:hover,
.touch-interact-btn:active {
  transform: scale(1.04);
  background: rgba(197, 155, 75, 0.25);
  color: #FFFFFF;
}

.touch-interact-icon {
  font-size: 1.4rem;
}

.touch-interact-text {
  font-size: 0.88rem;
  font-weight: 800;
}

.touch-interact-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.studio-lock-scroll-pill {
  position: absolute;
  top: 58px;
  left: 16px;
  z-index: 7;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.92);
  border: 1px solid #FEF08A;
  color: #070E17;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

/* 15.6 Web 3.0 Light Mode Theme (html[data-ui-theme="light"]) */
html[data-ui-theme="light"] {
  --bg-obsidian: #F7F4EC;
  --bg-deep: #EFECE2;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.86);
  --text-main: #0F172A;
  --text-secondary: #1E293B;
  --text-muted: #475569;
  --gold-100: #78350F;
  --gold-200: #92400E;
  --gold-primary: #B47B22;
}

html[data-ui-theme="light"] body {
  background-color: #F7F4EC;
  color: #0F172A;
}

html[data-ui-theme="light"] .site-header {
  background: rgba(252, 250, 245, 0.92);
  border-bottom: 1px solid rgba(180, 123, 34, 0.25);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

html[data-ui-theme="light"] .top-utility-bar {
  background: #0F172A;
  color: #F8FAFC;
}

html[data-ui-theme="light"] .brand-name,
html[data-ui-theme="light"] .section-title,
html[data-ui-theme="light"] .service-card-title,
html[data-ui-theme="light"] .workflow-title {
  color: #0F172A;
}

html[data-ui-theme="light"] .nav-link {
  color: #334155;
}

html[data-ui-theme="light"] .nav-link.active,
html[data-ui-theme="light"] .nav-link:hover {
  color: #92400E;
}

html[data-ui-theme="light"] .header-util-btn {
  background: rgba(180, 123, 34, 0.10);
  color: #78350F;
  border-color: rgba(180, 123, 34, 0.35);
}

html[data-ui-theme="light"] .stat-box,
html[data-ui-theme="light"] .service-card,
html[data-ui-theme="light"] .workflow-card,
html[data-ui-theme="light"] .calc-card,
html[data-ui-theme="light"] .testimonial-card,
html[data-ui-theme="light"] .contact-form-card,
html[data-ui-theme="light"] .contact-info-card {
  background: #FFFFFF;
  border-color: rgba(180, 123, 34, 0.25);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  color: #0F172A;
}

html[data-ui-theme="light"] .trust-brands-section {
  background: linear-gradient(90deg, #EFECE2, #FFFFFF, #EFECE2);
  border-color: rgba(180, 123, 34, 0.22);
}

html[data-ui-theme="light"] .brand-partner-pill {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

html[data-ui-theme="light"] .brand-partner-text strong {
  color: #0F172A;
}

html[data-ui-theme="light"] .brand-partner-text span {
  color: #92400E;
}

/* 15.7 Bilingual LTR Support (html[dir="ltr"]) */
html[dir="ltr"] body {
  text-align: left;
}

html[dir="ltr"] .hotspot-Quick-btn,
html[dir="ltr"] .hotspot-pill-btn {
  text-align: left;
}

html[dir="ltr"] .studio-inspector-panel {
  border-right: none;
  border-left: 1px solid rgba(197, 155, 75, 0.22);
}

/* ==========================================================================
   16. Official Printable PDF Quotation Sheet & Buttons (@media print)
   ========================================================================== */
.studio-pdf-quote-btn {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(197, 155, 75, 0.22);
  border: 1px solid var(--gold-primary);
  color: var(--gold-100);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
}

.studio-pdf-quote-btn:hover {
  background: var(--gold-primary);
  color: #070E17;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 155, 75, 0.45);
}

.pdf-official-btn {
  border-color: var(--gold-primary) !important;
  background: rgba(197, 155, 75, 0.14) !important;
  color: var(--gold-100) !important;
}

.pdf-official-btn:hover {
  background: var(--gold-primary) !important;
  color: #070E17 !important;
}

.official-pdf-quote-sheet {
  display: none;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  .global-3d-canvas,
  .alfajr-preloader,
  .top-utility-bar,
  .site-header,
  main,
  footer,
  .crm-drawer-overlay,
  .modal-overlay {
    display: none !important;
  }
  #officialPdfQuoteSheet,
  #officialPdfQuoteSheet * {
    visibility: visible !important;
  }
  #officialPdfQuoteSheet {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    background: #FFFFFF !important;
    color: #0F172A !important;
    padding: 24px 32px;
    font-family: 'Readex Pro', 'Tajawal', sans-serif;
  }
  .pdf-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 3px solid #B47B22;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  .pdf-brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .pdf-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
  }
  .pdf-brand-block h2 {
    font-size: 1.25rem;
    color: #0F172A;
    margin: 0 0 4px;
  }
  .pdf-brand-block p {
    font-size: 0.72rem;
    color: #92400E;
    font-weight: 800;
    margin: 0 0 4px;
  }
  .pdf-meta-box {
    text-align: left;
    font-size: 0.8rem;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 10px 14px;
  }
  .pdf-doc-badge {
    font-weight: 800;
    color: #92400E;
    margin-bottom: 4px;
  }
  .pdf-summary-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FEF3C7;
    border: 1.5px solid #D97706;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
  }
  .pdf-grand-total {
    font-size: 1.35rem;
    color: #78350F;
  }
  .pdf-Spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.85rem;
  }
  .pdf-Spec-table th,
  .pdf-Spec-table td {
    border: 1px solid #CBD5E1;
    padding: 10px 12px;
    text-align: right;
  }
  .pdf-Spec-table th {
    background: #0F172A !important;
    color: #FFFFFF !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .pdf-footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    border-top: 1px solid #CBD5E1;
    padding-top: 16px;
  }
  .pdf-official-seal {
    width: 155px;
    height: 155px;
    border-radius: 50%;
    border: 3px double #B47B22;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #92400E;
    padding: 12px;
  }
}

/* ==========================================================================
   17. Reviews, FAQ Accordion, Mobile Off-canvas Drawer, Scroll-To-Top & Privacy
   ========================================================================== */

/* 17.1 Verified Testimonials & Client Reviews Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.testimonial-card {
  background: rgba(11, 23, 38, 0.85);
  border: 1px solid rgba(197, 155, 75, 0.3);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65), 0 0 25px rgba(197, 155, 75, 0.25);
}

.testi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.testi-stars {
  color: #FBBF24;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.testi-date {
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.testi-quote {
  font-size: 0.92rem;
  color: #DDE7F0;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), #92400E);
  color: #070E17;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.88rem;
  box-shadow: 0 0 14px rgba(197, 155, 75, 0.45);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-info strong {
  font-size: 0.92rem;
  color: #FFFFFF;
}

.author-info span {
  font-size: 0.76rem;
  color: var(--gold-200);
}

.testi-trust-banner {
  text-align: center;
  margin-top: 32px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #A7F3D0;
  font-size: 0.82rem;
  font-weight: 700;
}

/* 17.2 FAQ Accordion Wrap & Items */
.faq-accordion-wrap {
  max-width: 900px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: var(--gold-primary);
  box-shadow: 0 10px 28px rgba(197, 155, 75, 0.18);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0F172A;
  text-align: right;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question-btn:hover {
  color: #B47B22;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F172A;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--gold-primary);
  color: #070E17;
}

.faq-answer-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer-body {
  max-height: 320px;
  padding: 0 24px 22px;
}

.faq-answer-body p {
  color: #475569;
  line-height: 1.85;
  font-size: 0.94rem;
  margin: 0;
}

/* 17.3 Mobile Off-Canvas Drawer Menu (#mobileDrawer) */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 15, 0.75);
  backdrop-filter: blur(6px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 84%;
  max-width: 340px;
  background: #070E17;
  border-left: 1px solid rgba(197, 155, 75, 0.3);
  z-index: 99995;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

html[dir="ltr"] .mobile-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid rgba(197, 155, 75, 0.3);
  transform: translateX(-100%);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #D6E4F0;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(197, 155, 75, 0.2);
  color: var(--gold-100);
  border-color: var(--gold-primary);
  padding-right: 18px;
}

html[dir="ltr"] .mobile-nav-link:hover {
  padding-right: 14px;
  padding-left: 18px;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.mobile-drawer-utils {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.mobile-drawer-utils .header-util-btn {
  flex: 1;
  justify-content: center;
}

/* 17.4 Floating Scroll-To-Top Button (#scrollTopBtn) */
.scroll-top-btn {
  position: fixed;
  bottom: 96px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(7, 14, 23, 0.9);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 16px rgba(197, 155, 75, 0.35);
  backdrop-filter: blur(8px);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--gold-primary);
  color: #070E17;
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(197, 155, 75, 0.6);
}

/* 17.5 Privacy Consent in Lead Form & Footer Links */
.form-privacy-consent {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: #A0B2C4;
  cursor: pointer;
  line-height: 1.6;
}

.consent-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.privacy-modal-link {
  background: none;
  border: none;
  color: var(--gold-200);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.footer-privacy-link {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0;
  transition: color 0.2s ease;
  text-align: right;
}

.footer-privacy-link:hover {
  color: var(--gold-100);
  text-decoration: underline;
}

.privacy-modal-content {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

/* ==========================================================================
   18. AI Architectural Chatbot Advisor Widget (#alfajrChatWidget)
   ========================================================================== */
.alfajr-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9995;
  font-family: inherit;
  direction: rtl;
}

[dir="ltr"] .alfajr-chat-widget {
  right: auto;
  left: 24px;
  direction: ltr;
}

/* Floating Launcher Button */
.chat-launcher-btn {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #102136 0%, #060B12 100%);
  border: 2px solid var(--gold-primary);
  color: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(197, 155, 75, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.chat-launcher-btn:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: #E2C99A;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(197, 155, 75, 0.7);
}

.launcher-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(197, 155, 75, 0.6);
  animation: chatPulseRing 2.6s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes chatPulseRing {
  0% { transform: scale(0.92); opacity: 0.9; }
  50% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.launcher-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.launcher-icon .icon-chat {
  display: block;
}

.launcher-icon .icon-close {
  display: none;
}

.alfajr-chat-widget.is-open .launcher-icon .icon-chat {
  display: none;
}

.alfajr-chat-widget.is-open .launcher-icon .icon-close {
  display: block;
}

.launcher-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E53935;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #070E17;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: opacity 0.3s ease;
}

.launcher-badge.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.launcher-tooltip {
  position: absolute;
  bottom: 12px;
  right: 76px;
  white-space: nowrap;
  background: rgba(7, 14, 23, 0.94);
  color: var(--gold-100);
  border: 1px solid rgba(197, 155, 75, 0.4);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

[dir="ltr"] .launcher-tooltip {
  right: auto;
  left: 76px;
  transform: translateX(-10px);
}

.chat-launcher-btn:hover .launcher-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Chat Window */
.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: rgba(10, 19, 32, 0.96);
  border: 1.5px solid rgba(197, 155, 75, 0.35);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(197, 155, 75, 0.15);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

[dir="ltr"] .chat-window {
  right: auto;
  left: 0;
  transform-origin: bottom left;
}

.alfajr-chat-widget.is-open .chat-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(16, 33, 54, 0.95), rgba(7, 14, 23, 0.98));
  border-bottom: 1px solid rgba(197, 155, 75, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(197, 155, 75, 0.15);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.avatar-badge-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: #00E676;
  border-radius: 50%;
  border: 2px solid #0A1320;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #FFFFFF;
}

.chat-status-pill {
  font-size: 0.7rem;
  color: #00E676;
  font-weight: 500;
}

.chat-subtitle {
  font-size: 0.75rem;
  color: #8DA2B5;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A0B2C4;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.chat-tool-btn:hover {
  background: rgba(197, 155, 75, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-100);
}

/* Chat Body */
.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.chat-body::-webkit-scrollbar {
  width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
  background: rgba(197, 155, 75, 0.25);
  border-radius: 4px;
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 90%;
  animation: chatMsgFadeIn 0.3s ease;
}

@keyframes chatMsgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.chat-msg.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(197, 155, 75, 0.12);
  border: 1px solid rgba(197, 155, 75, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.user-msg .msg-avatar {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.msg-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg-bubble {
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.6;
}

.bot-msg .msg-bubble {
  background: rgba(18, 34, 55, 0.85);
  border: 1px solid rgba(197, 155, 75, 0.25);
  color: #E2E8F0;
  border-top-right-radius: 4px;
}

[dir="ltr"] .bot-msg .msg-bubble {
  border-top-right-radius: 16px;
  border-top-left-radius: 4px;
}

.bot-msg .msg-bubble p {
  margin: 0 0 8px 0;
}
.bot-msg .msg-bubble p:last-child {
  margin-bottom: 0;
}

.msg-hint {
  color: var(--gold-200);
  font-size: 0.78rem;
  font-weight: 600;
}

.user-msg .msg-bubble {
  background: linear-gradient(135deg, #C59B4B, #9E7A32);
  color: #070E17;
  font-weight: 500;
  border-top-left-radius: 4px;
  box-shadow: 0 4px 14px rgba(197, 155, 75, 0.35);
}

[dir="ltr"] .user-msg .msg-bubble {
  border-top-left-radius: 16px;
  border-top-right-radius: 4px;
}

.msg-time {
  font-size: 0.68rem;
  color: #718496;
  margin-top: 2px;
}

.user-msg .msg-time {
  align-self: flex-start;
}

/* Quick Chips */
.chat-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(197, 155, 75, 0.35);
  color: #E8D7B8;
  padding: 6px 11px;
  border-radius: 14px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: right;
}

[dir="ltr"] .quick-chip {
  text-align: left;
}

.quick-chip:hover {
  background: rgba(197, 155, 75, 0.2);
  border-color: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Direct Action Buttons inside Chat Bubble */
.chat-action-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.chat-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: none;
}

.chat-cta-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.chat-cta-whatsapp:hover {
  background: #1EBE5D;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.chat-cta-quote {
  background: var(--gold-primary);
  color: #070E17;
}

.chat-cta-quote:hover {
  background: #D4AF37;
  box-shadow: 0 4px 12px rgba(197, 155, 75, 0.4);
}

/* Typing Indicator */
.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: rgba(18, 34, 55, 0.6);
  border-radius: 12px;
  align-self: flex-start;
  margin-right: 42px;
}

[dir="ltr"] .chat-typing-indicator {
  margin-right: 0;
  margin-left: 42px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.typing-text {
  font-size: 0.72rem;
  color: #8DA2B5;
  margin-right: 6px;
}

[dir="ltr"] .typing-text {
  margin-right: 0;
  margin-left: 6px;
}

/* Chat Footer / Input Form */
.chat-footer {
  padding: 12px 14px;
  background: rgba(7, 14, 23, 0.95);
  border-top: 1px solid rgba(197, 155, 75, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-size: 0.86rem;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.chat-input:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(197, 155, 75, 0.2);
}

.chat-input::placeholder {
  color: #6C7D8F;
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-primary);
  border: none;
  color: #070E17;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

[dir="rtl"] .chat-send-btn svg {
  transform: rotate(180deg);
}

.chat-send-btn:hover {
  background: #E2C99A;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(197, 155, 75, 0.4);
}

/* Light Theme Adaptations for Chatbot */
[data-ui-theme="light"] .chat-launcher-btn {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F0E6 100%);
  color: #9E7A32;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 0 25px rgba(197, 155, 75, 0.3);
}

[data-ui-theme="light"] .chat-window {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(197, 155, 75, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 0 35px rgba(197, 155, 75, 0.1);
}

[data-ui-theme="light"] .chat-header {
  background: linear-gradient(135deg, #F8F5EE, #EFE8DA);
  border-bottom-color: rgba(197, 155, 75, 0.3);
}

[data-ui-theme="light"] .chat-title {
  color: #1A2634;
}

[data-ui-theme="light"] .chat-subtitle {
  color: #64748B;
}

[data-ui-theme="light"] .bot-msg .msg-bubble {
  background: #F1EFEA;
  border-color: rgba(197, 155, 75, 0.3);
  color: #1A2634;
}

[data-ui-theme="light"] .quick-chip {
  background: #FFFFFF;
  border-color: rgba(197, 155, 75, 0.45);
  color: #7A5C22;
}

[data-ui-theme="light"] .quick-chip:hover {
  background: #C59B4B;
  color: #FFFFFF;
}

[data-ui-theme="light"] .chat-footer {
  background: #F8F6F0;
  border-top-color: rgba(197, 155, 75, 0.25);
}

[data-ui-theme="light"] .chat-input {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #1A2634;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .alfajr-chat-widget {
    bottom: 18px;
    right: 16px;
  }
  [dir="ltr"] .alfajr-chat-widget {
    left: 16px;
  }
  .chat-launcher-btn {
    width: 56px;
    height: 56px;
  }
  .chat-window {
    width: calc(100vw - 32px);
    height: 72vh;
    bottom: 74px;
    right: 0;
  }
}








/* 3D Flythrough Video Layer (Phase 05) */
.studio-3d-video-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #050C14;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.studio-3d-video-layer.active {
  opacity: 1;
  visibility: visible;
}
.studio-3d-video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-video-overlay-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 14, 23, 0.9);
  border: 1px solid rgba(197, 155, 75, 0.55);
  backdrop-filter: blur(12px);
  padding: 10px 18px;
  border-radius: 14px;
  z-index: 6;
  pointer-events: auto;
}
.video-badge-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFF;
  font-size: 0.85rem;
  font-weight: 600;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1FB3B3;
  box-shadow: 0 0 10px #1FB3B3;
  animation: pulseLiveDot 1.5s infinite;
}
@keyframes pulseLiveDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
.video-quick-actions {
  display: flex;
  gap: 8px;
}
.studio-vid-btn {
  background: rgba(197, 155, 75, 0.18);
  border: 1px solid var(--gold-primary);
  color: #FFF;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.studio-vid-btn:hover {
  background: var(--gold-primary);
  color: #000;
}
.studio-phase-video-btn {
  background: linear-gradient(135deg, rgba(197, 155, 75, 0.2), rgba(31, 179, 179, 0.25)) !important;
  border: 1.5px solid #1FB3B3 !important;
  position: relative;
  overflow: hidden;
}
.studio-phase-video-btn.active {
  background: linear-gradient(135deg, #C59B4B, #1FB3B3) !important;
  color: #050A0F !important;
  font-weight: 800 !important;
  box-shadow: 0 0 20px rgba(31, 179, 179, 0.6) !important;
}
@media (max-width: 768px) {
  .studio-video-overlay-controls {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  .video-quick-actions {
    justify-content: center;
  }
}
