/* ===== GOOGLE FONTS & VARIABLES ===== */
:root {
  --primary: #0a0f1e;
  --primary-light: #151d33;
  --primary-dark: #050812;
  --accent: #4f6ef7;
  --accent-hover: #3b57e0;
  --accent-light: #e8eeff;
  --accent-glow: rgba(79, 110, 247, 0.35);
  --accent-gradient: linear-gradient(135deg, #4f6ef7 0%, #7c5cfc 100%);
  --accent-gradient-hover: linear-gradient(135deg, #3b57e0 0%, #6845e8 100%);
  --warm: #f59e42;

  --bg-main: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-card: #ffffff;

  --text-main: #0a0f1e;
  --text-muted: #5b6478;
  --text-white: #ffffff;
  --text-white-80: rgba(255, 255, 255, 0.88);
  --text-white-50: rgba(255, 255, 255, 0.6);

  --border: #e0e5ef;
  --border-light: rgba(224, 229, 239, 0.5);

  --shadow-sm: 0 1px 3px 0 rgba(10, 15, 30, 0.05);
  --shadow-md:
    0 4px 12px -2px rgba(10, 15, 30, 0.08),
    0 2px 4px -1px rgba(10, 15, 30, 0.04);
  --shadow-lg:
    0 12px 24px -4px rgba(10, 15, 30, 0.1),
    0 4px 8px -2px rgba(10, 15, 30, 0.05);
  --shadow-xl:
    0 24px 48px -8px rgba(10, 15, 30, 0.12),
    0 12px 16px -4px rgba(10, 15, 30, 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", "Cairo", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ===== TYPOGRAPHY & UTILITIES ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.03em;
}
.text-primary {
  color: var(--primary);
}
.text-primary-light {
  color: var(--accent-light);
}
.text-accent {
  color: var(--accent);
}
.text-white {
  color: var(--text-white) !important;
}
.text-white-80 {
  color: var(--text-white-80) !important;
}
.text-white-50 {
  color: var(--text-white-50) !important;
}
.text-center {
  text-align: center;
}
.bg-alt {
  background-color: var(--bg-alt);
}
.bg-primary {
  background: linear-gradient(135deg, #0a0f1e 0%, #151d33 50%, #1a1040 100%);
}
.bg-primary-light {
  background-color: var(--primary-light);
}
.bg-accent-light {
  background-color: var(--accent-light);
}

.mt-3 {
  margin-top: 1.5rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.section-padding {
  padding: 100px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}
.btn:hover .btn-icon {
  transform: translateX(2px);
}
.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 2px 10px rgba(79, 110, 247, 0.2);
}
.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.25);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(79, 110, 247, 0.2);
}
.btn-outline {
  border-color: var(--border);
  color: var(--text-main);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(255, 255, 255, 0.05);
}
.btn-outline-light:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 20px 0;
  transition:
    background 0.3s ease,
    padding 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
/* Transparent state: light text over dark hero */
.navbar .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}
.navbar .nav-links a:hover {
  color: #ffffff;
}
.navbar .nav-links a::after {
  background: #ffffff;
}
.navbar .nav-toggle {
  color: #ffffff;
}
.navbar .logo-light {
  display: block;
}
.navbar .logo-dark {
  display: none;
}
.navbar .translate-item .btn-outline {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}
.navbar .translate-item .btn-outline:hover {
  border-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}

/* Scrolled state: solid white bg, dark text */
.navbar.scrolled {
  background: #ffffff;
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.navbar.scrolled .nav-links a {
  color: var(--text-muted);
}
.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}
.navbar.scrolled .nav-links a::after {
  background: var(--accent);
}
.navbar.scrolled .nav-toggle {
  color: var(--text-main);
}
.navbar.scrolled .logo-light {
  display: none;
}
.navbar.scrolled .logo-dark {
  display: block;
}
.navbar.scrolled .translate-item .btn-outline {
  border-color: var(--border) !important;
  color: var(--primary) !important;
}
.navbar.scrolled .translate-item .btn-outline:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  flex: 1;
  margin: 0;
  padding: 0;
}
.left-links {
  justify-content: flex-end;
}
.right-links {
  justify-content: flex-start;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-logo {
  flex: 0 0 auto;
  margin: 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.nav-logo img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}
.navbar.scrolled .nav-logo img {
  max-height: 56px;
}
.fallback-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
}
.mobile-logo {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Google Translate Widget Styling */
.translate-item {
  display: flex;
  align-items: center;
  margin-left: 16px;
}
.goog-te-gadget {
  font-family: "Inter", sans-serif !important;
  color: transparent !important;
  font-size: 0 !important;
}
.goog-te-gadget .goog-te-combo {
  font-family: "Inter", sans-serif !important;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg-alt);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.goog-te-gadget .goog-te-combo:hover {
  border-color: var(--accent);
}
/* Hide the top Google Translate frame */
body {
  top: 0 !important;
}
.skiptranslate iframe {
  display: none !important;
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-swiper {
  width: 100%;
  height: 100%;
}
.hero-slide {
  height: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* Full-bleed background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}
.swiper-slide-active .hero-bg-img {
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 30, 0.88) 0%,
    rgba(10, 15, 30, 0.72) 35%,
    rgba(10, 15, 30, 0.45) 70%,
    rgba(10, 15, 30, 0.3) 100%
  );
  z-index: 1;
}

/* Content overlay — centered for cinematic feel */
.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 100px;
}
.hero-content {
  max-width: 750px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(79, 110, 247, 0.15);
  color: #a3bbff;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(79, 110, 247, 0.25);
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(79, 110, 247, 0.12);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.1;
  color: #ffffff;
}
.hero .text-accent {
  color: var(--accent);
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Swiper overrides — pagination positioned inside the hero */
.hero .swiper-pagination {
  position: absolute;
  bottom: 40px !important;
  z-index: 10;
}
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4) !important;
  opacity: 1;
  width: 10px;
  height: 10px;
}
.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  opacity: 1;
  width: 28px;
  border-radius: var(--radius-sm);
}
.swiper-button-next,
.swiper-button-prev {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  max-width: 650px;
  margin: 0 auto 64px;
}
.section-subtitle {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: transparent;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 12px;
  padding: 4px 0;
}
.section-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== VALUES / FEATURES BENTO GRID ===== */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features-bento > .feat-card--wide {
  grid-column: span 2;
}

.feat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.feat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.1);
}
.feat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 30, 0.1) 0%,
    rgba(10, 15, 30, 0.45) 50%,
    rgba(10, 15, 30, 0.88) 100%
  );
  z-index: 1;
}
.feat-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 36px;
}
.feat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(79, 110, 247, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(79, 110, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a3bbff;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}
.feat-card:hover .feat-card__icon {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: scale(1.1);
  border-color: transparent;
}
.feat-card__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}
.feat-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.feat-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  max-width: 420px;
}

/* Accent line on hover */
.feat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.feat-card:hover::after {
  transform: scaleX(1);
}

@media (max-width: 1024px) {
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-bento > .feat-card--wide {
    grid-column: span 2;
  }
  .feat-card {
    min-height: 280px;
  }
}
@media (max-width: 640px) {
  .features-bento {
    grid-template-columns: 1fr;
  }
  .features-bento > .feat-card--wide {
    grid-column: span 1;
  }
  .feat-card {
    min-height: 260px;
  }
  .feat-card__content {
    padding: 28px;
  }
}

/* Legacy card styles (kept for other sections if needed) */

/* ===== TIMELINE (SALES CYCLE) ===== */
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--border),
    var(--accent),
    #7c5cfc,
    var(--border)
  );
  z-index: 0;
}
.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 150px;
}
.step-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-main);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 0 auto 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.step-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.timeline-step:hover .step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.timeline-step h4 {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}
.timeline-step:hover h4 {
  color: var(--accent);
}

/* ===== SPLIT LAYOUT (Features) ===== */
.split-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
}
.split-layout.reverse {
  direction: rtl;
}
.split-layout.reverse > * {
  direction: ltr;
}
.align-center {
  align-items: center;
}

.split-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.split-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.feature-list li:hover {
  background: rgba(79, 110, 247, 0.04);
}
.feature-list li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
}

/* Modern Mock Panels */
.modern-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.panel-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-header svg {
  width: 16px;
  height: 16px;
}
.panel-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Real Mock UI Panels */
.real-ui {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--bg-main);
}

/* UI Stats Row */
.ui-stats-row {
  display: flex;
  gap: 16px;
}
.ui-stat-card {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.ui-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ui-stat-icon svg {
  width: 22px;
  height: 22px;
}
.ui-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ui-stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ui-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* UI List Container */
.ui-list-container {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ui-list-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ui-list-header h4 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--primary);
}
.ui-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.ui-list {
  display: flex;
  flex-direction: column;
}
.ui-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-main);
  transition: var(--transition);
}
.ui-list-item:last-child {
  border-bottom: none;
}
.ui-list-item:hover {
  background: var(--bg-alt);
}
.ui-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ui-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ui-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}
.ui-item-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.ui-badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* UI Inventory Grid */
.ui-inventory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ui-inventory-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.ui-inventory-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ui-inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ui-inventory-header svg {
  width: 24px;
  height: 24px;
}
.ui-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ui-product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin: 4px 0 0;
}
.ui-stock-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.ui-stock-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.ui-stock-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.ui-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
  margin-top: 4px;
}
.ui-progress-fill {
  height: 100%;
  border-radius: 3px;
}

/* UI Chart Container */
.ui-chart-container {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 300px;
  box-shadow: var(--shadow-sm);
}
.ui-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.ui-stat-value-large {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}
.ui-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}
.ui-trend svg {
  width: 16px;
  height: 16px;
}
.ui-bar-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}
.ui-chart-bar {
  flex: 1;
  background: #cbd5e1;
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
  position: relative;
}
.ui-chart-bar:hover {
  background: var(--accent);
}
.ui-chart-bar.active {
  background: var(--accent);
}

/* Colors */
.bg-blue-light {
  background: #e0e7ff;
}
.text-blue {
  color: #4338ca;
}
.bg-green-light {
  background: #dcfce7;
}
.text-green {
  color: #15803d;
}
.bg-amber-light {
  background: #fef3c7;
}
.text-amber {
  color: #b45309;
}
.bg-accent {
  background: var(--accent);
}
.bg-green {
  background: #10b981;
}
.bg-blue {
  background: #3b82f6;
}
.text-muted {
  color: var(--text-muted);
}
.text-white {
  color: #ffffff;
}

/* ===== KPI ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.kpi-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.kpi-item:hover {
  border-color: rgba(79, 110, 247, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.kpi-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: var(--transition);
}
.kpi-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}
.kpi-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

/* ===== CONTACT ===== */
.demo-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-top: 40px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.demo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}
.demo-card h3 {
  color: white;
  margin-bottom: 16px;
  font-weight: 600;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}
.contact-info-card h3 {
  margin-bottom: 32px;
  font-size: 1.5rem;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.method {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.method:hover {
  background: var(--bg-alt);
}
.method .icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0; /* Prevent icon from squishing on small screens */
}
.method .icon svg {
  width: 24px;
  height: 24px;
}
.method .label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.method a {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  word-break: break-word; /* Prevent long emails/links from breaking layout */
  display: block;
}
.method a:hover {
  color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
  padding: 80px 0 32px;
  background: var(--primary);
  border-top: none;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}
.footer::after {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(79, 110, 247, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
}
.footer-brand .footer-logo img {
  max-height: 100px;
  filter: brightness(0) invert(1);
}
.footer-brand .fallback-logo {
  color: white !important;
}
.footer-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}
.social-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
  transform: translateY(-2px);
}
.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover {
  color: rgba(255, 255, 255, 0.85);
  padding-left: 4px;
}
.footer-contact-list li {
  font-size: 0.95rem;
  word-break: break-word;
}
.footer-contact-list a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.footer-contact-list a:hover {
  color: white;
  padding-left: 4px;
}
.footer-contact-list svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.footer-bottom p {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-legal a:hover {
  color: white;
}

/* ===== LIGHT-TEXT OVERRIDES (for dark bg sections) ===== */
.light-text .section-subtitle,
.text-white-50.section-subtitle {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subtle shimmer on primary CTA */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: none;
  animation: btn-shimmer 4s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0%,
  100% {
    left: -100%;
  }
  50% {
    left: 130%;
  }
}

/* Navbar active link indicator */
.nav-links a.active {
  color: var(--accent);
}
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up {
  transform: translateY(40px);
}
.fade-in {
  transform: scale(0.96);
}
.reveal.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .split-layout {
    gap: 40px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    gap: 16px;
  }
  .nav-logo {
    margin: 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }
  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  /* Default Mobile Menu (Dark Theme for Transparent Navbar) */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    
    /* Animation instead of display: none */
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Dark Menu Text */
  .nav-menu .nav-links a {
    color: rgba(255, 255, 255, 0.85) !important;
  }
  .nav-menu .nav-links a:hover {
    color: #ffffff !important;
  }
  .nav-menu .nav-links a::after {
    background: #ffffff !important;
  }
  .nav-menu .translate-item .btn-outline {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
  }
  
  /* Scrolled Mobile Menu (Light Theme for Solid Navbar) */
  .navbar.scrolled .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
  }
  .navbar.scrolled .nav-menu .nav-links a {
    color: var(--text-muted) !important;
  }
  .navbar.scrolled .nav-menu .nav-links a:hover {
    color: var(--primary) !important;
  }
  .navbar.scrolled .nav-menu .nav-links a::after {
    background: var(--accent) !important;
  }
  .navbar.scrolled .nav-menu .translate-item .btn-outline {
    border-color: var(--border) !important;
    color: var(--primary) !important;
  }

  /* Apply the same dark background to the navbar when menu is open in transparent state */
  .navbar.menu-open:not(.scrolled),
  .navbar:has(.nav-menu.active):not(.scrolled) {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Ensure logo and toggle remain light when dark menu is open */
  .navbar.menu-open:not(.scrolled) .logo-dark,
  .navbar:has(.nav-menu.active):not(.scrolled) .logo-dark {
    display: none !important;
  }
  .navbar.menu-open:not(.scrolled) .logo-light,
  .navbar:has(.nav-menu.active):not(.scrolled) .logo-light {
    display: block !important;
  }
  .navbar.menu-open:not(.scrolled) .nav-toggle,
  .navbar:has(.nav-menu.active):not(.scrolled) .nav-toggle {
    color: #ffffff !important;
  }

  .nav-links {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
    margin-bottom: 24px;
  }
  .mobile-logo {
    display: flex;
    margin: 0;
  }
  .desktop-logo {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .nav-toggle svg {
    width: 28px;
    height: 28px;
  }
  .nav-container {
    justify-content: space-between;
  }

  .hero-container {
    padding-top: 100px;
    padding-bottom: 80px;
  }
  .hero .swiper-pagination {
    bottom: 24px !important;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 15, 30, 0.92) 0%,
      rgba(10, 15, 30, 0.78) 40%,
      rgba(10, 15, 30, 0.6) 100%
    ) !important;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
  }
  .split-image {
    display: none; /* Hide UI mock panels on mobile to reduce clutter */
  }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 28px;
  }
  .timeline::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 56px;
  }
  .timeline-step {
    width: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
    background: var(--bg-main);
    margin-bottom: 24px;
    padding-right: 16px;
  }
  .step-icon {
    margin: 0;
  }

  .section-padding {
    padding: 80px 0; /* Increased mobile padding for better breathing room */
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .features-bento {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  /* Mock UI Panel Responsiveness */
  .real-ui {
    padding: 24px;
    gap: 20px;
  }
  .ui-stats-row {
    flex-direction: column;
  }
  .ui-inventory-grid {
    grid-template-columns: 1fr;
  }
  .ui-chart-container {
    height: 260px;
    padding: 20px;
  }
  .ui-list-item {
    padding: 12px 16px;
    gap: 12px;
  }
  .ui-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding-top: 80px;
    padding-bottom: 60px;
  }
  .hero h1 {
    font-size: 1.7rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }
  h2,
  .section-header h2 {
    font-size: 1.5rem; /* Reduce all other section titles */
    margin-bottom: 10px;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
  }
  .hero-badge {
    margin-bottom: 16px;
    padding: 6px 14px;
    font-size: 0.75rem;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .contact-info-card {
    padding: 32px 20px;
  }
  .demo-card {
    padding: 24px;
  }
  .method {
    padding: 8px;
    gap: 16px;
  }
  .method .icon {
    width: 48px;
    height: 48px;
  }
  .method a {
    font-size: 0.95rem;
  }
  .card {
    padding: 32px 24px;
  }
  .ui-stat-value-large {
    font-size: 1.5rem;
  }
}

/* ===== RTL LAYOUT OVERRIDES (ARABIC) ===== */
.rtl-layout {
  text-align: right;
}
.rtl-layout .text-center {
  text-align: center;
}
.rtl-layout .nav-logo {
  margin: 0 64px;
}
.rtl-layout .nav-toggle {
  margin-right: auto;
  margin-left: 0;
}
.rtl-layout .translate-item {
  margin-left: 0;
  margin-right: 16px;
}
.rtl-layout .btn-icon {
  margin-left: 0;
  margin-right: 8px;
}
.rtl-layout .btn:hover .btn-icon {
  transform: translateX(-4px); /* Animate leftwards instead of rightwards */
}
.rtl-layout .feat-card::after {
  transform-origin: right;
}
.rtl-layout .timeline::before {
  left: auto;
  right: 23px;
}
.rtl-layout .timeline-step {
  padding-left: 0;
  padding-right: 56px;
  text-align: right;
}
.rtl-layout .feature-list li svg {
  margin-right: 0;
  margin-left: 14px;
}
.rtl-layout .ui-trend svg {
  margin-right: 0;
  margin-left: 6px;
}
.rtl-layout .method .icon {
  margin-right: 0;
  margin-left: 16px;
}
.rtl-layout .split-layout.reverse > * {
  direction: rtl; /* Override the hack that forces LTR on reverse split layouts */
}
.rtl-layout .ui-progress-bar {
  display: flex; /* Forces the progress fill to respect RTL direction natively */
}

@media (max-width: 860px) {
  .rtl-layout .timeline::before {
    left: auto;
    right: 56px;
  }
  .rtl-layout .timeline-step {
    padding-left: 0;
    padding-right: 16px;
  }
}
