:root {
  color-scheme: dark;
  --bg: #161616;
  --surface: #111111;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --accent: #f2c200;
  --accent-2: #d8ad00;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-en: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-ar: "Cairo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

html,
body {
  overflow-x: hidden;
}

body.lang-en {
  font-family: var(--font-en);
  direction: ltr;
  text-align: start;
}

body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: start;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-2);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--accent);
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
}

.hero-text {
  font-size: clamp(14px, 1.5vw, 18px);
}

.about-content {
  width: 100%;
  max-width: 1040px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.service-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pdf-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.contact-item {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1c40f;
}

.contact-item i {
  font-size: 34px;
  line-height: 1;
}

.contact-item::before,
.contact-item::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
}

.contact-item::before {
  top: 8px;
  right: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.contact-item::after {
  bottom: 8px;
  left: 8px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

@media (max-width: 576px) {
  .header-shell {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-nav {
    order: 3;
    width: 100%;
    gap: 12px 18px;
  }

  .contact-item {
    width: 60px;
    height: 60px;
  }

  .contact-item i {
    font-size: 30px;
  }
}
