/* ========================
   CSS Variables
   ======================== */
:root {
  --primary-blue: #0066CC;
  --primary-blue-light: #3399FF;
  --accent-yellow: #FFB90F;
  --accent-yellow-alt: #FFA500;
  --highlight-red: #E63946;
  --text-primary: #333333;
  --text-secondary: #666666;
  --bg-white: #FFFFFF;
  --bg-light: #F0F4F8;
  --border-light: #E2E8F0;
  --gradient-blue-soft: linear-gradient(135deg, #f0f8ff 0%, #daeeff 50%, #b8dcff 100%);
  --gradient-blue-alt: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 50%, #81d4fa 100%);
  --gradient-mint: linear-gradient(135deg, #e8faf5 0%, #c8f0e4 50%, #a3e4d0 100%);
  --gradient-lavender: linear-gradient(135deg, #f3e8ff 0%, #e4d5f7 50%, #d0bef0 100%);
  --gradient-peach: linear-gradient(135deg, #fff5ee 0%, #ffe8d6 50%, #ffd5b8 100%);
  --gradient-sky: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
  --gradient-sage: linear-gradient(135deg, #f0fdf4 0%, #d5f5e3 50%, #b2ebd0 100%);
  --gradient-steel: linear-gradient(135deg, #eaf0f8 0%, #d0e0f0 50%, #b4ccec 100%);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max-width: 1200px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

/* ========================
   Reset & Base
   ======================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; direction: rtl; }

body {
  font-family: var(--font-stack);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-white);
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========================
   Header & Navigation
   ======================== */
.header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 72px;
}

.logo img { height: 44px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 8px 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
  background: rgba(0,102,204,0.06);
}

.nav-dropdown {
  position: absolute;
  top: 100%; right: 0;
  min-width: 220px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  padding: 8px 0;
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}

.dropdown-link:hover, .dropdown-link.active {
  background: rgba(0,102,204,0.06);
  color: var(--primary-blue);
}

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 0;
}

.menu-toggle span {
  display: block; width: 24px; height: 2.5px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================
   Page Banner
   ======================== */
.page-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}

.page-banner-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

.page-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,40,80,0.8) 0%, rgba(0,60,120,0.6) 100%);
  z-index: 1;
}

.page-banner-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: var(--spacing-xl) 20px;
}

.page-banner-content h1 {
  font-size: 42px; font-weight: 800;
  color: var(--bg-white);
  margin-bottom: var(--spacing-xs);
  line-height: 1.4;
}

.page-banner-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--spacing-md);
  font-weight: 300;
  max-width: 700px;
  margin-left: auto; margin-right: auto;
}

.breadcrumb { font-size: 16px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.8); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-yellow); }
.breadcrumb span { margin: 0 8px; }
.breadcrumb .current { color: var(--accent-yellow); font-weight: 600; }

/* ========================
   Section Common
   ======================== */
.section { padding: var(--spacing-xxl) 20px; }
.container { max-width: var(--max-width); margin: 0 auto; }

.section-header { text-align: center; margin-bottom: var(--spacing-xl); }

.section-header h2 {
  font-size: 36px; font-weight: 700;
  line-height: 1.3; margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.section-header p {
  font-size: 18px; color: var(--text-secondary);
  max-width: 700px; margin: 0 auto;
}

.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
  border-radius: 2px;
  margin: var(--spacing-sm) auto var(--spacing-md);
}

/* Gradient Sections */
.section-grad-1 { background: var(--gradient-blue-soft); }
.section-grad-2 { background: var(--gradient-peach); }
.section-grad-3 { background: var(--gradient-mint); }
.section-grad-4 { background: var(--gradient-sky); }
.section-grad-5 { background: var(--gradient-sage); }
.section-grad-6 { background: var(--gradient-steel); }

/* ========================
   Spec Table
   ======================== */
.spec-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 16px;
}

.spec-table thead {
  background: var(--gradient-steel);
}

.spec-table th {
  padding: 16px 18px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary-blue);
}

.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover { background: rgba(0,102,204,0.04); }

.spec-table .model-cell {
  font-weight: 700;
  color: var(--primary-blue);
}

.spec-note {
  margin-top: var(--spacing-sm);
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ========================
   Content Section & Features
   ======================== */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.content-split-reverse { direction: ltr; }
.content-split-reverse .content-text { direction: rtl; text-align: right; }

.content-split img {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: var(--shadow-md);
}

.content-text h2 {
  font-size: 32px; font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  line-height: 1.4;
}

.content-text p {
  font-size: 18px; color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.content-text ul { list-style: none; padding: 0; }

.content-text ul li {
  position: relative;
  padding-right: 28px;
  margin-bottom: var(--spacing-xs);
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.content-text ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0; top: 4px;
  color: var(--primary-blue);
  font-size: 14px;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: var(--spacing-lg) var(--spacing-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--spacing-sm);
  border-radius: 14px;
  background: var(--gradient-sky);
  font-size: 24px;
  color: var(--primary-blue);
}

.feature-card h3 {
  font-size: 20px; font-weight: 600; margin-bottom: var(--spacing-xs);
}

.feature-card p {
  font-size: 16px; color: var(--text-secondary); line-height: 1.65;
}

/* ========================
   Images Grid (Gallery)
   ======================== */
.images-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.images-row img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.4s ease;
}

.images-row img:hover { transform: scale(1.03); }

/* ========================
   Stats Row
   ======================== */
.stats-row {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.stat-box {
  flex: 1; min-width: 160px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.stat-box .stat-num {
  font-size: 36px; font-weight: 800;
  color: var(--primary-blue); line-height: 1.2;
}

.stat-box .stat-label {
  font-size: 16px; color: var(--text-secondary); margin-top: 4px;
}

/* ========================
   Buttons
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 16px; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent-yellow); color: var(--text-primary); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(255,185,15,0.4); }

.btn-outline {
  background: transparent;
  color: var(--bg-white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--bg-white);
}

.btn-red { background: var(--highlight-red); color: var(--bg-white); }
.btn-red:hover { box-shadow: 0 6px 20px rgba(230,57,70,0.4); }

/* ========================
   CTA Section
   ======================== */
.cta-section { position: relative; overflow: hidden; }

.cta-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,50,100,0.88) 0%, rgba(0,80,160,0.78) 100%);
  z-index: 1;
}

.cta-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: var(--spacing-xxl) 20px;
  max-width: 700px; margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px; font-weight: 700;
  color: var(--bg-white); margin-bottom: var(--spacing-sm);
}

.cta-content p {
  font-size: 18px; color: rgba(255,255,255,0.8);
  margin-bottom: var(--spacing-lg);
}

.cta-buttons {
  display: flex; gap: var(--spacing-sm);
  justify-content: center; flex-wrap: wrap;
}

/* ========================
   Footer
   ======================== */
.footer {
  background: var(--gradient-steel);
  padding: var(--spacing-xl) 20px var(--spacing-md);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-lg);
}

.footer-brand p {
  font-size: 16px; color: var(--text-secondary);
  margin-top: var(--spacing-sm); line-height: 1.7;
}

.footer h4 {
  font-size: 18px; font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.footer-links li { margin-bottom: var(--spacing-xs); }
.footer-links a { font-size: 16px; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary-blue); }

.footer-contact-item {
  display: flex; align-items: flex-start;
  gap: var(--spacing-xs); margin-bottom: var(--spacing-sm);
  font-size: 16px; color: var(--text-secondary);
}

.footer-contact-item i {
  margin-top: 4px; color: var(--primary-blue); min-width: 20px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--spacing-lg) auto 0;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 16px; color: var(--text-secondary);
}

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

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========================
   Responsive
   ======================== */
@media (max-width: 1024px) {
  .section-header h2 { font-size: 30px; }
  .content-split { grid-template-columns: 1fr; }
  .content-split-reverse { direction: rtl; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .images-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { padding: 0 16px; height: 60px; }
  .logo img { height: 36px; }

  .menu-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 60px; right: 0; left: 0; bottom: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--spacing-md) 16px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .nav-menu.open { transform: translateX(0); }

  .nav-link { padding: 14px 16px; font-size: 18px; }

  .nav-dropdown {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none;
    padding: 0 16px; display: none;
  }

  .nav-item.dropdown-open .nav-dropdown { display: block; }

  .page-banner { min-height: 280px; margin-top: 60px; }
  .page-banner-content h1 { font-size: 28px; }
  .section { padding: var(--spacing-xl) 16px; }
  .section-header h2 { font-size: 26px; }

  .features-grid { grid-template-columns: 1fr; }
  .images-row { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
  .stat-box { min-width: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-content h2 { font-size: 28px; }
  .content-text h2 { font-size: 24px; }
}