/* ============================================================
   ROOT — Colors Only
   ============================================================ */
:root {
  --red:        #d52230;
  --red-dark:   #a81a26;
  --red-light:  #e84455;
  --navy:       #0d1359;
  --navy-light: #1a2280;
  --white:      #ffffff;
  --off-white:  #f5f6fa;
  --gray-light: #eef0f8;
  --text:       #1e2340;
  --text-muted: #5a6080;
  --text-inv:   #dde1f5;
  --text-inv-m: #8890c4;
  --dark-bg:    #07091f;
  --dark-bg2:   #0b0e2e;
  --dark-card:  rgba(255,255,255,.04);
  --border:     rgba(13,19,89,.1);
  --border-red: rgba(213,34,48,.3);
  --grad:       linear-gradient(135deg, var(--navy), var(--red));
  --grad-rev:   linear-gradient(135deg, var(--red), var(--navy));
  --grad-hero:  linear-gradient(135deg, var(--navy) 0%, var(--red) 55%, #ff7a85 100%);
  --shadow-sm:  0 2px 16px rgba(13,19,89,.08);
  --shadow-md:  0 8px 40px rgba(13,19,89,.12);
  --shadow-red: 0 8px 30px rgba(213,34,48,.25);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; } /* JS handles smooth scroll */
body { font-family: 'Cairo', sans-serif; background: var(--white); color: var(--text); direction: rtl; overflow-x: hidden; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
::selection { background: var(--red); color: var(--white); }

/* ============================================================
   UTILITIES
   ============================================================ */
.sec-padding { padding: 96px 0; }
.sec-white   { background: var(--white); }
.sec-gray    { background: var(--off-white); }
.sec-dark    { background: var(--dark-bg2); }
.grad-text   { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.on-dark     { color: var(--white) !important; }

.sec-tag {
  display: inline-block;
  background: rgba(213,34,48,.1);
  border: 1px solid var(--border-red);
  color: var(--red);
  padding: 5px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .3px;
}
.sec-tag-light { background: rgba(213,34,48,.15); color: #ff9aa3; border-color: rgba(213,34,48,.4); }

.sec-title {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
}
.sec-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.85; margin-bottom: 14px; }
.sec-head { margin-bottom: 10px; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad);
  color: var(--white);
  border: none;
  padding: 13px 34px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s, color .3s;
  box-shadow: var(--shadow-red);
  position: relative; overflow: hidden;
  isolation: isolate;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-rev);
  opacity: 0; transition: opacity .3s;
  z-index: -1;
}
.btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 35px rgba(213,34,48,.4); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary > *, .btn-primary i, .btn-primary span { position: relative; z-index: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: var(--white);
  padding: 0;
  transition: box-shadow .3s;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border);
}
#mainNav.scrolled { box-shadow: 0 4px 24px rgba(13,19,89,.1); }
#mainNav .container { height: 72px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
}
.nav-logo { height: 52px; width: auto; object-fit: contain; }

.navbar-nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 2px;
}

/* Desktop nav — logo right | links center | cta left */
.nav-desktop {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-right: 24px;
}
#mainNav .nav-link {
  color: var(--text);
  font-weight: 700;
  font-size: .93rem;
  padding: 6px 14px;
  position: relative;
  transition: color .25s;
  display: block;
}
#mainNav .nav-link::after {
  content: ''; position: absolute; bottom: -2px; right: 14px;
  width: 0; height: 2px; background: var(--red); transition: width .3s;
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: var(--red); }
#mainNav .nav-link:hover::after, #mainNav .nav-link.active::after { width: calc(100% - 28px); }

.btn-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  transition: all .3s;
  box-shadow: var(--shadow-red);
  white-space: nowrap;
  margin-right: 0;
}
.btn-nav-cta:hover { color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(213,34,48,.4); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  border-radius: 8px;
  transition: background .2s;
}
.hamburger:hover { background: var(--off-white); }
.hamburger span {
  display: block; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all .35s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SIDE DRAWER
   ============================================================ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(7,9,31,.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.drawer-overlay.active { opacity: 1; pointer-events: all; }

.side-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 300px; height: 100dvh;
  background: var(--white);
  z-index: 1200;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(13,19,89,.15);
  overflow-y: auto;
}
.side-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-logo { height: 40px; width: auto; object-fit: contain; }
.drawer-close {
  width: 36px; height: 36px;
  background: var(--off-white);
  border: none; border-radius: 10px;
  color: var(--text); font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.drawer-close:hover { background: rgba(213,34,48,.1); color: var(--red); }

.drawer-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.drawer-link {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700; font-size: .95rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.drawer-link::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); opacity: 0;
  transition: opacity .25s; border-radius: 12px;
}
.drawer-link i {
  width: 36px; height: 36px;
  background: rgba(213,34,48,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: .9rem;
  flex-shrink: 0; transition: all .25s;
  position: relative; z-index: 1;
}
.drawer-link span { position: relative; z-index: 1; }
.drawer-link:hover { color: var(--white); }
.drawer-link:hover::before { opacity: 1; }
.drawer-link:hover i { background: rgba(255,255,255,.2); color: var(--white); }
.drawer-link.active { color: var(--red); background: rgba(213,34,48,.06); }
.drawer-link.active i { background: rgba(213,34,48,.12); }

.drawer-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
  flex-shrink: 0;
}
.drawer-contact {
  display: flex; flex-direction: column; gap: 8px;
}
.drawer-contact a {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: .85rem; font-weight: 600;
  transition: color .2s;
}
.drawer-contact a:hover { color: var(--red); }
.drawer-contact i { color: var(--red); width: 14px; }
.drawer-social {
  display: flex; gap: 10px;
}
.drawer-social a {
  width: 36px; height: 36px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .85rem;
  transition: all .25s;
}
.drawer-social a:hover { background: var(--grad); border-color: transparent; color: var(--white); transform: translateY(-2px); }

/* Show/hide based on screen */
@media (min-width: 992px) {
  .hamburger { display: none !important; }
  .side-drawer, .drawer-overlay { display: none !important; }
  .navbar-nav-list { display: flex !important; }
  .btn-nav-cta { display: inline-flex !important; }
}
@media (max-width: 991px) {
  .navbar-nav-list { display: none !important; }
  .btn-nav-cta { display: none !important; }
  .hamburger { display: flex !important; }
  .nav-container { height: 60px; }
  .nav-logo { height: 40px; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  background: var(--dark-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 72px;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(213,34,48,.13) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(13,19,89,.4) 0%, transparent 55%);
}
.hero-row {
  position: relative; z-index: 2;
  min-height: calc(100vh - 72px);
  padding: 60px 0;
}

/* Text side */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(213,34,48,.15);
  border: 1px solid rgba(213,34,48,.4);
  color: #ffaab2;
  padding: 7px 20px;
  border-radius: 50px;
  font-size: .88rem; font-weight: 700;
  margin-bottom: 22px;
  opacity: 0;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
  opacity: 0;
}
.hero-brand {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin-bottom: 36px;
  opacity: 0;
}
.hero-stats {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 36px;
  opacity: 0;
}
.hstat { text-align: center; padding: 0 24px; }
.hstat:first-child { padding-right: 0; }
.hstat-num {
  font-size: 2rem; font-weight: 900;
  background: var(--grad-hero);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hstat-sym { font-size: 1.3rem; font-weight: 900; color: var(--white); }
.hstat-lbl { display: block; font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.hstat-div { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad);
  color: var(--white);
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  transition: all .3s;
  box-shadow: var(--shadow-red);
}
.btn-hero-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 35px rgba(213,34,48,.45); }
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
  padding: 11px 30px;
  border-radius: 50px;
  font-weight: 700; font-size: 1rem;
  transition: all .3s;
}
.btn-hero-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }

/* Image side with clip-path */
.hero-img-col { opacity: 0; }
.hero-img-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-img-shape {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/5;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.hero-img:hover { transform: scale(1.05); }

/* Floating cards on image */
.hero-img-card {
  position: absolute;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  z-index: 3;
}
.hero-img-card i { font-size: 1.5rem; color: var(--red); }
.hero-img-card div { display: flex; flex-direction: column; }
.hero-img-card strong { font-size: .9rem; font-weight: 800; color: var(--navy); }
.hero-img-card span { font-size: .75rem; color: var(--text-muted); }
.card-a { top: 10%; right: -20px; animation: fc1 4s ease-in-out infinite; }
.card-b { bottom: 15%; left: -20px; animation: fc2 5s ease-in-out infinite; }
@keyframes fc1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fc2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* Rings */
.hero-img-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(213,34,48,.2);
  animation: ring-pulse 4s ease-in-out infinite;
  z-index: 0;
}
.ring-1 { width: 120%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 0s; }
.ring-2 { width: 140%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 1s; }
@keyframes ring-pulse { 0%,100%{opacity:.3;transform:translate(-50%,-50%) scale(1)} 50%{opacity:.1;transform:translate(-50%,-50%) scale(1.05)} }

/* Scroll indicator */
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 3; }
.scroll-mouse {
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 13px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--red);
  border-radius: 2px;
  animation: wheel 2s infinite;
}
@keyframes wheel { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(14px);opacity:0} }

/* ============================================================
   ABOUT
   ============================================================ */
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; height: 480px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.about-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,19,89,.45), rgba(213,34,48,.15));
  border-radius: 20px;
}
.about-badge {
  position: absolute; bottom: 24px; right: 24px;
  background: var(--grad);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-red);
}
.about-badge i { font-size: 1.6rem; }
.about-badge strong { display: block; font-size: .95rem; font-weight: 800; }
.about-badge span { font-size: .78rem; opacity: .85; }

.about-fc {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .85rem; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.about-fc i { color: var(--red); font-size: 1.1rem; }
.fc1 { top: 20px; left: 20px; animation: fc1 4s ease-in-out infinite; }
.fc2 { top: 50%; left: -16px; transform: translateY(-50%); animation: fc2 5s ease-in-out infinite; }

.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.about-feat {
  display: flex; align-items: center; gap: 10px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .88rem; font-weight: 600; color: var(--text);
  transition: all .3s;
}
.about-feat:hover { border-color: var(--border-red); background: var(--white); box-shadow: var(--shadow-sm); }
.about-feat i { color: var(--red); flex-shrink: 0; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.pcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  height: 100%;
  transition: all .35s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pcard::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 100%; height: 3px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s;
}
.pcard:hover { transform: translateY(-7px); border-color: var(--border-red); box-shadow: 0 20px 50px rgba(213,34,48,.12); }
.pcard:hover::before { transform: scaleX(1); }
.pcard-featured { border-color: var(--border-red); background: linear-gradient(160deg, rgba(213,34,48,.04), var(--white)); }
.pcard-featured::before { transform: scaleX(1); }
.pcard-badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--grad);
  color: var(--white);
  padding: 3px 12px;
  border-radius: 50px;
  font-size: .75rem; font-weight: 700;
}
.pcard-icon {
  width: 60px; height: 60px;
  background: rgba(213,34,48,.08);
  border: 1px solid rgba(213,34,48,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: all .3s;
}
.pcard-icon i { font-size: 1.5rem; color: var(--red); transition: color .3s; }
.pcard:hover .pcard-icon { background: var(--grad); border-color: transparent; }
.pcard:hover .pcard-icon i { color: var(--white); }
.pcard-title { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.pcard-desc { color: var(--text-muted); font-size: .88rem; line-height: 1.7; margin-bottom: 16px; }
.pcard-list { list-style: none; padding: 0; margin-bottom: 20px; }
.pcard-list li { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); margin-bottom: 7px; }
.pcard-list li i { color: var(--red); font-size: .75rem; flex-shrink: 0; }
.pcard-link { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-weight: 700; font-size: .88rem; transition: gap .3s, color .3s; }
.pcard-link:hover { gap: 12px; color: var(--navy); }

/* Diagram — replaced by solar system above */

/* ============================================================
   CLIENTS CARDS
   ============================================================ */
.client-card-link { text-decoration: none; display: block; }
.client-card-new {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .35s;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.client-card-new::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.client-card-link:hover .client-card-new {
  transform: translateY(-6px);
  border-color: var(--border-red);
  box-shadow: 0 16px 40px rgba(213,34,48,.13);
}
.client-card-link:hover .client-card-new::before { transform: scaleX(1); }
.ccn-img { width: 100%; height: 130px; overflow: hidden; }
.ccn-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.client-card-link:hover .ccn-img img { transform: scale(1.07); }
.ccn-icon {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  background: var(--grad);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .9rem;
  box-shadow: var(--shadow-red);
  z-index: 2;
}
.ccn-name {
  font-size: .92rem; font-weight: 800;
  color: var(--text);
  padding: 12px 14px 2px;
  margin: 0;
}
.ccn-type {
  font-size: .78rem; color: var(--text-muted);
  padding: 0 14px 12px;
  margin: 0;
}
.ccn-arrow {
  position: absolute; bottom: 12px; left: 14px;
  color: var(--red); font-size: .8rem;
  opacity: 0; transform: translateX(6px);
  transition: all .3s;
}
.client-card-link:hover .ccn-arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   DIAGRAM SECTION (full-width)
   ============================================================ */
#diagram-section {
  position: relative;
  background: var(--dark-bg);
  overflow: hidden;
  padding: 80px 0;
}
#diagramCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.diagram-wrap {
  position: relative;
  z-index: 1;
  padding: 0;
}
.diagram-title {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-align: center;
  margin-bottom: 48px;
}
.diagram-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin: 12px auto 0;
}

.solar-system {
  position: relative;
  width: 560px;
  height: 560px;
  margin: 0 auto;
}

/* Sun */
.solar-sun {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  background: var(--grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--white);
  font-weight: 800; font-size: .82rem; line-height: 1.4;
  z-index: 10;
  box-shadow: 0 0 0 12px rgba(213,34,48,.12), 0 0 0 24px rgba(213,34,48,.06);
}
.solar-sun-glow {
  position: absolute; inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213,34,48,.3) 0%, transparent 70%);
  animation: sun-pulse 3s ease-in-out infinite;
}
@keyframes sun-pulse {
  0%,100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.15); opacity: .4; }
}

/* Orbits */
.solar-orbit {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.12);
  transform: translate(-50%, -50%);
  animation: orbit-spin linear infinite;
}
.orbit-1 {
  width: 280px; height: 280px;
  animation-duration: 20s;
}
.orbit-2 {
  width: 460px; height: 460px;
  animation-duration: 35s;
}
@keyframes orbit-spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Planets */
.solar-planet {
  position: absolute;
  top: 50%; left: 50%;
  /* place on orbit edge using angle */
  transform: translate(-50%,-50%) rotate(var(--angle)) translateX(50%) rotate(calc(-1 * var(--angle)));
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  /* counter-rotate so label stays upright */
}
.orbit-2 .solar-planet {
  transform: translate(-50%,-50%) rotate(var(--angle)) translateX(50%) rotate(calc(-1 * var(--angle)));
}

/* Override translateX to match orbit radius */
.orbit-1 .solar-planet { transform: translate(-50%,-50%) rotate(var(--angle)) translateX(140px) rotate(calc(-1 * var(--angle))); }
.orbit-2 .solar-planet { transform: translate(-50%,-50%) rotate(var(--angle)) translateX(230px) rotate(calc(-1 * var(--angle))); }

.planet-body {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 1.1rem;
  transition: all .3s;
  backdrop-filter: blur(4px);
  /* counter-rotate the body so icon stays upright */
  animation: counter-spin linear infinite;
}
.orbit-1 .planet-body { animation-duration: 20s; }
.orbit-2 .planet-body { animation-duration: 35s; }
@keyframes counter-spin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.planet-body:hover { background: var(--grad); border-color: transparent; color: var(--white); transform: scale(1.2) rotate(0deg) !important; }

.planet-label {
  font-size: .7rem; font-weight: 700;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  text-align: center;
  background: rgba(7,9,31,.7);
  padding: 2px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  /* keep label upright */
  animation: counter-spin linear infinite;
}
.orbit-1 .planet-label { animation-duration: 20s; }
.orbit-2 .planet-label { animation-duration: 35s; }

@media (max-width: 767px) {
  .solar-system { width: 320px; height: 320px; }
  .solar-sun { width: 80px; height: 80px; font-size: .7rem; }
  .orbit-1 { width: 170px; height: 170px; }
  .orbit-2 { width: 290px; height: 290px; }
  .orbit-1 .solar-planet { transform: translate(-50%,-50%) rotate(var(--angle)) translateX(85px) rotate(calc(-1 * var(--angle))); }
  .orbit-2 .solar-planet { transform: translate(-50%,-50%) rotate(var(--angle)) translateX(145px) rotate(calc(-1 * var(--angle))); }
  .planet-body { width: 36px; height: 36px; font-size: .85rem; }
  .planet-label { font-size: .6rem; }
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  transition: all .3s;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--grad);
  transform: scaleX(0); transition: transform .4s;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--border-red); box-shadow: 0 16px 40px rgba(213,34,48,.1); }
.stat-card:hover::after { transform: scaleX(1); }
.stat-icon { font-size: 1.8rem; color: var(--red); margin-bottom: 10px; }
.stat-val { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-val .counter { font-size: 2.6rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-sym { font-size: 1.4rem; font-weight: 900; color: var(--red); }
.stat-lbl { color: var(--text-muted); font-size: .88rem; font-weight: 600; margin-top: 6px; }

/* ============================================================
   TESTIMONIALS — full-width continuous slider
   ============================================================ */

/* Outer wrapper — full width, overflow hidden, with fade masks */
.testi-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 32px 0 48px;
}
/* Fade masks on both sides */
.testi-fade-right,
.testi-fade-left {
  position: absolute;
  top: 0; bottom: 0;
  width: 200px;
  z-index: 2;
  pointer-events: none;
}
.testi-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--dark-bg2) 0%, transparent 100%);
}
.testi-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--dark-bg2) 0%, transparent 100%);
}

/* Swiper itself — no padding-bottom needed, no nav/pagination */
.testi-swiper { overflow: visible !important; }
.testi-swiper .swiper-wrapper {
  align-items: stretch;
  transition-timing-function: linear !important;
}
/* Smooth pause on hover */
.testi-outer:hover .testi-swiper .swiper-wrapper {
  transition-timing-function: ease-out !important;
}

.tcard {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  position: relative;
  transition: border-color .35s, box-shadow .35s;
  user-select: none;
}
.tcard::before {
  content: '\201C';
  position: absolute; top: 12px; left: 18px;
  font-size: 4rem; color: var(--red); opacity: .14;
  font-family: Georgia, serif; line-height: 1;
}
.tcard:hover { border-color: rgba(213,34,48,.4); box-shadow: 0 16px 40px rgba(213,34,48,.12); }
.tcard-featured {
  background: linear-gradient(135deg, rgba(213,34,48,.13), rgba(255,255,255,.04));
  border-color: rgba(213,34,48,.35);
}
.tcard-stars { color: #f59e0b; margin-bottom: 12px; font-size: .9rem; }
.tcard-text { color: var(--text-inv-m); font-size: .9rem; line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.tcard-author { display: flex; align-items: center; gap: 12px; }
.tcard-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(213,34,48,.4); flex-shrink: 0; }
.tcard-name { font-weight: 800; color: var(--white); font-size: .9rem; }
.tcard-role { color: var(--text-inv-m); font-size: .76rem; }

/* Clients swiper */
.clients-swiper { padding-bottom: 10px !important; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  background: linear-gradient(135deg, rgba(13,19,89,.06), rgba(213,34,48,.04));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-glow {
  position: absolute; top: -80px; right: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(213,34,48,.08), transparent 70%);
  pointer-events: none;
}
.cinfo-list { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.cinfo-item {
  display: flex; align-items: center; gap: 14px;
  color: var(--text);
  transition: color .3s;
}
.cinfo-item:hover { color: var(--red); }
.cinfo-icon {
  width: 44px; height: 44px;
  background: rgba(213,34,48,.1);
  border: 1px solid var(--border-red);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red); font-size: 1rem;
  flex-shrink: 0;
}
.cinfo-label { display: block; font-size: .75rem; color: var(--text-muted); }
.cinfo-val { display: block; font-weight: 700; font-size: .95rem; direction: ltr; text-align: end;}

.social-row { display: flex; gap: 10px; }
.soc-btn {
  width: 40px; height: 40px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .9rem;
  transition: all .3s;
}
.soc-btn:hover { background: var(--grad); border-color: transparent; color: var(--white); transform: translateY(-3px); }

.cform,
.cform .wpcf7 form,
.cform .wpcf7-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  text-align: start;
}
.cform-group,
.cform .wpcf7-form-control-wrap,
.cform .cform-submit {
  width: 100%;
}
.cform p {
  margin: 0;
  text-align: start;
}
.cform-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 18px;
  font-family: 'Cairo', sans-serif;
  font-size: .95rem;
  transition: border-color .3s, box-shadow .3s;
  outline: none;
  text-align: right;
  direction: rtl;
}
.cform-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(213,34,48,.1); }
.cform-input::placeholder { color: var(--text-muted); }
.cform-input option { background: var(--white); color: var(--text); }
.cform textarea.cform-input {
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  resize: none;
}
.cform .wpcf7-form-control:not(.cform-input) {
  width: 100%;
}
.cform .wpcf7-not-valid {
  border-color: var(--red);
  background: #fff7f7;
  box-shadow: 0 0 0 4px rgba(213,34,48,.08);
}
.cform .wpcf7-not-valid-tip {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(213,34,48,.08), rgba(213,34,48,.14));
  color: var(--red);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: start;
}
.cform .wpcf7-response-output {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: start;
}
.cform .wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid rgba(20, 148, 92, .18);
  background: #f2fcf7;
  color: #14945c;
}
.cform .wpcf7 form.invalid .wpcf7-response-output,
.cform .wpcf7 form.unaccepted .wpcf7-response-output,
.cform .wpcf7 form.failed .wpcf7-response-output,
.cform .wpcf7 form.aborted .wpcf7-response-output {
  border: 1px solid rgba(213,34,48,.18);
  background: #fff5f5;
  color: var(--red);
}
.cform .wpcf7-spinner {
  margin: 8px 0 0;
  align-self: flex-start;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: var(--dark-bg); border-top: 1px solid rgba(255,255,255,.06); }
.footer-top { padding: 64px 0 48px; }
.footer-logo { height: 48px; width: auto; object-fit: contain; margin-bottom: 16px; }
.footer-desc { color: var(--text-inv-m); font-size: .88rem; line-height: 1.8; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-inv-m); font-size: .88rem;
  transition: all .3s;
}
.footer-social a:hover { background: var(--grad); border-color: transparent; color: var(--white); transform: translateY(-3px); }
.footer-heading { color: var(--white); font-weight: 800; font-size: .95rem; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--text-inv-m); font-size: .88rem; transition: color .3s; }
.footer-links a:hover { color: var(--red-light); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.fc-item { display: flex; align-items: center; gap: 10px; color: var(--text-inv-m); font-size: .88rem; }
.fc-item i { color: var(--red); width: 16px; flex-shrink: 0; }
.fc-item a { color: var(--text-inv-m); transition: color .3s; }
.fc-item a:hover { color: var(--white); }
.fc-item span {direction: ltr;}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0; }
.footer-bottom p { color: var(--text-inv-m); font-size: .84rem; margin: 0; }
.footer-bottom a { color: var(--text-inv-m); font-size: .84rem; transition: color .3s; }
.footer-bottom a:hover { color: var(--red-light); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 46px; height: 46px;
  background: var(--grad);
  border: none; border-radius: 12px;
  color: var(--white); font-size: .95rem;
  cursor: pointer;
  opacity: 0; transform: translateY(16px);
  transition: all .3s;
  z-index: 999;
  box-shadow: var(--shadow-red);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(213,34,48,.5); }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 84px;
  left: 28px;
  width: 46px; height: 46px;
  background: #25d366;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all .3s;
  opacity: 0; transform: translateY(16px);
}
.whatsapp-fab.visible { opacity: 1; transform: translateY(0); }
.whatsapp-fab:hover { color: var(--white); transform: translateY(-4px); box-shadow: 0 8px 28px rgba(37,211,102,.55); }

/* Footer Legal Docs */
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
}
.footer-legal-inner {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-doc-btn {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px 18px;
  color: var(--text-inv-m);
  text-decoration: none;
  transition: all .3s;
  flex: 1; min-width: 220px;
}
.legal-doc-btn > i:first-child { font-size: 1.4rem; color: var(--red); flex-shrink: 0; }
.legal-doc-btn div { display: flex; flex-direction: column; flex: 1; }
.legal-doc-title { font-size: .85rem; font-weight: 700; color: var(--white); }
.legal-doc-num { font-size: .75rem; color: var(--text-inv-m); direction: ltr; text-align: right; }
.legal-doc-dl { font-size: .85rem; color: var(--text-inv-m); flex-shrink: 0; transition: color .3s; }
.legal-doc-btn:hover { background: rgba(213,34,48,.12); border-color: var(--border-red); color: var(--white); }
.legal-doc-btn:hover .legal-doc-dl { color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero-img-col { margin-top: 40px; }
  .hero-img-shape { max-width: 380px; margin: 0 auto; }
  .card-a { right: 0; }
  .card-b { left: 0; }
  .about-img { height: 360px; }
  .contact-wrap { padding: 40px 28px; }
  .diagram-grid { grid-template-columns: repeat(3, 1fr); }
  .dg-core { grid-column: 2; grid-row: 2; }
}

/* ===== HERO — always side by side on all screens ===== */
/* ===== GLOBAL FIX — no horizontal scroll ===== */
html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 991px) {
  .hero-row { flex-wrap: nowrap !important; align-items: center; overflow: hidden; }
  .hero-row .hero-text-col {
    flex: 0 0 54% !important;
    max-width: 54% !important;
    padding-left: 6px;
    min-width: 0;
  }
  .hero-row .hero-img-col {
    flex: 0 0 46% !important;
    max-width: 46% !important;
    margin-top: 0 !important;
    padding-right: 6px;
    min-width: 0;
  }
  .hero-img-shape { max-width: 100%; }
  .hero-title { font-size: clamp(1.4rem, 3.5vw, 2.4rem); }
  .hero-sub { font-size: .85rem; margin-bottom: 16px; }
  .hero-stats { margin-bottom: 16px; }
  .hstat { padding: 0 8px; }
  .hstat-num { font-size: 1.2rem; }
  .hero-badge { font-size: .75rem; padding: 5px 12px; margin-bottom: 12px; }
  .card-a { right: -10px; top: 5%; }
  .card-b { left: -10px; bottom: 5%; }
  .hero-img-card { padding: 7px 10px; gap: 7px; }
  .hero-img-card i { font-size: 1rem; }
  .hero-img-card strong { font-size: .72rem; }
  .hero-img-card span { font-size: .62rem; }
}

@media (max-width: 767px) {
  /* Hero — navbar is 60px fixed, add equal space top & bottom */
  #hero {
    min-height: unset;
    height: auto;
    padding-top: 60px;   /* navbar height */
    padding-bottom: 0;
  }
  .hero-row {
    min-height: unset !important;
    padding-top: 57px;
    padding-bottom: 28px;
    align-items: center;
  }
  /* Prevent image from touching the navbar */
  .hero-img-col {
    align-self: center;
  }
  .hero-img-shape {
    border-radius: 10px;
    clip-path: none;       /* simpler shape on mobile */
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
  }

  .sec-padding { padding: 64px 0; }
  .hero-stats { gap: 0; margin-bottom: 12px; }
  .hstat { padding: 0 5px; }
  .hstat-num { font-size: .95rem; }
  .hstat-lbl { font-size: .58rem; }
  .hstat-sym { font-size: .8rem; }
  .hstat-div { height: 20px; }
  .hero-cta { flex-direction: row !important; flex-wrap: nowrap; gap: 6px; }
  .hero-cta a {
    width: auto !important;
    font-size: 10px !important;
    padding: 6px 10px !important;
    gap: 4px;
    white-space: nowrap;
  }
  .hero-cta a i { font-size: 9px; }
  .btn-primary { font-size: .82rem; padding: 10px 18px; }
  .btn-hero-primary, .btn-hero-outline { font-size: 10px; padding: 6px 10px; }
  .stat-val .counter { font-size: 1.8rem; }
  .stat-sym { font-size: 1rem; }
  .stat-lbl { font-size: .78rem; }
  .stat-icon { font-size: 1.4rem; }
  .stat-card { padding: 20px 12px; }
  .about-feats { grid-template-columns: 1fr; }
  .contact-wrap { padding: 28px 18px; }
  .diagram-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dg-core { grid-column: 1 / -1; grid-row: auto; width: 110px; height: 110px; }
  .testi-prev, .testi-next { display: none !important; }
  .testi-fade-right, .testi-fade-left { width: 60px; }
  /* Hide scroll indicator on mobile */
  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .hero-row .hero-text-col { flex: 0 0 57% !important; max-width: 57% !important; }
  .hero-row .hero-img-col  { flex: 0 0 43% !important; max-width: 43% !important; }
  .hero-title { font-size: clamp(1rem, 4.5vw, 1.4rem); }
  .hero-sub { display: none; }
  .hero-badge { display: none; }
  .hero-img-card { display: none; }
  .hero-img-shape { clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%); }
  .hstat-num { font-size: .85rem; }
  .hstat-lbl { font-size: .52rem; }
  .hero-cta a { font-size: 9px !important; padding: 5px 8px !important; }
  .stat-val .counter { font-size: 1.5rem; }
}
