/* استيراد الخط العربي */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

/* المتغيرات */
:root {
  --primary-color: #00C851;
  --secondary-color: #1e3a8a;
  --accent-color: #ffd700;
  --black: #000000;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #6c757d;
  --gray-dark: #343a40;
  --success: #00C851;
  --warning: #ffd700;
  --error: #dc3545;
  
  --font-family: 'Cairo', sans-serif;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* إعادة تعيين الأساسيات */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
  overflow-x: hidden;
  direction: rtl;
}

/* الحاوي العام */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* الخلفية التفاعلية */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-particles::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 200, 81, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

.success-circles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.success-circles::after {
  content: '✓';
  position: absolute;
  font-size: 24px;
  color: var(--black);
  opacity: 0.1;
  animation: floatCircles 15s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(30px) rotate(240deg); }
}

@keyframes floatCircles {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.1; }
  90% { opacity: 0.1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* الهيدر */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}

.logo-icon {
  position: relative;
}

.check-circle {
  width: 40px;
  height: 40px;
  border: 3px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--white);
}

.check-circle::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 3px solid var(--black);
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(-45deg);
}

.check-mark {
  color: var(--black);
  font-size: 20px;
  font-weight: bold;
  z-index: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* القسم الرئيسي */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 2rem;
}

.title-main {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.title-sub {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--gray-medium);
  margin-bottom: 3rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* قائمة التنقل للجوال */
.mobile-nav-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 3rem 0;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-decoration: none;
  color: var(--gray-dark);
  transition: var(--transition);
  border: 2px solid transparent;
}

.mobile-nav-item:hover {
  transform: translateY(-5px);
  border-color: var(--black);
  box-shadow: 0 10px 25px rgba(0, 200, 81, 0.2);
}

.mobile-nav-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--black), #000000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.mobile-nav-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.mobile-nav-item span {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* الأزرار */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

/* شريط التقدم */
.progress-bar {
  animation: fadeInUp 1s ease-out 0.8s both;
}

.progress-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  transition: var(--transition);
}

.step.active {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gray-medium);
  transition: var(--transition);
}

.step.active .step-number {
  background: var(--black);
  color: var(--white);
}

.step-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-medium);
}

.step.active .step-text {
  color: var(--black);
}

/* الأقسام العامة */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* قسم الخدمات */
.services {
  background: var(--gray-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  transition: var(--transition);
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--black), #000000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 2;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--gray-medium);
  line-height: 1.6;
}

/* قسم منصات الدفع */
.payment-platforms {
  background: var(--white);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.platform-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: var(--transition);
}

.platform-card.tabby::before {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.platform-card.tamara::before {
  background: linear-gradient(90deg, var(--black), #000000);
}

.platform-card.madfu::before {
  background: linear-gradient(90deg, var(--black), #3b82f6);
}

.platform-card.mispay::before {
  background: linear-gradient(90deg, var(--accent-color), #f59e0b);
}

.platform-card.imkan::before {
  background: linear-gradient(90deg, #ec4899, #f97316);
}

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.platform-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.platform-image {
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
}

.platform-card:hover .platform-image {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.platform-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
  text-align: center;
}

.platform-requirements {
  margin-bottom: 1.5rem;
}

.platform-requirements h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
}

.platform-requirements ul {
  list-style: none;
  padding: 0;
}

.platform-requirements li {
  padding: 0.3rem 0;
  color: var(--gray-medium);
  position: relative;
  padding-right: 1.5rem;
}

.platform-requirements li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--black);
  font-weight: bold;
}

.platform-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.feature {
  background: var(--gray-light);
  color: var(--gray-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* قسم الإنجازات */
.achievements {
  background: var(--black);
  color: var(--white);
}

.achievements .section-title,
.achievements .section-subtitle {
  color: var(--white);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.achievement-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.achievement-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.achievement-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
  display: block;
}

.achievement-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.achievement-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}


/* قسم الشهادات */
/* قسم التواصل (واتساب) */
.contact-whatsapp {
  background: linear-gradient(135deg, var(--gray-light), var(--white));
  padding: 100px 0;
}

.whatsapp-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.whatsapp-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.whatsapp-description {
  font-size: 1.2rem;
  color: var(--gray-medium);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.whatsapp-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--primary-color);
  color: var(--white);
  padding: 1.5rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 200, 81, 0.3);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 200, 81, 0.4);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
}

@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(0, 200, 81, 0.3); }
  50% { box-shadow: 0 10px 30px rgba(0, 200, 81, 0.5), 0 0 0 10px rgba(0, 200, 81, 0.1); }
  100% { box-shadow: 0 10px 30px rgba(0, 200, 81, 0.3); }
}

.animated-texts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.animated-text {
  background: var(--white);
  color: var(--gray-dark);
  padding: 1rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: var(--box-shadow);
  opacity: 0.7;
  transition: var(--transition);
  animation: bounce 3s infinite;
}

.animated-text:nth-child(1) { animation-delay: 0s; }
.animated-text:nth-child(2) { animation-delay: 0.5s; }
.animated-text:nth-child(3) { animation-delay: 1s; }
.animated-text:nth-child(4) { animation-delay: 1.5s; }

.animated-text:hover {
  opacity: 1;
  transform: translateY(-5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* الفوتر */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--black);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--white);
}

.contact-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
}

/* الأنيميشن */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* تأثيرات AOS */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

[data-aos="zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* الاستجابة للشاشات */
@media (max-width: 768px) {
  .mobile-nav-grid {
    display: grid;
  }
  
  .title-main {
    font-size: 2.5rem;
  }
  
  .title-sub {
    font-size: 1.2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .progress-steps {
    gap: 1rem;
  }
  
  .step-text {
    font-size: 0.8rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .services-grid,
  .platforms-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .animated-texts {
    flex-direction: column;
    gap: 1rem;
  }
  
  .whatsapp-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .title-main {
    font-size: 2rem;
  }
  
  .title-sub {
    font-size: 1rem;
  }
  
  .service-card,
  .platform-card {
    padding: 1.5rem;
  }
  
  .whatsapp-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .mobile-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .mobile-nav-item {
    padding: 1rem 0.5rem;
  }
  
  .platform-image {
    max-width: 100px;
    max-height: 50px;
  }
}