@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

* {
    font-family: 'Amiri', serif !important;
}
* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #0f1b2d;
  color: #fff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #0b1625;
}

header img {
  height: 55px;
}

nav a {
  color: #ccc;
  margin-left: 20px;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #fff;
}

.lang-btn {
  margin-left: 20px;
  background: #1c2f4a;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #0f1b2d, #1c2f4a);
}

.section {
  padding: 60px 20px;
  text-align:center;
}
.contact-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-direction: row-reverse;
}

.contact-row div {
    display: flex;
    align-items: center;
    gap: 30px;
    color: white;
}

.section.dark {
  background: #111f33;
}

.muted {
  color: #aaa;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.service-card {
  background: #1c2f4a;
  padding: 40px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.service-card img {
  width: 100%;       /* يجعل الصورة تغطي عرض البطاقة بالكامل */
  max-width: 250px;  /* أقصى عرض للصورة */
  height: 200px;      /* يحافظ على نسبة الطول/العرض */
  object-fit: cover;
  display: inline-block;    /* يمنع المسافات غير المرغوبة أسفل الصورة */
  margin: 20px; /* يضع مسافة تحت الصورة ويجعلها في الوسط */
  border-radius: 8px; /* اختياري: حواف دائرية */
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: 0.4s;
}

.service-card:hover::after {
  opacity: 1;
}

footer {
  background: #0b1625;
  padding: 20px;
  text-align: center;
  color: #aaa;
}

/* Floating buttons */
.floating {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whatsapp {
  background: #25d366;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
}
.faceboook {
  background: #25a2d3;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
}
.instgram{
  background: #a3125a;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
}

.social {
  background: #000000;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
}
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
.service-card img {
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.logo-slider {
  position:relative;
  width: 300px;
  height: 200px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
}

.logo-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1s ease;
}

.logo-slider img.active {
  opacity: 1;
  transform: scale(1);
}
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    touch-action: pan-y;
}

.contact-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: clamp(10px, 3vw, 14px);
}

img {
    max-width: 100%;
    height: auto;
}
* {
    box-sizing: border-box;
    letter-spacing: normal;
    word-spacing: normal;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    direction: rtl;
}

header, nav {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 5%;
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-button, #lang-switch {
    display: inline-block;
    margin: 0 10px;
    padding: 5px 12px;
    white-space: nowrap;
}

.contact-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    flex-wrap: nowrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

@media screen and (max-width: 480px) {
    .contact-item {
        font-size: 11px;
    }
    .nav-menu {
        gap: 8px;
    }
}