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

:root {
  --primary-red: #E30613;
  --primary-red-hover: #b0050f;
  --bg-color: #FFFFFF;
  --bg-light: #F9F9F9;
  --text-dark: #333333;
  --text-muted: #666666;
  --border-color: #EEEEEE;
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 32px rgba(227, 6, 19, 0.15);
  --transition: all 0.3s ease;
}

html[dir="rtl"] {
  --font-main: var(--font-ar);
}

html[dir="ltr"] {
  --font-main: var(--font-en);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   HEADER & NAVBAR
========================================= */
header.main-header {
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 46px;
  background-color: red;
  padding: 8px;
  border-radius: 5px;

}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-dark);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dark);
}

.lang-switch:hover {
  color: var(--primary-red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-red);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  box-shadow: var(--shadow-hover);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
}

.btn-outline:hover {
  background-color: #FFF5F6;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  background: linear-gradient(135deg, #111111 0%, #222222 100%);
  color: #ffffff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* =========================================
   SECTION UTILS
========================================= */
.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

/* =========================================
   APP BANNER
========================================= */
.app-banner {
  background: #FFF5F6;
  border-radius: var(--radius-lg);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px auto;
}

.app-banner-content h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.app-banner-content h2 span {
  color: var(--primary-red);
}

.store-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.store-buttons img {
  height: 48px;
}

/* =========================================
   SERVICES GRID
========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: #FFF5F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-red);
  font-size: 24px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  flex-grow: 1;
}

.service-link {
  margin-top: 20px;
  color: var(--primary-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================
   PARTNERS
========================================= */
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partners-grid img {
  height: 40px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.partners-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: #111111;
  color: #ffffff;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: #ffffff;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #ffffff;
  font-size: 18px;
}

/* =========================================
   PAGE CONTENT (Services/About/Contact)
========================================= */
.page-header {
  background: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.page-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
}

.page-content h3 {
  font-size: 22px;
  margin: 24px 0 12px;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.page-content ul, .page-content ol {
  margin-bottom: 24px;
  padding-inline-start: 24px;
  color: var(--text-muted);
}

.page-content li {
  margin-bottom: 8px;
}

/* Contact Info Layout */
.contact-info-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary-red);
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
}

/* =========================================
   RTL SPECIFIC
========================================= */
html[dir="rtl"] .hero-content h1,
html[dir="rtl"] .app-banner-content h2 {
  line-height: 1.4;
}

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

html[dir="rtl"] .hero-badge {
  flex-direction: row-reverse;
}

html[dir="rtl"] .service-link {
  flex-direction: row-reverse;
}

html[dir="rtl"] .social-links,
html[dir="rtl"] .store-buttons {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
  .hero .container, .app-banner, .contact-info-wrap {
    flex-direction: column;
    text-align: center;
  }
  .hero-badges, .store-buttons, .contact-item {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  html[dir="rtl"] .contact-item {
      justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .footer-bottom {
      flex-direction: column;
      gap: 16px;
  }
}
