/* ================= RESET & VARIABLES ================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
  --primary: #0f5f3a;
  --primary-dark: #0a4229;
  --primary-light: #168a54;
  --secondary: #f7931e;
  --secondary-hover: #d67d14;
  --dark: #1a1a1a;
  --light: #ffffff;
  --gray: #f8f9fa;
  --text-muted: #666;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.2);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--dark);
  background: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

body.en {
  direction: ltr;
  text-align: left;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= TYPOGRAPHY ================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.3;
}

.section-tag {
  color: var(--secondary);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 15px;
  position: relative;
  padding-left: 15px;
}

/* ================= NAVIGATION ================= */
/* ================= NAVIGATION ================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  background: transparent;
}

header.scrolled {
  padding: 15px 0;
  background: hsla(0, 0%, 100%, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 50px;
  width: auto;
  transition: var(--transition);
}

header.scrolled .logo img {
  max-height: 45px;
}

/* Menu Toggle Details */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

header.scrolled .menu-toggle {
  color: var(--dark);
}

/* Navigation Links */
nav ul {
  display: flex;
  gap: 35px;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}

/* Language Switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.lang-btn {
  opacity: 0.5;
  transition: var(--transition);
  filter: grayscale(100%);
}

.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
}

header.scrolled .separator {
  color: rgba(0, 0, 0, 0.2);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 100%;
}

header.scrolled nav a {
  color: var(--dark);
}

header.scrolled nav a:hover {
  color: var(--primary);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-md);
    padding: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.5s ease-in-out;
  }

  nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  nav a {
    color: var(--dark) !important;
  }
}

/* ================= HERO SECTION ================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(15, 95, 58, 0.9), rgba(10, 30, 20, 0.8)), url('hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--light), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 25px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= BUTTONS ================= */
.btn {
  padding: 16px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(45deg, var(--secondary), #ffaa33);
  color: var(--dark);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(247, 147, 30, 0.4);
}

/* ================= SECTIONS LAYOUT ================= */
section {
  padding: 120px 25px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= ABOUT SECTION ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
  width: 100%;
  transition: transform 0.8s ease;
}

.about-img-wrapper:hover img {
  transform: scale(1.05);
}

.about-text h2 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.about-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

.feature-list i {
  width: 40px;
  height: 40px;
  background: rgba(247, 147, 30, 0.15);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 15px;
  font-size: 1.1rem;
}

body.en .feature-list i {
  margin-left: 0;
  margin-right: 15px;
}

/* ================= STATS SECTION ================= */
.stats-section {
  background: var(--primary);
  background-image: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 100px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  text-align: center;
}

.stat-item h2 {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 10px;
  font-weight: 900;
}

.stat-item p {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 600;
}

/* ================= PARTNERS SECTION ================= */
.partners-header {
  text-align: center;
  margin-bottom: 70px;
}

.partners-header h2 {
  font-size: 2.8rem;
  color: var(--primary);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.partner-card {
  background: white;
  padding: 60px 40px;
  border-radius: 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gray);
  transition: var(--transition);
}

.partner-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-md);
}

.partner-card:hover::before {
  background: var(--secondary);
}

.partner-card i {
  font-size: 3.5rem;
  color: var(--primary-light);
  margin-bottom: 30px;
  transition: var(--transition);
}

.partner-card:hover i {
  transform: scale(1.1) rotate(10deg);
  color: var(--secondary);
}

.partner-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.partner-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ================= FOOTER ================= */
footer {
  background: var(--dark);
  color: #bbb;
  padding: 80px 25px 40px;
  text-align: center;
}

footer h2 {
  color: white;
  margin-bottom: 25px;
  font-size: 2rem;
}

footer p {
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-item i {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-size: 0.9rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-img-wrapper {
    max-height: 400px;
  }

  .about-img-wrapper img {
    object-fit: cover;
    height: 100%;
  }

  section {
    padding: 90px 25px;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .stats-grid {
    gap: 40px;
  }

  .contact-info {
    flex-direction: column;
    gap: 20px;
  }
}