/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html {
  scroll-behavior: smooth;
}


#home, 
#about, 
#products, 
#services, 
#contact,
#projects,
#testimonials,
#shop{
  scroll-margin-top: 100px;
}



body {
  direction: ltr;
  background: #fdfaf5;
}


/* ===== Page Loader ===== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.page-loader-body {
  text-align: center;
}

.logo-header h1 {
  font-family: 'Georgia', serif; 
  font-size: 2rem;              
  font-weight: bold;
  background: linear-gradient(90deg, #FFF8E7, #FFE5B4); /* فاتح جداً إلى بيج دافئ */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3); /* ظل خفيف لإبراز النص */
  letter-spacing: 2px;             
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo-header h1:hover {
  transform: scale(1.1) rotate(-2deg); 
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  cursor: pointer;
}


.brush {
  animation: brush-move 1s infinite ease-in-out alternate;
}

@keyframes brush-move {
  0% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(50px,-20px) rotate(45deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}

.page-loader p {
  font-size: 16px;
  color: #5A2C0A;
  margin-top: 10px;
  font-weight: bold;
}

/* ===== Top Header ===== */
.top-header {
  width: 100%;
  background: #8B4513;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
  height: 70px;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.top-left a,
.top-right a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s, transform 0.3s;
}

.top-left a:hover,
.top-right a:hover {
  color: #FFD39B;
  transform: scale(1.05);
}

.top-left i,
.top-right i {
  color: #ffffff;
}

/* ===== Social Icons ===== */
.social-icons {
  display: flex;
  align-items: center;
  gap: 17px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  color: #FFD39B;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.2);
}

/* ===== Language Switcher ===== */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.language-switcher img {
  width: 28px;
  height: 18px;
  border: 1px solid #fff;
  border-radius: 3px;
  transition: transform 0.2s ease;
}

.language-switcher img:hover {
  transform: scale(1.2);
}


/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  margin-left: 10px;
}

/* ===== Header Popup ===== */
.header-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;           
  justify-content: center; 
  align-items: center;     
  z-index: 9998;
  padding: 20px;
}

/* ===== Popup Content ===== */
.popup-content {
  background: #5A2C0A;
  color: #ffffff;
  padding: 25px 20px;
  border-radius: 12px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;    
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  animation: popupIn 0.5s ease;
  text-align: center;      
}

/* ===== Popup Language Flag ===== */
.header-popup .popup-language img {
  width: 58px;
  height: 38px;
  border: 1px solid #8B4513;
  border-radius: 3px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.header-popup .popup-language img:hover {
  transform: scale(1.2) rotate(10deg);
}

/* ===== Popup Animation ===== */
@keyframes popupIn {
  0% { transform: scale(0.8) translateY(-30px); opacity: 0; }
  60% { transform: scale(1.05) translateY(10px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ===== Close Button ===== */
.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
  color: #ffffff;
}

/* ===== Popup Links Vertical Styling (Left-Aligned) ===== */
.popup-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  gap: 20px;
  margin: 25px 0;
  width: 100%; 
}


.popup-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 8px; 
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.popup-links a:hover {
  color: #FFD39B;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.popup-links i {
  font-size: 20px;
}


/* ===== Social Icons in Popup ===== */
.popup-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 0;
}

.popup-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  text-decoration: none;
  color: #ffffff;
  font-size: 20px;
  border-radius: 50%;
  opacity: 0;
  animation: socialFadeIn 0.5s forwards;
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.popup-social a:nth-child(1) { animation-delay: 0.2s; }
.popup-social a:nth-child(2) { animation-delay: 0.4s; }
.popup-social a:nth-child(3) { animation-delay: 0.6s; }
.popup-social a:nth-child(4) { animation-delay: 0.8s; }

@keyframes socialFadeIn {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hover effect while keeping animation */
.popup-social a:hover {
  color: #FFD39B;
  background: rgba(255,255,255,0.2);
  transform: translateY(0) scale(1.2) rotate(-10deg); /* حركة خفيفة + تكبير */
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}





/* ===== Popup Language Select ===== */
.popup-language select,
.popup-language img {
  margin-top: 10px;
  cursor: pointer;
}


/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .top-left,
  .top-right {
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .top-left,
  .top-right .social-icons,
  .top-right .language-switcher {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .transparent-header{
    display: none;
  }
}



.transparent-header {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background: none; 
  z-index: 10;
}


/* Logo على اليسار */
.transparent-header .logo-header {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.transparent-header .logo-img {
  display: inline-block;
  margin-top: 20px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgb(255, 255, 255);
  object-fit: contain;
transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.transparent-header .logo-img:hover {
  transform: rotate(5deg) scale(1.15);
  box-shadow: 0 0 15px rgba(255, 204, 138, 0.6);
}



/* Main Menu في الوسط */
.transparent-header .main-menu {
  flex: 2;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.transparent-header .main-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
}
.transparent-header .main-menu a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  transition: color 0.3s, transform 0.3s;
}
.transparent-header .main-menu a:hover {
  color: #FFD39B;
  transform: scale(1.2);
}

/* أيقونات البحث والهامبرغر على اليمين */
.transparent-header .top-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}


input[type="text"] {
  background: rgba(255, 255, 255, 0.95); /* خلفية بيضاء شبه شفافة */
  color: #000; /* لون النص */
  border: none; /* بدون حدود تقليدية */
  border-radius: 25px; /* حواف ناعمة */
  padding: 10px 15px;
  font-size: 16px;
  outline: none; /* إزالة الإطار الأزرق عند الضغط */
  transition: all 0.3s ease;
  width: 200px;
}

/* تغيير المظهر عند التركيز (focus) */
input[type="text"]:focus {
  box-shadow: 0 0 8px rgba(255, 211, 155, 0.8); /* ظل ذهبي خفيف */
}



/* أيقونة البحث للموبايل */
.search-icon {
  display: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}
.search-box {
  display: flex;
  border: 1px solid #fff;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 20px;
}
.search-box input {
  padding: 5px 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: 150px;
  transition: width 0.3s ease;
}
.search-box input:focus {
  width: 200px;
  background: rgba(255,255,255,0.2);
}
.search-box button {
  border: none;
  background: #FFD39B;
  color: #000;
  padding: 5px 10px;
  cursor: pointer;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .transparent-header .main-menu {
    display: none; /* إخفاء القائمة في الموبايل */
  }
  .search-box {
    display: none; /* إخفاء البحث العادي */
  }
  .search-icon {
    display: flex; /* إظهار أيقونة البحث */
  }
  .menu-toggle {
    display: flex; /* إظهار الهامبرغر */
  }
}


/* Sticky Header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #8B4513;
  padding: 10px 20px;
  z-index: 10000;
}

/* الأقسام */
.sticky-header .left-section,
.sticky-header .right-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Search Box */
.sticky-header .search-box {
  display: none;
  flex-direction: row;
  border: 1px solid #fff;
  border-radius: 5px;
  overflow: hidden;
}

.sticky-header .search-box input {
  padding: 5px 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: 150px;
  transition: width 0.3s ease;
}

.sticky-header .search-box input:focus {
  width: 200px;
  background: rgba(255,255,255,0.2);
}

.sticky-header .search-box button {
  border: none;
  background: #FFD39B;
  color: #000;
  padding: 5px 10px;
  cursor: pointer;
}

/* Buttons */
.menu-btn, .search-btn, .popup-btn {
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 1024px) {
  .transparent-header .main-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #8B4513;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 0;
  }
  .transparent-header .main-menu a {
    padding: 10px 20px;
  }
  .transparent-header .search-box {
    display: none;
    flex-direction: row;
    margin-top: 10px;
    width: calc(100% - 40px);
    padding: 5px;
  }
}

.transparent-header {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: 130px;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

/* اللوغو قبل التمرير */
.transparent-header .logo-img {
  height: 90px;
  transition: height 0.3s ease;
}

/* عند التمرير */
.transparent-header.scrolled {
  background: rgba(139, 69, 19, 0.95);
  padding: 10px 30px;
  height: 100px; /* يقل ارتفاع الهيدر */
  top: 0;        /* يلتصق بالأعلى */
}

.transparent-header.scrolled .logo-img {
  height: 60px;
}




@media (max-width: 768px) {
  .sticky-header .search-box {
    position: absolute;
    top: 50px;
    left: 10px;
    right: 10px;
    display: none; /* سيظهر عند الضغط على search-btn */
    background: #8B4513;
    padding: 5px;
  }
}

/* ===== Main Header ===== */
.main-header {
  width: 100%;
  background: #8B4513; /* بني */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
}

.main-header .menu-toggle,
.main-header .popup-btn {
  font-size: 24px;
  cursor: pointer;
}

.main-header .logo-header h1 {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
}

/* ===== Responsive ===== */
@media(max-width:768px){
  .main-header .logo-header h1 {
    font-size: 1.5rem;
  }
}



/* إخفاء Main Header افتراضياً */
.main-header {
  display: none;
}

/* إخفاء Top Header و Transparent Header على الشاشات الصغيرة */
@media (max-width: 1024px) {
  .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #8B4513;
    color: #fff;
    padding: 10px 20px;
    z-index: 1000;
    height: 70px;
  }

  .top-header,
  .transparent-header {
    display: none;
  }
}

/* إظهار Top Header و Transparent Header على سطح المكتب */
@media (min-width: 1025px) {
  .main-header {
    display: none; /* الهيدر البسيط مخفي على سطح المكتب */
  }

  .top-header,
  .transparent-header {
    display: flex;
  }
}

/* تصميم Main Header */
.main-header .logo-header {
  text-align: center;
  flex: 1;
}

.main-header .menu-toggle {
  order: -1; /* أيقونة المنيو على اليسار */
  font-size: 24px;
  cursor: pointer;
}

.main-header .popup-btn {
  font-size: 24px;
  cursor: pointer;
}




/* ===== Mobile Menu (القائمة المنبثقة) ===== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  height: 100vh;
  background: #5A2C0A; /* بني غامق مشابه للمربع المنبثق */
  padding: 60px 20px 20px;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.4s ease, background 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  border-radius: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* عند فتح القائمة */
.mobile-menu.open {
  transform: translateX(0);
}

/* روابط القائمة */
.mobile-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s, transform 0.3s, color 0.3s;
}

.mobile-menu a i {
  font-size: 22px;
  min-width: 25px;
  color: #FFD39B; /* أيقونات باللون الذهبي */
}

/* تأثير التحويم */
.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
  color: #FFD39B; /* النص يتحول للذهبي عند التحويم */
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu li {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* أيقونة إغلاق */
.mobile-menu .close-menu {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.3s, color 0.3s;
}

.mobile-menu .close-menu:hover {
  transform: rotate(90deg) scale(1.2);
  color: #FFD39B; /* يتحول للذهبي عند التحويم */
}

/* Scrollbar أنيق للقائمة */
.mobile-menu::-webkit-scrollbar {
  width: 6px;
}
.mobile-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.mobile-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.menu-toggle,
.popup-btn {
  position: relative; /* تأكد أن لديها position */
  z-index: 10001; /* أعلى من الهيدر أو الشعار */
}


/* زر البحث للموبايل */
.search-btn {
  display: none; /* مخفي افتراضياً */
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  margin-left: 10px;
  position: relative;
  z-index: 10001; /* أعلى من الهيدر */
}

/* يظهر فقط على الموبايل */
@media (max-width: 1024px) {
  .search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* صندوق البحث للموبايل */
.mobile-search-box {
  display: none; /* مخفي افتراضياً */
  position: absolute;
  top: 60px; /* أسفل الهيدر */
  left: 0;
  right: 0;
  padding: 10px 20px;
  background: #8B4513;
  flex-direction: row;
  gap: 10px;
  z-index: 10000;
}

/* صندوق البحث مرن */
.mobile-search-box input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  outline: none;
}

.mobile-search-box button {
  padding: 8px 12px;
  border: none;
  background: #FFD39B;
  color: #000;
  border-radius: 5px;
  cursor: pointer;
}

/* Slider Fullscreen */
.slider-section {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 0; /* تحت الهيدرات */
}




.swiper { width: 100%; height: 100%; }
.swiper-slide {
  background-size: cover;
  background-position: center;
  position: relative;
}


/* Slide Content */
.slide-content {
  position: absolute;
  top: 55%;
  left: 60px;
  transform: translateY(-50%);
  color: #fff;
  width: 80%;
  padding: 60px;
  border-radius: 20px;
  text-align: left;
}

.slide-content .buttons a {
  z-index: 60;
  position: relative;
}


.slide-content h1 {
  position: relative;
  font-size: 45px;
  margin-bottom: 20px;
  line-height: 1.2;
  z-index: 20;
}

.slide-content h2 {
  font-size: 30px;
  margin-bottom: 20px;
  color: #FFD39B;
  line-height: 1.3;
}

.slide-content p {
  font-size: 20px;
  margin-bottom: 25px;
  line-height: 1.6;
}


/* Buttons */
.slide-content .buttons a {
  display: inline-block;
  margin-right: 10px;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.buttons a {
  display: inline-block;
  margin-right: 10px;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: #FFD39B;
  color: #000;
}
.btn-primary:hover {
  background: #FFA500;
  color: #fff;
  transform: scale(1.05);
}
.btn-secondary {
  background: transparent;
  color: #FFD39B;
  border: 2px solid #FFD39B;
}
.btn-secondary:hover {
  background: #FFD39B;
  color: #000;
  transform: scale(1.05);
}

/* ===== Responsive Slider ===== */

/* شاشة كبيرة (سطح المكتب ≥ 1200px) */
@media (min-width: 1200px) {
  .slide-content {
    width: 70%; /* أقل من 80% لتوازن على الشاشات الكبيرة */
    padding: 70px;
    left: 80px;
  }
  .buttons a { padding: 15px 30px; font-size: 18px; }
}

/* شاشة متوسطة (Tablet: 768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .slide-content {
    width: 75%;
    padding: 50px;
    left: 50px;
  }

  .buttons a { padding: 12px 25px; font-size: 16px; }
}


/* Container pagination */
.slider-section .swiper-pagination {
  position: absolute;
  top: 45% !important;
  padding-right: 100px !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 20;
  align-items: flex-end;
}

/* كل الأرقام (bullets) */
.slider-section .swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

/* الرقم النشط */
.slider-section .swiper-pagination-bullet-active {
  background-color: #FFD39B;
  color: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 211, 155, 0.8);
}

/* Hover على الرقم النشط */
.slider-section .swiper-pagination-bullet-active:hover {
  transform: scale(1.5);
  background-color: #FFA500;
  box-shadow: 0 0 15px rgba(255, 180, 0, 0.9);
}

h1::before{
  content: "";
  position: absolute;
  width: 5px;
  height: 65%;
  background-color: #8B4513;
  left: -20px;
  top: 17%;
}

/* ===== Cards Section ===== */
.info-cards {
  position: relative;
  margin-top: -180px;
  z-index: 5;
  cursor: pointer;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.card {
  background: #8B4513;
  border-radius: 15px;
  text-align: center;
  padding: 40px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 300px;
}

.card i {
  font-size: 40px;
  color: #ffffff;
  margin-bottom: 15px;
}

.card h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 10px;
}

.card p {
  color: #ffffff;
  font-size: 15px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


.video-info-section {
  padding: 80px 20px;
  background-color: #f8f5f0; /* خلفية فاتحة متناسقة */
}

.video-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.video-wrapper video {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-text h2 {
  font-size: 2.5rem;
  color: #8B4513;
  font-weight: 700;
  margin-bottom: 20px;
}

.info-text p {
  color: #7a5a3a;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.info-text ul {
  list-style: disc inside;
  margin-bottom: 5rem;
  color: #5A2C0A;
  margin-left: 3rem;
}
.info-text ul li{
  font-size: 1.2rem;
  font-weight: 500;
}

.info-text a.btn-primary {
  background-color: #8B4513;
  color: #fff;
  padding: 12px 25px;
  border-radius: 10px;
  text-decoration: none;
  margin-left: 3rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.info-text a.btn-primary:hover {
  background-color: #a0522d;
}


.services-detail {
  padding: 80px 20px;
  background: #f9f5f0;
  text-align: center;
}

.services-detail h2 {
  font-size: 2.5rem;
  color: #8B4513;
  margin-bottom: 15px;
}

.services-detail p {
  color: #7a5a3a;
  font-size: 1.1rem;
  margin-bottom: 3.5rem;

}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-item img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 1.5rem;
  color: #5A2C0A;
  margin-bottom: 10px;
}

.service-item ul {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 20px;
  text-align: left;
  color: #555;
}

.service-item ul li {
  margin-bottom: 8px;
}






/* ===== Tablet Styles ===== */
@media (max-width: 1024px) {

  body {
    font-size: 15px;
  }

  /* Slider */
  .slide-content {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    padding: 40px;
    width: 90%;
    text-align: center;
  }
  .slide-content h1 {
    font-size: 35px;
  }
  .slide-content h2 {
    font-size: 22px;
  }
  .slide-content p {
    font-size: 16px;
  }

  /* Cards Section */
  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 15px;
    margin-top: -120px;
  }
  .card {
    padding: 30px 15px;
    height: auto;
  }

  /* Video & Info Section */
  .video-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .video-wrapper video {
    width: 100%;
    max-height: 300px;
  }
  .info-text h2 {
    font-size: 24px;
  }
  .info-text p, .info-text ul {
    font-size: 15px;
  }

  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .service-item img {
    height: auto;
  }

  /* Header adjustments */
  .transparent-header {
    padding: 10px 15px;
  }
  .transparent-header .main-menu ul {
    gap: 20px;
  }
  .transparent-header .logo-img {
    height: 70px;
  }
}


/* ===== Mobile Styles ===== */
@media (max-width: 768px) {

  body {
    font-size: 14px;
  }

  /* Slider */
  .slide-content {
    top: 50%;
    left: 10px;
    padding: 20px;
    width: 95%;
    text-align: left;
  }
  .slide-content h1 {
    font-size: 28px;
  }
  .slide-content h2 {
    font-size: 18px;
  }
  .slide-content p {
    font-size: 14px;
  }

  /* Cards Section */
  .cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 10px;
    margin-top: -100px;
  }
  .card {
    padding: 25px 15px;
    height: auto;
  }

  /* Video & Info Section */
  .video-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .video-wrapper video {
    width: 100%;
    max-height: 250px;
  }
  .info-text h2 {
    font-size: 22px;
  }
  .info-text p, .info-text ul {
    font-size: 14px;
  }

  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Header adjustments */
  .transparent-header,
  .top-header {
    display: none; /* إخفاء الهيدر الكبير */
  }
  .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #8B4513;
  }
  .main-header .logo-header h1 {
    font-size: 1.4rem;
  }

  /* Mobile Search */
  .mobile-search-box input {
    font-size: 14px;
  }

  /* Popup */
  .popup-content {
    width: 90%;
    padding: 20px;
  }
}


/* ===== Testimonials Section ===== */
.testimonials {
  background: linear-gradient(135deg, #fdf4e3 0%, #fff 100%);
  padding: 80px 0;
  text-align: center;
}

.testimonials h2 {
  font-size: 2.5rem;
  color: #8B4513;
  margin-bottom: 15px;
  font-weight: 700;
}

.testimonials p {
  color: #7a5a3a;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  padding: 0 1rem;
}

.testimonial-item {
  background: #fffaf4;
  border: 1px solid #f2e2c4;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  background: #fff7ec;
}
.client-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d2691e;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.testimonial-item:hover .client-img {
  transform: scale(1.05);
}


.testimonial-item p {
  font-style: italic;
  color: #4b3b29;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  position: relative;
}

.testimonial-item p::before {
  content: "“";
  font-size: 2rem;
  color: #d2691e;
  position: absolute;
  left: -10px;
  top: -10px;
}

.testimonial-item p::after {
  content: "”";
  font-size: 2rem;
  color: #d2691e;
  position: absolute;
  right: -10px;
  bottom: -15px;
}

.testimonial-item h4 {
  text-align: right;
  color: #a0522d;
  font-weight: 600;
  margin-top: 1rem;
}

/* ===== Responsive Design ===== */

/* للأجهزة اللوحية (Tablet) */
@media (max-width: 992px) {
  .testimonials {
    padding: 60px 20px;
  }

  .testimonials h2 {
    font-size: 1.9rem;
  }

  .testimonials p {
    font-size: 0.95rem;
  }

  .testimonial-item {
    padding: 1.8rem;
  }
}

/* للشاشات الصغيرة والموبايل */
@media (max-width: 600px) {
  .testimonials {
    padding: 50px 15px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-item {
    padding: 1.5rem;
    text-align: left;
  }

  .testimonial-item p {
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 10px;
  }

  .testimonial-item p::before,
  .testimonial-item p::after {
    font-size: 1.5rem;
    color: #c46a1f;
  }

  .testimonial-item h4 {
    text-align: left;
    font-size: 0.95rem;
  }

  .testimonials h2 {
    font-size: 1.6rem;
  }
}


/* ===== Gallery Section ===== */
.gallery {
  background: linear-gradient(180deg, #fffaf4 0%, #fdf4e3 100%);
  padding: 100px 40px;
  text-align: center;
}

.gallery h2 {
  font-size: 2.5rem;
  color: #8B4513;
  margin-bottom: 15px;
  font-weight: 700;
}

.gallery p {
  color: #7a5a3a;
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
}

/* ===== Grid Layout ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}

/* ===== Each Image Card ===== */
.gallery-item {
  overflow: hidden;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.4s ease, filter 0.3s ease;
}

/* ===== Hover Effect ===== */
.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.9);
  cursor: pointer;
}

/* ===== Overlay Text on Hover ===== */
.gallery-item::after {
  content: "View Project";
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  background: rgba(138, 72, 24, 0.85);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.gallery-item:hover::after {
  bottom: 0;
}

input[type="text"]::placeholder {
  color: #000;
}

/* ===== Responsive Design ===== */

/* للأجهزة المتوسطة (Tablet) */
@media (max-width: 992px) {
  .gallery {
    padding: 80px 30px;
  }

  .gallery h2 {
    font-size: 2rem;
  }

  .gallery p {
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}

/* للأجهزة الصغيرة (موبايل أفقي) */
@media (max-width: 768px) {
  .gallery {
    padding: 60px 20px;
  }

  .gallery h2 {
    font-size: 1.8rem;
  }

  .gallery p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-item::after {
    font-size: 0.9rem;
  }
}

/* للموبايل الصغير جدًا */
@media (max-width: 480px) {
  .gallery {
    padding: 50px 15px;
  }

  .gallery h2 {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    border-radius: 10px;
  }

  .gallery-item img {
    border-radius: 10px;
  }

  .gallery-item::after {
    font-size: 0.85rem;
  }
}


/* ===== Shop Section ===== */
.shop-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.shop-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #8B4513;
}

.shop-section p {
  color: #7a5a3a;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}

/* ===== Shop Grid ===== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
}

/* ===== Shop Card ===== */
.shop-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 350px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.shop-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ===== Product Image ===== */
.shop-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.shop-item:hover img {
  transform: scale(1.05) rotate(-1deg);
}

/* ===== Product Info ===== */
.shop-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #8B4513;
  transition: color 0.3s ease;
}

.shop-item:hover h3 {
  color: #d2691e;
}

.shop-item p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.shop-item .price {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #d2691e;
  margin-bottom: 10px;
}

/* ===== Button ===== */
.shop-item .btn-primary {
  background: #d2691e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shop-item .btn-primary:hover {
  background: #a0522d;
  transform: scale(1.05);
}

/* Cart Modal */
.cart-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* خلفية داكنة شفافة */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px); /* ضبابية الخلفية */
  animation: fadeIn 0.4s ease forwards;
}

/* ظهور مودال */
@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.cart-content {
  background: rgba(139,69,19,0.95); /* بني شفاف يتناسب مع الموقع */
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  color: #fff;
  transform: translateY(-20px);
  animation: slideDown 0.4s ease forwards;
}

/* حركة ظهور المحتوى */
@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.cart-content h3 {
  margin-bottom: 20px;
  color: #FFDAB9; /* لون فاتح للبني */
  font-size: 1.5rem;
}

.cart-content #cartItems {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.cart-content #cartItems div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.cart-content #cartItems div:hover {
  background: rgba(255,255,255,0.2);
}

.cart-content #cartItems button {
  background: #A0522D;
  border: none;
  padding: 4px 8px;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cart-content #cartItems button:hover {
  background: #8B4513;
  transform: scale(1.05);
}

.cart-content p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFDAB9;
  margin-bottom: 15px;
}

.cart-content .btn-primary {
  background: #D2691E;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-content .btn-primary:hover {
  background: #A0522D;
  transform: scale(1.05);
}

.close-cart {
  position: absolute;
  top: 12px; right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #FFDAB9;
  transition: transform 0.3s ease;
}

.close-cart:hover {
  transform: rotate(90deg);
}


/* Checkout Modal */
.checkout-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.4s ease forwards;
}

.checkout-content {
  background: rgba(139,69,19,0.95);
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  text-align: left;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  color: #fff;
  animation: slideDown 0.4s ease forwards;
}

.checkout-content h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #FFDAB9;
  font-size: 1.6rem;
}

.checkout-content .form-group {
  margin-bottom: 15px;
}

.checkout-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #FFDAB9;
}

.checkout-content input,
.checkout-content textarea,
.checkout-content select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.checkout-content p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFDAB9;
  margin: 15px 0;
  text-align: right;
}

.checkout-content .btn-primary {
  background: #D2691E;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.checkout-content .btn-primary:hover {
  background: #A0522D;
  transform: scale(1.05);
}

.close-checkout {
  position: absolute;
  top: 12px; right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #FFDAB9;
  transition: transform 0.3s ease;
}

.close-checkout:hover {
  transform: rotate(90deg);
}



/* ===== Responsive ===== */
/* Tablets */
@media (max-width: 1024px) {
  .shop-grid {
    gap: 1.5rem;
  }
  .shop-item img {
    height: 160px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .shop-section h2 {
    font-size: 1.7rem;
  }
  .shop-section p {
    font-size: 0.95rem;
  }
  .shop-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
  .shop-item img {
    height: 140px;
  }
  .shop-item h3 {
    font-size: 1rem;
  }
  .shop-item p {
    font-size: 0.85rem;
  }
  .shop-item .price {
    font-size: 1rem;
  }
  .shop-item .btn-primary {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}


/* ===== Contact Section ===== */
.contact {
  background: #ffffff; /* خلفية بيضاء */
  padding: 100px 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.contact h2 {
  font-size: 2.5rem;
  color: #8B4513;
  margin-bottom: 15px;
  font-weight: 700;
}

.contact p {
  color: #7a5a3a;
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
}

/* ===== Grid Layout ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

/* ===== Contact Info Card ===== */
.beautiful-contact {
  background: linear-gradient(145deg, #fdf5e6, #f7e8d0);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-left: 6px solid #a0522d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beautiful-contact:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.beautiful-contact h3 {
  color: #5a2c0a;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.beautiful-contact h3 i {
  color: #a0522d;
}

.beautiful-contact p {
  font-size: 1rem;
  color: #4b3b29;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.beautiful-contact p i {
  color: #a0522d;
  font-size: 1.1rem;
}

.beautiful-contact a {
  color: #4b3b29;
  text-decoration: none;
  transition: color 0.3s ease;
}

.beautiful-contact a:hover {
  color: #a0522d;
}

/* ===== Social Icons ===== */
.contact-social {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a0522d;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* أيقونات الهاتف فقط في popup-links والهيدر */
.popup-links a[href^="tel"] i,
.top-left a[href^="tel"] i {
  transform: scaleX(-1);   /* يعكس الأيقونة أفقيًا */
  display: inline-block;    /* لضمان عمل التحويل */
  margin-right: 10px;       /* مسافة بين الأيقونة والنص */
}


.contact-social a:hover {
  color: #ffffff;
   background: #d2691e;
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(255, 204, 138, 0.5);
}

/* ===== Contact Form Card ===== */
.contact-form form {
  background: linear-gradient(145deg, #fff8f0, #fdf4e3); /* لون البطاقة */
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  border: 1px solid #f1e3d1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #a0522d;
  box-shadow: 0 0 6px rgba(160, 82, 45, 0.3);
  outline: none;
}

.contact-form button {
  background-color: #8B4513;
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #c46a1f;
  transform: translateY(-3px);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .beautiful-contact,
  .contact-form form {
    padding: 2rem;
  }

  .contact h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .contact {
    padding: 70px 15px;
  }

  .contact h2 {
    font-size: 1.8rem;
  }

  .contact p {
    font-size: 1rem;
  }

  .beautiful-contact,
  .contact-form form {
    padding: 1.8rem;
    border-radius: 15px;
  }

  .contact-form button {
    width: 100%;
    padding: 1rem;
  }
}

/* ===== Footer Section ===== */
.footer {
  background: #8B4513;
  color: #fff;
  padding: 60px 20px 25px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* ===== Logo & About ===== */
.footer-about {
  text-align: left;
}

.footer-about img {
  width: 100px;
  height: 100px;
  cursor: pointer;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-bottom: 1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover effect on logo */
.footer-about img:hover {
  transform: translateX(-15px) rotate(-5deg) scale(1.15); /* تحرك لليسار ويدور لليسار */
  box-shadow: 0 0 15px rgba(255, 204, 138, 0.6);
}


.footer-about p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #fff;
}

/* ===== Social Icons ===== */
.footer-social {
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1s ease forwards;
  animation-delay: 0.5s;
}

.footer-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #d2691e;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(255, 204, 138, 0.5);
}

/* Social animation delay per icon */
.footer-social a:nth-child(1) { animation-delay: 0.6s; }
.footer-social a:nth-child(2) { animation-delay: 0.8s; }
.footer-social a:nth-child(3) { animation-delay: 1s; }
.footer-social a:nth-child(4) { animation-delay: 1.2s; }

/* Animation Keyframes */
@keyframes slideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== Links ===== */
.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact a {
  display: inline-flex; /* بديل inline-block ويدعم align-items */
  align-items: center;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  transform-origin: left center; /* يمنع الاهتزاز عند التكبير */
}

.footer-contact a:hover {
  color: #ffcc8a;
  transform: scale(1.1); /* خفّضتها قليلاً ليبدو أنعم */
}


.footer-contact i {
  color: #ffcc8a;
  margin-right: 10px;
}


.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  display: inline-flex; /* يسمح بمحاذاة أفضل ويدعم transform */
  align-items: center;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease, padding-left 0.3s ease;
  transform-origin: left center; /* يمنع اهتزاز التكبير */
}

.footer-links a:hover {
  color: #ffcc8a;
  padding-left: 5px;  /* نفس الحركة السابقة */
  transform: scale(1.1); /* نفس تأثير التكبير */
}


/* ===== Contact ===== */
.footer-contact p {
  margin-bottom: 0.6rem;
  color: #fff;
  font-size: 0.95rem;
}

.footer-contact i {
  color: #ffcc8a;
  margin-right: 10px;
}

/* ===== Newsletter ===== */
.footer-newsletter p {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-newsletter form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: #333;
}

.footer-newsletter button {
  background: #a0522d;
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-newsletter button:hover {
  background: #7a3b17;
}

/* ===== Bottom Footer ===== */
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

/* Dev Art link */
.footer-bottom .dev-link {
  display: inline-block;
  color: #ffcc8a;
  text-decoration: none;
  font-weight: 600;
  margin-left: 15px;
  transition: color 0.3s ease, text-shadow 0.4s ease, transform 0.3s ease;
}

.footer-bottom .dev-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 204, 138, 0.8);
  transform: scale(1.2);
}

.footer-bottom .heart {
  display: inline-block;
  margin-left: 6px;
  font-size: 1.2rem;
  transform-origin: center;
  animation: pulse 1s infinite ease-in-out, colorShift 2s infinite alternate;
}

/* نبض سلس */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* تدرج ألوان متلألئ */
@keyframes colorShift {
  0% { color: #ff4b5c; }
  50% { color: #ffcc8a; }
  100% { color: #ff4b5c; }
}


/* ===== Footer Mobile Optimized ===== */

.footer-about {
  text-align: center; /* محاذاة النصوص واللوغو للنصف */
}

.footer-about img {
  width: 100px;
  height: 100px;
  cursor: pointer;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  margin: 0 auto 0.8rem; /* وسط الصورة */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.footer-about img:hover {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 0 15px rgba(255, 204, 138, 0.6);
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #fff;
}

/* ===== Social Icons Center ===== */
.footer-social {
  display: flex;
  justify-content: center; /* وسط الأيقونات */
  gap: 10px;
  margin-top: 0.5rem;
}

.footer-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #d2691e;
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(255, 204, 138, 0.5);
}

/* ===== Footer Mobile & Tablet Optimized ===== */
@media (max-width: 768px) {
  .footer {
    padding: 40px 15px 20px;
    font-size: 0.85rem;
    text-align: center;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  /* Logo */
  .footer-about {
    text-align: center;
  }
  .footer-about img {
    width: 70px;
    height: 70px;
    margin-bottom: 0.5rem;
  }
  .footer-about p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  /* Social Icons */
  .footer-social {
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .footer-social a {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* Columns: Links, Contact, Newsletter */
  .footer-links, 
  .footer-contact, 
  .footer-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* فراغ بين العناصر */
  }

  .footer-links h3,
  .footer-contact h3,
  .footer-newsletter h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .footer-links li,
  .footer-contact p,
  .footer-newsletter p {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .footer-links a {
    display: inline-block;
    color: #fff;
    transition: color 0.3s ease, padding-left 0.3s ease;
  }
  .footer-links a:hover {
    color: #ffcc8a;
    padding-left: 4px;
  }

  /* Newsletter form */
  .footer-newsletter form {
    flex-direction: column;
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    overflow: hidden;
  }
  .footer-newsletter input,
  .footer-newsletter button {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0;
  }
  .footer-newsletter button {
    border-radius: 0 0 10px 10px;
    margin-top: 0.2rem;
  }

  /* Footer bottom */
  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .footer-about img {
    width: 60px;
    height: 60px;
  }
  .footer-about p,
  .footer-links li,
  .footer-contact p,
  .footer-newsletter p {
    font-size: 0.75rem;
  }
  .footer-newsletter input,
  .footer-newsletter button {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
  .footer-bottom {
    font-size: 0.7rem;
  }
}



/* ===== Scroll to Top Button ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #8B4513;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  color: #fff; /* لون الأيقونة */
}

#scrollTopBtn:hover {
  transform: scale(1.1);
  background: linear-gradient(145deg, #D2691E, #A0522D); /* خلفية عند الهور */
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
  border-color: #FFA500; /* لون الإطار عند الهور */
  color: #fff;
}


