:root {
  --bg: #eef4f2;
  --bg-alt: #f8f2e8;
  --ink: #0e1f28;
  --muted: #53646c;
  --accent: #d97040;
  --accent-strong: #b3572d;
  --accent-2: #2f6f7a;
  --accent-3: #f0c27b;
  --card: #ffffff;
  --white: #ffffff;
  --stroke: rgba(14, 31, 40, 0.12);
  --shadow: 0 24px 50px rgba(12, 24, 32, 0.14);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Changa", "Cairo", sans-serif;
  background: linear-gradient(120deg, rgba(240, 194, 123, 0.16), transparent 40%),
    linear-gradient(320deg, rgba(47, 111, 122, 0.18), transparent 45%),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(45deg, rgba(14, 31, 40, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(14, 31, 40, 0.04) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.6;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -10% -20% auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(217, 112, 64, 0.2), transparent 65%);
  z-index: -1;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Amiri", serif;
  font-weight: 700;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 120px;
  position: relative;
  z-index: 0;
}

.page::before {
  content: "";
  position: fixed;
  inset: -15% auto auto -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(47, 111, 122, 0.2), transparent 60%);
  z-index: -1;
  animation: float 10s ease-in-out infinite;
  animation-delay: 2s;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

figure {
  margin: 0;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: "Amiri", serif;
  font-size: 28px;
  box-shadow: 0 14px 28px rgba(217, 112, 64, 0.35);
}

.brand-title {
  margin: 0;
  font-size: 20px;
}

.brand-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-actions a {
  font-size: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary,
.secondary,
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 16px;
}

.primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-3));
  color: var(--white);
  box-shadow: 0 16px 32px rgba(217, 112, 64, 0.32);
}

.secondary {
  background: var(--accent-2);
  color: var(--white);
  box-shadow: 0 14px 26px rgba(47, 111, 122, 0.28);
}

.ghost {
  border: 1px dashed rgba(14, 31, 40, 0.28);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
}

.top-actions a:hover,
.hero-actions a:hover,
.contact-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(12, 24, 32, 0.18);
}

main {
  padding-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(240, 194, 123, 0.35), transparent 70%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(47, 111, 122, 0.25), transparent 70%);
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(248, 242, 232, 0.85);
  border: 1px solid rgba(14, 31, 40, 0.08);
}

.hero-text h1 {
  font-size: clamp(30px, 4vw, 50px);
  margin: 10px 0 16px;
}

.hero-text p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47, 111, 122, 0.12);
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-actions svg,
.contact-actions svg,
.mobile-bar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.keywords span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(14, 31, 40, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-badges div {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  border: 1px solid rgba(14, 31, 40, 0.08);
}

.hero-badges strong {
  display: block;
  font-size: 20px;
}

.hero-badges span {
  font-size: 13px;
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(160deg, rgba(47, 111, 122, 0.12), rgba(217, 112, 64, 0.08));
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(14, 31, 40, 0.12);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 35px rgba(12, 24, 32, 0.2);
}

.hero-media img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  filter: saturate(110%);
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 18px;
  background: rgba(14, 31, 40, 0.7);
  color: var(--white);
  font-size: 14px;
}

.hero-info {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.hero-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.hero-info p {
  margin: 0;
  color: var(--muted);
}

.hero-note {
  background: rgba(240, 194, 123, 0.2);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: grid;
  gap: 4px;
}

.hero-note span {
  font-size: 13px;
  color: var(--accent-strong);
}

.stats {
  margin-top: 36px;
  background: linear-gradient(120deg, var(--accent-2), #1f4f58);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  color: var(--white);
}

.stats h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.stats p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.section {
  margin-top: 60px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.section-title {
  display: grid;
  gap: 6px;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.service-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(14, 31, 40, 0.1);
  border-right: 4px solid var(--accent);
  display: grid;
  gap: 12px;
  min-height: 210px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(12, 24, 32, 0.18);
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-2);
  display: grid;
  place-items: center;
  color: var(--white);
}

.icon-badge svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0;
  font-size: 19px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 31, 40, 0.1);
}

.tech-list svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-panel {
  background: rgba(240, 194, 123, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(14, 31, 40, 0.12);
}

.card-panel h3 {
  margin: 0 0 10px;
}

.card-panel p {
  color: var(--muted);
  margin: 0 0 18px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel-grid strong {
  display: block;
  margin-bottom: 6px;
}

.panel-grid span {
  color: var(--muted);
  font-size: 14px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.coverage-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(14, 31, 40, 0.08);
  box-shadow: 0 12px 26px rgba(12, 24, 32, 0.12);
}

.coverage-card h3 {
  margin: 0 0 8px;
}

.coverage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 8px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.contact-info h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.contact-info a,
.contact-info span {
  color: var(--muted);
  font-size: 15px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-form {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(14, 31, 40, 0.12);
  display: grid;
  gap: 14px;
}

.contact-form h3 {
  margin: 0 0 8px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14, 31, 40, 0.16);
  font-family: inherit;
  background: #ffffff;
}

.contact-form button {
  padding: 12px 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(130deg, var(--accent), var(--accent-3));
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(12, 24, 32, 0.18);
}

.form-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.footer {
  padding: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(14, 31, 40, 0.1);
  color: var(--muted);
}

.footer strong {
  font-family: "Amiri", serif;
  color: var(--ink);
}

.mobile-bar {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 14px;
  display: none;
  justify-content: space-around;
  gap: 10px;
  box-shadow: 0 18px 32px rgba(12, 24, 32, 0.25);
  z-index: 20;
}

.mobile-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page {
    padding-bottom: 160px;
  }

  .topbar {
    position: static;
    border-radius: var(--radius-lg);
    padding: 16px;
  }

  .top-actions {
    display: none;
  }

  .hero {
    padding: 20px;
  }

  .section {
    padding: 20px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .coverage-grid,
  .gallery-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .mobile-bar {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
