/* ==========================================================================
   DESIGN TOKENS & DYNAMIC THEMES (LIGHT & DARK MODE)
   ========================================================================== */
:root {
  /* Brand Constants */
  --primary-teal: #169894;
  --primary-teal-hover: #117875;
  --secondary-gold: #B58E58;
  --secondary-gold-hover: #9c7640;

  /* Light Theme Variables (Default) */
  --bg-body: #FFFFFF;
  --bg-surface: #F8F9FA;
  --bg-card: #FFFFFF;
  --header-bg: rgba(255, 255, 255, 0.94);
  --text-main: #2C3E50;
  --text-muted: #607274;
  --border-subtle: #E2E8F0;
  --teal-tint: #E8F6F5;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -3px rgba(22, 152, 148, 0.09);
  --shadow-lg: 0 20px 30px -10px rgba(44, 62, 80, 0.12);

  /* Fonts */
  --font-ar: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-en: 'Poppins', 'Montserrat', system-ui, -apple-system, sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-body: #0F171E;
  --bg-surface: #15222E;
  --bg-card: #1C2C39;
  --header-bg: rgba(15, 23, 30, 0.92);
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --border-subtle: #293D4F;
  --teal-tint: rgba(22, 152, 148, 0.18);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] body {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-body);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loader-leaf {
  width: 85px;
  height: 130px;
  animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(0.96); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 10px 15px rgba(22, 152, 148, 0.4)); }
}

.loader-text .brand-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary-gold);
}

.loader-text .brand-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-teal);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.brand-logo img {
    height: 100px;       
    width: auto;        
    display: block;     
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}




.brand-logo:hover .jood-exact-logo {
  transform: scale(1.04);
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding-block: 0.3rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--primary-teal);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-teal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--teal-tint);
  color: var(--primary-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon-btn svg {
  width: 16px;
  height: 16px;
}

.social-icon-btn:hover {
  background-color: var(--primary-teal);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--secondary-gold);
  color: var(--secondary-gold);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--teal-tint);
  border: 1.5px solid var(--primary-teal);
  color: var(--primary-teal);
  padding: 0.35rem 0.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.lang-toggle-btn:hover {
  background-color: var(--primary-teal);
  color: #FFFFFF;
}

.lang-indicator.active-lang {
  color: var(--secondary-gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-toggle span {
  width: 25px;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: var(--transition);
}

/* ==========================================================================
   BUTTONS & COMMON UI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--secondary-gold);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(181, 142, 88, 0.35);
}

.btn-primary:hover {
  background: var(--secondary-gold-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-teal);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.section {
  padding-block: 5.5rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

.text-center {
  text-align: center;
}

.section-sub-title {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-gold);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-teal);
}

.title-bar {
  width: 60px;
  height: 4px;
  background: var(--secondary-gold);
  border-radius: 2px;
  margin: 0.8rem auto 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-body) 60%, var(--bg-surface) 100%);
  overflow: hidden;
  padding-block: 4rem;
}

.hero-decorative-leaf {
  position: absolute;
  inset-inline-end: -60px;
  top: -40px;
  width: 460px;
  max-width: 45vw;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .hero-decorative-leaf {
  opacity: 0.35;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
}

.badge-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--teal-tint);
  color: var(--primary-teal);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.hero-vision-sub {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary-gold);
  margin-bottom: 0.2rem;
}

.hero-vision-text {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary-teal);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary-gold);
}

.meta-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-divider {
  width: 1px;
  height: 35px;
  background-color: var(--border-subtle);
}

/* ==========================================================================
   ABOUT & MISSION SECTIONS
   ========================================================================== */
.about-section {
  background-color: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--bg-card);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--primary-teal);
  box-shadow: var(--shadow-md);
}

.about-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: var(--teal-tint);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-icon-badge svg {
  width: 26px;
  height: 26px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.mission-section {
  background-color: var(--bg-body);
}

.split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-wrapper:hover img {
  transform: scale(1.04);
}

.image-overlay-box {
  position: absolute;
  bottom: 1.5rem;
  inset-inline: 1.5rem;
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border-inline-start: 4px solid var(--secondary-gold);
  box-shadow: var(--shadow-sm);
}

.overlay-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary-gold);
  text-transform: uppercase;
}

.overlay-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.mission-text-card {
  position: relative;
  background-color: var(--bg-surface);
  padding: 2.2rem 2.2rem 2.2rem 2.8rem;
  border-radius: var(--radius-md);
  margin-block: 1.8rem;
  border: 1px solid var(--border-subtle);
}

.quote-sign {
  position: absolute;
  top: 0.2rem;
  inset-inline-start: 1rem;
  font-size: 4rem;
  font-family: serif;
  color: var(--primary-teal);
  opacity: 0.25;
  line-height: 1;
}

.mission-body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-main);
  position: relative;
  z-index: 1;
}

.target-demographics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.demographic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-tint);
  color: var(--primary-teal);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
}

.demographic-pill svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   VALUES & GOALS
   ========================================================================== */
.values-section {
  background-color: var(--bg-surface);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: var(--bg-card);
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: var(--primary-teal);
  color: #FFFFFF;
}

.value-icon svg {
  width: 32px;
  height: 32px;
}

.value-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.value-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.goal-section {
  background: var(--bg-body);
}

.goal-highlight-box {
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.target-icon-svg {
  width: 120px;
  height: 120px;
}

.goal-badge {
  display: inline-block;
  background-color: var(--secondary-gold);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.goal-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-teal);
  margin-bottom: 1.2rem;
}

.goal-text {
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--text-main);
}

/* ==========================================================================
   SECTORS SECTION
   ========================================================================== */
.sectors-section {
  background-color: var(--bg-surface);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.sector-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}

.sector-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-md);
}

.sector-icon-box {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sector-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   FOOTER (STRICT CONSTRAINT: ONLY EMAIL, NO PHONE/ADDRESS)
   ========================================================================== */
.site-footer {
  background-color: #0D161F;
  color: #ECEFF1;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 520px;
}

.footer-brand img {
  height: 150px;       
    width: auto;            
    object-fit: contain;
    flex-shrink: 0;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  
}


.footer-brand-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-brand-text p {
  font-size: 0.85rem;
  color: var(--secondary-gold);
}

.footer-desc {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social-wrapper {
  margin-top: 1.2rem;
}

.social-lead-text {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 0.6rem;
}

.social-links-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.social-badge-link svg {
  width: 16px;
  height: 16px;
}

.social-badge-link:hover {
  background: var(--primary-teal);
  border-color: var(--primary-teal);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-email-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #CFD8DC;
}

.footer-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(22, 152, 148, 0.18);
  border: 1.5px solid var(--primary-teal);
  color: #4DD0E1;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
}

.footer-email-link svg {
  width: 22px;
  height: 22px;
}

.footer-email-link:hover {
  background: var(--primary-teal);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
}

.copyright {
  font-size: 0.85rem;
  color: #64748B;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 2.3rem; }
  .split-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .goal-highlight-box { grid-template-columns: 1fr; text-align: center; }
  .goal-icon-col { justify-content: center; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .header-socials { display: none; }

  .nav-menu {
    position: fixed;
    top: 74px;
    inset-inline-start: 0;
    width: 100%;
    background-color: var(--bg-card);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-160%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  .nav-menu.active { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  
  .hero-title { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-meta-strip { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .meta-divider { display: none; }
  .footer-top { flex-direction: column; }
}
/* تنسيق رابط سدرة للحلول التقنية */
.developer-credit {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.developer-credit .dev-link {
  color: var(--secondary-gold);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.developer-credit .dev-link:hover {
  color: var(--primary-teal);
  text-decoration: underline;
}