/* التنسيق الأساسي للموقع بالكامل */
body {
  margin: 0;
  padding: 40px 20px;
  min-height: 100vh;
  /* الخلفية: Mint Green فاتح وهادئ جداً ورقيق */
  background: #cbeff2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow-x: auto; /* عشان لو الشاشة صغيرة يظهر شريط تمرير شيك بدل ما يضغط الأبواب */
}

/* تنسيق قسم الكلام الترحيبي اللي فوق */
.site-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.site-header h1 {
  font-family: 'Playfair Display', serif;
  color: #2d4a3e; /* لون زيتي دافئ وغامق عشان يبان بوضوح على المنت جرين */
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 3px;
  margin: 0 0 15px 0;
}

.site-header p {
  font-family: 'Lora', serif;
  color: #526e60; /* زيتي متوسط النعومة */
  font-size: 19px;
  font-style: italic;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  letter-spacing: 0.5px;
}

/* الحاوية الكبرى لتنسيق الـ 4 أبواب بجانب بعض */
.gallery-wrapper {
  display: flex;
  gap: 30px; /* مسافة متناسقة بين الأبواب */
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  padding-bottom: 20px;
}

/* الحاوية الرابطة لكل باب مع الاسم الخاص به */
.card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  flex-shrink: 0; /* منع المتصفح تماماً من ضغط حجم الباب */
}

/* الصندوق الرئيسي المغلق لكل باب */
.window-container {
  position: relative;
  width: 230px; /* عرض مثالي ومدروس للباب */
  height: 420px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(45, 74, 62, 0.15); /* ظل ناعم وخفيف يناسب الألوان الفاتحة */
  perspective: 1500px;
  border: 8px solid #dfd5c6; /* إطار خارجي بلون بيج خشبي فاتح جداً */
  background-color: #fcfbf9;
}

/* ضبط حجم وتغطية الفيديو في الخلفية */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* حاوية الأبواب التي تقع فوق الفيديو */
.doors-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 2;
  direction: ltr;
}

/* الضلفتين (الأبواب الكريمي الفاخرة) */
.door {
  width: 50%;
  height: 100%;
  /* لون كريمي ناعم متدرج (Creamy Warm Wood) */
  background: linear-gradient(135deg, #fdfbf7 0%, #f4eee1 100%);
  border: 1.5px solid #e8dfd0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: relative;
  transition: transform 1.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.door-panel {
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 8%;
  right: 8%;
  border: 1.5px solid rgba(212, 175, 55, 0.2); 
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.02), 0 1px 2px rgba(255,255,255,0.8);
  border-radius: 4px;
}

.handle {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fceeac 0%, #cfab45 100%);
  border-radius: 50%;
  position: absolute;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  border: 1px solid #bfa143;
}

/* تحديد محور حركة وتثبيت المقبض لكل ضلفة */
.left-door {
  transform-origin: left center;
}
.left-door .handle {
  right: 5px;
}

.right-door {
  transform-origin: right center;
}
.right-door .handle {
  left: 5px;
}

/* تأثير الـ 3D: تفتح الأبواب عند وقوف الماوس على الصندوق */
.window-container:hover .left-door {
  transform: rotateY(-135deg);
}

.window-container:hover .right-door {
  transform: rotateY(135deg);
}

/* تنسيق الأسماء الغامضة أسفل الأبواب */
.door-title {
  font-family: 'Playfair Display', serif;
  color: #526e60; /* لون زيتي هادي يتناسق مع الخلفية */
  font-size: 14px;
  font-style: italic;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* تفاعل الاسم مع حركة الماوس */
.card-wrapper:hover .door-title {
  opacity: 1;
  color: #1f382c; /* يغمق أكتر عند الوقوف عليه */
  transform: translateY(2px);
}
.footer-links {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem; /* حجم صغير جداً */
    color: #555;
}
.footer-links a {
    color: #1a4d46;
    text-decoration: none;
    margin: 0 5px;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* استجابة للشاشات الصغيرة عشان تحافظ على الرصّة جنب بعض */
@media (max-width: 1100px) {
  .gallery-wrapper {
    justify-content: flex-start;
    overflow-x: auto; /* يخليكي تسحبي يمين وشمال على الموبايل زي الاستوري بسلاسة */
    padding: 10px;
  }
}