/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #f8d77d;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(8px);
}

.logo {
  font-size: 1.7em;
  font-weight: 700;
  color: #f8d77d;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #f8d77d;
  font-weight: 500;
  transition: 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: #f8d77d;
  transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.lang-toggle {
  cursor: pointer;
  background: #f8d77d;
  color: #000;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: bold;
  transition: 0.3s;
}

.lang-toggle:hover {
  background: white;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
              url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1600&q=80') center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 2s ease forwards;
}

.hero-content {
  max-width: 700px;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 15px;
  animation: slideUp 1.5s ease forwards;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #f8d77d;
}

.hero p {
  color: #fff;
  margin-bottom: 30px;
}

.btn {
  background: #f8d77d;
  color: #000;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 700;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.1);
  background: #fff;
}

/* ===== PAGE LAYOUT ===== */
.page {
  padding: 100px 10%;
  text-align: center;
  animation: fadeIn 1.5s ease forwards;
}

.page h1 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #f8d77d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== CARDS (SERVICES) ===== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  background: #111;
  border: 1px solid #f8d77d;
  border-radius: 15px;
  padding: 20px;
  width: 300px;
  text-align: center;
  transition: 0.4s;
  animation: zoomIn 1s ease forwards;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* ===== MISSION ===== */
.mission-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}

.mission-box, .vision-box {
  width: 40%;
  min-width: 280px;
  background: #111;
  border: 1px solid #f8d77d;
  border-radius: 15px;
  padding: 40px;
  transition: 0.4s;
  animation: fadeUp 1.2s ease;
}

.mission-box:hover, .vision-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* ===== PARTNERS ===== */
.wide-img {
  width: 90%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
  animation: zoomIn 1.5s ease;
}

/* ===== FOOTER ===== */
footer {
  background: #111;
  padding: 25px;
  text-align: center;
  color: #f8d77d;
  border-top: 1px solid #f8d77d;
  margin-top: 80px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 850px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #111;
    padding: 20px;
    border: 1px solid #f8d77d;
    border-radius: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-icon {
    display: block;
    cursor: pointer;
    font-size: 25px;
    color: #f8d77d;
  }

  .mission-box, .vision-box {
    width: 90%;
  }
}
.menu-icon { display: none; }

.page {
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(to bottom, #000000, #1a1a1a);
  color: white;
}

.page-title {
  color: gold;
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-shadow: 0 0 10px rgba(255,215,0,0.6);
  animation: fadeInDown 1s ease-in-out;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

/* Service Card Design */
.card {
  background: #111;
  border: 2px solid gold;
  border-radius: 15px;
  padding: 20px;
  transition: all 0.4s ease;
  box-shadow: 0 0 15px rgba(255,215,0,0.1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(255,215,0,0.4);
}

.card img {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 15px;
}

.card h2 {
  color: gold;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.5;
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s forwards;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== Navbar Base ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color: gold;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

/* ===== Logo ===== */
.navbar .logo {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===== Navigation Links ===== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
}

.nav-links a {
  color: gold;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

/* ===== Language Button (inside navbar) ===== */
.lang-btn {
  background: gold;
  color: black;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: white;
  color: black;
  transform: scale(1.05);
}

/* ===== Hamburger Icon ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: gold;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    width: 230px;
    padding: 30px 0;
    text-align: center;
    gap: 20px;
    border-left: 2px solid gold;
    border-bottom: 2px solid gold;
    border-radius: 12px 0 0 12px;
    transition: right 0.4s ease-in-out;
  }

  .nav-links.show {
    right: 0;
  }

  .lang-btn {
    width: 80px;
    margin: 0 auto;
  }
}

/* ===== Animate Hamburger ===== */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


/* ===== Hamburger Menu ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: gold;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* ===== Mobile Mode ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    width: 220px;
    text-align: center;
    padding: 25px 0;
    gap: 20px;
    border-left: 2px solid gold;
    border-bottom: 2px solid gold;
    border-radius: 10px 0 0 10px;
    transition: right 0.4s ease-in-out;
  }

  .nav-links.show {
    right: 0;
  }
}

/* ===== Animate Hamburger ===== */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Language Button */
.lang-btn {
  background: gold;
  color: black;
  border: none;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.lang-btn:hover {
  background: white;
}

/* Arabic Mode (Right-to-Left) */
html[lang="ar"] {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .nav-links {
  text-align: right;
}

html[lang="ar"] .navbar {
  flex-direction: row-reverse;
}

html[lang="ar"] .menu-toggle {
  margin-left: 15px;
  margin-right: 0;
}


