:root {
  --navy: #0b1a33;
  --navy-dark: #08142a;
  --blue: #0e2d6c;
  --blue-mid: #1d4ed8;
  --blue-bright: #2f6bff;
  --sky: #56c4ff;
  --white: #ffffff;
  --offwhite: #f4f8ff;
  --text: #1d2b4a;
  --muted: #6b7b9a;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(8, 20, 44, 0.18);
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: #eaf1ff;
  line-height: 1.6;
}

.bg-hero {
  background: linear-gradient(135deg, rgba(9, 23, 55, 0.92), rgba(9, 23, 55, 0.75)),
    url("assets/emad.jpg") center/cover no-repeat;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  padding: 1.6rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
}

.nav a:hover {
  opacity: 1;
}

.nav .cta {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--blue-bright);
  color: var(--white);
  font-weight: 600;
}

.hero {
  color: var(--white);
  padding: 4.5rem 0 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 460px;
  margin-bottom: 1.8rem;
  color: #cdd7f5;
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--blue);
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -2.4rem;
}

.stat-card {
  background: var(--card);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.stat-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e8f0ff;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 700;
}

.section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
}

.section-title p {
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.about-image {
  background: url("assets/emad.jpg") center/cover no-repeat;
  border-radius: 12px;
  min-height: 260px;
}

.service-card {
  text-align: center;
}

.service-card .icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.8rem;
  border-radius: 12px;
  background: #eaf1ff;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 700;
}

.progress-box {
  display: grid;
  gap: 0.6rem;
}

.progress {
  height: 6px;
  background: #e0e7f5;
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--blue-bright);
}

.case-grid img,
.blog-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.logo-tile {
  display: grid;
  place-items: center;
  background: #f1f5ff;
  border: 1px solid #dbe4f5;
  border-radius: 10px;
  padding: 1rem;
  height: 140px;
  margin-bottom: 0.8rem;
}

.logo-tile img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.ribbon {
  background: var(--navy);
  color: var(--white);
  padding: 1.2rem 0;
}

.ribbon .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer {
  background: var(--navy-dark);
  color: #c7d4f7;
  padding: 3rem 0 2rem;
}

.footer a {
  color: #c7d4f7;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer small {
  color: #8fa0c5;
}

/* Page 3 (hero-only) */
.page-hero {
  border: 14px solid #f3f6ff;
  border-radius: 18px;
  overflow: hidden;
  margin: 2rem auto;
  max-width: 940px;
}

.page-hero .hero {
  padding: 3.5rem 3rem 4rem;
}

.page-hero .stat-row {
  margin-top: -1.8rem;
  padding: 0 3rem 2.5rem;
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .page-hero .hero {
    padding: 3rem 1.5rem 3.5rem;
  }
  .page-hero .stat-row {
    padding: 0 1.5rem 2rem;
  }
}
