/* @import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

* {
  margin: 0;
  padding: 0%;
  box-sizing: border-box;
}


body {
  font-family: "Playfair Display", serif;
  background-color: rgb(242, 233, 221);
}

h2,
h3 {
  color: rgb(40, 40, 40);
}

p {
  font-size: 14px;
  color: rgb(0, 0, 115);
}

.contener {
  max-width: 1100px;
  margin: auto;
  
}

#menu {
  padding: 3rem ;
}

#menu .hadeing {
  text-align: center;
}
#menu .hadeing h2 {
  font-weight: 10;
  font-size: 32px;
}
#menu .hadeing p {
  font-size: 11px;
  padding: 5px 0;
}

#menu .hadeing .menu-btns {
  margin-top: 3px;
  margin: 2rem 0;
}

#menu .hadeing .menu-btns .btn {
  margin: 0 5px;
  border-radius: 15px;
  padding: 8px 12px;
  border: none;
  color: rgb(255, 255, 255);
  background-color: rgb(4, 39, 70);
  cursor: pointer;
  font-size:13px;
}

#menu .row{
    display: grid;
    grid-template-columns:repeat(2 , 1fr);
    gap: 0 3rem ;
}

#menu .row .m-itm{

    display: flex;
    margin: 35px 0;
}
#menu .row .m-itm img{
    width: 90px;
    height: 90px;
    border-radius: 30px;
    object-fit: cover;
    margin: 0 15px;
}

#menu .row .itm-c h3{
    font-size: 20px;
    font-weight: 500;
    position: relative;
    border-bottom: 1px dashed gray;
    padding-bottom: 7px;
    margin-bottom: 10px;
}

#menu .row .itm-c h3 span{
    position: absolute;
    right: 0;

} */

/* -------- CSS الأساسي -------- */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: "Playfair Display", serif;
  background-color: rgb(242, 233, 221);
  padding: 2rem;

} */

body {
  font-family: "Playfair Display", serif;
  background-color: rgb(242, 233, 221);
  margin: 0;       /* تأكد ماكو margin افتراضي */
}

h2, h3 {
  color: rgb(40, 40, 40);
}

p {
  font-size: 14px;
  color: rgb(0, 0, 115);
}

.contener {
  max-width: 1100px;
  margin: auto;
}

#menu {
   padding: 3rem 2rem; /* يخلي مسافة داخلية للمنيو فقط */
}

#menu .hadeing {
  text-align: center;
}

#menu .hadeing h2 {
  font-weight: 10;
  font-size: 32px;
}

#menu .hadeing p {
  font-size: 11px;
  padding: 5px 0;
}

#menu .hadeing .menu-btns {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.menu-btns .btn {
  margin: 5px;
  border-radius: 15px;
  padding: 8px 16px;
  border: none;
  color: white;
  background-color: rgb(4, 39, 70);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.menu-btns .btn:hover {
  background-color: rgb(10, 60, 100);
  transform: scale(1.05);
}

.menu-btns .btn.active {
  background-color: #c69c6d;
  color: rgb(179, 67, 67);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#menu .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

#menu .row .coll {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#menu .row .m-itm {
  display: flex;
  gap: 15px;
  cursor: pointer;
  padding: 10px;
  border-radius: 15px;
  transition: all 0.3s ease;
 
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.m-itm.fade-in {
  opacity: 1;
}


.fade-in {
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#menu .row .m-itm:hover {
  background-color: rgba(4, 39, 70, 0.07);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#menu .row .m-itm img {
  width: 90px;
  height: 90px;
  border-radius: 30px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#menu .row .m-itm img:hover {
  transform: scale(1.1);
}

#menu .row .itm-c h3 {
  font-size: 20px;
  font-weight: 500;
  position: relative;
  border-bottom: 2px solid #264653;
  padding-bottom: 7px;
  margin-bottom: 10px;
}

#menu .row .itm-c h3 span {
  position: absolute;
  right: 0;
  color: #e76f51;
  font-weight: 700;
}

/* --- Animation --- */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ✅ عند إظهار العنصر */
.m-itm.show {
  display: flex;
  opacity: 0;
  transform: scale(1);
  transition: all 0.3s ease;
}

/* ✅ عند إخفاء العنصر */
.m-itm.hide {
  display: none;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

/* ✅ تمييز الزر النشط */
.menu-btns .btn.active {
  background-color: #c69c6d; /* لون مختلف */
  color: rgb(255, 255, 255);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}


/* -------- Popup -------- */
.popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.popup-content {
  background: #fff;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  max-height: 90vh;
  overflow-y: auto;
}

.popup-content img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.popup-content h3 {
  margin: 10px 0 5px;
  color: #264653;
  font-size: 24px;
}

.popup-content p {
  margin: 5px 0;
  color: #333;
  font-size: 16px;
}

.popup .close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  font-weight: bold;
  user-select: none;
  transition: color 0.3s ease;
}

.popup .close:hover {
  color: #e76f51;
}

/* -------- Responsive Fixes -------- */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .contener {
    padding: 0 10px;
  }

  #menu {
    padding: 3rem 2rem;
  }

  #menu .hadeing h2 {
    font-size: 24px;
  }

  #menu .hadeing p {
    font-size: 12px;
  }

  #menu .hadeing .menu-btns {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  #menu .hadeing .menu-btns .btn {
    width: 90%;
    padding: 12px;
    font-size: 15px;
  }

  #menu .row .m-itm {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  #menu .row .itm-c h3 {
    font-size: 18px;
  }

  #menu .row .itm-c p {
    font-size: 13px;
  }

  .popup-content h3 {
    font-size: 22px;
  }

  .popup-content p {
    font-size: 14px;
  }
}

html {
  scroll-behavior: smooth;
}
/*----------------------------------------------------

/* -------- Navbar -------- */

.navbar {
  background: rgba(4, 39, 70, 0.9);
  color: white;
  padding: 15px 20px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, opacity 0.4s ease;
}

/* حالة عند التمرير */
.navbar.scrolled {
  background: rgba(4, 39, 70, 0.2); /* اجعل الخلفية شبه شفافة */
  opacity: 0.9; /* يمكن تغيير الشفافية حسب رغبتك */
}

.nav-cont {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #f3efef;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #c69c6d;
}



/* -------- Burger icon -------- */
.burger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1100; /* فوق الناف بار */
}

.burger span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  left: 0;
  transition: all 0.4s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

/* عند التفعيل (تحول إلى X) */
.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* -------- Responsive Navbar -------- */
@media (max-width: 768px) {
  .burger { display: block; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: rgba(4, 39, 70, 0.95);
    padding: 20px 0;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
  }

  .nav-links li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
}




/* -------- Home Section -------- */
/* -------- Home Section -------- */
.home {
  background: url("./image/bg2.jpeg") no-repeat center center;
  background-size: cover;    /* تغطي كامل الشاشة */
  min-height: 100vh;         /* طول الشاشة بالكامل */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  padding: 0 15px;
  margin: 0;
  width: 100%;
}

.home::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* طبقة شفافة لتوضيح النص */
}

/* محتوى home */
.home .contener {
  position: relative;
  z-index: 2;
}

.home h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

.home p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #fff;
}

.home-btn {
  background: #c69c6d;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-btn:hover {
  background: #a67845;
}

/* -------- Footer -------- */
.footer {
  background: url("./image/footer2.jpeg") no-repeat center center;
  background-size: cover;
  color: white;
  padding: 60px 20px 30px;
  width: 100%;
  margin: 0;
  position: relative;
}


.footer-cont {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 أعمدة متساوية */
  gap: 100px;
  text-align: left; /* رجع النص لليسار بشكل افتراضي */
}

/* العمود الأول About Us */
.footer-col:first-child {
  text-align: left;
}

/* العمود الثاني Quick Links */
.footer-col:nth-child(2) {
  text-align: center;
}

/* العمود الثالث Contact Info */
.footer-col:last-child {
  text-align: left;
}


.footer-col h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #c69c6d;
}

.footer-col p,
.footer-col ul li a {
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
  
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 8px 0;
}

.footer-col ul li a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #e76f51;
}

.footer .socials a {
  display: inline-block;
  margin: 5px;
  font-size: 20px;
  color: white;
  transition: transform 0.3s;
}

.footer .socials a:hover {
  color: #c69c6d;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  color: #ccc;
}

/* -------- Home Section Responsive -------- */
.home {
  background: url("./image/bg2.jpeg") no-repeat center center;
  background-size: cover;    
  min-height: 100vh;         
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  padding: 0 15px;
  margin: 0;
  width: 100%;
}

.home::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* Dynamic background adjustments for different devices */
@media (max-width: 1200px) {
  .home {
    background-position: center top;
  }
}
@media (max-width: 992px) {
  .home {
    background-position: center top;
    background-size: cover;
  }
}
@media (max-width: 768px) {
  .home {
    background-position: center top;
    background-size: cover;
  }
}
@media (max-width: 480px) {
  .home {
    background-position: center top;
    background-size: cover;
  }
}


@media (max-width: 768px) {
  .home {
    background: url("./image/bg2.jpeg") no-repeat center center;
    background-size: cover;   /* تغطي كامل الشاشة */
    background-attachment: scroll; /* منع التثبيت على الموبايل */
  }
}

@media (max-width: 480px) {
  .home {
    background: url("./image/bg2.jpeg") no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
  }
}






/* -------- Footer Section Responsive -------- */
.footer {
  background: url("./image/footer2.jpeg") no-repeat center center;
  background-size: cover;
  color: white;
  padding: 60px 20px 30px;
  width: 100%;
  margin: 0;
  position: relative;
}

/* Dynamic background adjustments for footer */
@media (max-width: 1200px) {
  .footer {
    background-position: center top;
  }
}



/* ---------------- Responsive Footer ---------------- */

/* لو الشاشة أقل من 992px (تابلت) خلي الأعمدة عمودين */
@media (max-width: 992px) {
  .footer-cont {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
  .footer-col:first-child {
    text-align: center;
  }
  .footer-col:last-child {
    text-align: center;
  }
}

/* لو الشاشة أقل من 600px (موبايل صغير) خليهم تحت بعض عمود واحد */
@media (max-width: 600px) {
  .footer-cont {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-col {
    text-align: center !important;
  }
}




