/* متغيرات CSS الأساسية */
:root {
    --primary-color: #3498db;
    --secondary-color: #20242f;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --glass-blur: 1px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --button-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-background: rgba(32, 36, 47, 0.7);
}

/* إعادة تعيين وتحسينات عامة */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* تحسينات النصوص والتحديد */
body, button, input, textarea {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* إعدادات الجسم */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--secondary-color), #15161b);
    color: var(--text-color);
    text-align: center;
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* تحسينات العناصر النصية */
p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* تحسين الأزرار */
.btn, button {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--text-color);
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--button-shadow);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
}

/* تحسين قسم Hero */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero .background-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.8);
  transform: scale(1.1);
  transition: transform 1.5s ease;
  z-index: -1;
  /* إخفاء علامات التحكم */
  &::-webkit-media-controls-panel,
  &::-webkit-media-controls-play-button,
  &::-webkit-media-controls-start-playback-button {
      display: none !important;
      -webkit-appearance: none;
  }
  background: var(--secondary-color); /* لون احتياطي أثناء التحميل */
}

/* إخفاء علامة التحميل في Firefox */
.hero .background-video::-moz-loading {
  display: none !important;
}

/* معالجة Microsoft Edge */
.hero .background-video::-ms-media-controls,
.hero .background-video::-ms-media-controls-start,
.hero .background-video::-ms-media-controls-play-pause {
  display: none !important;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.7),
        rgba(0,0,0,0.4) 40%,
        rgba(0,0,0,0.7)
    );
    backdrop-filter: blur(var(--glass-blur));
    z-index: 1;
}

.hero .overlay-text {
    position: relative;
    z-index: 2;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
}

.hero .logo {
    position: relative;
    width: 150px;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.hero .logo:hover {
    transform: scale(1.05);
}

.hero .logo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.hero .overlay-text h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.hero .buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.hero .buttons .btn:first-child {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.hero .buttons .btn:first-child::after {
    content: '🔴';
    position: absolute;
    right: 15px;
    animation: pulse 2s infinite;
}

.hero .buttons .btn:last-child {
    background: var(--glass-background);
    border: var(--glass-border);
}

/* تحسين الشريط الإسلامي */
.divider {
    position: relative;
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(135deg, var(--secondary-color), #15161b);
    overflow: hidden;
}

.divider .divider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(21, 22, 27, 0.95),
        rgba(21, 22, 27, 0.5) 15%,
        rgba(21, 22, 27, 0.5) 85%,
        rgba(21, 22, 27, 0.95)
    );
    z-index: 1;
}

.divider .divider-image {
    position: relative;
    z-index: 2;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}
/* تحسين قسم المعلومات */
.info-section {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--text-color);
}

.info-section .background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.8);
    transform: scale(1.1);
    transition: transform 1.5s ease;
    z-index: -1;
}

.info-section .overlay {
    position: absolute;
    inset: 0;
    background: var(--glass-background);
    backdrop-filter: blur(var(--glass-blur));
    z-index: 0;
}

.info-section .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(32, 36, 47, 0.4);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 20px;
    border: var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-section .content h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.info-section .content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-secondary);
    line-height: 1.7;                              
}

/* تحسين قسم الأيقونات */
.icons-section {
    background: linear-gradient(
        135deg,
        var(--secondary-color),
        #15161b
    );
    padding: 60px 20px;
    position: relative;
    text-align: center;
}

.icons-section h3 {
    font-size: 24px;
    margin-bottom: 60px;
    background: linear-gradient(to right, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.icons-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.icons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.icon {
    text-decoration: none;
    color: var(--text-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-background);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 15px;
    border: var(--glass-border);
    transition: var(--transition-smooth);
}

.icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.icon i {
    margin-bottom: 10px;
    font-size: 30px;
    background: linear-gradient(135deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.icon:hover i {
    transform: scale(1.1);
}

.icon span {
    font-size: 14px;
    text-align: center;
    color: var(--text-secondary);
}

/* تحسين سلايدر الصور */
.my-custom-slider-section {
    padding: 0;
    background: linear-gradient(135deg, var(--secondary-color), #15161b);
    position: relative;
}

.my-custom-slider-section .my-section-header {
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), #15161b);
    padding: 20px;
    margin: 0;
}

.my-custom-slider-section .my-section-header h2 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(to right, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.my-custom-slider-section .my-section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.my-custom-slider-section .my-slider-container {
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    perspective: 1000px;
}

.my-slider {
    position: relative;
    height: 400px;
    transform-style: preserve-3d;
}

.my-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
}

.my-slide.my-active {
    z-index: 2;
    transform: scale(1) translateZ(30px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.my-slide.my-prev,
.my-slide.my-next {
    opacity: 0.6;
    transform: scale(0.85) translateZ(0);
}

.my-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* تصحيح المسافات بين الأقسام */
.divider {
    margin-top: 0;
    padding: 15px 0;
}

.icons-section {
    margin-top: 0;
    padding-top: 20px;
}

/* تحسينات للشاشات الصغيرة */
@media only screen and (max-width: 768px) {
    .my-custom-slider-section .my-section-header h2 {
        font-size: 20px;
    }

    .my-slider {
        height: 300px;
    }

    .my-custom-slider-section .my-slider-container {
        width: 90%;
    }
}
/* متغيرات CSS للتحكم في الألوان والحركات */
:root {
    --skeleton-bg: #20242f;
    --skeleton-surface: #2a2a2a;
    --skeleton-highlight: #3a3a3a;
    --skeleton-text: #ffffff;
    --skeleton-blur: 5px;
    --skeleton-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --skeleton-overlay: rgba(21, 22, 27, 0.95);
    --loading-duration: 1.5s;
}


/* شاشة التحميل الرئيسية */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--skeleton-bg);
  backdrop-filter: blur(var(--skeleton-blur));
  -webkit-backdrop-filter: blur(var(--skeleton-blur));
  opacity: 1;
  visibility: visible;
  transition: var(--skeleton-transition);
}

.loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
}

/* الهيكل العام */
.skeleton-overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  gap: 25px;
  color: var(--skeleton-text);
}

/* الهيدر */
.skeleton-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  background: var(--skeleton-overlay);
  backdrop-filter: blur(var(--skeleton-blur));
  -webkit-backdrop-filter: blur(var(--skeleton-blur));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  transform: translateY(0);
  transition: var(--skeleton-transition);
}

.skeleton-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* تحسين الشعار */
.skeleton-logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: relative;
  background: var(--skeleton-surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoPulse var(--loading-duration) ease-in-out infinite;
}

.skeleton-logo::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.real-logo {
  width: 65%;
  height: auto;
  position: absolute;
  z-index: 5;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.skeleton-logo.loaded .real-logo {
  opacity: 1;
  transform: scale(1);
}

/* تحسين النصوص */
.skeleton-text {
  width: 60%;
  height: 20px;
  background: var(--skeleton-surface);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.skeleton-text.large {
  height: 30px;
  width: 70%;
}

/* تحسين الأزرار */
.skeleton-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.skeleton-button {
  width: 200px;
  height: 50px;
  background: var(--skeleton-surface);
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--skeleton-transition);
}

.skeleton-button:first-child {
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.skeleton-button:last-child {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skeleton-button:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  opacity: 0;
  transition: var(--skeleton-transition);
}

.skeleton-button:first-child:hover::before {
  opacity: 1;
}

.skeleton-button:last-child::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* شريط القائمة السفلي */
.skeleton-menu-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-menu-bar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

.skeleton-menu-bar svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.skeleton-menu-bar svg:hover {
  opacity: 1;
}

/* تأثيرات متقدمة */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

/* تطبيق تأثير الوميض على العناصر */
.skeleton-logo::after,
.skeleton-text::after,
.skeleton-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  animation: shimmer var(--loading-duration) infinite;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 480px) {
  .skeleton-header {
    padding: 0 20px;
  }

  .skeleton-logo {
    width: 120px;
    height: 120px;
  }

  .skeleton-text {
    width: 80%;
  }

  .skeleton-text.large {
    width: 90%;
  }

  .skeleton-buttons {
    gap: 10px;
  }

  .skeleton-button {
    width: 180px;
    height: 45px;
  }
}

/* تحسين الأداء */
@media (prefers-reduced-motion: reduce) {
  .loading-screen,
  .skeleton-logo,
  .real-logo,
  .skeleton-logo::after,
  .skeleton-text::after,
  .skeleton-button::after {
    transition: none;
    animation: none;
  }
}
.ahmad-chat-container_iso {
  position: relative;
  width: 100%;
  height: auto;
  background: #1a1d24;
  font-family: 'Noto Kufi Arabic', sans-serif;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
}

/* إعدادات خلفية الفيديو */
.ahmad-chat-bg_iso {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #20242f;
  height: 100%;
}

.ahmad-chat-bg_iso video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.ahmad-chat-messages_iso {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.ahmad-message_iso {
  width: 100%;
  padding: 16px;
  background: rgba(52, 58, 70, 0.9);
  border-radius: 12px;
  color: white;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ahmad-message_iso:hover {
  background: rgba(62, 68, 80, 0.9);
}

/* تنسيق خاص للسؤال الأخير */
.ahmad-message_iso:last-child {
  background: rgba(33, 150, 243, 0.3);
  border: 1px solid rgba(33, 150, 243, 0.5);
  color: #fff;
  animation: glowPulse 2s infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.ahmad-message_iso:last-child:hover {
  background: rgba(33, 150, 243, 0.4);
}

.ahmad-telegram-btn_iso {
  width: 100%;
  padding: 16px;
  background: #2196F3;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  margin-top: 0;
  transition: background-color 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ahmad-telegram-btn_iso:hover {
  background: #1976D2;
}

/* تأثير التوهج */
@keyframes glowPulse {
  0% {
      box-shadow: 0 0 5px rgba(33, 150, 243, 0.5),
                  inset 0 0 5px rgba(33, 150, 243, 0.5);
  }
  50% {
      box-shadow: 0 0 20px rgba(33, 150, 243, 0.7),
                  inset 0 0 10px rgba(33, 150, 243, 0.7);
  }
  100% {
      box-shadow: 0 0 5px rgba(33, 150, 243, 0.5),
                  inset 0 0 5px rgba(33, 150, 243, 0.5);
  }
}

@media (max-width: 480px) {
  .ahmad-chat-container_iso {
      padding: 12px;
      gap: 8px;
  }
  
  .ahmad-chat-messages_iso {
      gap: 8px;
  }
  
  .ahmad-message_iso,
  .ahmad-telegram-btn_iso {
      padding: 14px;
      font-size: 14px;
  }
}