/* ============ CSS Variables ============ */
:root {
  --color-navy: #0f172a;
  --color-navy-light: #1e293b;
  --color-slate: #334155;
  --color-slate-light: #64748b;
  --color-accent: #0d9488;
  --color-accent-dark: #0f766e;
  --color-accent-light: #5eead4;
  --color-bg: #f8fafc;
  --color-white: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Reset & Base ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ Language Toggle ============ */
.en {
  display: none;
}

body.lang-en .ar {
  display: none;
}

body.lang-en .en {
  display: inline;
}

body.lang-en {
  direction: ltr;
  text-align: left;
}

body.lang-en .site-header,
body.lang-en .hero,
body.lang-en .section,
body.lang-en .site-footer {
  text-align: left;
}

body.lang-en .main-nav {
  direction: ltr;
}

body.lang-en .hero-actions,
body.lang-en .about-grid,
body.lang-en .services-grid,
body.lang-en .initiatives-grid,
body.lang-en .approach-grid,
body.lang-en .contact-inner,
body.lang-en .footer-inner {
  direction: ltr;
}

/* ============ Container ============ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-white);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: white;
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  letter-spacing: -0.025em;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-white);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.lang-toggle {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  gap: 0.375rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  background: var(--color-navy);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(94, 234, 212, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(13, 148, 136, 0.15);
  color: var(--color-accent-light);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(13, 148, 136, 0.3);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ============ Sections ============ */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section-dark .section-header h2,
.section-dark .section-header .section-lead,
.section-dark h3,
.section-dark p {
  color: var(--color-white);
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.section-dark .section-header h2 {
  color: var(--color-white);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.7);
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  color: var(--color-slate);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.stat {
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--color-navy-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  color: var(--color-accent-light);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.service-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ============ Initiatives ============ */
.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.initiative-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.initiative-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}

.initiative-meta {
  margin-bottom: 1rem;
}

.status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-concept {
  background: #f3e8ff;
  color: #7c3aed;
}

.status-development {
  background: #d1fae5;
  color: #047857;
}

.initiative-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
  line-height: 1.4;
}

.initiative-card p {
  font-size: 0.9375rem;
  color: var(--color-slate);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.initiative-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.initiative-tags span {
  padding: 0.25rem 0.625rem;
  background: var(--color-bg);
  color: var(--color-slate);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--color-border);
}

/* ============ Approach ============ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.approach-step {
  padding: 2rem 1.5rem;
  background: var(--color-navy-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
  line-height: 1;
}

.approach-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.approach-step p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ============ Contact ============ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.contact-text p {
  font-size: 1.0625rem;
  color: var(--color-slate);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.contact-item:hover {
  background: #f0fdfa;
  border-color: var(--color-accent-light);
}

.contact-item svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ============ Footer ============ */
.site-footer {
  padding: 2.5rem 0;
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--color-white);
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .initiatives-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 4.5rem;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem;
    background: var(--color-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
  }

  body.lang-en .main-nav {
    right: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    padding: 0.875rem 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid,
  .initiatives-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .contact-inner {
    padding: 2rem 1.5rem;
  }
}
