/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Variables ===== */
:root {
  --primary: #1E88E5;
  --primary-light: #42A5F5;
  --primary-dark: #1565C0;
  --accent: #42A5F5;
  --accent-light: #64B5F6;
  --bg-dark: #000000;
  --bg-card: #0a0a0a;
  --bg-card-hover: #141414;
  --bg-section-alt: #050505;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(30, 136, 229, 0.18);
  --glass-bg: rgba(10, 10, 10, 0.85);
  --glass-border: rgba(30, 136, 229, 0.22);
  --gradient-primary: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
  --gradient-hero: linear-gradient(135deg, #000000 0%, #0d2137 50%, #000000 100%);
  --gradient-card: linear-gradient(145deg, rgba(30,136,229,0.1) 0%, rgba(21,101,192,0.06) 100%);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(30,136,229,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', sans-serif;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6 {
  font-family: 'Cairo', 'Outfit', sans-serif;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }
section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-section-alt); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ===== Navbar ===== */
.navbar {
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  transition: var(--transition);
}
.navbar-brand { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.6rem; }
.navbar-brand span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.navbar .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500; font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--text-primary) !important; background: rgba(30,136,229,0.12); }
.navbar-toggler { border-color: var(--border-color); }
.navbar-toggler-icon { filter: invert(1); }
.navbar .nav-link.btn-demo-nav {
  background: var(--gradient-primary) !important;
  color: #fff !important; border: none;
  padding: 8px 24px !important; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem;
}
.navbar .nav-link.btn-demo-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30,136,229,0.45); color: #fff !important; }
.navbar .dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.navbar .dropdown-item {
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 0.95rem;
}
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus {
  background: rgba(30,136,229,0.15);
  color: var(--text-primary);
}
.navbar .dropdown-item.active {
  color: var(--text-primary) !important;
  background: rgba(30,136,229,0.22);
  font-weight: 600;
}
.navbar .nav-link.dropdown-toggle.active {
  color: var(--text-primary) !important;
  background: rgba(30,136,229,0.12);
}
.navbar .dropdown-menu.products-dropdown {
  min-width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  padding-top: 0.5rem;
}
.navbar .dropdown-header {
  color: var(--primary-light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.products-cat-title {
  color: var(--primary-light);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.product-card { position: relative; }
.product-card--featured {
  border-color: rgba(30, 136, 229, 0.45);
  box-shadow: var(--shadow-glow);
}
.product-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 999px;
}
html[dir="rtl"] .product-tag {
  right: auto;
  left: 16px;
}
.navbar .dropdown-toggle::after { margin-inline-start: 0.35em; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
  padding-top: 100px;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(30,136,229,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,136,229,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30,136,229,0.15); border: 1px solid rgba(30,136,229,0.3);
  padding: 6px 18px; border-radius: 50px;
  font-size: 0.85rem; color: var(--primary-light);
  margin-bottom: 24px; font-weight: 500;
}
.hero h1 { font-size: 3.8rem; font-weight: 900; margin-bottom: 24px; }
.hero h1 .gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary-custom {
  background: var(--gradient-primary); color: #fff; border: none;
  padding: 14px 36px; border-radius: 50px;
  font-weight: 600; font-size: 1rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-custom:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(30,136,229,0.4); color: #fff; }
.btn-outline-custom {
  background: transparent; color: var(--text-primary);
  border: 2px solid var(--border-color);
  padding: 12px 36px; border-radius: 50px;
  font-weight: 600; font-size: 1rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-custom:hover { border-color: var(--primary); background: rgba(30,136,229,0.1); color: #fff; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid var(--border-color);
}
.hero-stat h3 { font-size: 2.2rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat p { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* ===== Section Headers ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .badge-label {
  display: inline-block; background: rgba(30,136,229,0.15);
  border: 1px solid rgba(30,136,229,0.3); padding: 6px 18px;
  border-radius: 50px; font-size: 0.8rem; color: var(--primary-light);
  font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.section-header h2 { font-size: 2.6rem; margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); max-width: 650px; margin: 0 auto; font-size: 1.1rem; }

/* ===== Feature Cards ===== */
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 32px;
  transition: var(--transition); height: 100%;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-primary); opacity: 0; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(30,136,229,0.12); display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.4rem; color: var(--primary-light);
}
.feature-card h4 { font-size: 1.15rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 0; }
.feature-card .feature-list { list-style: none; padding: 0; margin-top: 12px; }
.feature-card .feature-list li {
  color: var(--text-secondary); font-size: 0.88rem;
  padding: 4px 0; padding-left: 20px; position: relative;
}
.feature-card .feature-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.feature-more-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 600;
}
.feature-more-link:hover {
  color: #fff;
}
.invmore-highlights {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.invmore-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.12);
  color: #7ee7ff;
  font-size: 0.8rem;
  font-weight: 700;
}
.invmore-shot {
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(30,136,229,0.16), rgba(21,101,192,0.12));
  padding: 20px;
}
.invmore-shot i {
  font-size: 1.4rem;
  color: #8ab4ff;
  margin-bottom: 10px;
}
.invmore-shot h6 {
  margin-bottom: 8px;
  font-size: 1rem;
}
.invmore-shot p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ===== Release Section ===== */
.release-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px;
}
.release-number {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--gradient-primary); display: flex;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}
.release-header h3 { font-size: 1.6rem; margin-bottom: 0; }
.release-header .release-status {
  display: inline-block; padding: 4px 14px;
  border-radius: 50px; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.release-status.completed { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.release-status.upcoming { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }

/* ===== Upcoming release cards ===== */
.release2-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 32px;
  transition: var(--transition); height: 100%;
  position: relative; overflow: hidden; opacity: 0.85;
}
.release2-card:hover { opacity: 1; transform: translateY(-4px); border-color: #f59e0b; }
.release2-card .coming-soon {
  position: absolute; top: 16px; right: 16px;
  background: rgba(245,158,11,0.15); color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
html[dir="rtl"] .release2-card .coming-soon {
  right: auto;
  left: 16px;
}
.release2-card .feature-icon { background: rgba(245,158,11,0.12); color: #f59e0b; }

/* ===== Demo & Contact Forms ===== */
.form-section {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 48px;
}
.form-control, .form-select {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.95rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(30,136,229,0.15) !important;
}
.form-control::placeholder { color: var(--text-muted) !important; }
.form-label { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
textarea.form-control { min-height: 120px; }
.btn-submit {
  background: var(--gradient-primary); color: #fff; border: none;
  padding: 14px 40px; border-radius: 50px;
  font-weight: 600; font-size: 1rem;
  transition: var(--transition); width: 100%;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(30,136,229,0.4); color: #fff; }

/* ===== Contact Info ===== */
.contact-info-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: rgba(30,136,229,0.05);
  border-radius: var(--radius-sm); margin-bottom: 16px;
  border: 1px solid var(--border-color);
}
.contact-info-card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(30,136,229,0.12); display: flex;
  align-items: center; justify-content: center;
  color: var(--primary-light); font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-card h5 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-card p { color: var(--text-secondary); font-size: 0.88rem; margin: 0; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-section-alt); border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}
.footer h5 { font-size: 1.1rem; margin-bottom: 20px; color: var(--text-primary); }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px; margin-top: 40px;
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}

/* ===== Hero Slideshow ===== */
.hero-slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000000;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.slide-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: var(--transition);
}
.slide-dot.active { background: var(--primary-light); transform: scale(1.3); }
.slide-dot:hover { background: var(--primary); }

/* ===== Animations ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  section { padding: 70px 0; }
  .section-header h2 { font-size: 2rem; }
}
@media (max-width: 575px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 16px; }
  .hero-stat h3 { font-size: 1.6rem; }
  .form-section { padding: 24px; }
  .hero-buttons { flex-direction: column; }
  .btn-primary-custom, .btn-outline-custom { width: 100%; justify-content: center; }
}

/* ===== Installation guide page ===== */
.guide-page .guide-body { padding: 60px 0 100px; }
.guide-content { font-size: 1rem; color: var(--text-secondary); }
.guide-content h2 { color: var(--text-primary); }
.guide-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.guide-list li { padding: 8px 0 8px 1.25rem; position: relative; color: var(--text-secondary); }
.guide-list:not(.guide-ol) li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
html[dir="rtl"] .guide-list:not(.guide-ol) li { padding-left: 0; padding-right: 1.25rem; }
html[dir="rtl"] .guide-list:not(.guide-ol) li::before { left: auto; right: 0; }
.guide-ol { list-style: decimal; padding-left: 1.5rem; }
html[dir="rtl"] .guide-ol { padding-left: 0; padding-right: 1.5rem; }
.guide-ol li { padding-left: 0.25rem; margin-bottom: 0.5rem; }
.guide-ol li::marker { color: var(--primary-light); font-weight: 700; }
.guide-content code {
  background: rgba(30,136,229,0.15); color: var(--accent-light); padding: 2px 8px;
  border-radius: 6px; font-size: 0.88em;
}
.guide-table-wrap { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-color); }
.guide-table-wrap table { margin-bottom: 0 !important; }
.guide-table-wrap th { color: var(--text-primary); }
html[dir="rtl"] .guide-hero .btn-primary-custom i { margin-inline-end: 0.5rem; margin-inline-start: 0; }
