/* === الأساسيات العامة === */
body {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
  background-color: #f9f9f9; 
}

  margin: 0;
  padding: 0;
  line-height: 1.8;
  overflow-x: hidden;
}

/* === رأس الصفحة === */
header {
  background-color: #004d7a;
  color: #fff;
  padding: 20px;
  text-align: center;
}

/* === القائمة === */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 10px 0 0;
}

nav a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}
/* === الواجهة الرئيسية === */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f4f0;
  padding: 20px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: 'Cairo', sans-serif;
}
.nav-menu a {
  margin-left: 20px;
  color: #6c4f3d;
  text-decoration: none;
  font-weight: bold;
}
.nav-menu a:hover {
  color: #bfa27c;
}


/* === الأقسام العامة === */
section {
  padding: 40px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInSection 1s ease forwards;
}

section:hover {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

@keyframes fadeInSection {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === قسم البطل === */
.hero {
  height: 100vh; /* يجعل القسم يغطي كامل الشاشة */
  background-image: url('https://i.ibb.co/snXDxkG/main-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero {
  min-height: 100vh;
  padding: 100px 20px;
}



/* === الشبكة والبطاقات === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.grid div {
  background-color: #e0e0e0;
  padding: 15px;
  border-radius: 10px;
}

.card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 250px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

/* === المعرض === */
.gallery-section {
  background-color: #fff;
  padding: 60px 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.gallery img {
  display: block;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}

/* === شريط العروض المتحرك === */
.marquee.services,
.marquee.offers {
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: bold;
  font-size: 16px;
}

.marquee.offers {
  background-color: #002b5b;
  color: #f4c542;
  padding: 12px 0;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-top: 2px solid #f4c542;
  border-bottom: 2px solid #f4c542;
}

.marquee.offers p {
  display: inline-block;
  padding-left: 100%;
  animation: scrollOffers 18s linear infinite;
}

@keyframes scrollOffers {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* === قسم اتصل بنا === */
#contact-info {
  background-color: #f0f4f8;
  padding: 40px 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: auto;
}

.contact-box {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  color: #004d7a;
  line-height: 1.8;
}

.contact-box input,
.contact-box textarea {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-box button {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.contact-box button:hover {
  background-color: #1ebe5d;
}

.contact-box a {
  color: #004d7a;
  text-decoration: none;
  font-weight: bold;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* === التذييل === */
footer {
  background-color: #004d7a;
  color: #fff;
  text-align: center;
  padding: 10px;
}

/* === تحسين العرض على الجوال === */
@media (max-width: 768px) {
nav ul {
  display: none;
}

nav.active ul {
  display: flex;
}


  nav li {
    margin: 5px 0;
  }

  .main-header {
    height: auto;
    padding: 20px;
  }

  .main-header .overlay {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
  }

 .gallery img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px #aaa;
}


  .marquee.offers p {
    font-size: 16px;
  }
}


