﻿:root {
  --navy: #050b15;
  --blue: #1477ff;
  --line: #cfe2ff;
  --text: #071a36;
  --muted: #5d6d82;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 48%, #f3f8ff 100%);
  color: var(--text);
  direction: rtl;
}
.site-header {
  height: 92px;
  background: #060b13;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 6vw, 72px);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand img { height: 56px; display: block; }
.menu-toggle { display: none; }
.primary-nav { display: flex; gap: 34px; }
.primary-nav a { color: #fff; text-decoration: none; font-weight: 800; }
.primary-nav a.active, .primary-nav a:hover { color: var(--blue); }
.portfolio-hero {
  background: radial-gradient(circle at center, #0b376d 0, #07182f 42%, #030914 100%);
  color: white;
  text-align: center;
  padding: 78px 20px 66px;
  position: relative;
  overflow: hidden;
}
.portfolio-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% -10%;
  height: 220px;
  background: radial-gradient(circle, rgba(20,119,255,.22), transparent 65%);
  pointer-events: none;
}
.back-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: #d9e9ff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 10px 18px;
  margin-bottom: 26px;
  font-weight: 900;
  text-decoration: none;
}
.portfolio-hero h1 { position: relative; z-index: 1; font-size: clamp(38px, 7vw, 78px); margin: 0 0 14px; }
.portfolio-hero p { position: relative; z-index: 1; max-width: 820px; margin: auto; line-height: 1.9; color: #d9e9ff; font-weight: 700; }
.portfolio-wrap { max-width: 1240px; margin: 0 auto; padding: 42px 18px 86px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.portfolio-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(8,55,120,.1);
  contain: content;
}
.portfolio-item img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #eaf3ff; }
.portfolio-item--feature img { aspect-ratio: 16 / 11; object-fit: cover; }
.portfolio-item div { padding: 15px 16px 17px; }
.portfolio-item span { color: var(--blue); font-weight: 900; display: block; margin-bottom: 8px; }
.portfolio-item h2 { font-size: 19px; line-height: 1.35; margin: 0; }
.footer-rights { text-align: center; padding: 26px; background: white; border-top: 1px solid #e4eefc; color: #334155; line-height: 1.8; }
.footer-rights a { color: var(--blue); font-weight: 900; text-decoration: none; }
.whatsapp-button {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #07345d;
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
  font-weight: 900;
}
.whatsapp-button img { width: 38px; height: 38px; }
.wa-arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #aee8ff; color: #06325b; }
@media (max-width: 760px) {
  .site-header { height: 86px; padding-inline: 18px; }
  .brand img { height: 48px; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.25);
    background: #101722;
  }
  .menu-toggle span { width: 26px; height: 3px; border-radius: 999px; background: #fff; display: block; }
  .primary-nav { display: none; }
  .primary-nav.open {
    position: absolute;
    display: grid;
    top: 86px;
    left: 14px;
    right: 14px;
    gap: 0;
    padding: 12px;
    border-radius: 16px;
    background: #07101d;
    border: 1px solid rgba(255,255,255,.12);
  }
  .primary-nav.open a { padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .portfolio-hero { padding: 44px 18px 40px; }
  .portfolio-wrap { padding: 24px 12px 72px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .portfolio-item { border-radius: 14px; }
  .portfolio-item div { padding: 10px 10px 12px; }
  .portfolio-item h2 { font-size: 14px; }
  .whatsapp-button { left: 14px; bottom: 14px; padding: 10px 12px; }
  .whatsapp-button > span:not(.wa-arrow) { display: none; }
}

/* Portfolio image lightbox 20260715 */
.portfolio-item--clickable { cursor: zoom-in; }
.portfolio-item--clickable img { transition: transform .28s ease, filter .28s ease; }
.portfolio-item--clickable:hover img { transform: scale(1.025); filter: saturate(1.05); }
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 38px);
  background: rgba(1, 7, 18, .86);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.portfolio-lightbox.is-open { opacity: 1; pointer-events: auto; }
.portfolio-lightbox__figure {
  margin: 0;
  width: min(94vw, 1080px);
  max-height: 92vh;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.portfolio-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: min(84vh, 920px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.12);
  background: #06101f;
}
.portfolio-lightbox__caption {
  color: #fff;
  font-weight: 900;
  font-size: clamp(15px, 2vw, 20px);
  text-align: center;
}
.portfolio-lightbox__close {
  position: fixed;
  top: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 28px);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.portfolio-lightbox-open { overflow: hidden; }
@media (max-width: 760px) {
  .portfolio-lightbox { padding: 10px; }
  .portfolio-lightbox__image { max-height: 82vh; border-radius: 12px; }
  .portfolio-lightbox__close { width: 44px; height: 44px; border-radius: 14px; }
}

/* Social portfolio categories 20260715 */
.portfolio-wrap--categorized { display: grid; gap: 44px; }
.portfolio-category { display: grid; gap: 18px; }
.portfolio-category__head {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(20,119,255,.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(236,246,255,.88));
  box-shadow: 0 14px 34px rgba(8,55,120,.08);
}
.portfolio-category__head span {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(20,119,255,.1);
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}
.portfolio-category__head h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); color: var(--text); }
.portfolio-category__head p { margin: 0; color: var(--muted); line-height: 1.8; font-weight: 800; }
@media (max-width: 760px) {
  .portfolio-wrap--categorized { gap: 32px; }
  .portfolio-category { gap: 12px; }
  .portfolio-category__head { padding: 14px; border-radius: 14px; }
  .portfolio-category__head h2 { font-size: 21px; }
  .portfolio-category__head p { font-size: 13px; }
}





.lang-btn {
  border: 1px solid rgba(8, 104, 255, 0.45);
  background: rgba(8, 104, 255, 0.12);
  color: #ffffff;
  min-width: 82px;
  height: 42px;
  padding-inline: 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(8, 104, 255, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(8, 104, 255, 0.9);
  background: rgba(8, 104, 255, 0.22);
  outline: none;
}

@media (max-width: 900px) {
  .primary-nav .lang-btn {
    align-self: center;
    width: min(160px, 72vw);
  }
}

/* LTR language tuning: starts from html dir to avoid Arabic flash and heavy font weights. */
html[dir="ltr"] body {
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
}

html[dir="ltr"] .primary-nav a,
html[dir="ltr"] .lang-btn,
html[dir="ltr"] p,
html[dir="ltr"] li,
html[dir="ltr"] label,
html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] .contact-btn,
html[dir="ltr"] .social-btn,
html[dir="ltr"] .footer-col a,
html[dir="ltr"] .footer-rights,
html[dir="ltr"] .testimonial-card,
html[dir="ltr"] .service-card,
html[dir="ltr"] .service-detail-card,
html[dir="ltr"] .work-card,
html[dir="ltr"] .portfolio-item {
  font-family: "Segoe UI", Inter, Arial, sans-serif !important;
  font-weight: 500 !important;
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] .hero-title-line,
html[dir="ltr"] .services-title span,
html[dir="ltr"] .clients-title,
html[dir="ltr"] .work-section-head h2,
html[dir="ltr"] .testimonials-head h2,
html[dir="ltr"] .portfolio-hero h1,
html[dir="ltr"] .work-page-title,
html[dir="ltr"] .about-hero-title,
html[dir="ltr"] .about-title {
  font-family: "Segoe UI", Inter, Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.18;
}

html[dir="ltr"] .hero-btn-about,
html[dir="ltr"] .discover-more-btn,
html[dir="ltr"] .about-mobile-more,
html[dir="ltr"] .btn-submit,
html[dir="ltr"] .back-link {
  font-family: "Segoe UI", Inter, Arial, sans-serif !important;
  font-weight: 650 !important;
}

html[dir="ltr"] .contact-btn small,
html[dir="ltr"] .info-card-copy small,
html[dir="ltr"] .testimonial-role {
  direction: ltr;
  text-align: inherit;
}

html[dir="ltr"] .fa-arrow-left,
html[dir="ltr"] .fa-arrow-right,
html[dir="ltr"] .fa-chevron-left,
html[dir="ltr"] .fa-chevron-right,
html[dir="ltr"] .fa-angle-left,
html[dir="ltr"] .fa-angle-right {
  transform: scaleX(-1);
}

