:root {
  /* Palette: Clean Corporate Tech */
  --bg-color: #FAFAFA;
  /* Very light grey, almost white */
  --text-main: #111827;
  /* Near black */
  --text-muted: #6B7280;
  /* Grey */
  --brand-blue: #2563EB;
  /* Primary Blue */
  --brand-dark: #1E40AF;
  --brand-gradient: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);

  --card-bg: #FFFFFF;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  --radius: 20px;
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-en);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  /* Geometric Background Pattern */
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Arabic Config */
html[lang="ar"] body {
  font-family: var(--font-ar);
}

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* UTILITIES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ANIMATIONS on Scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--brand-blue);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.lang-btn {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid #E5E7EB;
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* HERO SECTION */
header.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

/* Decoration: The "Tech Mountain" shapes */
.shape-bg {
  position: absolute;
  z-index: -1;
  opacity: 0.4;
}

.circle-1 {
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 36px;
  background: var(--brand-gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.hero-visual {
  background: white;
  border-radius: var(--radius);
  min-height: 400px;
  box-shadow: var(--card-hover);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #E5E7EB;
}


/* SERVICES BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-item {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid #F3F4F6;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}

.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover);
  border-color: #DBEAFE;
}

.bento-wide {
  grid-column: span 2;
}

/* Responsive tweaks for Bento */
@media (min-width: 900px) {
  .bento-tall {
    grid-row: span 2;
  }
}

.bento-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.bento-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.bento-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ABOUT & FOUNDERS */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.founder-card {
  text-align: center;
}

.founder-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #f8f9fa;
  margin: 0 auto 24px;
  border: 4px solid white;
  box-shadow: var(--card-shadow);
  object-fit: cover;
  object-position: center top;
}



.founder-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.founder-role {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.founder-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 20px;
}

/* CONTACT (Modern Grid) */
.contact-wrapper {
  background: white;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--card-hover);
  border: 1px solid #F3F4F6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.contact-left {
  padding: 60px;
}

.contact-right {
  background: #F9FAFB;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #F3F4F6;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #E5E7EB;
  font-family: inherit;
  transition: 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
}

/* Footer */
footer {
  background: white;
  padding: 60px 0;
  border-top: 1px solid #E5E7EB;
  margin-top: 100px;
  text-align: center;
  color: var(--text-muted);
}

/* About Section Grid Fix */
.about-grid {
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
}

.about-text-content {
  padding: 60px;
}

.about-visual-content {
  padding: 60px;
  background: white;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #F3F4F6;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 30px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-left,
  .contact-right,
  .about-text-content,
  .about-visual-content {
    padding: 40px 24px !important;
  }

  .about-visual-content {
    border-left: none !important;
    border-top: 1px solid #F3F4F6;
  }

  .nav-links {
    display: none;
    /* Hide for brevity */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    flex-direction: column;
    box-shadow: var(--card-shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}