/* ==========================================
   قسم البطل (Hero Section) - الصفحة الرئيسية
   ========================================== */

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-bg), #1a1a2e);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 33, 182, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  animation-delay: 1s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 700px;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  background: rgba(91, 33, 182, 0.2);
  border: 1px solid rgba(91, 33, 182, 0.4);
  padding: 10px 20px;
  border-radius: 50px;
  color: #a78bfa;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: slideInRight 0.8s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInRight 1s ease-out 0.2s backwards;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  line-height: 1.8;
  animation: slideInRight 1s ease-out 0.4s backwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: slideInRight 1s ease-out 0.6s backwards;
}

.hero-buttons .btn {
  padding: 15px 35px;
  font-size: 1.05rem;
}

.hero-video {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.8;
  animation: float 4s ease-in-out infinite;
  z-index: 1;
}

/* ==========================================
   قسم الخدمات
   ========================================== */

.services {
  background: white;
  padding: 80px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  text-align: right;
  padding: 40px;
  background: white;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }
.service-card:nth-child(10) { animation-delay: 1s; }
.service-card:nth-child(11) { animation-delay: 1.1s; }
.service-card:nth-child(12) { animation-delay: 1.2s; }

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 20px;
  margin-right: auto;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ==========================================
   قسم شعارات العملاء
   ========================================== */

.clients {
  background: var(--light-bg);
  padding: 80px 20px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 50px;
  align-items: center;
  justify-items: center;
}

.client-logo {
  width: 100%;
  height: 120px;
  background: white;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  animation: fadeInUp 0.8s ease-out both;
}

.client-logo:nth-child(1) { animation-delay: 0.05s; }
.client-logo:nth-child(2) { animation-delay: 0.1s; }
.client-logo:nth-child(3) { animation-delay: 0.15s; }
.client-logo:nth-child(4) { animation-delay: 0.2s; }
.client-logo:nth-child(5) { animation-delay: 0.25s; }
.client-logo:nth-child(6) { animation-delay: 0.3s; }

.client-logo:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==========================================
   قسم الفيديو
   ========================================== */

.video-section {
  background: var(--dark-bg);
  color: white;
  padding: 80px 20px;
  text-align: right;
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 50px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-wrapper video,
.video-wrapper iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

/* ==========================================
   قسم حول الشركة (About)
   ========================================== */

.about {
  background: white;
  padding: 80px 20px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.about-text {
  text-align: right;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-text .highlight-text {
  background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.about-features {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-item-text {
  flex: 1;
}

.feature-item-text strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.feature-item-text p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.about-image {
  position: relative;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================
   الاستجابة (Responsive)
   ========================================== */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-video {
    width: 350px;
    height: 350px;
    right: -50px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-video {
    position: static;
    width: 100%;
    height: auto;
    transform: none;
    margin-top: 40px;
  }

  .services {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients {
    padding: 60px 0;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-section {
    padding: 60px 0;
  }

  .about {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .client-logo {
    height: 100px;
    padding: 15px;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-image {
    height: 250px;
  }
}
