/**
 * 🌟 منصة وعي - Madasha Wacyi
 * تصميم جميل وعصري بألوان الشعار
 * Beautiful & Modern Design with Logo Colors
 */

/* ============================================
   GOOGLE FONTS - خطوط جميلة
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Amiri:wght@400;700&display=swap');

/* ============================================
   CSS VARIABLES - ألوان الشعار
   ============================================ */
:root {
  /* ألوان من الشعار */
  --gold: #B8860B;
  --gold-dark: #9B7309;
  --gold-light: #D4A017;
  --gold-lighter: #E5C158;
  --black: #2C2C2C;
  --black-dark: #1a1a1a;
  --white: #FFFFFF;
  --cream: #FFF8E7;
  
  /* تدرجات جميلة */
  --gradient-gold: linear-gradient(135deg, #E5C158 0%, #D4A017 25%, #B8860B 75%, #9B7309 100%);
  --gradient-dark: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(184, 134, 11, 0.95) 0%, rgba(155, 115, 9, 0.95) 100%);
  
  /* ألوان إضافية */
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-600: #757575;
  --gray-900: #212121;
  
  /* خطوط */
  --font-main: 'Tajawal', sans-serif;
  --font-elegant: 'Amiri', serif;
  
  /* ظلال جميلة */
  --shadow-sm: 0 2px 8px rgba(184, 134, 11, 0.08);
  --shadow-md: 0 4px 16px rgba(184, 134, 11, 0.12);
  --shadow-lg: 0 8px 32px rgba(184, 134, 11, 0.16);
  --shadow-xl: 0 16px 48px rgba(184, 134, 11, 0.2);
  --shadow-gold: 0 8px 32px rgba(212, 160, 23, 0.35);
  
  /* انتقالات */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--cream);
  color: var(--black);
  line-height: 1.8;
  direction: ltr;
  text-align: left;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY - خطوط جميلة
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-elegant);
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
}

h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* ============================================
   NAVBAR - شريط تنقل فاخر
   ============================================ */
.navbar-beautiful {
  background: var(--white);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--gold);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(184, 134, 11, 0.3));
  transition: var(--transition);
}

.navbar-brand img:hover {
  filter: drop-shadow(0 4px 12px rgba(212, 160, 23, 0.5));
}

.navbar-brand-text {
  font-family: var(--font-elegant);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--black) !important;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.6rem 1.2rem !important;
  margin: 0 0.3rem;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-gold);
  transition: var(--transition);
  z-index: -1;
  border-radius: 12px;
}

.nav-link:hover {
  color: var(--white) !important;
  transform: translateY(-2px);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  background: var(--gradient-gold);
  color: var(--white) !important;
  box-shadow: var(--shadow-gold);
}

/* ============================================
   HERO - قسم البطل الجميل
   ============================================ */
.hero-beautiful {
  background: var(--gradient-dark);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-beautiful::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.15) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 600px;
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease-out;
}

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

/* ============================================
   BUTTONS - أزرار جميلة
   ============================================ */
.btn-beautiful {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-beautiful::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn-beautiful:hover::before {
  width: 300px;
  height: 300px;
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.5);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 3px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-4px);
}

/* ============================================
   CARDS - بطاقات فاخرة
   ============================================ */
.card-beautiful {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card-beautiful::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card-beautiful:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-light);
}

.card-beautiful:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-gold);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.card-beautiful:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--black);
}

.card-text {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ============================================
   SECTIONS - أقسام جميلة
   ============================================ */
.section-beautiful {
  padding: 5rem 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: var(--gradient-gold);
  border-radius: 10px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ============================================
   STATS - إحصائيات جميلة
   ============================================ */
.stat-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* ============================================
   FOOTER - تذييل فاخر
   ============================================ */
.footer-beautiful {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--gold);
}

.footer-logo {
  height: 70px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(212, 160, 23, 0.4));
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--gold-light);
}

.footer-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.05rem;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 0.7rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  transition: var(--transition);
  margin: 0 0.5rem;
}

.social-links a:hover {
  background: var(--gradient-gold);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

/* ============================================
   ANIMATIONS - حركات جميلة
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.slide-in {
  animation: slideIn 0.8s ease-out forwards;
}

/* تأخيرات للحركات */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================
   RESPONSIVE - تجاوب جميل
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card-beautiful {
    padding: 1.5rem;
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

/* ============================================
   SCROLLBAR - شريط تمرير جميل
   ============================================ */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-gold);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ============================================
   UTILITIES - أدوات مساعدة
   ============================================ */
.text-gold { color: var(--gold) !important; }
.bg-gold { background: var(--gold) !important; }
.bg-gradient-gold { background: var(--gradient-gold) !important; }
.shadow-gold { box-shadow: var(--shadow-gold) !important; }
