/* ============================================
   EGYPT MARKETING AGENCY — style.css
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #FFB800;
  --gold-dark:  #CC9200;
  --gold-light: #FFD060;
  --orange:     #FF6B00;
  --bg:         #0A0A0A;
  --bg2:        #111111;
  --bg3:        #1A1A1A;
  --surface:    #161616;
  --surface2:   #222222;
  --border:     rgba(255,255,255,0.07);
  --border2:    rgba(255,184,0,0.2);
  --text:       #F0F0F0;
  --text2:      #AAAAAA;
  --text3:      #666666;
  --white:      #FFFFFF;
  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  24px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --trans:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 4px 20px rgba(0,0,0,0.4);
  --shadow:     0 20px 60px rgba(0,0,0,0.6);
  --shadow-gold:0 8px 40px rgba(255,184,0,0.25);
}

/* LIGHT THEME OVERRIDES */
body.light-theme {
  --bg:         #F8F9FA;
  --bg2:        #FFFFFF;
  --bg3:        #F1F3F5;
  --surface:    #FFFFFF;
  --surface2:   #E9ECEF;
  --border:     rgba(0, 0, 0, 0.08);
  --border2:    rgba(212, 155, 0, 0.35);
  --text:       #1E293B;
  --text2:      #334155;
  --text3:      #64748B;
  --white:      #0F172A;
  --gold:       #D49B00;
  --gold-light: #EBB000;
  --shadow-sm:  0 4px 20px rgba(0,0,0,0.05);
  --shadow:     0 20px 50px rgba(0,0,0,0.07);
  --shadow-gold:0 8px 30px rgba(212,155,0,0.25);
}

/* Header & Nav in Light Mode */
body.light-theme #site-header {
  background: rgba(248, 249, 250, 0.88);
  backdrop-filter: blur(12px);
}
body.light-theme #site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

body.light-theme .logo-img-white { display: none !important; }
body.light-theme .logo-img-black { display: block !important; }

body.light-theme .nav-link {
  color: #334155;
  font-weight: 600;
}
body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
  color: #D49B00;
}

body.light-theme .theme-toggle-btn,
body.light-theme .lang-toggle-btn {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.12);
  color: #0F172A;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

body.light-theme .btn-primary {
  background: #D49B00;
  color: #FFFFFF !important;
  font-weight: 700;
}
body.light-theme .btn-primary:hover {
  background: #B88600;
  color: #FFFFFF !important;
}

body.light-theme .btn-ghost {
  border-color: rgba(212, 155, 0, 0.5);
  color: #0F172A;
  background: rgba(255, 255, 255, 0.9);
}
body.light-theme .btn-ghost:hover {
  background: #D49B00;
  color: #FFFFFF !important;
  border-color: #D49B00;
}

/* Typography Headings in Light Mode */
body.light-theme .section-title,
body.light-theme .hero-heading,
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4 {
  color: #0F172A;
}

body.light-theme .section-desc,
body.light-theme p {
  color: #334155;
}

/* Service Cards in Light Mode */
body.light-theme .svc-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
body.light-theme .svc-card:hover {
  border-color: rgba(212, 155, 0, 0.4);
  background: #FFFFFF;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.1), 0 0 20px rgba(212, 155, 0, 0.12);
}
body.light-theme .svc-card h3 {
  color: #0F172A;
}
body.light-theme .svc-card p {
  color: #475569;
}
body.light-theme .svc-card:hover h3 {
  color: #D49B00;
}
body.light-theme .svc-num {
  background: rgba(212, 155, 0, 0.1);
  border-color: rgba(212, 155, 0, 0.3);
  color: #B88600;
}
body.light-theme .svc-link {
  background: rgba(212, 155, 0, 0.08);
  border-color: rgba(212, 155, 0, 0.2);
  color: #B88600;
}
body.light-theme .svc-link:hover {
  background: #D49B00;
  color: #FFFFFF !important;
  border-color: #D49B00;
}

/* Hero Section in Light Mode */
body.light-theme .hero-badge {
  background: rgba(212, 155, 0, 0.1);
  border: 1px solid rgba(212, 155, 0, 0.3);
  color: #B88600;
}
body.light-theme .hero-marquee {
  background: #FFFFFF !important;
  border-top: 1px solid rgba(212, 155, 0, 0.25) !important;
  border-bottom: 1px solid rgba(212, 155, 0, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}
body.light-theme .marquee-track {
  color: #1E293B !important;
}
body.light-theme .marquee-track span {
  color: #1E293B !important;
  font-weight: 700 !important;
}
body.light-theme .marquee-track .sep {
  color: #D49B00 !important;
}

/* About Section in Light Mode */
body.light-theme .about-tab-btn {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #475569;
}
body.light-theme .about-tab-btn:hover {
  border-color: #D49B00;
  color: #D49B00;
}
body.light-theme .about-tab-btn.active {
  background: #D49B00;
  color: #FFFFFF !important;
  border-color: #D49B00;
}
body.light-theme .about-accent-block {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0F172A;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
body.light-theme .slide-arrow {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0F172A;
}

/* Coverflow Portfolio Showcase in Light Mode */
body.light-theme .coverflow-meta-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
body.light-theme #cfTitle {
  color: #0F172A;
}
body.light-theme #cfDesc {
  color: #334155;
}
body.light-theme .cf-nav-btn {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0F172A;
}
body.light-theme .cf-counter {
  color: #0F172A;
}

/* Case Study Modal in Light Mode */
body.light-theme .case-study-modal-content {
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}
body.light-theme .cs-meta-item label {
  color: #64748B;
}
body.light-theme .cs-meta-item span {
  color: #0F172A;
}
body.light-theme .cs-section-title {
  color: #0F172A;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .cs-section-text {
  color: #334155;
}
body.light-theme .cs-result-card {
  background: #F8FAFC;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-theme .cs-result-val {
  color: #D49B00;
}
body.light-theme .cs-result-lbl {
  color: #475569;
}
body.light-theme .cs-cta-box {
  background: linear-gradient(135deg, #F8FAFC, #EDF2F7);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-theme .cs-cta-box h3 {
  color: #0F172A !important;
}
body.light-theme .cs-cta-box p {
  color: #475569 !important;
}
body.light-theme .cs-modal-close {
  background: #F1F5F9;
  color: #0F172A;
}

/* Testimonials & Clients in Light Mode */
body.light-theme .testi-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
body.light-theme .testi-card p {
  color: #334155;
}
body.light-theme .testi-name {
  color: #0F172A;
}
body.light-theme .testi-co {
  color: #64748B;
}
body.light-theme .testi-btn {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0F172A;
}
body.light-theme .cl-item {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #334155;
}

/* CTA Band in Light Mode */
body.light-theme .cta-band {
  background: linear-gradient(135deg, #FFFDF5, #FFF7E6);
  border-top: 1px solid rgba(212, 155, 0, 0.2);
  border-bottom: 1px solid rgba(212, 155, 0, 0.2);
}
body.light-theme .cta-band::before {
  background: radial-gradient(ellipse, rgba(212, 155, 0, 0.15) 0%, transparent 70%);
}
body.light-theme .cta-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
body.light-theme .cta-copy h2 {
  color: #0F172A;
}
body.light-theme .cta-copy p {
  color: #334155;
}

/* Contact Form in Light Mode */
body.light-theme .contact-info-col,
body.light-theme .contact-form-col,
body.light-theme .contact-form,
body.light-theme .contact-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
body.light-theme .contact-desc {
  color: #475569;
}
body.light-theme .cd-label {
  color: #64748B;
}
body.light-theme .cd-value {
  color: #0F172A;
}
body.light-theme .csoc {
  background: #F1F5F9;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0F172A;
}
body.light-theme .csoc:hover {
  background: #D49B00;
  color: #FFFFFF;
}
body.light-theme .btn-submit {
  background: #D49B00;
  color: #0A0A0A !important;
}
body.light-theme .btn-submit .btn-text,
body.light-theme .btn-submit .btn-icon {
  color: #0A0A0A !important;
}

/* Footer in Light Mode */
body.light-theme .site-footer {
  background: #F1F5F9;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-theme .fn-col h4,
body.light-theme .footer-newsletter h4 {
  color: #0F172A;
}
body.light-theme .fn-col li a,
body.light-theme .footer-brand p,
body.light-theme .footer-bottom {
  color: #475569;
}
body.light-theme .fsoc {
  background: #FFFFFF;
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}
body.light-theme .fsoc:hover {
  background: #D49B00;
  color: #FFFFFF;
}
body.light-theme #fnEmail {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
}

body.light-theme #cur-ring {
  border-color: rgba(212,155,0,0.6);
}
body.light-theme #cur-dot {
  background: #D49B00;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { position: relative; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img, svg { display: block; }
input, select, textarea { font-family: inherit; }

/* Phone numbers RTL Fix */
a[href^="tel:"],
input[type="tel"],
.phone-num,
[dir="ltr"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 110px 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* Selection */
::selection { background: rgba(255,184,0,0.3); color: #fff; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
#cur-dot {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s;
}
#cur-ring {
  position: fixed; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,184,0,0.5); pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  transition: all .1s linear;
}
.cur-hover #cur-dot { width: 14px; height: 14px; background: var(--orange); }
.cur-hover #cur-ring { width: 50px; height: 50px; border-color: rgba(255,107,0,0.4); }

/* ============================================
/* ============================================
   PRELOADER (CINEMATIC GOLDEN SHIMMER & GLOW)
   ============================================ */
#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  min-height: 100vh;
  z-index: 999999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0; padding: 0;
  box-sizing: border-box;
  transition: opacity .7s cubic-bezier(0.22, 1, 0.36, 1), visibility .7s ease;
}
html.light-theme #preloader,
body.light-theme #preloader {
  background: #FFFFFF !important;
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pre-inner {
  position: relative;
  width: 100%;
  max-width: min(360px, 90vw);
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pre-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 26px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: radial-gradient(circle at center, rgba(255, 184, 0, 0.15) 0%, transparent 70%);
  animation: preLogoAura 2s ease-in-out infinite alternate;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, filter 0.5s ease;
}

/* Diagonal metallic light sheen */
.pre-logo::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -130%;
  width: 80%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 215, 0, 0.75) 50%,
    rgba(255, 255, 255, 0.35) 55%,
    transparent 80%
  );
  transform: rotate(25deg);
  animation: preLogoShimmer 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

body.light-theme .pre-logo {
  background: radial-gradient(circle at center, rgba(212, 155, 0, 0.12) 0%, transparent 70%);
}

body.light-theme .pre-logo::after {
  mix-blend-mode: color-dodge;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 184, 0, 0.3) 45%,
    rgba(212, 155, 0, 0.6) 50%,
    rgba(255, 184, 0, 0.3) 55%,
    transparent 80%
  );
}

.preloader-logo-img {
  height: 95px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  animation: preLogoBreathing 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 14px rgba(255, 184, 0, 0.35)) drop-shadow(0 0 28px rgba(255, 184, 0, 0.18));
  transition: transform 0.3s ease;
}

body.light-theme .preloader-logo-img {
  filter: drop-shadow(0 0 12px rgba(212, 155, 0, 0.3));
}

#preloader.done .pre-logo {
  transform: scale(1.08) translateY(-16px);
  opacity: 0;
  filter: blur(8px);
}

.pre-bar-wrap {
  width: 200px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

body.light-theme .pre-bar-wrap {
  background: rgba(0, 0, 0, 0.08);
}

.pre-bar {
  height: 100%;
  background: linear-gradient(90deg, #FFB800, #FFA800, #FFE58F);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.6);
  animation: preLoad 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes preLogoBreathing {
  0% {
    transform: scale(0.96) translateY(0);
    filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.25));
  }
  100% {
    transform: scale(1.03) translateY(-4px);
    filter: drop-shadow(0 0 20px rgba(255, 184, 0, 0.55)) drop-shadow(0 0 35px rgba(255, 184, 0, 0.25));
  }
}

@keyframes preLogoAura {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

@keyframes preLogoShimmer {
  0% { left: -140%; }
  35% { left: 160%; }
  100% { left: 160%; }
}

@keyframes preLoad {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ============================================
   GLOBAL TOKENS
   ============================================ */
.accent { color: var(--gold); }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: var(--white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 580px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 50px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700; font-size: 0.95rem;
  transition: var(--trans);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--orange));
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.btn-primary span, .btn-primary svg { position: relative; }
.btn-primary.btn-lg { padding: 18px 42px; font-size: 1.05rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 50px;
  border: 1.5px solid var(--border2);
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  transition: var(--trans); white-space: nowrap;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-ghost.btn-lg { padding: 18px 42px; font-size: 1.05rem; }
.play-icon { font-size: 0.7rem; }

/* ============================================
   NAVIGATION
   ============================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: var(--trans);
}
#site-header.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 3rem;
  max-width: 1440px; margin: 0 auto;
}

/* Logo Images */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  max-width: 180px;
  overflow: hidden;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.preloader-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* Default (Dark Mode) -> Show White Logo Image */
.logo-img-white { display: block !important; }
.logo-img-black { display: none !important; }

/* Light Theme Overrides -> Show Black Logo Image */
body.light-theme .logo-img-white { display: none !important; }
body.light-theme .logo-img-black { display: block !important; }

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-link {
  font-size: 0.88rem; font-weight: 500; color: var(--text2);
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold); border-radius: 1px;
  transition: width .3s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 0.8rem; }

.theme-toggle-btn,
.lang-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--gold);
  transition: var(--trans);
  cursor: pointer;
}

.lang-toggle-btn {
  width: auto;
  padding: 0 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
}

.theme-toggle-btn:hover,
.lang-toggle-btn:hover {
  border-color: var(--gold);
  background: rgba(255,184,0,0.12);
  transform: translateY(-2px);
}

.btn-cta {
  padding: 10px 24px; border-radius: 50px;
  background: var(--gold); color: var(--bg);
  font-weight: 700; font-size: 0.88rem;
  transition: var(--trans);
}
.btn-cta:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 2.2rem 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 999;
  overflow-y: auto;
}
.mobile-nav:not([hidden]) { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav[hidden] { display: block !important; transform: translateY(-100%); opacity: 0; pointer-events: none; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; text-align: center; }
.mob-link {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem; font-weight: 700; color: var(--text);
  transition: color .2s;
}
.mob-link:hover { color: var(--gold); }
.mob-cta { display: block; width: 100%; text-align: center; margin: 0 auto; }

/* ============================================
   HERO (SCROLL PINNED)
   ============================================ */
.hero {
  height: 180vh;
  background: var(--bg);
  position: relative;
  padding: 0;
  margin: 0;
  overflow: visible;
}

#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  padding: 85px 0 0 !important;
  box-sizing: border-box;
  z-index: 2;
}

/* Radial spotlight - REMOVED completely (no yellow blob in dark or light mode) */
.hero::before,
body.light-theme .hero::before {
  display: none !important;
  content: none !important;
}

.hero-content {
  position: relative; z-index: 5;
  text-align: center;
  max-width: 1100px;
  width: 100%;
  padding: 0 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 24px; border-radius: 50px;
  background: rgba(255,184,0,0.08); border: 1px solid rgba(255,184,0,0.2);
  font-size: 0.85rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.5px; margin-bottom: 1.25rem;
  opacity: 0; animation: fadeUp .8s var(--ease) .3s forwards;
}
.badge-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,184,0,0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,184,0,0.2); }
  50%      { box-shadow: 0 0 0 7px rgba(255,184,0,0.05); }
}

.hero-steps-container {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
}

.hero-step {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 1020px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.hero-step.before {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(35px);
}

.hero-step.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateY(0);
}

.hero-step.exit {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateY(-35px);
}

.hero-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.18;
  color: var(--white);
  margin-bottom: 0;
  letter-spacing: -1px;
}
.h-line {
  display: block;
  opacity: 1;
  transform: none;
}
.accent-line em { font-style: normal; color: var(--gold); }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text2); max-width: 680px; margin: 0 auto;
  line-height: 1.75;
}

.reveal-fade {
  opacity: 0; animation: fadeUp .7s var(--ease) .85s forwards;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
  z-index: 5;
  margin-top: 1.5rem;
}

/* Marquee */
.hero-marquee {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: auto;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  z-index: 3;
  direction: ltr !important;
  background: rgba(7, 9, 14, 0.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-sizing: border-box;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: heroMarqueeTrack 35s linear infinite;
  width: max-content;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text2);
  will-change: transform;
}
.sep { color: var(--gold); font-size: 0.7rem; }

@keyframes heroMarqueeTrack {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text3);
  z-index: 4;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.scroll-mouse {
  width: 20px; height: 32px; border-radius: 12px;
  border: 1.5px solid var(--text3);
  display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--gold);
  animation: scrollWheel 1.8s var(--ease) infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ============================================
   STATS BAND
   ============================================ */
.stats-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-item {
  text-align: center;
  padding: 1.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 0, 0.55);
  box-shadow: 0 15px 35px rgba(255, 184, 0, 0.15);
}
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800; color: var(--gold);
  line-height: 1;
}
.stat-plus { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.stat-item p {
  font-size: 0.88rem; color: var(--text2);
  font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; margin-top: 10px; margin-bottom: 0;
}
body.rtl .stat-item p {
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0;
}
body.light-theme .stats-band {
  background: #F8F9FA;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-theme .stat-item {
  background: #FFFFFF !important;
  border: 1px solid rgba(212, 155, 0, 0.28) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04) !important;
}
body.light-theme .stat-item:hover {
  transform: translateY(-4px);
  border-color: #D49B00 !important;
  box-shadow: 0 12px 30px rgba(212, 155, 0, 0.18) !important;
}
body.light-theme .stat-item .stat-num,
body.light-theme .stat-item .stat-plus {
  color: #D49B00 !important;
}
body.light-theme .stat-item p {
  color: #1E293B !important;
  font-weight: 700 !important;
}

/* ============================================
   SERVICES (COMPACT & BALANCED 4-COLUMN GRID)
   ============================================ */
.services-section { background: var(--bg); position: relative; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.svc-card {
  background: rgba(18, 18, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Top accent border line on hover */
.svc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFB800, #FF6B00, #FFD700);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover ambient backlight glow */
.svc-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.16) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.svc-card:hover::before { transform: scaleX(1); }
.svc-card:hover::after { opacity: 1; }

.svc-card:hover {
  border-color: rgba(255, 184, 0, 0.35);
  background: rgba(26, 26, 32, 0.92);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 184, 0, 0.08);
}

/* Featured Service Card */
.svc-card.featured {
  background: linear-gradient(145deg, rgba(255, 184, 0, 0.08), rgba(20, 20, 26, 0.85));
  border-color: rgba(255, 184, 0, 0.25);
}
.svc-card.featured::before {
  transform: scaleX(1);
}

.svc-badge {
  position: absolute; top: 1.1rem; right: 1.1rem;
  padding: 3px 10px; border-radius: 50px;
  background: linear-gradient(135deg, #FFB800, #FF8C00);
  color: #0A0A0A;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(255, 184, 0, 0.25);
}

body.rtl .svc-badge {
  right: auto; left: 1.1rem;
}

.svc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.svc-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem; font-weight: 800;
  color: var(--gold); letter-spacing: 1.5px;
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.2);
  padding: 3px 9px; border-radius: 6px;
  display: inline-block;
  width: max-content;
  margin-top: -6px;
  margin-bottom: 0.6rem;
}

.svc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,184,0,0.12), rgba(255,107,0,0.04));
  border: 1px solid rgba(255, 184, 0, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 1rem;
  transition: all 0.3s var(--ease);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.svc-icon svg { width: 22px; height: 22px; transition: transform 0.3s var(--ease); }

.svc-card:hover .svc-icon {
  background: linear-gradient(135deg, #FFB800, #FF6B00);
  color: #0A0A0A;
  border-color: transparent;
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.3);
}

.svc-card h3 {
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-size: 1.08rem; font-weight: 800;
  color: #ffffff; margin-bottom: 0.6rem;
  line-height: 1.35;
  transition: color 0.3s var(--ease);
}
.svc-card:hover h3 {
  color: var(--gold);
}

.svc-card p {
  font-size: 0.83rem; color: var(--text2);
  line-height: 1.6; margin-bottom: 1.4rem;
  flex-grow: 1;
}

.svc-link {
  font-size: 0.8rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.5px;
  transition: all 0.3s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 184, 0, 0.06);
  border: 1px solid rgba(255, 184, 0, 0.15);
  width: max-content;
  margin-top: auto;
}
.svc-link:hover {
  background: var(--gold);
  color: #0A0A0A;
  border-color: var(--gold);
  gap: 10px;
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

/* ============================================
   ABOUT
   ============================================ */
.about-section { background: var(--bg2); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}

/* Visual side */
.about-visual { position: relative; }

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4/3;
}
.about-img-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}

/* Brand collage */
.brand-collage {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.collage-card {
  position: absolute;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.cc1 {
  top: 5%; left: 0; width: 38%;
  display: flex; flex-direction: column; gap: 8px;
  animation: float1 4s ease-in-out infinite;
}
.cc-bar { height: 8px; background: rgba(255,184,0,0.2); border-radius: 4px; }
.cc-bar.short { width: 60%; }

.cc2 {
  top: 5%; right: 0; width: 50%;
  animation: float2 4s ease-in-out 1s infinite;
}
.cc-chart { margin-bottom: 8px; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.bc { flex: 1; border-radius: 3px 3px 0 0; background: rgba(255,184,0,0.2); }
.bc.active { background: var(--gold); }
.cc-label { font-size: 0.68rem; color: var(--text3); font-weight: 600; }

.cc3 {
  bottom: 5%; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: float1 5s ease-in-out .5s infinite;
}
.cc-ring { width: 80px; height: 80px; }
.cc-ring svg { width: 100%; height: 100%; }

.collage-badge {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 50px;
  background: var(--bg); border: 1px solid var(--border2);
  font-size: 0.78rem; font-weight: 700; color: var(--gold);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  z-index: 5;
}
.cb1 { bottom: 18%; left: -15px; animation: float2 3s ease-in-out 0.7s infinite; }
.cb2 { top: 32%; right: -15px; animation: float1 3.5s ease-in-out 1.2s infinite; }
.cb3 { top: -14px; left: 12%; animation: float1 3.8s ease-in-out 0.4s infinite; }

.cc1-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 4px 2px;
}
.cc1-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem; font-weight: 800; color: var(--gold); line-height: 1.1;
}
.cc1-txt {
  font-size: 0.62rem; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 3px;
}

@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.about-accent-block {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: var(--bg);
  padding: 24px 28px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-gold);
}
.about-accent-block span {
  font-family: 'Outfit', sans-serif;
  display: block; font-size: 2.5rem; font-weight: 800; line-height: 1;
}
.about-accent-block p { font-size: 0.8rem; font-weight: 700; line-height: 1.4; margin-top: 4px; }

/* Copy side */
.about-tabs-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.about-tabs-nav {
  display: flex;
  gap: 0.75rem;
  background: var(--surface);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.about-tab-btn {
  background: transparent;
  border: none;
  color: var(--text2);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about-tab-btn:hover {
  color: var(--gold);
}

.about-tab-btn.active {
  background: var(--gold);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.about-slider-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
}

.about-slide {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.about-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.slide-subtitle {
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.about-text {
  font-size: 1.05rem; color: var(--text2);
  line-height: 1.85; margin-bottom: 1rem;
  font-weight: 400 !important;
}
.about-text strong, .about-text b {
  font-weight: 400 !important;
}

.about-slide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
}

.about-slide-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-dot.active {
  width: 32px;
  border-radius: 20px;
  background: var(--gold);
}

.about-slide-arrows {
  display: flex;
  gap: 10px;
}

.slide-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-arrow:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.about-action-wrap {
  margin-top: 1.5rem;
}
  font-size: 0.9rem; color: var(--gold);
  flex-shrink: 0; margin-top: 2px;
}
.pillar h4 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.pillar p  { font-size: 0.83rem; color: var(--text2); line-height: 1.6; }

/* ============================================
   3D COVERFLOW PORTFOLIO SHOWCASE
   ============================================ */
.work-section {
  position: relative;
  background: var(--bg);
  padding: 6rem 0;
  overflow: hidden;
}

.coverflow-container {
  position: relative;
  width: 100%;
  height: 480px;
  margin: 2.5rem 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.coverflow-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
}

.coverflow-stage:active {
  cursor: grabbing;
}

/* 3D Coverflow Card */
/* PURE FLOATING CIRCULAR 3D COVERFLOW ORBS (NO OUTER RECTANGLE) */
.cf-card {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 35% 35%, rgba(22, 28, 42, 0.95), rgba(8, 10, 15, 0.98));
  border: 2px solid rgba(255, 184, 0, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), inset 0 0 25px rgba(255, 184, 0, 0.15);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  cursor: pointer;
}

.cf-card.active,
.cf-card:hover {
  border-color: #FFB800;
  box-shadow: 0 25px 65px rgba(255, 184, 0, 0.45), inset 0 0 35px rgba(255, 184, 0, 0.3);
}

.cf-card-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) blur(4px);
  transform: scale(1.1);
  transition: filter 0.5s ease, transform 0.5s ease;
  border-radius: 50%;
}

.cf-card:hover .cf-card-backdrop,
.cf-card.active .cf-card-backdrop {
  filter: brightness(0.4) blur(2px);
  transform: scale(1.15);
}

.cf-circle-pod-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(20, 24, 35, 0.3) 0%, rgba(10, 12, 18, 0.85) 100%);
}

.cf-circle-logo {
  width: 100px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.cf-circle-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
  transition: transform 0.3s ease;
}

.cf-card:hover .cf-circle-logo img,
.cf-card.active .cf-circle-logo img {
  transform: scale(1.1);
}

.cf-circle-name {
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-circle-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #FFB800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.3);
  padding: 3px 12px;
  border-radius: 20px;
}

.cf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.8rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cf-card.active .cf-card-overlay,
.cf-card:hover .cf-card-overlay {
  opacity: 1;
}

.cf-overlay-hint {
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 3D Coverflow Card Positions & States */
.cf-card.active {
  z-index: 20;
  border-color: var(--gold);
  box-shadow: 0 25px 50px -10px rgba(255, 184, 0, 0.25), 0 0 35px rgba(255, 184, 0, 0.18);
  filter: none;
}

.cf-card.is-side {
  filter: brightness(0.65) blur(0.5px);
}

.cf-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Dynamic Active Project Info Bar (Premium Compact Case Study Bar) */
.coverflow-meta-box {
  max-width: 760px;
  width: min(760px, calc(100% - 2rem));
  margin: 1.25rem auto 1rem;
  padding: 1.15rem 1.5rem;
  background: rgba(14, 16, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  text-align: left;
}

.coverflow-meta-box:hover {
  border-color: rgba(255, 184, 0, 0.35);
}

.cf-meta-content {
  flex: 1;
  min-width: 0;
}

.cf-meta-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 3px 10px;
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: 4px;
  margin-bottom: 0.4rem;
  width: fit-content;
}

.cf-meta-title {
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.2;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cf-meta-desc {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cf-meta-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.cf-case-btn {
  height: 46px;
  padding: 0 1.3rem;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* RTL Support for Arabic Language */
html[lang="ar"] .coverflow-meta-box,
body.rtl .coverflow-meta-box {
  text-align: right;
}

/* Integrated Minimal Controls ← 01 / 06 → */
.coverflow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.cf-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cf-nav-btn:hover {
  background: var(--gold);
  color: #000000;
  border-color: var(--gold);
  transform: scale(1.08);
  box-shadow: var(--shadow-gold);
}

.cf-counter { display: none; } /* counter removed — no X/N visible to user */

/* ── LOGO-CENTRIC COVERFLOW CARD ── */
.cf-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.cf-card-gfx {
  width: 100%;
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.cf-logo-box {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.cf-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 8px;
  filter: brightness(0) invert(1) opacity(0.85);
}

.cf-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold);
}

.cf-company-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-gfx-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.25);
  border-radius: 20px;
  padding: 3px 10px;
}

.cf-gfx-title {
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
  max-width: 100%;
}

.cf-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.cf-card.active:hover .cf-card-hover-overlay,
.cf-card.active:focus .cf-card-hover-overlay {
  opacity: 1;
}

.cf-overlay-hint {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
}

/* ============================================
   REUSABLE CASE STUDY MODAL / OVERLAY
   ============================================ */
.case-study-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.case-study-modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.cs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cs-modal-content {
  position: relative;
  width: 92%;
  max-width: 960px;
  max-height: 88vh;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  z-index: 2;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  transform: translateY(24px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg3);
}

.case-study-modal:not([hidden]) .cs-modal-content {
  transform: translateY(0) scale(1);
}

.cs-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.cs-modal-close:hover {
  background: var(--gold);
  color: #000;
  transform: rotate(90deg);
}

body.rtl .cs-modal-close {
  right: auto;
  left: 1.5rem;
}

.cs-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg2) 0%, rgba(0,0,0,0.35) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.cs-hero-title {
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1.2;
}

.cs-body-inner {
  padding: 2.5rem;
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.cs-meta-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.cs-meta-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.cs-section {
  margin-bottom: 2.5rem;
}

.cs-section-title {
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.cs-section-text {
  font-size: 1.02rem;
  color: var(--text2);
  line-height: 1.85;
}

.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.cs-result-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  text-align: center;
}

.cs-result-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold);
  display: block;
}

.cs-result-lbl {
  font-size: 0.85rem;
  color: var(--text2);
  margin-top: 0.3rem;
}

.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.cs-gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cs-gallery-item:hover img {
  transform: scale(1.04);
}

/* Video embed */
.cs-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1.5rem;
  background: #000;
}

.cs-video-wrap iframe,
.cs-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Case Study Header */
.cs-header {
  padding: 2rem 2.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.cs-company-identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cs-logo-box {
  width: 80px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.cs-company-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 6px;
  filter: brightness(0) invert(1) opacity(0.85);
}

.cs-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--gold);
}

.cs-company-info {
  flex: 1;
}

.cs-company-name {
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.cs-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cs-year {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
}

/* Case Study Body */
.cs-modal-body {
  font-size: 0.98rem;
}

.cs-title {
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--white);
  line-height: 1.2;
  margin: 0 2.5rem 0.6rem;
}

.cs-desc {
  font-size: 1.02rem;
  color: var(--text2);
  line-height: 1.7;
  margin: 0 2.5rem 1.5rem;
}

.cs-section {
  margin: 0 2.5rem 1.5rem;
}

.cs-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.cs-text {
  font-size: 0.97rem;
  color: var(--text2);
  line-height: 1.75;
}

/* Metrics */
.cs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0 2.5rem 1.5rem;
}

.cs-metric-card {
  background: rgba(255, 184, 0, 0.07);
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  text-align: center;
}

.cs-metric-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.cs-metric-lbl {
  font-size: 0.8rem;
  color: var(--text2);
  font-weight: 600;
}

/* Gallery */
.cs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0 2.5rem 1.5rem;
}

/* CTA Row */
.cs-cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.5rem 2.5rem 2.5rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1.5rem;
  font-family: 'Outfit', var(--font-ar), sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  background: transparent;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 600px) {
  .cs-header { padding: 1.25rem 1.25rem 1rem; }
  .cs-title, .cs-desc, .cs-section, .cs-metrics-grid, .cs-gallery-grid, .cs-cta-row {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }
  .cs-gallery-grid { grid-template-columns: 1fr; }
  .cs-metrics-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .cs-title { font-size: 1.4rem; }
}

.cs-cta-box {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(255,184,0,0.12) 0%, rgba(20,20,30,0.85) 100%);
  border: 1px solid rgba(255,184,0,0.3);
  border-radius: var(--radius);
  text-align: center;
}

/* Responsive adjustments for 3D Coverflow */
@media (max-width: 992px) {
  .coverflow-container {
    height: 420px;
  }
  .cf-card {
    width: 310px;
    height: 380px;
  }
  .cs-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .coverflow-container {
    height: 360px;
  }
  .cf-card {
    width: 270px;
    height: 340px;
  }
  .cf-meta-title {
    font-size: 1.3rem;
  }
  .cs-hero {
    height: 220px;
  }
  .cs-hero-title {
    font-size: 1.5M;
  }
  .cs-body-inner {
    padding: 1.5rem;
  }
  .cs-meta-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cs-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.wc-large {
  grid-column: span 2;
}
.wc-wide {
  grid-column: span 2;
  flex-direction: row;
}

.wc-bg {
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  min-height: 180px;
}
.wc-wide .wc-bg { flex: 1.2; }

.wc-info {
  padding: 1.4rem;
  background: var(--surface);
  flex-shrink: 0;
}
.wc-wide .wc-info { flex: 0.8; display: flex; flex-direction: column; justify-content: center; }

.wc-tags { display: flex; gap: 6px; margin-bottom: .6rem; flex-wrap: wrap; }
.wc-tags span {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px;
  background: rgba(255,184,0,0.1); color: var(--gold);
  border: 1px solid rgba(255,184,0,0.2);
}
.wc-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--white);
  margin-bottom: .4rem;
}
.wc-info p { font-size: 0.82rem; color: var(--text2); line-height: 1.6; margin-bottom: .8rem; }

.wc-meta { display: flex; align-items: center; justify-content: space-between; }
.wc-result {
  font-size: 0.75rem; font-weight: 700; color: var(--gold);
  letter-spacing: .5px;
}
.wc-cta {
  font-size: 0.8rem; font-weight: 700; color: var(--text3);
  transition: color .2s;
}
.wc-cta:hover { color: var(--gold); }

/* Mockups */
.wc-mockup { width: 85%; height: 85%; display: flex; align-items: center; justify-content: center; }

/* Social mockup */
.sm-phone {
  width: 55%; background: rgba(0,0,0,.4);
  border-radius: 20px; border: 2px solid rgba(255,255,255,.15);
  padding: 8px;
}
.sm-screen {
  background: rgba(0,0,0,.3); border-radius: 14px; padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.sm-post-img {
  height: 60px; border-radius: 8px;
}
.sm-post-info { padding: 6px 0; display: flex; flex-direction: column; gap: 5px; }
.sm-likes { font-size: 0.65rem; font-weight: 700; color: rgba(255,255,255,.7); }
.sm-bar { height: 5px; background: rgba(255,255,255,.15); border-radius: 3px; }
.sm-bar.short { width: 60%; }
.sm-stats { display: flex; gap: 8px; }
.sm-stat {
  flex: 1; background: rgba(255,255,255,.05); border-radius: 8px;
  padding: 6px; text-align: center;
  display: flex; flex-direction: column; gap: 1px;
}
.sm-stat span { font-size: 0.7rem; }
.sm-stat strong { font-size: 0.7rem; font-weight: 800; color: var(--gold); }
.sm-stat small { font-size: 0.55rem; color: rgba(255,255,255,.4); }

/* Video mockup */
.vid-frame {
  width: 85%; background: rgba(0,0,0,.5);
  border-radius: 10px; overflow: hidden;
}
.vid-thumb {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.vid-play {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: white; padding-left: 3px;
}
.vid-bar { padding: 6px 8px; background: rgba(0,0,0,.3); }
.vid-progress {
  height: 3px; background: var(--gold);
  border-radius: 2px; width: 45%;
}
.vid-views {
  padding: 4px 8px; font-size: 0.7rem;
  color: rgba(255,255,255,.6); font-weight: 600;
}

/* SEO mockup */
.seo-card {
  width: 85%; background: rgba(0,0,0,.4);
  border-radius: 10px; padding: 12px;
}
.seo-rank {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.seo-rank strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem; font-weight: 800; color: var(--gold);
}
.seo-bars { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.seo-bar {
  height: 18px; background: rgba(255,184,0,.25);
  border-radius: 4px; display: flex; align-items: center;
  padding: 0 8px;
}
.seo-bar span { font-size: 0.6rem; color: rgba(255,255,255,.5); }
.seo-traffic { font-size: 0.7rem; font-weight: 800; color: var(--gold); }

/* Brand mockup */
.brand-display {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.brand-logo-preview { text-align: center; }
.blp-shape {
  width: 60px; height: 60px; margin: 0 auto 8px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.blp-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem; font-weight: 800;
  color: white; letter-spacing: 4px;
}
.brand-colors { display: flex; gap: 8px; }
.bc-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
}

/* Influencer mockup */
.inf-row { display: flex; gap: 10px; margin-bottom: 10px; }
.inf-card {
  flex: 1; background: rgba(0,0,0,.3); border-radius: 8px;
  padding: 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.inf-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: white;
}
.inf-stats { display: flex; flex-direction: column; gap: 1px; }
.inf-stats strong { font-size: 0.72rem; font-weight: 800; color: white; }
.inf-stats small { font-size: 0.58rem; color: rgba(255,255,255,.4); }
.inf-result {
  background: rgba(255,184,0,.1); border: 1px solid rgba(255,184,0,.2);
  border-radius: 6px; padding: 6px;
  font-size: 0.7rem; font-weight: 700; color: var(--gold);
  text-align: center;
}

.work-card.hidden { display: none; }

.work-cta-wrap { text-align: center; margin-top: 3rem; }

/* ============================================
   PROCESS
   ============================================ */
.process-section { background: var(--bg2); }

.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0; align-items: start;
}

.process-step {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--trans);
}
.process-step:hover {
  border-color: var(--border2);
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0,0,0,.4);
}

.ps-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 3px; color: var(--gold);
  margin-bottom: 1.2rem;
}

.ps-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,184,0,.08); border: 1px solid rgba(255,184,0,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem; color: var(--gold);
  transition: var(--trans);
}
.ps-icon svg { width: 26px; height: 26px; }
.process-step:hover .ps-icon { background: var(--gold); color: var(--bg); }

.process-step h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--white);
  margin-bottom: .6rem;
}
.process-step p { font-size: 0.82rem; color: var(--text2); line-height: 1.7; }

.process-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 1rem;
  font-size: 1.4rem; color: var(--gold);
  opacity: 0.4;
  margin-top: 6rem;
}

/* ============================================
   TEAM
   ============================================ */
.team-section { background: var(--bg); }

.team-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--trans);
}
.team-card:hover { transform: translateY(-6px); border-color: var(--border2); box-shadow: var(--shadow); }

.tc-photo {
  height: 180px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.tc-initials {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem; font-weight: 800; color: rgba(0,0,0,.5);
  letter-spacing: 2px;
}

.tc-info { padding: 1.5rem; }
.tc-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--white);
  margin-bottom: 2px;
}
.tc-role { font-size: 0.78rem; color: var(--gold); font-weight: 600; margin-bottom: .8rem; }
.tc-bio { font-size: 0.82rem; color: var(--text2); line-height: 1.65; margin-bottom: 1rem; }

.tc-socials { display: flex; gap: .5rem; }
.tc-socials a {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: var(--text3);
  transition: var(--trans);
}
.tc-socials a:hover { background: var(--gold); color: var(--bg); border-color: transparent; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section { background: var(--bg2); }

.testi-slider {
  max-width: 820px; margin: 0 auto 2rem;
  position: relative; min-height: 280px;
}

.testi-card {
  position: absolute; inset: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  opacity: 0; transform: translateX(30px);
  transition: all .5s var(--ease); pointer-events: none;
}
.testi-card.active {
  opacity: 1; transform: translateX(0); pointer-events: all;
}

.testi-stars { font-size: 1rem; color: var(--gold); letter-spacing: 2px; margin-bottom: 1.2rem; }

.testi-card p {
  font-size: 1.05rem; color: var(--text);
  line-height: 1.85; font-style: italic;
  margin-bottom: 1.8rem;
}

.testi-card footer {
  display: flex; align-items: center; gap: 1rem;
}
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; color: white;
  flex-shrink: 0;
}
cite.testi-name {
  display: block; font-style: normal;
  font-weight: 700; font-size: 0.95rem; color: var(--white);
}
.testi-co { font-size: 0.78rem; color: var(--text3); }

/* Controls */
.testi-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; margin-bottom: 4rem;
  direction: ltr !important;
}

.testi-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); transition: var(--trans);
}
.testi-btn svg { width: 18px; height: 18px; }
.testi-btn:hover { background: var(--gold); color: var(--bg); border-color: transparent; }

.testi-dots { display: flex; gap: 8px; }
.t-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface2); transition: var(--trans);
}
.t-dot.active {
  width: 24px; border-radius: 4px;
  background: var(--gold);
}

/* --- TESTIMONIALS MOBILE FLEXIBLE CAROUSEL FIX --- */
@media (max-width: 768px) {
  .testi-slider {
    min-height: 360px !important;
    margin-bottom: 1.5rem !important;
  }
  .testi-card {
    padding: 1.5rem 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }
  .testi-card p {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.2rem !important;
  }
  .testi-card footer {
    margin-top: auto !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
  }
  .testi-avatar {
    width: 42px !important;
    height: 42px !important;
    font-size: 0.8rem !important;
  }
  cite.testi-name {
    font-size: 0.9rem !important;
  }
  .testi-co {
    font-size: 0.75rem !important;
  }
  .testi-controls {
    margin-top: 1.5rem !important;
    margin-bottom: 2.5rem !important;
    position: relative !important;
    z-index: 10 !important;
    clear: both !important;
  }
}

/* Client logos */
.clients-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-label {
  text-align: center; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 1.5rem;
}
.clients-track {
  display: flex; gap: 3.5rem; align-items: center;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.cl-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 12px !important;
  transition: all 0.3s ease !important;
}
.cl-item img {
  width: auto; height: auto;
  object-fit: contain;
  filter: brightness(0) invert(0.85) opacity(0.8);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cl-item:hover img {
  filter: brightness(1) invert(0) opacity(1);
  transform: scale(1.06);
}

/* Light Theme Logo Adaptive Contrast */
body.light-theme .cl-item img {
  filter: brightness(0.15) opacity(0.8);
}
body.light-theme .cl-item:hover img {
  filter: brightness(0) opacity(1);
  transform: scale(1.06);
}
/* ============================================
   LIVE ON-PAGE VISUAL EDITOR STYLES
   ============================================ */
.live-admin-bar {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 999999;
  background: rgba(18, 18, 24, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 50px;
  padding: 10px 24px;
  display: flex; align-items: center; gap: 1.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 184, 0, 0.2);
  transition: all 0.3s ease;
}

.lab-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.88rem; color: #fff; }
.lab-icon { font-size: 1.1rem; }
.lab-title { letter-spacing: 1px; color: var(--gold); }

.lab-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-lab-login, .btn-lab-save {
  background: var(--gold); color: #000; font-weight: 800; font-size: 0.85rem;
  padding: 8px 18px; border-radius: 50px; border: none; cursor: pointer;
  transition: all 0.25s ease;
}
.btn-lab-login:hover, .btn-lab-save:hover { background: #ffd060; transform: scale(1.05); }

.btn-lab-exit {
  background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; font-size: 0.8rem;
  padding: 8px 14px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer; transition: all 0.25s ease;
}
.btn-lab-exit:hover { background: rgba(239, 68, 68, 0.8); }

/* In Live Edit Mode */
body.live-edit-mode [contenteditable="true"] {
  outline: 2px dashed #FFB800 !important;
  outline-offset: 4px;
  border-radius: 4px;
  cursor: text !important;
  background: rgba(255, 184, 0, 0.08) !important;
}

body.live-edit-mode [contenteditable="true"]:hover {
  outline: 2px solid #FFB800 !important;
  background: rgba(255, 184, 0, 0.15) !important;
}

.live-inline-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: #FFB800; color: #000; font-weight: 800; font-size: 0.75rem;
  padding: 4px 10px; border-radius: 6px; border: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); margin: 6px;
  transition: all 0.2s ease; z-index: 100;
}
.live-inline-btn:hover { transform: scale(1.08); background: #fff; }
.live-inline-del { background: #EF4444; color: #fff; }
.live-inline-del:hover { background: #dc2626; color: #fff; }
.cta-band {
  background: linear-gradient(135deg, #0d0900, #1a0f00);
  border-top: 1px solid rgba(255,184,0,0.15);
  border-bottom: 1px solid rgba(255,184,0,0.15);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(255,184,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; flex-wrap: wrap; position: relative;
}
.cta-copy h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: var(--white); line-height: 1.15;
}
.cta-copy p { font-size: 1.05rem; color: var(--text2); margin-top: .8rem; }
.cta-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================
   CONTACT
   ============================================ */
.contact-section { background: var(--bg); }

.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 5rem; align-items: start;
}

.contact-info-col .section-title {
  line-height: 1.4;
  margin-bottom: 1.6rem;
}
.contact-info-col .section-title .accent {
  display: inline-block;
  margin-top: 0.35rem;
}

.contact-desc { font-size: 0.98rem; color: var(--text2); line-height: 1.8; margin-bottom: 2.5rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.cd-item { display: flex; align-items: flex-start; gap: 1rem; }
.cd-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,184,0,0.08); border: 1px solid rgba(255,184,0,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0;
  transition: var(--trans);
}
.cd-icon svg { width: 20px; height: 20px; }
.cd-item:hover .cd-icon { background: var(--gold); color: var(--bg); }
.cd-label { font-size: 0.72rem; color: var(--text3); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.cd-value { font-size: 0.95rem; font-weight: 600; color: var(--text); transition: color .2s; }
a.cd-value:hover { color: var(--gold); }

.contact-socials { display: flex; gap: .75rem; }
.csoc {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); transition: var(--trans);
}
.csoc svg { width: 18px; height: 18px; }
.csoc:hover { background: var(--gold); color: var(--bg); border-color: transparent; transform: translateY(-3px); }

/* Form */
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 1.2rem;
}
.form-group label {
  font-size: 0.82rem; font-weight: 600; color: var(--text2);
}
.required { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.9rem;
  transition: var(--trans); outline: none; resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text3); }
.form-group select option { background: var(--bg3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,184,0,0.1);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
}
.field-error {
  font-size: 0.75rem; color: #ef4444;
  min-height: 16px; display: block;
}

.btn-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--gold); color: #0A0A0A !important;
  font-weight: 800; font-size: 1rem; letter-spacing: .5px;
  transition: var(--trans); position: relative; overflow: hidden;
  border: none; cursor: pointer;
}
.btn-submit::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #FFD060, #FF9900);
  opacity: 0; transition: opacity .25s ease;
  z-index: 1;
}
.btn-submit:hover::after { opacity: 1; }
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 184, 0, 0.4);
  color: #0A0A0A !important;
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-submit .btn-text, .btn-submit .btn-icon {
  position: relative;
  z-index: 2;
  color: #0A0A0A !important;
  font-weight: 800;
}
.btn-submit:hover .btn-text, .btn-submit:hover .btn-icon {
  color: #0A0A0A !important;
}
.btn-submit .btn-icon svg { width: 18px; height: 18px; display: block; stroke: #0A0A0A; }

.form-done {
  background: var(--surface); border: 1px solid rgba(255,184,0,0.25);
  border-radius: var(--radius-lg); padding: 3rem;
  text-align: center;
}
.fd-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  font-size: 1.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-done h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: .5rem;
}
.form-done p { font-size: 0.95rem; color: var(--text2); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid; grid-template-columns: 1.2fr 2fr;
  gap: 5rem; margin-bottom: 4rem;
}

.footer-logo-block { margin-bottom: 1.2rem; }
.fl-egypt {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  color: var(--gold); letter-spacing: 4px;
}
.fl-sub {
  display: block;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 4px; color: var(--text3);
  text-transform: uppercase; margin-top: 2px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text2); line-height: 1.75; margin-bottom: 1.5rem; }

.footer-socials { display: flex; gap: .5rem; }
.fsoc {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: var(--text3);
  transition: var(--trans);
}
.fsoc:hover { background: var(--gold); color: var(--bg); border-color: transparent; transform: translateY(-2px); }

.footer-nav {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  gap: 2rem;
}
.fn-col h4 {
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.2rem;
}
.fn-col ul { display: flex; flex-direction: column; gap: .7rem; }
.fn-col li a, .fn-col li span {
  font-size: 0.85rem; color: var(--text3);
  transition: color .2s;
}
.fn-col li a:hover { color: var(--gold); }

.footer-newsletter { margin-top: 2rem; }
.footer-newsletter h4 {
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); margin-bottom: 1rem;
}
.fn-form { display: flex; gap: .5rem; }
#fnEmail {
  flex: 1; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.85rem; outline: none; transition: border-color .2s;
}
#fnEmail:focus { border-color: var(--gold); }
#fnEmail::placeholder { color: var(--text3); }
#fnBtn {
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--bg);
  font-weight: 800; font-size: 1rem;
  transition: var(--trans);
}
#fnBtn:hover { background: var(--gold-light); transform: scale(1.04); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text3);
  flex-wrap: wrap; gap: 1rem;
}
.fb-links { display: flex; gap: 1.5rem; }
.fb-links a { color: var(--text3); transition: color .2s; }
.fb-links a:hover { color: var(--gold); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 100;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
  transform: translateY(80px); opacity: 0;
  transition: var(--trans);
}
.back-top:not([hidden]) { transform: translateY(0); opacity: 1; }
.back-top[hidden] { display: flex !important; transform: translateY(80px); opacity: 0; pointer-events: none; }
.back-top:hover { background: var(--gold-light); transform: translateY(-4px); }
.back-top svg { width: 20px; height: 20px; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-right.in { opacity: 1; transform: translateX(0); }

/* ============================================
   RESPONSIVE (MOBILE & TABLET OPTIMIZATIONS)
/* ============================================
   RESPONSIVE DESIGN SYSTEM (320px - 2560px)
   ============================================ */
@media (pointer: coarse), (max-width: 768px) {
  #cur-dot, #cur-ring { display: none !important; }
  body { cursor: auto !important; }
  a, button, input, select, textarea { cursor: pointer; }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .nav-wrap, .section-inner, .footer-top {
    max-width: 1360px;
  }
}

/* ============================================
   SINGLE MOBILE RULESET (MODE 1: 320px - 767px)
   ============================================ */
@media (max-width: 767px) {
  .section { padding: clamp(40px, 8vw, 64px) 0; }
  .nav-wrap { padding: 8px 1rem; gap: 0.5rem; }
  .logo-img { height: 34px; }
  .nav-links { display: none; }
  .nav-right { gap: 0.5rem; }
  
  .theme-toggle-btn { width: 44px; height: 44px; font-size: 1rem; min-width: 44px; min-height: 44px; }
  .lang-toggle-btn { height: 44px; min-height: 44px; padding: 0 12px; font-size: 0.82rem; }
  .btn-cta { display: none; }
  
  .hamburger {
    display: flex;
    width: 44px; height: 44px;
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
    padding: 10px;
  }

  /* Mobile Hero Strategy (320-767px) */
  .hero-sticky {
    padding: 75px 1rem 0;
    box-sizing: border-box;
  }
  .hero-badge { font-size: 0.75rem; padding: 6px 16px; margin-bottom: 0.5rem; }
  .hero-steps-container { height: 125px; margin: 0.4rem 0 0.8rem; width: 100%; max-width: 100%; box-sizing: border-box; }
  .hero-step { max-width: 100%; padding: 0 0.25rem; box-sizing: border-box; }
  .hero-heading { font-size: clamp(1.4rem, 5.5vw, 2.1rem); line-height: 1.25; word-wrap: break-word; }
  .hero-sub { font-size: clamp(0.92rem, 3.5vw, 1.05rem); }
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin-inline: auto; gap: 0.75rem; margin-top: 0.75rem; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost {
    width: 100%; min-height: 42px; justify-content: center; text-align: center; font-size: 0.88rem; padding: 11px 18px;
  }
  .hero-scroll-hint { bottom: 48px; }

  /* Mobile Nav Drawer */
  .mobile-nav { top: 60px; height: calc(100vh - 60px); }

  /* Touch Target & Form Input Font Size (prevents iOS auto-zoom) */
  input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    font-size: 16px !important;
    min-height: 44px;
  }

  /* Stats Mobile */
  .stats-band { padding: 30px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .stat-item { padding: 1.2rem 0.6rem; }

  /* Services & Process Mobile */
  .services-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .process-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .process-arrow { display: none; }
  
  /* Portfolio / Coverflow Mobile */
  .coverflow-container { height: 370px; max-width: 100%; overflow: hidden; }
  .cf-card { width: min(250px, 80vw); height: 330px; box-sizing: border-box; }
  .cf-meta-title { font-size: 1.2rem; }
  .cf-meta-desc { font-size: 0.8rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .cf-nav-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 1.1rem; }
  .cf-prev { left: 8px; }
  .cf-next { right: 8px; }
  .cs-modal-body { padding: 24px 20px 40px; }
  .cs-results-grid { grid-template-columns: 1fr 1fr; }

  /* Team, Testimonials, Contact Mobile */
  .team-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info-col, .contact-form-col { padding: 1.5rem 1.2rem; }
  .cta-inner { text-align: center; justify-content: center; padding: 2.2rem 1.2rem; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn-primary, .cta-actions .btn-ghost { width: 100%; min-height: 44px; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }

  /* Single Stable Mobile Composition for About Visual Container */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    position: relative;
    box-sizing: border-box;
    padding: 1rem 0 0;
  }
  .about-img-main {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
  }
  .about-img-inner {
    width: 100%; height: 100%;
    padding: 0.8rem;
    box-sizing: border-box;
    position: relative;
  }
  .brand-collage {
    position: relative;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }

  /* Mini Cards */
  .collage-card {
    position: absolute;
    width: min(160px, 42vw);
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    z-index: 2;
  }
  .cc1 { top: 8%; left: 2%; animation: float1 4s ease-in-out infinite; }
  .cc2 { top: 8%; right: 2%; animation: float2 4s ease-in-out 1s infinite; }
  .cc3 { bottom: 8%; left: 50%; transform: translateX(-50%); animation: float1 5s ease-in-out .5s infinite; }

  /* Floating Badges Positioned Intentionally */
  .collage-badge {
    position: absolute;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 50px;
    background: var(--bg); border: 1px solid var(--border2);
    font-size: clamp(11px, 3vw, 13px); font-weight: 700; color: var(--gold);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
    z-index: 10;
  }
  /* 26+ Years Exp. badge -> above main visual */
  .cb3 { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); bottom: auto; right: auto; }
  /* #1 in Egypt badge -> upper/right side inside visual */
  .cb2 { position: absolute; top: 18%; right: 2%; left: auto; transform: none; }
  /* 150+ Clients badge -> lower/left side inside visual */
  .cb1 { position: absolute; bottom: 18%; left: 2%; right: auto; }

  /* 2011 Card — Centered Visual Anchor */
  .about-accent-block {
    position: relative;
    inset: auto;
    width: clamp(190px, 55vw, 230px);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    margin-top: 1.5rem;
    background: var(--gold);
    color: var(--bg);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 25px rgba(255, 184, 0, 0.2);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Mobile About Tabs & Content */
  .about-tabs-wrapper {
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
  .about-tabs-nav {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
  .about-slider-container {
    min-height: auto;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cl-track { animation: none !important; }
}


/* ============================================
   ARABIC RTL STYLES
   ============================================ */
body.rtl {
  font-family: 'Cairo', 'Inter', sans-serif;
  direction: rtl;
  text-align: right;
}

body.rtl .section-title,
body.rtl .hero-heading,
body.rtl .section-label,
body.rtl .stat-num,
body.rtl .logo-egypt,
body.rtl .fl-egypt,
body.rtl .mob-link,
body.rtl .svc-card h3,
body.rtl .wc-info h3,
body.rtl .process-step h3,
body.rtl .team-card h3,
body.rtl cite.testi-name,
body.rtl .cta-copy h2,
body.rtl .form-done h3,
body.rtl .cl-item {
  font-family: 'Cairo', sans-serif;
}

body.rtl .section-head,
body.rtl .hero-content,
body.rtl .stats-band,
body.rtl .footer-brand {
  text-align: center;
}

body.rtl .hero-heading {
  font-family: 'Cairo', sans-serif !important;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem) !important;
  line-height: 1.55 !important;
  word-break: break-word;
}

body.rtl .cta-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: right !important;
  gap: 3rem !important;
}

body.rtl .cta-copy {
  text-align: right !important;
  flex: 1 1 auto;
}

body.rtl .cta-copy h2 {
  font-family: 'Cairo', sans-serif !important;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem) !important;
  line-height: 1.4 !important;
  margin-bottom: 0.75rem !important;
  text-align: right !important;
}

body.rtl .cta-copy p {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  text-align: right !important;
  max-width: 620px;
}

body.rtl .cta-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1.25rem !important;
  flex-wrap: wrap !important;
}

body.rtl .section-label::before {
  margin-left: 10px;
  margin-right: 0;
}

body.rtl .svc-list li {
  padding-left: 0;
  padding-right: 16px;
}
body.rtl .svc-list li::before {
  left: auto;
  right: 0;
}

body.rtl .pillar {
  text-align: right;
}

body.rtl .contact-info-col {
  text-align: right;
}

body.rtl .cd-item {
  text-align: right;
}

/* ============================================
   3D COVERFLOW PORTFOLIO (DESKTOP)
   ============================================ */
@media (min-width: 1101px) {
  .work-section { padding: 120px 0; background: var(--bg); overflow: hidden; }

  .coverflow-container {
    position: relative;
    width: 100%;
    height: 520px;
    perspective: 1200px;
    margin-bottom: 48px;
  }

  .coverflow-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cf-card {
    position: absolute;
    width: 380px;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.6s ease,
                box-shadow 0.6s ease;
    will-change: transform, opacity;
    user-select: none;
    -webkit-user-select: none;
  }
}

.cf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.cf-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cf-card.active .cf-card-overlay,
.cf-card:hover .cf-card-overlay {
  opacity: 1;
}

.cf-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cf-card-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

/* Active card: center stage */
.cf-card.active {
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 60px rgba(255,184,0,0.2);
  z-index: 10;
}

/* Side cards */
.cf-card.side-1, .cf-card.side-m1 {
  z-index: 8;
  opacity: 0.85;
}
.cf-card.side-2, .cf-card.side-m2 {
  z-index: 6;
  opacity: 0.55;
}
.cf-card.side-3, .cf-card.side-m3 {
  z-index: 4;
  opacity: 0.25;
}

/* Responsive Meta Info Bar Overrides */
@media (max-width: 640px) {
  .coverflow-meta-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
  }
  
  html[lang="ar"] .coverflow-meta-box,
  body.rtl .coverflow-meta-box {
    text-align: right;
    align-items: flex-end;
  }

  .cf-meta-action {
    width: 100%;
  }

  .cf-case-btn {
    width: 100%;
    height: 44px;
  }
}

/* Controls */
.coverflow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.cf-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-nav-btn:hover {
  background: var(--gold);
  color: #0A0A0A;
  border-color: var(--gold);
  transform: scale(1.08);
}

.cf-counter {
  font-size: 16px;
  font-weight: 700;
  color: var(--text2);
  min-width: 60px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
}

#cfCurrentIndex { color: var(--gold); font-size: 22px; }

/* Case Study Modal */
.case-study-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-modal[hidden] { display: none; }

.cs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.cs-modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(800px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 60px 120px rgba(0,0,0,0.8);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.cs-modal-close {
  position: sticky;
  top: 16px;
  left: calc(100% - 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--trans);
  z-index: 2;
  float: right;
  margin: 16px 16px 0 0;
}

.cs-modal-close:hover {
  background: var(--gold);
  color: #0a0a0a;
}

.cs-modal-body {
  padding: 32px 40px 48px;
  clear: both;
}

.cs-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
  display: block;
}

.cs-tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cs-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255,184,0,0.1);
  border: 1px solid rgba(255,184,0,0.25);
  padding: 5px 14px;
  border-radius: 100px;
}

.cs-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.cs-client-year {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 24px;
}

.cs-desc {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 32px;
}

.cs-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}

.cs-text {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 32px;
}

.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.cs-result-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}

.cs-result-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 6px;
}

.cs-result-lbl {
  font-size: 13px;
  color: var(--text3);
}

.cs-cta-row {
  margin-top: 40px;
  text-align: center;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
  padding: 120px 0;
  background: var(--bg2);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  cursor: default;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 40px rgba(255,184,0,0.08);
  border-color: rgba(255,184,0,0.25);
}

.team-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.team-card:hover .team-card-img img {
  transform: scale(1.06);
}

.team-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.team-card-info {
  padding: 24px 28px;
}

.team-card-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.team-card-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

/* Light theme for team */
body.light-theme .team-section { background: var(--bg3); }
body.light-theme .team-card { background: var(--surface); }

/* RTL team */
body.rtl .team-card-info { text-align: right; }

/* Light Theme Overrides for Contact Section - Seamless Transparent Look */
body.light-theme .contact-section {
  background: #F8F9FA !important;
}

body.light-theme .contact-wrap,
body.light-theme .contact-info-col,
body.light-theme .contact-form-col,
body.light-theme .contact-form,
body.light-theme .contact-details,
body.light-theme .cd-item {
  background: transparent !important;
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

body.light-theme .contact-form {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.light-theme .contact-info-col .section-title {
  color: #0F172A !important;
}

body.light-theme .contact-desc {
  color: #334155 !important;
}

body.light-theme .cd-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.light-theme .cd-icon {
  background: rgba(212, 155, 0, 0.12) !important;
  border: 1px solid rgba(212, 155, 0, 0.25) !important;
  color: #D49B00 !important;
}

body.light-theme .cd-value {
  color: #0F172A !important;
}

body.light-theme .csoc {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #334155 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .csoc:hover {
  background: #D49B00 !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}

/* ============================================
   TYPOGRAPHY SYSTEM OVERHAUL
   ============================================ */
:root {
  --font-display: 'Outfit', 'Alexandria', sans-serif;
  --font-body:    'Plus Jakarta Sans', 'Alexandria', sans-serif;
  --font-ar:      'Alexandria', 'Cairo', sans-serif;
}

body {
  font-family: var(--font-body) !important;
  line-height: 1.7;
}

/* Force Display Font on Headings, Hero, Titles, and UI Badges */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-heading,
.nav-link,
.mob-link,
.btn-primary,
.btn-ghost,
.btn-cta,
.pre-egypt,
.cs-title,
.about-tab-btn,
.svc-card h3,
.team-card-name,
.testi-name {
  font-family: var(--font-display) !important;
}

body.rtl,
body.rtl p,
body.rtl span:not(.stat-num):not(.stat-plus):not(.cs-result-val):not(.kpi-num):not(.kpi-main-val):not(.metric-val):not(.funnel-num):not(.counter):not(.step-num):not(.established-badge),
body.rtl div,
body.rtl a,
body.rtl button {
  font-family: var(--font-ar) !important;
}

/* ==========================================================================
   DEDICATED NUMBERS & COUNTERS MODERN FONT SYSTEM (ULTRA-SHARP & CRISP)
   ========================================================================== */
.stat-num,
.stat-plus,
.cs-result-val,
.kpi-main-val,
.kpi-num,
.res-val,
.metric-val,
.metric-num,
.funnel-num,
.counter,
.stat-item .stat-num,
.stat-item .stat-plus,
.cs-result-card .cs-result-val,
.card-year,
.case-year,
.cs-year,
.badge-year,
.step-num,
.process-num,
.process-step-num,
.step-badge,
.timeline-year,
.about-card-badge,
.established-badge,
.wc-number,
.cs-top-stat-val,
body.rtl .stat-num,
body.rtl .stat-plus,
body.rtl .cs-result-val,
body.rtl .kpi-main-val,
body.rtl .kpi-num,
body.rtl .res-val,
body.rtl .metric-val,
body.rtl .metric-num,
body.rtl .funnel-num,
body.rtl .counter,
body.rtl .card-year,
body.rtl .case-year,
body.rtl .cs-year,
body.rtl .step-num,
body.rtl .process-num,
body.rtl .established-badge,
body.rtl .cs-top-stat-val {
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
}

/* ============================================
   1. HERO ROTATING TEXT & CONTAINMENT FIX
   ============================================ */
.hero-steps-container {
  position: relative !important;
  width: 100% !important;
  max-width: 1020px !important;
  height: 160px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0.5rem 0 1.25rem !important;
  overflow: hidden !important; /* Strictly prevents text from overlapping CTA or badge */
  box-sizing: border-box !important;
}

.hero-step {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
}

.hero-step.before {
  opacity: 0 !important;
  transform: translate(-50%, -50%) translateY(25px) !important;
}

.hero-step.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) translateY(0) !important;
}

.hero-step.exit {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) translateY(-25px) !important;
}

.hero-actions {
  position: relative !important;
  z-index: 10 !important;
  margin-top: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.2rem !important;
}

/* ============================================
   2. MOBILE HERO & MARQUEE PROPORTIONAL LAYOUT
   ============================================ */
@media (max-width: 768px) {
  /* 1. MOBILE HERO BACKGROUND COLOR MATCH (DEEP NAVY / BLACK) */
  .hero {
    background: #07090E !important;
    height: 180vh !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  /* Ensure spotlight glow is completely removed */
  .hero::before {
    display: none !important;
    content: none !important;
  }

  /* 2. REDUCE MOBILE PARTICLE & NETWORK CANVAS INTENSITY */
  #heroCanvas {
    opacity: 0.35 !important;
    filter: brightness(0.7) opacity(0.35) !important;
  }

  /* 3. HERO STICKY ON MOBILE */
  .hero-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 75px 0 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 2 !important;
  }

  .hero-content {
    margin: auto 0 !important;
    padding: 0 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .hero-badge {
    margin-bottom: 0.5rem !important;
    font-size: 0.72rem !important;
    padding: 5px 14px !important;
  }

  .hero-steps-container {
    height: 125px !important;
    margin: 0.3rem 0 0.6rem !important;
    overflow: hidden !important;
  }

  .hero-step {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
  }

  .hero-heading {
    font-size: clamp(1.2rem, 5vw, 1.85rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px !important;
  }

  .hero-sub {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
  }

  .hero-actions {
    margin-top: 0.75rem !important;
    gap: 8px !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 290px !important;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 18px !important;
    font-size: 0.88rem !important;
    min-height: 42px !important;
  }

  .hero-scroll-hint {
    position: absolute !important;
    bottom: 48px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 0.6rem !important;
  }

  .hero-marquee {
    position: relative !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 10px 0 !important;
    width: 100% !important;
  }
}

/* ============================================
   3. WHO WE ARE / STATS CONTAINER BOUNDARIES
   ============================================ */
.about-visual {
  position: relative !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.brand-collage {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  .about-visual {
    height: 420px !important;
    padding: 10px !important;
  }
  .brand-collage {
    height: 400px !important;
  }
  .collage-card.cc1 {
    position: absolute !important; top: 0 !important; left: 0 !important; width: 210px !important;
    background: rgba(22, 22, 22, 0.9) !important; backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border2) !important; border-radius: 16px !important; padding: 1.1rem !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; box-sizing: border-box !important;
  }
  .collage-card.cc2 {
    position: absolute !important; top: 15px !important; right: 0 !important; width: 190px !important;
    background: rgba(22, 22, 22, 0.9) !important; backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border) !important; border-radius: 16px !important; padding: 1.1rem !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; box-sizing: border-box !important;
  }
  .collage-card.cc3 {
    position: absolute !important; bottom: 10px !important; left: 10px !important; width: 175px !important;
    background: rgba(22, 22, 22, 0.9) !important; backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border) !important; border-radius: 16px !important; padding: 0.9rem !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; box-sizing: border-box !important;
  }
  .collage-badge.cb1 { position: absolute !important; bottom: 70px !important; right: 10px !important; box-sizing: border-box !important; }
  .collage-badge.cb2 { position: absolute !important; top: 170px !important; left: 180px !important; box-sizing: border-box !important; }
  .collage-badge.cb3 { position: absolute !important; bottom: 10px !important; right: 70px !important; box-sizing: border-box !important; }
}

@media (max-width: 768px) {
  .about-visual {
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .brand-collage {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 14px !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
  .collage-card, .collage-badge {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
/* ============================================
   HORIZONTAL AUTO-SLIDING PORTFOLIO SHOWCASE
   ============================================ */
.work-section {
  position: relative;
  background: var(--bg) !important;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}
body.light-theme .work-section {
  background: #FFFFFF !important;
}

.horizontal-portfolio-slider {
  position: relative !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 2.5rem auto 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.portfolio-slider-stage {
  position: relative !important;
  width: 100% !important;
  height: 320px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  user-select: none !important;
  cursor: grab !important;
}

.portfolio-slider-stage:active {
  cursor: grabbing !important;
}

.portfolio-slide-card {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 250px !important;
  background: rgba(16, 20, 30, 0.85) !important;
  border: 2px solid rgba(255, 184, 0, 0.3) !important;
  border-radius: 24px !important;
  padding: 24px 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.portfolio-slide-card.active {
  border-color: #FFB800 !important;
  border-width: 3px !important;
  box-shadow: 0 0 40px rgba(255, 184, 0, 0.45), 0 15px 40px rgba(0, 0, 0, 0.8) !important;
  z-index: 10 !important;
}

.portfolio-circle-logo {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  border: 3px solid #FFB800 !important;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  margin-bottom: 16px !important;
  flex-shrink: 0 !important;
}

.portfolio-logo-img {
  max-width: 80px !important;
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15)) !important;
}

.portfolio-brand-title {
  font-family: 'Outfit', var(--font-ar), sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  color: #FFFFFF !important;
  margin: 0 0 6px 0 !important;
}

.portfolio-brand-services {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #FFB800 !important;
  margin-bottom: 14px !important;
  letter-spacing: 0.5px !important;
}

.portfolio-case-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  padding: 8px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  border-radius: 50px !important;
}

.slider-arrow-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  margin-top: 1.5rem !important;
}

.slider-arrow-btn {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(16, 20, 30, 0.9) !important;
  border: 1px solid rgba(255, 184, 0, 0.4) !important;
  color: #FFB800 !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  user-select: none !important;
}

.slider-arrow-btn:hover {
  background: #FFB800 !important;
  color: #000000 !important;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.4) !important;
}

@media (max-width: 768px) {
  .portfolio-slider-stage { height: 290px !important; }
  .portfolio-slide-card { width: 200px !important; padding: 18px 12px 14px !important; }
  .portfolio-circle-logo { width: 90px !important; height: 90px !important; padding: 10px !important; }
  .portfolio-logo-img { max-width: 65px !important; max-height: 65px !important; }
}

/* STRICT CONTAINMENT FOR ABOUT COLLAGE GRID (WHO WE ARE BOX) */
.about-visual {
  position: relative !important;
  width: 100% !important;
  max-width: 540px !important;
  height: auto !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.brand-collage {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  padding: 18px !important;
  background: rgba(14, 18, 26, 0.85) !important;
  border: 1px solid rgba(255, 184, 0, 0.25) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.collage-card, .collage-badge {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.collage-card.cc1 {
  grid-column: span 2 !important;
}

.coverflow-meta-box,
#coverflowMeta {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ============================================
   LIGHT MODE & MOBILE FIXES (WHO WE ARE & HERO)
   ============================================ */

/* Light Mode Hero & Top Background Fix */
body.light-theme .hero,
body.light-theme .hero-sticky,
body.light-theme #home {
  background: #F8F9FA !important;
  color: #1E293B !important;
}

body.light-theme .hero-heading {
  color: #0F172A !important;
}

body.light-theme .hero-badge {
  background: rgba(212, 155, 0, 0.12) !important;
  color: #D49B00 !important;
  border-color: rgba(212, 155, 0, 0.3) !important;
}

body.light-theme .hero-marquee {
  background: #FFFFFF !important;
  border-top: 1px solid rgba(212, 155, 0, 0.25) !important;
  border-bottom: 1px solid rgba(212, 155, 0, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}
body.light-theme .hero-marquee .marquee-track {
  color: #1E293B !important;
}
body.light-theme .hero-marquee .marquee-track span {
  color: #1E293B !important;
  font-weight: 700 !important;
}
body.light-theme .hero-marquee .marquee-track .sep {
  color: #D49B00 !important;
}

/* About Us Yellow Button (Work With Us) Visibility Fix */
.about-action-wrap {
  margin-top: 2rem !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  position: relative !important;
  z-index: 10 !important;
}

.about-action-wrap .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 36px !important;
  border-radius: 50px !important;
  background: #FFB800 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  box-shadow: 0 8px 30px rgba(255, 184, 0, 0.45) !important;
  text-decoration: none !important;
  position: relative !important;
  z-index: 20 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.about-action-wrap .btn-primary * {
  color: #000000 !important;
  font-weight: 800 !important;
}

@media (max-width: 767px) {
  .about-action-wrap {
    margin-top: 1.5rem !important;
  }
  .about-action-wrap .btn-primary {
    width: 100% !important;
    max-width: 320px !important;
  }
}

/* Light Mode for About KPI Showcase Card */
body.light-theme .about-kpi-showcase {
  background: #FFFFFF !important;
  border-color: rgba(212, 155, 0, 0.35) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .kpi-main-card {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), rgba(245, 247, 250, 0.95)) !important;
  border-color: rgba(212, 155, 0, 0.4) !important;
}

body.light-theme .kpi-main-lbl {
  color: #334155 !important;
  font-weight: 700 !important;
}

body.light-theme .kpi-sub-card {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .kpi-sub-card:hover {
  background: rgba(212, 155, 0, 0.08) !important;
  border-color: rgba(212, 155, 0, 0.4) !important;
}

body.light-theme .kpi-num {
  color: #0F172A !important;
}

body.light-theme .kpi-desc {
  color: #475569 !important;
}

/* ============================================
   CLIENT MARQUEE HARDWARE ACCELERATED FIXES
   ============================================ */

.clients-label {
  font-family: var(--font-head), var(--font-ar), sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  color: #FFB800 !important;
  text-align: center !important;
  margin-bottom: 22px !important;
  text-transform: uppercase !important;
}

body.light-theme .clients-label {
  color: #D49B00 !important;
}

.clients-marquee {
  display: flex !important;
  width: 100% !important;
  max-width: 720px !important;
  margin: 15px auto 0 auto !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 14px 0 !important;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent) !important;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent) !important;
}

.clients-track {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 24px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  will-change: transform !important;
  animation: marqueeSingleLine 260s linear infinite !important;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused !important;
}

@keyframes marqueeSingleLine {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

body.rtl .clients-track {
  animation: marqueeSingleLineRTL 260s linear infinite !important;
}

@keyframes marqueeSingleLineRTL {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(50%, 0, 0); }
}

.client-name-bullet {
  display: none !important;
}

.cl-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 10px 24px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 184, 0, 0.2) !important;
  border-radius: 50px !important;
  gap: 14px !important;
  transition: all 0.3s ease !important;
}

.cl-item-text, .client-name-badge {
  font-family: 'Outfit', var(--font-ar), sans-serif !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #E2E8F0 !important;
  letter-spacing: 0.04em !important;
}

body.light-theme .cl-item {
  background: #FFFFFF !important;
  border: 1px solid rgba(212, 155, 0, 0.3) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .client-name-badge {
  color: #1E293B !important;
  font-weight: 800 !important;
}
