/* ألوان الشركة */
:root {
  --primary-color: #2c005f;
  --secondary-color: #ffae00;
  --accent-color: #6100d1;
  --dark-color: #141414;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* تحسين النصوص العربية */
body[dir="rtl"] {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* تدرجات مخصصة */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffd700 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, var(--dark-color) 0%, #2c2c2c 100%);
}

/* تأثيرات الحركة */
.animate-fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-slide-right {
  animation: slideRight 0.8s ease-out;
}

.animate-bounce-in {
  animation: bounceIn 1s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* تأثيرات التمرير */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(44, 0, 95, 0.15);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(255, 174, 0, 0.4);
}

/* أزرار مخصصة */
.btn-primary-custom {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 0, 95, 0.3);
  color: white;
}

.btn-secondary-custom {
  background: var(--secondary-color);
  color: var(--dark-color);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary-custom:hover {
  background: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 174, 0, 0.3);
  color: var(--dark-color);
}

/* بطاقات مخصصة */
.card-custom {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(44, 0, 95, 0.1);
}

.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(44, 0, 95, 0.15);
}

/* شريط التنقل */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 0, 95, 0.1);
  transition: all 0.3s ease;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* القسم البطل */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  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 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,800 1000,1000"/></svg>');
  background-size: cover;
}

/* تأثيرات الجسيمات */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 174, 0, 0.6);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .card-custom {
    padding: 20px;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* تحسين الأداء */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* تأثيرات إضافية للحيوية */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 20px rgba(255, 174, 0, 0.4);
  }
  to {
    box-shadow: 0 0 30px rgba(255, 174, 0, 0.8), 0 0 40px rgba(255, 174, 0, 0.4);
  }
}

/* تأثير الموجة */
.wave-effect {
  position: relative;
  overflow: hidden;
}

.wave-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.wave-effect:hover::before {
  left: 100%;
}

/* تأثير الزجاج المطفي */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* تأثيرات النص المتحرك */
.text-gradient {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* تأثير الظل المتحرك */
.floating-shadow {
  animation: floatingShadow 3s ease-in-out infinite;
}

@keyframes floatingShadow {
  0%, 100% {
    transform: translateY(0px);
    box-shadow: 0 5px 15px rgba(44, 0, 95, 0.2);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(44, 0, 95, 0.3);
  }
}

/* تأثير الدوران التفاعلي */
.rotate-on-hover {
  transition: transform 0.3s ease;
}

.rotate-on-hover:hover {
  transform: rotate(5deg) scale(1.05);
}

/* تأثير الانزلاق */
.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

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

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

/* تأثير الكتابة */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--secondary-color);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--secondary-color); }
}

/* تأثيرات الإشعارات */
.notification {
  animation: slideInNotification 0.3s ease-out;
}

@keyframes slideInNotification {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* تحسينات للأجهزة المحمولة */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }

  .particles {
    display: none; /* إخفاء الجسيمات على الأجهزة المحمولة لتحسين الأداء */
  }

  .card-custom {
    margin-bottom: 1rem;
  }

  .text-gradient {
    animation: none; /* تعطيل الحركات المعقدة على الأجهزة المحمولة */
  }
}

/* تأثيرات التحميل */
.loading-spinner {
  border: 4px solid rgba(44, 0, 95, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
