/* ملف CSS لصفحة سوق المجيدية المركزي - (وضع فاتح فقط) */
/* لوحة الألوان: أبيض، أسود، ذهبي */

/*========================== 1) المتغيرات العامة ==========================*/
: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(45deg, #cca300, #ffd700);
  --glass-background: rgba(0, 0, 0, 0.05);
  --shadow-effect: 0 10px 30px rgba(0, 0, 0, 0.1);

  /* سرعات الانتقال */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.6s ease;
  --transition-speed: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);

  /* الخطوط والأوزان */
  --font-primary: 'Cairo', sans-serif;
  --font-weight-medium: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* ألوان مساعدة مستخدمة في بعض الأقسام */
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
  --primary-gold: #cca300;
  --border-light: rgba(0, 0, 0, 0.1);
  --dark-bg: #f0f0f0; /* للفوتر فقط */
}

/*========================== 2) الخطوط وإعادة التعيين ==========================*/
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/*========================== 3) الجسم والخلفية ==========================*/
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);
}

/* تراكبات ذهبية خفيفة (وضع فاتح فقط) */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0) 70%);
}
body::before { top: -40px; right: -40px; animation: backgroundGlow 10s infinite alternate ease-in-out; }
body::after  { bottom: -40px; left: -40px; animation: backgroundGlowReverse 10s infinite alternate ease-in-out; }

@keyframes backgroundGlow {
  0% { transform: translate(10%, -10%) scale(1); }
  50% { transform: translate(6%, -6%) scale(1.05); }
  100% { transform: translate(10%, -10%) scale(1); }
}
@keyframes backgroundGlowReverse {
  0% { transform: translate(-10%, 10%) scale(1); }
  50% { transform: translate(-6%, 6%) scale(1.05); }
  100% { transform: translate(-10%, 10%) scale(1); }
}

/*========================== 4) الحاوية العامة ==========================*/
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/*========================== 5) قسم الهيدر/الهيرو ==========================*/
.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; inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.7));
  z-index: -1;
}

/* شعار الشركة داخل الهيرو */
.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: rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-effect);
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* عنوان الصفحة الرئيسي */
.majidiya-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-top: 30px; margin-bottom: 15px; letter-spacing: 2px;
  background: var(--gold-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* وصف العنوان الفرعي */
.majidiya-tagline {
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  color: var(--text-color);
  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); } }

/*========================== 6) أقسام المحتوى العامة ==========================*/
section {
  padding: 60px 0; text-align: center; margin: 40px auto;
  border-radius: 20px; backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.06);
  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-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-black);
  margin-bottom: 20px;
  background: var(--gold-gradient);
  -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: white;
  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 */
.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: white; 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; inset: 0; 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 */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.feature-card {
  background: white; 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: white; 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 */
.stats { padding: 4rem 0; background: var(--gold-gradient); color: white; }
.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 */
.projects { padding: 6rem 0; background: white; }
.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: white; border-color: var(--primary-gold); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project-card {
  background: white; 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; inset: 0; 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: white; 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 */
.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: white; 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: white; 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: white; 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.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn {
  width: 100%; background: var(--gold-gradient); color: white; 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 { background: var(--dark-bg); color: rgb(31, 31, 31); 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: rgb(41, 41, 41); }
.footer-logo .logo-text span { font-size: 0.9rem; color: rgba(34, 34, 34, 0.7); }
.footer-section p { color: rgba(34, 34, 34, 0.75); 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: rgb(32, 32, 32); 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: rgba(29, 29, 29, 0.75); text-decoration: none; transition: color var(--transition-normal); }
.footer-section ul li a:hover { color: var(--secondary-color); }
.footer-section .contact-info { display: flex; flex-direction: column; gap: 1rem; }
.footer-section .contact-item { display: flex; align-items: center; gap: 0.8rem; color: rgba(34, 34, 34, 0.75); }
.footer-section .contact-item i { color: var(--secondary-color); font-size: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.75); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: rgba(39, 39, 39, 0.75); text-decoration: none; transition: color var(--transition-normal); }
.footer-links a:hover { color: var(--secondary-color); }

/*======================== 8) زر الرجوع للأعلى =======================*/
.back-to-top {
  position: fixed; bottom: 2rem; left: 2rem; width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold-gradient); border: none; color: white; 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) الاستجابة ==========================*/
@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) أنماط الطباعة ==========================*/
@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; }
}
