/* Reset and base */
* {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary-color: #1557bf;
  --primary-dark: #0e3a80;
  --primary-light: #3a84ff;
  --accent-color: #ff6b00;
  --text-color: #222;
  --text-light: #444;
  --bg-color: #e9f0fc;
  --white: #ffffff;
  --shadow-sm: 0 4px 10px rgba(21, 87, 191, 0.2);
  --shadow-md: 0 8px 20px rgba(21, 87, 191, 0.3);
  --shadow-lg: 0 12px 30px rgba(21, 87, 191, 0.4);
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --transition: all 0.3s ease;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  direction: rtl;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* الهيدر */
header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

header .logo {
  width: 70px;
  margin-left: 15px;
  transition: var(--transition);
}

header .logo:hover {
  transform: scale(1.05);
}

header h1 {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  display: inline-block;
  margin: 0 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

nav a.cta-button {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 30px;
  margin-right: 15px;
  box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
}

nav a.cta-button:hover {
  background-color: #ff8124;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 107, 0, 0.4);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* تجاوب الهيدر مع الشاشات الصغيرة */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo-container {
    margin-bottom: 15px;
  }
  
  header h1 {
    font-size: 20px;
  }
  
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
    background-color: var(--primary-color);
    padding: 15px 0;
    border-radius: 0 0 15px 15px;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease-in-out;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .nav-links.active {
    display: flex;
  }
  
  nav a {
    margin: 8px 0;
    width: 90%;
    text-align: center;
    padding: 12px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }
  
  nav a.cta-button {
    margin: 15px auto;
    background-color: var(--accent-color);
    padding: 12px 25px;
    width: 80%;
    max-width: 250px;
  }
  
  /* تحسينات إضافية للهاتف المحمول */
  .hero h2 {
    font-size: 2rem;
    padding: 0 10px;
  }
  
  .hero p {
    font-size: 1.1rem;
    padding: 0 15px;
  }
  
  .hero .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    width: 90%;
    max-width: 280px;
  }
}

/* البانر */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #7aafff 100%);
  color: var(--white);
  padding: 100px 20px 80px;
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background: url('https://i.ibb.co/Mxdg5RjN/image.png') no-repeat center center;
  background-size: 300px;
  opacity: 0.05;
  transform: rotate(-5deg);
  z-index: 0;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(-2deg); }
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 35px;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero .btn {
  background-color: var(--white);
  color: var(--primary-color);
  padding: 15px 40px;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  display: inline-block;
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
}

.hero .btn:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(19, 72, 163, 0.8);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* قسم المواد */
.features {
  max-width: 1200px;
  margin: 80px auto 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.features h2 {
  grid-column: 1/-1;
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.features h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
  border-radius: 2px;
}

.features .box {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 35px 25px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: default;
  text-align: center;
  border: 1px solid rgba(21, 87, 191, 0.08);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.features .box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(21, 87, 191, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  transition: var(--transition);
  z-index: -1;
}

.features .box:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-md);
  border-color: rgba(21, 87, 191, 0.2);
}

.features .box:hover::before {
  height: 100%;
}

.features .box h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.features .box p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

/* قسم من نحن */
.about-section {
  background: var(--white);
  max-width: 1000px;
  margin: 70px auto 90px;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
  position: relative;
  overflow: hidden;
}

.about-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: url('https://i.ibb.co/Mxdg5RjN/image.png') no-repeat center center;
  background-size: contain;
  opacity: 0.05;
  z-index: 0;
}

.about-section h2 {
  margin-bottom: 30px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.about-section h2::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 3px;
}

.about-section p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .about-section {
    padding: 40px 25px;
  }
}

/* قسم الفيديوهات */
.video-demos {
  max-width: 1200px;
  margin: 0 auto 90px;
  background: var(--white);
  padding: 60px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.video-demos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
}

.video-demos h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.video-demos p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-video-container {
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.btn-video {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-video:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.video-iframes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  width: 100%;
}

.video-iframes iframe {
  border-radius: var(--radius-md);
  width: 100%;
  height: 230px;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-iframes iframe:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .btn-video-container {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-video {
    width: 100%;
    max-width: 300px;
  }
  
  .video-iframes {
    grid-template-columns: 1fr;
  }
  
  .video-demos {
    padding: 40px 20px;
  }
}

/* الفوتر */
.footer-bottom {
  background-color: var(--primary-color);
  color: #dbe4ff;
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-color), var(--primary-light));
  opacity: 0.7;
}

.footer-bottom a {
  color: #dbe4ff;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  display: inline-block;
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 768px) {
  .footer-bottom {
    padding: 30px 15px;
    font-size: 14px;
  }
}

/* قسم الدفع */
.payment-section {
  max-width: 1100px;
  margin: 70px auto 90px;
  padding: 50px 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.payment-section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.payment-section > p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.payment-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.payment-option {
  background: linear-gradient(145deg, #f5f9ff, #ffffff);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  width: 350px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(21, 87, 191, 0.1);
}

.payment-option:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.payment-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.payment-option h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.payment-option p {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.payment-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.payment-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(21, 87, 191, 0.3);
}

.bank-transfer-btn {
  background-color: #1e88e5;
}

.bank-transfer-btn:hover {
  background-color: #1565c0;
}

/* تفاصيل الحساب البنكي */
.bank-details {
  background: linear-gradient(145deg, #f0f7ff, #ffffff);
  border-radius: var(--radius-md);
  padding: 30px;
  max-width: 600px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(21, 87, 191, 0.15);
  display: none; /* مخفي افتراضياً */
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.bank-details.active {
  display: block;
}

.bank-details h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.bank-info {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 25px;
  border: 1px dashed rgba(21, 87, 191, 0.2);
}

.bank-info p {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--text-color);
  direction: ltr;
  text-align: left;
}

.bank-info p strong {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
  width: 140px;
}

.confirm-transfer-btn {
  background-color: var(--accent-color);
  display: block;
  margin: 0 auto;
}

.confirm-transfer-btn:hover {
  background-color: #e65100;
}

/* نموذج تأكيد الدفع */
.payment-confirmation {
  max-width: 700px;
  margin: 0 auto;
  background-color: #f8faff;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 10px rgba(21, 87, 191, 0.1);
  text-align: right;
}

.payment-confirmation h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

.payment-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(21, 87, 191, 0.2);
  outline: none;
}

.file-hint {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

/* خيارات الإشعار */
.notification-options {
  background-color: rgba(21, 87, 191, 0.05);
  padding: 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(21, 87, 191, 0.1);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
}

.radio-option input[type="radio"] {
  width: auto;
  margin-left: 10px;
  cursor: pointer;
}

.radio-option label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}

.submit-payment-btn {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  grid-column: 1 / -1;
  margin-top: 15px;
  width: 100%;
  max-width: 300px;
  justify-self: center;
}

.submit-payment-btn:hover {
  background-color: #e65100;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* تجاوب قسم الدفع مع الشاشات الصغيرة */
@media (max-width: 768px) {
  .payment-section {
    padding: 40px 20px;
  }
  
  .payment-section h2 {
    font-size: 2rem;
  }
  
  .payment-options {
    flex-direction: column;
    align-items: center;
  }
  
  .payment-option {
    width: 100%;
    max-width: 350px;
    padding: 25px 20px;
  }
  
  .payment-form {
    grid-template-columns: 1fr;
  }
  
  .bank-details {
    padding: 25px 15px;
    margin-bottom: 30px;
  }
  
  .bank-info {
    padding: 15px;
  }
  
  .bank-info p {
    font-size: 0.95rem;
  }
  
  .bank-info p strong {
    width: 120px;
  }
  
  .notification-options {
    padding: 12px;
  }
  
  .radio-option label {
    font-size: 0.95rem;
  }
  
  .submit-payment-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  /* تحسين تجربة المستخدم على الهاتف المحمول */
  input, select, textarea, button {
    font-size: 16px !important; /* منع تكبير الشاشة عند التركيز على الحقول في iOS */
  }
  
  .form-group input, 
  .form-group select, 
  .form-group textarea {
    padding: 12px 14px;
  }
}
