/* ========================
   CSS Variables
   ======================== */
:root {
  --primary-blue: #0066CC;
  --primary-blue-light: #3399FF;
  --accent-yellow: #FFB90F;
  --accent-yellow-alt: #FFA500;
  --highlight-red: #E63946;
  --highlight-red-light: #FF6B6B;
  --text-primary: #333333;
  --text-secondary: #666666;
  --bg-white: #FFFFFF;
  --bg-light: #F0F4F8;
  --bg-light-alt: #F8FAFC;
  --border-light: #E2E8F0;
  --disabled-gray: #CCCCCC;
  --gradient-blue: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
  --gradient-blue-alt: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 50%, #81d4fa 100%);
  --gradient-blue-soft: linear-gradient(135deg, #f0f8ff 0%, #daeeff 50%, #b8dcff 100%);
  --gradient-blue-muted: linear-gradient(135deg, #e8f4fd 0%, #d0e9fa 50%, #a8d4f5 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);
}

/* Dropdown */
.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 {
  background: rgba(0,102,204,0.06);
  color: var(--primary-blue);
}

/* Mobile menu button */
.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);
}

/* ========================
   Hero Banner
   ======================== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}

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

.hero-bg-mobile {
  display: none;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-xl) 20px;
  max-width: 900px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--bg-white);
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

.hero p {
  font-size: 20px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  line-height: 1.7;
}

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

.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);
}

/* ========================
   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: 40px;
  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);
}

/* ========================
   Product Specs Section
   ======================== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.spec-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);
}

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

.spec-card-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-blue);
  font-size: 24px;
  color: var(--primary-blue);
}

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

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

/* ========================
   Products Section
   ======================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.products-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.product-card-body {
  padding: var(--spacing-md);
}

.product-card-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: var(--spacing-xs);
}

.product-card-body p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.product-params {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.product-param-tag {
  background: var(--bg-light);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.product-card .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  background: var(--primary-blue);
  color: var(--bg-white);
}

.product-card .btn:hover {
  background: var(--primary-blue-light);
}

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

.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);
}

/* ========================
   Applications Section
   ======================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.app-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.app-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.app-card:hover .app-card-img {
  transform: scale(1.08);
}

.app-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,40,80,0.8) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-md);
  transition: background var(--transition);
}

.app-card:hover .app-card-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(0,40,80,0.85) 100%);
}

.app-card-overlay h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--bg-white);
  margin-bottom: 4px;
}

.app-card-overlay p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

/* ========================
   Company Strength
   ======================== */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.strength-item {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-sm);
}

.strength-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
}

.strength-label {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
  line-height: 1.5;
}

/* ========================
   Projects Section
   ======================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-img {
  transform: scale(1.06);
}

.project-card-info {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: var(--spacing-md);
  background: linear-gradient(180deg, transparent 0%, rgba(0,30,60,0.85) 100%);
  color: var(--bg-white);
  transform: translateY(100%);
  transition: transform var(--transition);
}

.project-card:hover .project-card-info {
  transform: translateY(0);
}

.project-card-info h3 {
  font-size: 18px;
  font-weight: 600;
}

.project-card-info p {
  font-size: 16px;
  opacity: 0.8;
}

/* ========================
   Video Section
   ======================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-body {
  padding: var(--spacing-sm) var(--spacing-md);
}

.video-card-body h3 {
  font-size: 18px;
  font-weight: 600;
}

/* ========================
   Vision Section
   ======================== */
.vision-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.vision-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

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

.vision-badges {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.vision-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 10px 20px;
  background: var(--bg-white);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.vision-badge i {
  color: var(--accent-yellow);
}

/* ========================
   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: Tablet
   ======================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .section-header h2 { font-size: 34px; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================
   Responsive: Mobile
   ======================== */
@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;
  }

  .hero {
    min-height: 480px;
    margin-top: 60px;
  }

  .hero-bg-desktop { display: none; }
  .hero-bg-mobile { display: block; }

  .hero h1 { font-size: 32px; }
  .hero p { font-size: 18px; }

  .section { padding: var(--spacing-xl) 16px; }
  .section-header h2 { font-size: 28px; }

  .specs-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .products-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-number { font-size: 36px; }
  .projects-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .cta-content h2 { font-size: 28px; }
  .vision-content h2 { font-size: 28px; }
}
