:root {
  --main-red: #B33A3A;
  --main-blue: #2A5D9F;
  --light-bg: #F7F6F4;
  --font-family: 'Cairo', sans-serif;
  --dark-overlay: rgba(0, 0, 0, 0.4);
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html {
  font-family: var(--font-family);
  background-color: var(--light-bg);
  scroll-behavior: smooth;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: #fff;
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 0 0 12px 12px;
  z-index: 1000;
}

.nav-logo img { height: 48px; }

.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 10px 14px;
  border: 2px solid white;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.nav-links a:hover {
  color: var(--main-blue);
  border-color: var(--main-red);
}
.nav-links a span {
  display: inline-block;
  transition: transform 0.3s ease;
}
.nav-links a:hover span {
  transform: scale(1.08);
}

/* controls */
.nav-controls { display: flex; align-items: center; gap: 12px; }
.language-switcher {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-size: 1rem; font-weight: 600; color: #333;
}
.language-switcher i {
  font-size: 20px; color: #2a5d9f;
  transition: transform 0.3s, color 0.3s;
}
.language-switcher:hover i {
  transform: scale(1.2);
  color: var(--main-red);
}
.lang-text {
  font-size: 0.9rem;
}

@media (max-width:768px) {
  .language-switcher i {
    font-size: 20px; color: #2a5d9f;
    transition: transform 0.3s, color 0.3s;
  }
  .language-switcher:hover i {
    color:#2a5d9f;
  }
}



/* mobile menu */
.mobile-menu-icon { display: none; cursor: pointer; font-size: 1.5rem; color: #2a5d9f; }

.mobile-menu {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: none; flex-direction: column;
  background: #fff; border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2000; padding: 20px; min-width: 240px;
}
.mobile-menu .close-btn {
  position: absolute; top: 8px; right: 12px;
  font-size: 1.3rem; cursor: pointer; color: #555;
}
.mobile-menu a {
  text-decoration: none; color: #333;
  padding: 12px; border-bottom: 1px solid #eee;
}
.mobile-menu a:hover {
  background: var(--main-blue); color: #fff; border-radius: 6px;
}





/* ===== Hero ===== */
.hero {
  height: 100vh;
  background: url("images/hero-piu.png") no-repeat center center/cover;
  position: relative;
  display:flex; align-items:center; justify-content:center;
  text-align:center; color:#fff;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background: var(--dark-overlay); z-index:1;
}
.hero-content {
  position:relative; z-index:2;
  padding:20px;
}
.hero h1 { font-size:2.6rem; margin-bottom:10px; }
.hero p { font-size:1.3rem; }

/* responsive */
@media (max-width:768px) {
  .nav-links { display:none; }
  .mobile-menu-icon { display:inline-block; }
  .hero h1 { font-size:1.8rem; }
  .hero p { font-size:1rem; }
}

/* ===== About Us Section ===== */
.about-section {
  background: linear-gradient(to right, #1d3d6d, #2a5d9f);
  color: #fff;
  padding: 80px 20px;
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
}
.about-heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #fff;
}
.about-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.about-text { flex: 1; min-width: 300px; }
.about-text p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #f6f7fb;
}
.about-card {
  flex: 1;
  min-width: 300px;
  background: #fff;
  color: #333;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.about-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}
@media (max-width: 768px) {
  .about-content { flex-direction: column; }
  .about-text, .about-card { width: 100%; }
}

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transition: transform 0.9s ease, opacity 0.9s ease;
  will-change: transform, opacity;
}
.reveal.slide-right { transform: translateX(60px); }
.reveal.slide-left { transform: translateX(-60px); }
.reveal.visible { opacity: 1; transform: translateX(0); }

/* ===== Goals & Achievements ===== */
.achievements-section {
  background: #f7f9fc;
  padding: 80px 20px;
  text-align: center;
}
.achievements-section h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #1d3d6d;
}
.achievements {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.achievement {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #144688, #4a8dd1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin-bottom: 15px;
  color: #fff;
}

.circle i {
  font-size: 25px; /* 🔥 تحكم في حجم الأيقونة */
  margin-bottom: 8px;
  color: #fff; /* خليها بيضاء مثل النص */
}

.circle .count {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}


.achievements-text {
  max-width: 900px;
  margin: 0 auto 50px auto;
  font-size: 1rem;
  line-height: 1.9;
  color: #444;
  text-align: center;
}

.achievement p { font-size: 1rem; color: #333; }
.main-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.achievement-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}
.achievement-card:hover { transform: translateY(-8px); }
.achievement-card h3 {
  font-size: 1.1rem;
  color: #2a5d9f;
  line-height: 1.5;
}

/* ===== Signup Form ===== */
.signup-container {
  margin-top: 100px;
  width: 100%; max-width: 450px;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  margin-left: auto; margin-right: auto;
  text-align: left;
}
@media (max-width: 768px) {
  .signup-container { width: 95%; padding: 20px; }
  .signup-container h2 { font-size: 1.4rem; }
  .signup-form input, .signup-btn { font-size: 0.9rem; padding: 10px; }
}

/* ===== Objectives Section ===== */
.objectives-section {
  padding: 60px 20px;
  background: #fff;
}
.objectives-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1d3d6d;
}
.objectives-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  line-height: 1.8;
  font-size: 1.1rem;
}
.objectives-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.objective-box {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.objective-box:hover { transform: translateY(-5px); }

/* أيقونات بدل الصور */
.objective-icon {
  font-size: 3rem;      /* حجم الأيقونة */
  color: #2a5d9f;       /* لون مطابق للعناوين */
  margin-bottom: 15px;  /* مسافة تحت الأيقونة */
  display: inline-block;
}

.objective-box h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2a5d9f;
}

/* ===== Departments Section ===== */
.departments-section {
  background: linear-gradient(135deg, #3a6ea5, #5c8dbc);
  padding: 60px 20px;
  color: white;
  text-align: center;
}
.departments-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #fff;
}
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.dept-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #333;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.dept-card.visible { opacity: 1; transform: translateY(0); }
.dept-icon {
  width: 70px; height: 70px;
  object-fit: contain; margin-bottom: 15px;
}
.dept-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #2b4a6f;
}
.dept-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Facility Section ===== */
.facility-section {
  position: relative;
  background: whitesmoke;
  padding: 120px 20px;
  color: #fff;
}

.facility-section .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}


.facility-section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.facility-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #2b4a6f;
}

/* === ترتيب النصوص والصورة === */
.facility-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: row;
}

/* الصورة */
.facility-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* النصوص */
.facility-texts {
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex: 1;
}

/* التصميم العادي (لابتوب) */
.facility-grid {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}




.facility-card {
  background: #fff;
  color: #333;
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  text-align: justify;
  transition: transform 0.3s;
}
.facility-card:hover { transform: translateY(-8px); }
.facility-card p { font-size: 1.05rem; line-height: 1.8; }


/* للجوال */
@media (max-width: 992px) {
  .facility-wrapper { flex-direction: column; }
  .facility-image img { max-width: 100%; }
  .facility-title { font-size: 2rem; }
  .facility-grid {
    flex-direction: column; /* يخليهم فوق بعض */
  }

  .facility-image {
    order: -1; /* يطلع الصورة فوق */
  }

  .facility-card {
    order: 0; /* الكروت تحت */
  }
}


/* ===== CO2 Section ===== */
.co2-section {
  background: #2a5d9f;
  padding: 120px 20px;
}
.co2-heading {
  text-align: center;
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 60px;
}
.co2-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
}
.co2-card {
  flex: 1 1 40%;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  overflow: hidden;
}
.co2-card img {
  width: 100%;
  display: block;
  border-radius: 15px;
}
.co2-text {
  flex: 1 1 50%;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.9;
}
@media (max-width: 992px) {
  .co2-container { flex-direction: column; text-align: center; }
  .co2-text { margin-top: 20px; }
}

/* ===== More Section ===== */
.more-section {
  background: linear-gradient(to right, #1d3d6d, #2a5d9f);
  color: #fff;
  padding: 100px 20px;
}
.more-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #fff;
}
.more-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.more-image {
  flex: 1; min-width: 300px; text-align: center;
}
.more-image img {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.more-text {
  flex: 1; min-width: 300px;
}
.more-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #f6f7fb;
}
.download-btn {
  background: #d62828;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  animation: bounce 2s infinite;
  transition: background 0.3s ease;
}
.download-btn:hover { background: #b71c1c; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}



/* ===== Contact Section ===== */
.contact-section {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

.contact-intro {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #555;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.contact-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  flex: 1 1 250px;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-item p {
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  transition: color 0.3s ease;
}

.contact-item p:hover {
  color: var(--main-blue);
}

.contact-icon {
  font-size: 26px;
  color: #2a5d9f;
  flex-shrink: 0;
}


.footer {
  background-color: #222;
  color: white;
  padding: 15px 10px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 50px;
}
