:root {
  --primary: #e21e26;
  --primary-dark: #b11219;
  --accent: #ffd166;
  --bg: #f7f8fb;
  --text: #0f172a;
  --muted: #64748b;
  --white: #ffffff;
  --nav-height: 72px;
  font-family: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  height: 48px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--text);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 60%),
              linear-gradient(135deg, rgba(16, 24, 40, 0.8), rgba(16, 24, 40, 0.2)),
              url('/herobg.avif') center/cover;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(226, 30, 38, 0.25), transparent 55%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin: 1.2rem 0;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(226, 30, 38, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
}

.features-grid,
.services-grid,
.partner-grid,
.catalog-grid,
.product-grid {
  display: grid;
  gap: 1.6rem;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.service-card,
.partner-card,
.catalog-card,
.product-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.service-card:hover,
.partner-card:hover,
.catalog-card:hover,
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(226, 30, 38, 0.12);
  margin-bottom: 1rem;
}

.about-wrapper {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 360px;
}

.about-images img {
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.about-images .primary {
  width: 100%;
  height: auto;
}

.about-images .secondary {
  position: absolute;
  bottom: -36px;
  right: 24px;
  width: 55%;
  border: 8px solid var(--white);
}

.about-points {
  display: grid;
  gap: 14px;
  margin-top: 1.5rem;
}

.about-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(226, 30, 38, 0.12);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 600;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card h3 {
  margin: 0.5rem 0 0.75rem;
}

.contact-section {
  background: var(--text);
  color: var(--white);
  border-radius: 32px;
  padding: 48px;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.45);
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
}

.contact-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1rem;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  transition: background 0.2s ease;
}

.contact-actions a:hover {
  background: rgba(255, 255, 255, 0.25);
}

.footer {
  background: #0f172a;
  color: rgba(226, 232, 240, 0.9);
  padding: 60px 0 32px;
  margin-top: 80px;
}

.footer-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}

.footer-nav {
  display: grid;
  gap: 12px;
}

.footer-nav a {
  color: rgba(226, 232, 240, 0.9);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.18);
  padding-top: 18px;
  text-align: center;
  font-size: 0.95rem;
}

.page-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.65)), url('/herobg.avif') center/cover;
  color: var(--white);
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) 0 4.5rem;
}

.page-hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
}

.page-hero p {
  max-width: 720px;
  margin: 0.5rem auto 0;
  color: rgba(255, 255, 255, 0.82);
}

.timeline {
  display: grid;
  gap: 1.8rem;
  margin-top: 2rem;
}

.timeline-item {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  border-left: 4px solid var(--primary);
}

.value-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.value-list li {
  background: var(--white);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.catalog-card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.catalog-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
}

.partner-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.partner-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: rgba(15, 23, 42, 0.05);
  padding: 12px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card h3 {
  margin: 0.5rem 0 0.75rem;
}

.product-card ul {
  padding-left: 1.2rem;
  margin: 0.75rem 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.table th,
.table td {
  padding: 16px 18px;
  text-align: left;
}

.table thead {
  background: rgba(15, 23, 42, 0.92);
  color: var(--white);
}

.table tbody tr:nth-child(every 2) {
  background: rgba(15, 23, 42, 0.03);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
}

.alert {
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(226, 30, 38, 0.12);
  color: var(--primary-dark);
  margin-top: 1.5rem;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 420px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.35));
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  align-items: center;
  padding: 3rem;
  color: var(--white);
}

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--accent);
}

section + section {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.96);
    color: var(--white);
    flex-direction: column;
    padding-top: calc(var(--nav-height) + 1.5rem);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links a {
    color: var(--white);
    font-size: 1.25rem;
  }

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

  .hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.25s ease;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-slide-content {
    padding: 2.5rem 1.75rem;
  }

  .contact-section {
    padding: 32px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding-top: calc(var(--nav-height) + 1rem);
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .contact-section {
    padding: 26px;
  }

  .about-images .secondary {
    position: relative;
    bottom: auto;
    right: auto;
    width: 72%;
    margin-top: 1.5rem;
  }

  .section {
    padding: 64px 0;
  }
}
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .about-wrapper {
  direction: rtl;
}

[dir="rtl"] .about-point,
[dir="rtl"] .contact-actions,
[dir="rtl"] .value-list,
[dir="rtl"] .timeline,
[dir="rtl"] .footer-nav {
  text-align: right;
}

[dir="rtl"] .footer-top {
  direction: rtl;
}

[dir="rtl"] .hero-actions {
  justify-content: flex-end;
}

[dir="rtl"] .slider-dots {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

[dir="rtl"] .contact-section {
  direction: rtl;
}

[dir="rtl"] .partner-grid,
[dir="rtl"] .services-grid,
[dir="rtl"] .product-grid,
[dir="rtl"] .catalog-grid,
[dir="rtl"] .features-grid {
  direction: rtl;
}
