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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: #111827;
  line-height: 1.6;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

.top-bar {
  background: #1f2937;
  color: white;
  padding: 10px 8%;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
}

header {
  padding: 22px 8%;
  background: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo img {
  width: 90px;
  height: auto;
}

.logo h1 {
  color: #2f4ce6;
  font-size: 30px;
  margin: 0;
  letter-spacing: 1px;
}

.arabic-name {
  color: #111827;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 4px;
}

nav {
  background: #3f5eea;
  padding: 14px 8%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: white;
  margin-right: 25px;
  font-weight: bold;
}

nav a:hover {
  color: #bfdbfe;
}

.hero {
  background: linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.58)),
    url("../images/Background.avif");
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 0 8%;
  color: white;
}

.hero-content {
  max-width: 780px;
}

.hero h2 {
  font-size: 44px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  background: #3f5eea;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  border: none;
}

.btn:hover {
  background: #2f4ce6;
}

section {
  padding: 80px 8%;
}

.light {
  background: linear-gradient(to bottom, #f3f4f6, #e5e7eb);
  padding: 80px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 35px;
}

.section-title h2 {
  font-size: 34px;
  color: #111827;
  margin-bottom: 10px;
}

.section-title p {
  max-width: 760px;
  margin: auto;
  color: #374151;
  font-size: 16px;
}

.page-banner {
  background: linear-gradient(135deg, #e5e7eb, #f9fafb);
  padding: 55px 8%;
  border-bottom: 1px solid #d1d5db;
}

.page-banner h2 {
  font-size: 36px;
  color: #111827;
  margin-bottom: 6px;
}

.page-banner p {
  color: #374151;
}

.content-box {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  padding: 42px;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
}

.content-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 95px;
  height: 5px;
  background: #3f5eea;
  border-top-left-radius: 12px;
}

.content-box::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 170px;
  height: 170px;
  background: rgba(63, 94, 234, 0.07);
  border-radius: 50%;
}

.content-box h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #2f4ce6;
}

.content-box p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.85;
  color: #374151;
  position: relative;
  z-index: 1;
}

.content-box ul {
  margin-left: 0;
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.content-box ul li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  color: #374151;
  font-size: 15px;
}

.content-box ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #3f5eea;
  font-weight: bold;
}

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

.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0,0,0,.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}

.card-content {
  padding: 22px;
}

.card-content h3 {
  color: #2f4ce6;
  margin-bottom: 10px;
  font-size: 21px;
}

.card-content p {
  color: #374151;
  line-height: 1.7;
}

footer {
  background: #111827;
  color: white;
  padding: 45px 8% 20px;
}

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

footer h3 {
  margin-bottom: 15px;
  color: #60a5fa;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 8px;
}

footer p,
footer li {
  color: #d1d5db;
  font-size: 15px;
}

.copyright {
  text-align: center;
  border-top: 1px solid #374151;
  padding-top: 18px;
  font-size: 14px;
  color: #ccc;
}

@media (max-width: 700px) {
  .top-bar {
    flex-direction: column;
    text-align: center;
  }

  header {
    text-align: center;
  }

  .logo {
    flex-direction: column;
    justify-content: center;
  }

  .logo h1 {
    font-size: 24px;
  }

  .arabic-name {
    font-size: 18px;
  }

  nav {
    text-align: center;
  }

  nav a {
    display: inline-block;
    margin: 8px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .content-box {
    padding: 30px 22px;
  }

  .page-banner h2 {
    font-size: 30px;
  }
}