/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== Header ===== */
header {
  background: #2c3e50;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.logo-img {
  height: 55px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Nav ===== */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f39c12;
}

/* ===== Language Switcher with Flags ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch .flag {
  width: 28px;
  height: 20px;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: transform 0.3s, border 0.3s;
}

.lang-switch .flag:hover {
  transform: scale(1.1);
}

.lang-switch .flag.active {
  border: 2px solid #f39c12;
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.7);
}

/* ===== Hamburger Menu ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1100;
}

/* ===== Hero Section ===== */
.hero {
  background: url('header.jpg') no-repeat center center/cover;
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.7), rgba(44,62,80,0.6));
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeInUp 1.2s ease-in-out forwards;
}

.hero-text h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero-text p {
  margin-bottom: 25px;
  font-size: 1.25rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #f39c12, #d35400);
  color: #fff;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #d35400, #f39c12);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: #2c3e50;
  position: relative;
}

.section h2 i {
  margin-right: 8px;
  color: #f39c12;
}

.section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #f39c12;
  margin: 12px auto 0;
  border-radius: 3px;
}

.section p {
  text-align: center;
  max-width: 800px;
  margin: auto;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.7;
}

.gray-bg {
  background: #f4f6f7;
}

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.4s, box-shadow 0.4s;
  text-align: center;
  opacity: 0;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.card i {
  color: #f39c12;
  margin-bottom: 12px;
  display: block;
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.map-container {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== Contact Section ===== */
.contact-section {
  background: #f9f9f9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-card {
  background: #fff;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.4s;
}

.contact-card:hover {
  transform: translateY(-8px);
}

.contact-card h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #2c3e50;
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-card input, 
.contact-card textarea {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
}

.contact-card input:focus, 
.contact-card textarea:focus {
  border: 1px solid #f39c12;
  outline: none;
}

.contact-card button {
  background: linear-gradient(135deg, #f39c12, #d35400);
  border: none;
  color: #fff;
  padding: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.contact-card button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #d35400, #f39c12);
}

.contact-card p {
  margin: 12px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.contact-card p i {
  color: #f39c12;
  margin-right: 12px;
  font-size: 1.2rem;
}

.contact-card a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-card a:hover {
  color: #f39c12;
}

/* ===== Social Icons ===== */
.social-icons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-icons a {
  font-size: 1.8rem;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.social-icons .fa-instagram {
  color: #E1306C;
}

.social-icons .fa-whatsapp {
  color: #25D366;
}

/* ===== Footer ===== */
footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
  font-size: 0.95rem;
}

.footer-social {
  margin-top: 12px;
  justify-content: center;
}

/* ===== RTL Support ===== */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .nav-links {
  flex-direction: row-reverse;
}

body.rtl .about-grid {
  grid-template-columns: 1fr 1fr;
}

body.rtl .contact-card p {
  justify-content: flex-end;
}

body.rtl .contact-card i {
  margin-right: 0;
  margin-left: 12px;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive (Mobile Nav) ===== */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 230px;
    background: #2c3e50;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    animation: slideDown 0.4s ease forwards;
  }

  nav.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    color: #fff;
    font-size: 1rem;
    display: block;
    padding: 8px 0;
  }

  .menu-toggle {
    display: block;
  }

  /* Lang switch inside mobile menu */
  .lang-switch {
    margin-top: 15px;
    justify-content: center;
  }

  /* RTL Fixes for Mobile */
  body.rtl nav {
    right: auto;
    left: 20px;
  }

  body.rtl .nav-links {
    text-align: right;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    text-align: center;
  }

  .contact-card p {
    justify-content: center;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
