/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@700&display=swap');

/* القواعد العامة */
body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  scroll-behavior: smooth;
}

h1, h2, .logo {
  font-family: 'Tajawal', sans-serif;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #2e2e2e;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 1s ease-in-out;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  color: #ff9900;
  margin: 0;
}

.logo img {
  height: 40px;
  width: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ff9900;
}

/* زر تغيير اللغة */
.language-switch {
  background-color: #ff9900;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.language-switch:hover {
  background-color: #e67e00;
}

/* Hero Section */
.hero-text {
  position: relative;
  background: url('img2.jpg') center center / cover no-repeat;
  padding: 120px 20px;
  border-radius: 10px;
  color: white;
  text-align: center;
  overflow: hidden;
  margin-top: 90px; /* مهم حتى لا يتم تغطيته بالnavbar */
}

.hero-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  border-radius: 10px;
}

.hero-text h2,
.hero-text p {
  position: relative;
  z-index: 2;
}

.hero-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.4rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
}

/* الأقسام العامة */
.about-section,
.contact-section,
.services {
  background-color: #fff;
  padding: 50px 0;
  animation: fadeIn 1s ease-out;
}

.about-section h2,
.contact-section h2,
.services h2 {
  text-align: center;
  color: #ff9900;
  font-size: 2rem;
  margin-bottom: 30px;
}

.about-section p,
.contact-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
}

/* Services */
.services ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.services li {
  background-color: #f1f1f1;
  padding: 20px;
  border-left: 5px solid #ff9900;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
}

.services li:hover {
  background-color: #ffe8cc;
  transform: translateY(-5px);
}

/* Footer */
footer {
  background-color: #2e2e2e;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  margin-top: 30px;
  animation: fadeIn 1.5s ease-in;
}

/* Icons Strip */
.icon-strip {
  background-color: #fff;
  padding: 30px 0;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

.icons-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.icons-row img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.icons-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .services ul {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .icons-row {
    gap: 20px;
    justify-content: center;
  }

  .icons-row img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .hero-text {
    padding: 90px 10px;
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo img {
    height: 30px;
    width: 30px;
  }

  .services li {
    padding: 15px;
    font-size: 0.95rem;
  }
}

/* ============ HAMBURGER MENU ============ */

.hamburger {
  font-size: 2rem;
  color: white;
  cursor: pointer;
  display: none;
}

/* القائمة تكون مخفية على الشاشات الصغيرة */
.nav-links {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #2e2e2e;
    width: 250px;
    padding: 20px;
    border-radius: 10px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    color: white;
    padding: 10px 0;
  }

  .nav-links li a:hover {
    color: #ff9900;
  }
}

.hamburger {
  font-size: 2rem;
  color: white;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #2e2e2e;
    width: 250px;
    padding: 20px;
    border-radius: 10px;
    z-index: 999;
  }

  [dir="rtl"] .nav-links {
    right: auto;
    left: 20px; /* لعكس الاتجاه عند العربية */
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    color: white;
    padding: 10px 0;
  }

  .nav-links li a:hover {
    color: #ff9900;
  }
}

.hero-text {
  animation: zoomInBackground 10s ease-in-out infinite alternate;
}

/* Animation Keyframes */
@keyframes zoomInBackground {
  0% {
    background-size: 100%;
  }
  100% {
    background-size: 110%;
  }
}
