/* ملف CSS خاص بصفحة سوق المجيدية المركزي - نسخة وضع فاتح فقط (بدون دارك مود)
   لوحة ألوان: أبيض، أسود، ذهبي */

/*
* @section المتغيرات الأساسية للثيم (Light Only)
* ملاحظة: يفضّل نقل هذه المتغيرات إلى ملف global.css للموقع.
*/
:root {
  /* لوحة الألوان الأساسية للوضع الفاتح */
  --primary-color: #CCA300; /* ذهبي أساسي */
  --secondary-color: #FFD700; /* ذهبي فاتح */
  --accent-color: #CCA300; /* ذهبي للتأكيد */

  --bg-color: #F8F8F8; /* خلفية عامة فاتحة */
  --surface-color: #FFFFFF; /* بطاقات/أسطح */
  --text-color: #1A1A1A; /* نص أساسي */
  --text-muted: #666666; /* نص ثانوي */
  --border-color: rgba(0, 0, 0, 0.1); /* حدود */

  /* إضافات مستخدمة في الأقسام أدناه (لتجنّب متغيرات مفقودة) */
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
  --primary-gold: #d4af37;
  --border-light: rgba(0, 0, 0, 0.1);
  --text-dark: #1A1A1A;
  --text-light: #666666;
  --dark-bg: #f1f1f1; /* للفوتر الداكن فقط (لا علاقة له بوضعيّات الثيم) */

  /* خطوط وأوزان */
  --font-primary: 'Cairo', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* انتقالات وظلال */
  --transition-speed: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
  --shadow-effect: 0 10px 30px rgba(0, 0, 0, 0.1);
  --glass-background: rgba(0, 0, 0, 0.05);
}

/*
* @section استيراد الخطوط
*/
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

/*
* @section إعادة تعيين الأنماط الافتراضية (Reset CSS)
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

/*
* @section الأنماط العامة للجسم (Body Styles)
*/
body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  padding-top: 70px;
  padding-bottom: 100px;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/*
* @section تراكبات الخلفية مع تأثير ضوئي (Light Only)
*/
body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  transform: translate(20%, -20%);
  animation: backgroundGlow 10s infinite alternate ease-in-out;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  transform: translate(-20%, 20%);
  animation: backgroundGlowReverse 10s infinite alternate ease-in-out;
}

@keyframes backgroundGlow {
  0% { transform: translate(20%, -20%) scale(1); }
  50% { transform: translate(15%, -15%) scale(1.05); }
  100% { transform: translate(20%, -20%) scale(1); }
}

@keyframes backgroundGlowReverse {
  0% { transform: translate(-20%, 20%) scale(1); }
  50% { transform: translate(-15%, 15%) scale(1.05); }
  100% { transform: translate(-20%, 20%) scale(1); }
}

/*
* @section حاوية المحتوى المشتركة (Container)
*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/*
* @section نمط الهيدر الرئيسي (Hero Section)
*/
.majidiya-hero {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url('/image/alwa/IMG_8411.JPG');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 700px;
  height: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 80%, transparent 100%);
}

.majidiya-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* تراكب أبيض شفاف للوضع الفاتح */
  background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.75));
  z-index: -1;
}

/*
* @section شعار الشركة داخل الهيدر (Company Logo)
*/
.company-logo-majidiya {
  width: 250px;
  height: 250px;
  object-fit: contain;
  animation: spin 10s linear infinite;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  padding: 10px;
  background-color: var(--glass-background);
}

@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }

/*
* @section عنوان الصفحة الرئيسي (Main Page Title)
*/
.majidiya-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--text-color);
  margin-top: 30px;
  margin-bottom: 15px;
  letter-spacing: 2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.35), 0 0 40px rgba(255, 215, 0, 0.2); }
  50% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.45), 0 0 60px rgba(255, 215, 0, 0.3); }
}

/*
* @section وصف العنوان الفرعي (Tagline)
*/
.majidiya-tagline {
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: 0.8s;
}

@keyframes fadeInUp { from {opacity:0; transform: translateY(20px);} to {opacity:1; transform: translateY(0);} }

/*
* @section أقسام المحتوى العامة (General Section Styles)
*/
section {
  padding: 60px 0;
  text-align: center;
  margin: 40px auto;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  opacity: 0;
  animation: sectionFadeIn 1s ease-out forwards;
  animation-delay: 0.8s;
}

@keyframes sectionFadeIn { from {opacity:0; transform: translateY(40px);} to {opacity:1; transform: translateY(0);} }

/*
* @section عناوين الأقسام (Section Headings)
*/
.section-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-black);
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  animation: pulse 2.5s infinite alternate;
}

@keyframes pulse { 0%, 100% { transform: scale(1);} 50% { transform: scale(1.02);} }

/*====================================================================*/
/*====================== 6. Content Sections =========================*/
/*====================================================================*/
.section-header { text-align: center; margin-bottom: 4rem; }
.section-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: var(--font-weight-medium);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.about { padding: 6rem 0; background: #f8f9fa; }
.about-content { display: flex; flex-direction: column; gap: 4rem; }
.about-main { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h3 { font-size: 2rem; font-weight: var(--font-weight-bold); color: var(--text-dark); margin-bottom: 1.5rem; }
.about-text p { font-size: 1.1rem; color: var(--text-light); line-height: 1.8; margin-bottom: 2rem; }

.vision-mission { display: flex; flex-direction: column; gap: 2rem; }
.vision, .mission { display: flex; align-items: flex-start; gap: 1rem; }
.icon-wrapper {
  width: 50px; height: 50px; border-radius: 50%; background: var(--gold-gradient);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 1.2rem;
}
.vision .content h4, .mission .content h4 { font-size: 1.2rem; font-weight: var(--font-weight-bold); color: var(--text-dark); margin-bottom: 0.5rem; }
.vision .content p, .mission .content p { color: var(--text-light); line-height: 1.6; }

.about-image { position: relative; max-width: 70%; }
.image-wrapper { position: relative; border-radius: 20px; overflow: hidden; }
.about-image img { width: 100%; height: 600px; object-fit: cover; transition: transform var(--transition-slow); }
.image-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(224, 164, 35, 0.432); opacity: 0; transition: opacity var(--transition-normal); }
.about-image:hover img { transform: scale(1.05); }
.about-image:hover .image-overlay { opacity: 0.2; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.feature-card {
  background: #fff; padding: 2rem; border-radius: 20px; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: all var(--transition-normal);
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.feature-icon {
  width: 80px; height: 80px; border-radius: 50%; background: var(--gold-gradient);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: #fff; transition: all var(--transition-normal);
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-card h4 { font-size: 1.3rem; font-weight: var(--font-weight-bold); color: var(--text-dark); margin-bottom: 1rem; }
.feature-card p { color: var(--text-light); line-height: 1.6; }

.stats { padding: 4rem 0; background: var(--gold-gradient); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.stat-card { text-align: center; padding: 2rem; }
.stat-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.8; }
.stat-number { font-size: 3rem; font-weight: var(--font-weight-black); margin-bottom: 0.5rem; }
.stat-label { font-size: 1.1rem; font-weight: var(--font-weight-medium); opacity: 0.9; }

.projects { padding: 6rem 0; background: #fff; }
.projects-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }
.filter-btn {
  background: transparent; border: 2px solid var(--border-light); color: var(--text-dark);
  padding: 0.8rem 2rem; border-radius: 50px; cursor: pointer; font-family: var(--font-primary); font-weight: var(--font-weight-medium); transition: all var(--transition-normal);
}
.filter-btn:hover, .filter-btn.active { background: var(--gold-gradient); color: #fff; border-color: var(--primary-gold); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project-card {
  background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: all var(--transition-normal);
}
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.project-image { position: relative; overflow: hidden; }
.project-image img { width: 100%; height: 250px; object-fit: cover; transition: transform var(--transition-slow); }
.project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition-normal); }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-image img { transform: scale(1.1); }
.project-actions { display: flex; gap: 1rem; }
.action-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--gold-gradient); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: all var(--transition-normal); }
.action-btn:hover { transform: scale(1.1); }
.project-info { padding: 2rem; }
.project-category { display: inline-block; background: rgba(212, 175, 55, 0.1); color: var(--primary-gold); padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: var(--font-weight-medium); margin-bottom: 1rem; }
.project-info h3 { font-size: 1.3rem; font-weight: var(--font-weight-bold); color: var(--text-dark); margin-bottom: 1rem; }
.project-info p { color: var(--text-light); line-height: 1.6; margin-bottom: 1.5rem; }
.project-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.status { padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: var(--font-weight-medium); }
.status.completed { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.status.in-progress { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.status.planning { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.location { color: var(--text-light); font-size: 0.9rem; }

.contact { padding: 6rem 0; background: #f8f9fa; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h3 { font-size: 2rem; font-weight: var(--font-weight-bold); color: var(--text-dark); margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 3rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--gold-gradient); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 1.2rem; }
.contact-details h4 { font-size: 1.1rem; font-weight: var(--font-weight-bold); color: var(--text-dark); margin-bottom: 0.5rem; }
.contact-details p { color: var(--text-light); line-height: 1.6; }
.social-links h4 { font-size: 1.1rem; font-weight: var(--font-weight-bold); color: var(--text-dark); margin-bottom: 1rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icon { width: 45px; height: 45px; border-radius: 50%; background: var(--gold-gradient); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 1.2rem; transition: all var(--transition-normal); }
.social-icon:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }

.contact-form { background: #fff; padding: 3rem; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.contact-form h3 { font-size: 1.5rem; font-weight: var(--font-weight-bold); color: var(--text-dark); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 1rem; border: 2px solid var(--border-light); border-radius: 10px; font-family: var(--font-primary); font-size: 1rem; transition: all var(--transition-normal); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn { width: 100%; background: var(--gold-gradient); color: #fff; border: none; padding: 1rem 2rem; border-radius: 50px; font-family: var(--font-primary); font-size: 1.1rem; font-weight: var(--font-weight-medium); cursor: pointer; transition: all var(--transition-normal); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4); }

/*====================================================================*/
/*============================ 7. Footer =============================*/
/*====================================================================*/
.footer { background: var(--dark-bg); color: #161616; padding: 4rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 1rem; margin-bottom: 3rem; }
.footer-section h4 { font-size: 1.2rem; font-weight: var(--font-weight-bold); margin-bottom: 1.5rem; color: var(--primary-gold); }
.footer-logo { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.footer-logo .logo-frame { width: 50px; height: 50px; }
.footer-logo .logo-text h3 { font-size: 1.3rem; font-weight: var(--font-weight-bold); color: #131313; }
.footer-logo .logo-text span { font-size: 0.9rem; color: var(--text-light); }
.footer-section p { color: var(--text-light); line-height: 1.6; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.social-link { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-gradient); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 1.1rem; transition: all var(--transition-normal); }
.social-link:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.8rem; }
.footer-section ul li a { color: var(--text-light); text-decoration: none; transition: color var(--transition-normal); }
.footer-section ul li a:hover { color: var(--primary-gold); }
.footer-section .contact-info { display: flex; flex-direction: column; gap: 1rem; }
.footer-section .contact-item { display: flex; align-items: center; gap: 0.8rem; color: var(--text-light); }
.footer-section .contact-item i { color: var(--primary-gold); font-size: 1rem; }
.footer-bottom { border-top: 1px solid rgba(221, 221, 221, 0.1); padding-top: 2rem; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; color: var(--text-light); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-light); text-decoration: none; transition: color var(--transition-normal); }
.footer-links a:hover { color: var(--primary-gold); }

/*====================================================================*/
/*======================== 8. Back to Top Button =====================*/
/*====================================================================*/
.back-to-top {
  position: fixed; bottom: 2rem; left: 2rem; width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold-gradient); border: none; color: #fff; cursor: pointer; font-size: 1.2rem;
  opacity: 0; visibility: hidden; transition: all var(--transition-normal); z-index: 100;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }

/*====================================================================*/
/*====================== 9. Responsive Design =======================*/
/*====================================================================*/
@media (max-width: 1200px) {
  .hero-content { padding: 0 40px; gap: 60px; }
  .destinations-preview { max-width: 500px; }
  .preview-card { width: 120px; height: 160px; }
  .contact-content { grid-template-columns: 1fr; gap: 3rem; }
  .footer-content { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (max-width: 992px) {
  .main-navigation { display: none; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 3rem; }
  .hero-description { font-size: 1.8rem; }
  .about-main { grid-template-columns: 1fr; gap: 3rem; }
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .header-container { padding: 0 1rem; }
  .brand-text { display: none; }
  .header-controls { gap: 0.5rem; }
  .lang-toggle { padding: 0.6rem; }
  .lang-text { display: none; }
  .hero-content { padding: 0 20px; }
  .hero-title { font-size: clamp(3rem, 10vw, 5rem); }
  .hero-description { font-size: 16px; }
  .destinations-preview { gap: 15px; }
  .preview-card { width: 90px; height: 120px; }
  .preview-content h3 { font-size: 12px; }
  .preview-content p { font-size: 9px; }
  .slide-number { bottom: 30px; right: 30px; }
  .current-slide { font-size: 36px; }
  .section-header h2 { font-size: 2rem; }
  .about-text h3 { font-size: 1.5rem; }
  .vision-mission { gap: 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-content { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 576px) {
  .modern-header { height: 70px; }
  .logo-frame { width: 50px; height: 50px; }
  .search-toggle { width: 40px; height: 40px; }
  .hero-title { font-size: 2rem; }
  .hero-description { font-size: 1.5rem; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
  .contact-form { padding: 2rem; }
}

/*====================================================================*/
/*======================== 10. Print Styles ==========================*/
/*====================================================================*/
@media print {
  .modern-header, .search-overlay, .back-to-top, .slider-controls, .slide-number,
  .progress-bar, .hero-overlay, .hero-background, .destinations-preview { display: none !important; }

  .hero-section { height: auto; min-height: auto; padding: 2rem 0; background: none !important; }
  .hero-title, .hero-description {
    color: var(--text-dark) !important; background: none !important; -webkit-text-fill-color: var(--text-dark) !important; text-shadow: none !important;
  }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 0 !important; }
  .hero-text { opacity: 1 !important; transform: none !important; max-width: 100% !important; color: var(--text-dark) !important; }
  .location-tag, .discover-location { display: none !important; }
  .project-image img { height: auto; object-fit: contain; }
}
