@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

body {
    margin: 0; /* نشيل الهوامش الافتراضية */
    background-image: url("images/back.jpg"); /* هنا ضع مسار صورتك */
    background-size: cover;      /* تخلي الصورة تغطي الشاشة */
    background-position: top; /* تتمركز الصورة */
    background-attachment: scroll; /* تبقى ثابتة عند التمرير */
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
}

/* الهيدر */
header {
    display: flex;                  /* يخلي العناصر (logo + menu) جنب بعض */
    justify-content: space-between; /* يوزع: الشعار يسار والقائمة يمين */
    align-items: center;            /* يوسّطهم عموديًا */
    padding: 20px 40px;             /* مسافة داخلية */
}

/* اللوغو */
.logo {
    display: flex;          /* يخلي الصورة + النصوص جنب بعض */
    align-items: center;
    gap: 10px;              /* مسافة بين الصورة والاسم */
}

.logo img {
    width: 30px;            /* حجم الشعار */
    height: 30px;
}

.logo span {
    font-size: 25px;               /* حجم الخط */
    font-weight: bold;             /* خط عريض */
    margin-top: 7px;               /* مسافة علوية بسيطة */
    background: linear-gradient(90deg,#2575fc , #6a11cb); /* تدرج لوني */
    background-clip: text; /* قصّ الخلفية على النص */
    -webkit-text-fill-color: transparent; /* يجعل النص شفاف ويظهر التدرج */
}

/* زر القائمة (☰) */
.menu {
    font-size: 35px;        /* حجم الرمز */
    cursor: pointer;        /* مؤشر اليد عند المرور */
    color: #000000;
}

.whatsapp-icon {
  width: 32px;   /* حجم العرض */
  height: 32px;  /* حجم الطول */
  object-fit: contain; /* يحافظ على الأبعاد */
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle:hover .whatsapp-icon {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.photou {
    display: block;     /* تخلي الصورة عنصر مستقل */
    margin:auto;  /* تخليها بالوسط + مسافة فوق وتحت */
    width: 300px;       /* عرض مناسب */
    height: auto;       /* يحافظ على التناسب */
    position: static;   /* أهم شيء: نشيل الـ absolute */
}



.welcome-text {
    text-align: center;
    font-weight: bold;
    font-size: 1.7em;
    color: #2c0d64; /* لون النص */
    margin-top: 50px;
    line-height: 0.7em;
}

section {
    text-align: center;
    padding: 40px 20px;
}

h2 {
    font-size: 25px;
    font-weight: 200;
    margin-bottom: 30px;
}

/* الشبكة */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* هاتف = عمودين */
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

/* البطاقات */
.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* الأيقونة */
.icon-img {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    display: block;
}

.feature-card h3 {
    color: #000000;
    font-size: 18px;
    margin-bottom: 8px;
    background: linear-gradient(90deg,#45049a , #c714f9); /* تدرج لوني */
    background-clip: text; /* قصّ الخلفية على النص */
    -webkit-text-fill-color: transparent; /* يجعل النص شفاف ويظهر التدرج */
}

.feature-card p {
    color: #555;
    font-size: 14px;
}

/* الشاشات المتوسطة */
@media (min-width: 640px) {
    .features-grid {
      grid-template-columns: repeat(3, 1fr); /* تابلت = 3 أعمدة */
    }
}
  
/* الشاشات الكبيرة */
@media (min-width: 1024px) {
    .features-grid {
      grid-template-columns: repeat(4, 1fr); /* كمبيوتر = 4 أعمدة */
    }
}

/* معرض الصور */
.image-carousel, .video-carousel {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 20px 0;
  scroll-behavior: smooth;
}

/* حاوية الصور والفيديوهات داخل الكاروسيل */
.carousel-track {
  display: inline-flex;
  gap: 20px;
}

/* الصور داخل معرض الصور */
.image-carousel img {
  height: 300px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* الفيديوهات داخل معرض الفيديوهات */
video {
  height: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ⭐⭐ بداية أنيميشن فتح/إغلاق الأقسام ⭐⭐ */
.toggle-content {
  max-height: 0;              /* مغلق */
  overflow: hidden;           /* يخفي اللي يزيد */
  opacity: 0;                 /* شفاف */
  transition: all 0.5s ease;  /* حركة سلسة */
}

/* لما يكون مفتوح */
.toggle-content.open {
  max-height: 1000px;   /* رقم كبير يكفي لأي محتوى */
  opacity: 1;
}

/* ⭐⭐ ستايل الأزرار (العناوين + السهم) ⭐⭐ */
.toggle-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  color: #2c0d64;
  transition: color 0.3s ease;
}

.toggle-btn:hover {
  color: #6a11cb;
}

/* ⭐⭐ السهم ⭐⭐ */
.arrow {
  transition: transform 0.3s ease;
}

.arrow.rotate {
  transform: rotate(180deg);
}

footer{
  text-align: center;
  color: #777;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.9em;
}
