/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');
@import url('slider.css');

:root {
  /* Colors */
  --color-primary: #D32F2F;
  /* Deep Red */
  --color-primary-dark: #b71c1c;
  --color-secondary: #FFCDD2;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F9F9F9;
  --color-border: #EEEEEE;
  --color-white: #FFFFFF;
  --color-black: #000000;

  /* Spacing */
  --container-width: 1200px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Tajawal', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  direction: rtl;
  /* Default */
  overflow-x: hidden;
}

[lang="en"] {
  direction: ltr;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-black);
}

.section-padding {
  padding: var(--spacing-xl) 0;
}

/* Header */
.header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-md) 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
}

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

.lang-toggle {
  background: none;
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: var(--spacing-xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.footer-col h3 {
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
}

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: #ccc;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  text-align: center;
  color: #888;
}

/* Premium Target Audience Section */
.audience-section {
  position: relative;
  overflow: hidden;
}

.audience-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.premium-card {
  position: relative;
  border-radius: 30px;
  padding: 50px 40px;
  overflow: hidden;
  color: white;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.premium-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.premium-card:hover::before {
  opacity: 1;
}

/* Specific Card Themes */
.card-restaurant {
  background: linear-gradient(145deg, #ae1b1b, #d32f2f);
}

.card-customer {
  background: linear-gradient(145deg, #0d47a1, #1976d2);
}

/* Card Content */
.premium-content {
  position: relative;
  z-index: 2;
}

.premium-icon-box {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.premium-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.premium-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Stats Row */
.premium-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-item span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Premium Button */
.btn-premium {
  display: inline-block;
  padding: 15px 35px;
  background: white;
  color: #333;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.card-restaurant .btn-premium {
  color: #d32f2f;
}

.card-customer .btn-premium {
  color: #1976d2;
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Background Decoration */
.bg-pattern {
  position: absolute;
  right: -50px;
  bottom: -50px;
  font-size: 15rem;
  opacity: 0.1;
  transform: rotate(-15deg);
  pointer-events: none;
}

/* Feature Cards (Why Hafez) */
.features-grid {
  display: grid;
  /* Default: Stack on mobile */
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 0;
}

@media (min-width: 576px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    /* User Requirement: 5 cards in one row on desktop */
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    /* Reduce gap to fit */
  }
}

.feature-card {
  background: white;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--card-color, var(--color-primary));
  transition: height 0.3s ease;
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
  height: 100%;
  opacity: 0.05;
}

.feature-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--card-bg-light, #ffeeee);
  color: var(--card-color, var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-text);
}

/* Services Split Layout */
.services-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.services-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  /* Increased gap */
  margin: 30px 0;
  /* Vertical spacing */
}

/* Hero Content Styles */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  /* Wider container */
  margin: 0 auto;
  padding: 80px 20px;
  /* More padding */
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 50px;
  opacity: 0.95;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}


.phone-container {
  flex: 0 0 350px;
  display: flex;
  justify-content: center;
}

/* White Apple Phone Mockup CSS */
.iphone-mockup {
  position: relative;
  width: 320px;
  height: 650px;
  background-color: #f9f9f9;
  /* White body */
  border-radius: 40px;
  box-shadow:
    0 0 0 10px #e0e0e0,
    /* Outer frame */
    0 0 0 12px #c0c0c0,
    /* Silver edge */
    0 30px 60px rgba(0, 0, 0, 0.2);
  /* Shadow */
  overflow: hidden;
  z-index: 1;
}

/* Notch */
.iphone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 30px;
  background-color: #e0e0e0;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

/* Screen Content */
.iphone-mockup .screen-content {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 35px;
  /* Match inner radius */
  overflow: hidden;
}

.iphone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.iphone-mockup img.active {
  opacity: 1;
  z-index: 1;
}

/* Responsive adjustment */
@media (max-width: 992px) {
  .services-layout {
    flex-direction: column-reverse;
    /* Phone on top or bottom? User usually likes visuals. Let's keep it standard or stack. */
  }

  .phone-container {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 30px;
  }
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--color-secondary);
}

/* Decoratiuve circle behind icon */
.service-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  transition: transform 0.4s ease;
  color: var(--color-primary);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(-10deg);
  background: var(--color-primary);
  color: white;
}

.service-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.service-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Accent line on left (RTL) */
.service-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background-color: var(--color-primary);
  transition: height 0.3s ease;
  border-radius: 4px 0 0 4px;
}

.service-card:hover::after {
  height: 60%;
}


/* Legal Note Section */
.legal-note {
  padding: 40px 0;
  text-align: center;
}

.legal-note .container {
  max-width: 800px;
}

.legal-note p {
  background-color: #fef2f2;
  color: #991b1b;
  padding: 15px 30px;
  border-radius: 50px;
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #fecaca;
  position: relative;
  padding-right: 50px;
  /* Space for icon */
}

.legal-note p::before {
  content: '!';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}