/* تحميل خط Cairo العربي من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

/* إعدادات CSS Variables للألوان */
:root {
  /* الألوان الأساسية */
  --red-dark: #DC2626;
  --red-light: #EF4444;
  --blue-dark: #1E40AF;
  --blue-light: #3B82F6;
  --gold: #F59E0B;
  --yellow: #FCD34D;
  
  /* الألوان المحايدة */
  --bg-light: #F9FAFB;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --white: #FFFFFF;
  --green: #10B981;
  
  /* التدرجات */
  --gradient-red: linear-gradient(135deg, #EF4444, #DC2626);
  --gradient-blue: linear-gradient(135deg, #3B82F6, #1E40AF);
  --gradient-gold: linear-gradient(135deg, #FCD34D, #F59E0B);
  --gradient-green: linear-gradient(135deg, #10B981, #059669);
  --gradient-hero: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #F59E0B 100%);
}

/* إعادة تعيين وإعدادات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
  direction: rtl;
  text-align: right;
}

/* التدرجات والخلفيات */
.bg-gradient-hero {
  background: var(--gradient-hero);
}

.bg-gradient-red {
  background: var(--gradient-red);
}

.bg-gradient-blue {
  background: var(--gradient-blue);
}

.bg-gradient-gold {
  background: var(--gradient-gold);
}

/* Typography - الطباعة */
h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* الحاوي العام */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* القسم العلوي الرئيسي */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: slideInRight 1s ease-out;
}

.hero-image {
  text-align: center;
  animation: slideInLeft 1s ease-out;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* الأسعار */
.price-section {
  margin: 2rem 0;
  text-align: center;
}

.price-old {
  font-size: 1.5rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.price-new {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}

.price-save {
  font-size: 1.25rem;
  color: var(--red-light);
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  display: inline-block;
  margin-top: 1rem;
}

/* العداد التنازلي */
.countdown-section {
  text-align: center;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.countdown-title {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 600;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255,255,255,0.2);
  border-radius: 15px;
  padding: 1.5rem 1rem;
  min-width: 80px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--yellow);
  display: block;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.countdown-label {
  font-size: 0.875rem;
  color: var(--white);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* الأزرار */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary {
  background: var(--gradient-red);
  color: var(--white);
  font-size: 1.25rem;
  padding: 1.25rem 2.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
  background: var(--gradient-blue);
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(30, 64, 175, 0.4);
}

/* الأقسام العامة */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--white);
}

/* شبكة الميزات */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

/* نموذج الطلب */
.order-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-select {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--blue-light);
  background: var(--white);
  color: var(--blue-light);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--blue-light);
  color: var(--white);
}

.quantity-display {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 50px;
  text-align: center;
}

.total-price {
  background: var(--gradient-gold);
  color: var(--white);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  margin: 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* آراء العملاء */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.stars {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--blue-dark);
}

.testimonial-location {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* الأسئلة الشائعة */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 1rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.faq-question {
  background: var(--gradient-blue);
  color: var(--white);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-weight: 600;
}

.faq-question:hover {
  background: var(--blue-dark);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* صور المنتج */
.product-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 3rem 0;
}

.product-image {
  text-align: center;
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.product-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.product-image h4 {
  margin-top: 1rem;
  color: var(--blue-dark);
  font-size: 1.125rem;
  font-weight: 600;
}

/* روابط السياسات */
.policies-links {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  margin-top: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.policies-links h3 {
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.policy-link {
  display: block;
  padding: 1rem;
  background: var(--gradient-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.policy-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

/* التواصل */
.contact-info {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 1.125rem;
}

.contact-icon {
  font-size: 1.5rem;
}

/* Animations - الرسوم المتحركة */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 15px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .countdown-timer {
    gap: 10px;
  }

  .countdown-item {
    padding: 1rem 0.5rem;
    min-width: 60px;
  }

  .countdown-number {
    font-size: 1.75rem;
  }

  .features-grid,
  .testimonials-grid,
  .product-images {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .order-form {
    padding: 2rem 1.5rem;
  }

  .btn-primary {
    font-size: 1.125rem;
    padding: 1rem 2rem;
  }

  .policies-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  .price-new {
    font-size: 2rem;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .feature-card,
  .testimonial-card,
  .order-form {
    padding: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* إضافة تأثيرات إضافية */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* تأثيرات الظل والإضاءة */
.glow {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.shadow-gold {
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.2);
}

.shadow-blue {
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.shadow-red {
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.2);
}
