:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --secondary: #1e40af;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --border: #e5e7eb;
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-bg: #ffffff;
  --toggle-bg: #cdd1d7;
  --toggle-handle: #ffffff;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --secondary: #1e40af;
  --text: #f9fafb;
  --text-light: #d1d5db;
  --bg: #111827;
  --bg-secondary: #1f2937;
  --border: #374151;
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --card-bg: #1f2937;
  --toggle-bg: #4b5563;
  --toggle-handle: #f3f4f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition:
    background-color 0.3s,
    color 0.1s;
}

html {
  scroll-behavior: smooth;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 0.6vw;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
}
::-webkit-scrollbar-track {
  background: var(--border);
}

body {
  font-family: "Cairo", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* @media screen and (max-width: 768px) {
  .container {
    padding: 0;
  }
} */

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo i {
  margin-right: 10px;
  font-size: 28px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.theme-toggle {
  background: var(--toggle-bg);
  border-radius: 20px;
  width: 50px;
  height: 25px;
  position: relative;
  cursor: pointer;
  margin-right: 20px;
}

.theme-toggle-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: var(--toggle-handle);
  border-radius: 50%;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-light);
  z-index: 2;
}

[data-theme="dark"] .theme-toggle-handle {
  transform: translateX(25px);
}

.header-actions {
  display: flex;
  align-items: center;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  /* padding-right: 40px; */
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: white;
  color: var(--primary);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: white;
  color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  margin-left: 15px;
}

/* Numbers Section */
.numbers-section {
  background-color: var(--bg-secondary);
  padding: 80px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.number-card {
  text-align: center;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.number-card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 20px;
}

.number-card .count {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  transition: all 0.5s ease-out;
}

.number-card .count::before {
  content: "+";
  margin-top: 10px;
  margin-left: 4px;
  color: var(--primary);
  font-size: 44px;
  vertical-align: top;
}

.number-card p {
  color: var(--text-light);
  font-size: 18px;
}

/* Features Section */
.section {
  padding: 40px 0;
  scroll-margin-top: 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.features-grid .feature-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.features-grid .feature-card:hover {
  transform: translateY(-5px);
}

.features-grid .feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  font-size: 24px;
}

.features-grid .feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text);
}

.features-grid .feature-card p {
  color: var(--text-light);
  font-size: 16px;
}

/* Why Choose Section */
.why-choose {
  background-color: var(--bg-secondary);
}

.benefits-list {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.benefit-icon {
  margin-right: 20px;
  color: var(--primary);
  font-size: 24px;
  min-width: 40px;
}

.benefit-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.benefit-content p {
  color: var(--text-light);
}

/* products row custom */
.products-row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-top: 60px;
}

.product-badge {
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 60px;
  padding: 18px 36px;
  font-weight: 700;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.product-badge.small {
  background: var(--card-bg);
  color: var(--text);
  border: 2px solid var(--primary);
  font-size: 1.2rem;
  padding: 12px 24px;
}

.soon-tag {
  background: #f59e0b;
  color: #000;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 60px;
  font-weight: 700;
  margin-left: 12px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* Comparison Section (if needed) */
.comparison-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 25px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background-color: var(--primary);
  color: white;
  font-weight: bold;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.advantage {
  color: #10b981;
  font-weight: bold;
}

.disadvantage {
  color: #ef4444;
  font-weight: 600;
}

@media (max-width: 430px) {
  .comparison-table th,
  .comparison-table td {
    font-size: 14px;
    padding: 10px;
  }
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: var(--card-bg);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s,
    padding 0.3s;
  background-color: var(--bg-secondary);
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

.modern-comparison-section {
  padding: 60px 0;
  background-color: var(--bg);
  text-align: center;
}

.modern-comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

.feature-pair {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: nowrap;
}

.feature-pair .feature-card {
  flex: 1;
  background: white;
  border-radius: 16px;
  padding: 25px 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  min-width: 0;
}

.feature-pair .feature-card i {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-pair .feature-card p {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

.feature-pair .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.feature-pair .traditional-card {
  background: #fef2f2;
  color: #991b1b;
}

.feature-pair .traditional-card i {
  color: #dc2626;
}

.feature-pair .robust-card {
  background: #ecfdf5;
  color: #065f46;
}

.feature-pair .robust-card i {
  color: #10b981;
}

/* شاشات صغيرة: عمودي */
@media (max-width: 768px) {
  .feature-pair {
    flex-direction: column;
    gap: 15px;
  }
}

/* Timeline Section */
.timeline-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.timeline-container {
  position: relative;
  margin-top: 60px;
  padding: 0 20px;
}

.timeline-progress {
  position: absolute;
  top: 30px;
  left: 50px;
  right: 50px;
  height: 4px;
  background-color: var(--border);
  z-index: 1;
}

.timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--primary);
  transition: width 0.5s ease;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.timeline-step {
  text-align: center;
  width: 18%;
  position: relative;
  opacity: 1; /* Make steps visible by default */
  transform: translateY(0); /* Reset transform */
}

.step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 4px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  margin: 0 auto 20px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 3;
}

.step-content {
  padding: 0 10px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Active and completed states */
.timeline-step.active .step-circle {
  border-color: var(--primary);
  color: var(--primary);
}

.timeline-step.completed .step-circle {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Hover effects */
.timeline-step:hover .step-circle {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Final step celebration */
.timeline-step.final.completed .step-circle::after {
  content: "\f7a4";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 30px;
  color: var(--primary);
  opacity: 0;
  animation: confetti 0.5s ease-out 0.3s forwards;
}

@keyframes confetti {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.5) translateY(-10px);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .comparison-container {
    flex-direction: column;
  }

  .timeline-container {
    padding: 0;
  }

  .timeline-progress {
    left: 30px;
    right: auto;
    width: 4px;
    height: 100%;
    top: 0;
  }

  .timeline-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    margin-left: 50px;
  }

  .timeline-step {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .step-circle {
    margin: 0;
    flex-shrink: 0;
  }

  .step-content {
    text-align: left;
    padding: 0;
  }

  [dir="rtl"] .timeline-steps {
    margin-left: 0;
    margin-right: 50px;
  }

  [dir="rtl"] .timeline-step {
    text-align: right;
    flex-direction: row-reverse;
  }

  [dir="rtl"] .step-content {
    text-align: right;
  }

  [dir="rtl"] .timeline-progress {
    left: auto;
    right: 30px;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .logo i {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] nav ul {
  padding-right: 0;
}

[dir="rtl"] .theme-toggle-handle {
  left: auto;
  right: 2px;
}

[dir="rtl"] [data-theme="dark"] .theme-toggle-handle {
  transform: translateX(-24px);
}

[dir="rtl"] .features-list li::before {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .recommended-badge {
  right: auto;
  left: 20px;
}

[dir="rtl"] .checkbox-container input {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .support-features li::before {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .footer-links i {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .social-links {
  padding-right: 0;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s;
}

.footer-links a.phone-link,
.footer-links a.email-link {
  color: var(--primary);
}

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 26px;
  z-index: 1000;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  position: fixed;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 65px;
  background-color: #333;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  top: 50%;
  transform: translateY(-50%);
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
  }

  .hero-content {
    padding-right: 0;
    padding-left: 0 !important;
    margin-bottom: 40px;
    text-align: center;
  }

  .hero-image {
    text-align: center;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .theme-toggle {
    margin-left: 20px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .cta h2 {
    font-size: 30px;
  }

  .cta p {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .btn.btn-outline {
    margin-top: 16px;
  }
  .section-title h2 {
    font-size: 26px;
  }

  .feature-card {
    padding: 20px;
  }

  .comparison-tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
    text-align: left;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .tab-btn.active {
    border-left-color: var(--primary);
    border-bottom: none;
  }
}

/* RTL Overrides */
[dir="rtl"] body {
  direction: rtl;
}

[dir="rtl"] .logo i {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .theme-toggle-handle {
  left: auto;
  right: 2px;
}

[dir="rtl"] [data-theme="dark"] .theme-toggle-handle {
  transform: translateX(-25px);
}

[dir="rtl"] .hero-content {
  padding-right: 0;
  padding-left: 40px;
}

[dir="rtl"] .hero-image {
  text-align: left;
}

[dir="rtl"] .btn-outline {
  margin-left: 0;
  margin-right: 15px;
}

[dir="rtl"] .benefit-icon {
  margin-right: 0;
  margin-left: 20px;
}

[dir="rtl"] .comparison-table th,
[dir="rtl"] .comparison-table td {
  text-align: right;
}

[dir="rtl"] .cta p {
  margin-left: auto;
  margin-right: auto;
}

[dir="rtl"] .whatsapp-float {
  left: 20px;
  right: auto;
}

[dir="rtl"] .whatsapp-float .tooltip {
  left: 65px;
  right: auto;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}

@media screen and (max-width: 768px) {
  body {
    -webkit-tap-highlight-color: transparent;
  }

  *:not(input):not(textarea):not(select) {
    user-select: none;
  }
}

/* remove pricing link from nav if needed (will be handled in html) */
