:root {
  /* Brand: navy + white */
  --navy: #0f2744;
  --navy-light: rgba(15, 39, 68, 0.08);
  --white: #ffffff;
  --off-white: #f8fafc;
  --bg-main: var(--off-white);
  --bg-section: var(--white);
  --bg-section-alt: #eef2f9;
  --bg-elevated: var(--white);
  --accent: var(--navy);
  --accent-soft: rgba(15, 39, 68, 0.12);
  --accent-soft-strong: rgba(15, 39, 68, 0.18);
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: rgba(15, 39, 68, 0.09);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 39, 68, 0.08);
  --header-height: 72px;
  --transition-fast: 180ms ease-out;
  --transition-med: 260ms ease-out;
  /* Typography scale */
  --text-xs: 0.8rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --heading-1: 2.1rem;
  --heading-2: 1.75rem;
  --heading-3: 1.25rem;
  --line-tight: 1.4;
  --line-normal: 1.7;
  --line-relaxed: 1.85;
}

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

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  font-size: var(--text-base);
  line-height: var(--line-normal);
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* الهيدر */

.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--header-height);
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f38 50%, var(--navy) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo img {
  height: 36px;
  display: block;
  filter: brightness(0) invert(1);
}

.main-nav--desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding-block: 0.25rem;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
  transition: color var(--transition-fast), text-shadow var(--transition-med), transform var(--transition-fast);
  transform-origin: center;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
  transition: width var(--transition-med);
}

.nav-link:hover {
  color: var(--white);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

.nav-link:active {
  transform: scale(1.04);
}

.nav-link.is-active {
  color: var(--white);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: scale(1.06);
}

.nav-link.is-active::after {
  width: 60%;
}

.mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 0 9px;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 999px;
}

/* سايدبار الجوال */

.mobile-sidebar {
  position: fixed;
  top: calc(var(--header-height) + 0.75rem);
  bottom: auto;
  height: fit-content;
  inset-inline-start: auto;
  inset-inline-end: auto;
  right: 0.75rem;
  width: 82px;
  border-radius: var(--radius-lg);
  background: rgba(10, 25, 47, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.4rem;
  gap: 0.3rem;
  z-index: 200;
  /* Hidden by default on mobile — JS adds is-open to show */
  transform: translateX(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.32s ease,
              visibility 0.32s;
}

.sidebar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.25rem;
  border-radius: 10px;
  color: rgba(200, 220, 255, 0.75);
  font-size: 0.62rem;
  text-decoration: none;
  transition:
    background-color var(--transition-med),
    color var(--transition-med),
    transform var(--transition-med);
  transform-origin: center;
}

.sidebar-link .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transition: filter var(--transition-med), transform var(--transition-med);
  filter:
    drop-shadow(0 0 6px rgba(100, 160, 255, 0.55))
    drop-shadow(0 0 12px rgba(100, 160, 255, 0.25));
}

.sidebar-link .icon svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: rgba(180, 210, 255, 0.9);
}

.sidebar-link:hover .icon {
  filter:
    drop-shadow(0 0 10px rgba(100, 180, 255, 0.85))
    drop-shadow(0 0 22px rgba(80, 150, 255, 0.5))
    drop-shadow(0 0 36px rgba(60, 120, 255, 0.25));
  transform: scale(1.12);
}

.sidebar-link:active .icon,
.sidebar-link.is-active .icon {
  filter:
    drop-shadow(0 0 14px rgba(100, 200, 255, 1))
    drop-shadow(0 0 28px rgba(80, 160, 255, 0.75))
    drop-shadow(0 0 44px rgba(60, 120, 255, 0.4));
  transform: scale(1.18);
}

.sidebar-link.is-active,
.sidebar-link:hover {
  background: rgba(100, 160, 255, 0.14);
  color: rgba(220, 240, 255, 1);
  transform: translateY(-1px) scale(1.06);
}

.sidebar-link.is-active {
  background: rgba(100, 160, 255, 0.2);
  border: 1px solid rgba(100, 180, 255, 0.2);
}

/* Sidebar shown state (JS adds .is-open) */
.mobile-sidebar.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* زر السهم الجانبي للجوال */

.sidebar-edge-toggle {
  position: fixed;
  inset-block-start: 50%;
  inset-inline-start: auto;
  right: 0;
  transform: translateY(-50%);
  width: 32px;
  height: 62px;
  border-radius: 999px 0 0 999px;
  border: 1px solid rgba(100, 160, 255, 0.3);
  border-right: none;
  background: linear-gradient(135deg, rgba(10,25,47,0.9), rgba(20,40,80,0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: -4px 0 18px rgba(0, 0, 0, 0.3), 0 0 12px rgba(100,160,255,0.2);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 999;
  transition: background var(--transition-med), box-shadow var(--transition-med);
}

.sidebar-edge-toggle::before {
  content: "›";
  color: rgba(150, 200, 255, 0.9);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform var(--transition-med), color var(--transition-med);
}

.sidebar-edge-toggle.is-open::before {
  transform: rotate(180deg);
  color: rgba(100, 200, 255, 1);
}

.sidebar-edge-toggle:hover {
  box-shadow: -4px 0 24px rgba(0,0,0,0.4), 0 0 20px rgba(100,180,255,0.4);
}

@media (max-width: 991px) {
  .sidebar-edge-toggle {
    display: inline-flex;
  }
}

@media (min-width: 992px) {
  .main-nav--desktop {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-sidebar,
  .sidebar-edge-toggle {
    display: none !important;
  }
}

main {
  padding-top: var(--header-height);
  max-width: 100%;
  overflow-x: hidden;
}

.section {
  padding: 4.5rem 0;
}

.section:nth-of-type(odd) {
  background: var(--bg-section);
}

.section:nth-of-type(even) {
  background: var(--bg-section-alt);
}

.section-inner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
}

.services-highlights {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.services-highlight {
  background: rgba(16, 42, 92, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 0.88rem;
  position: relative;
  overflow: hidden;
}

.services-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(16, 42, 92, 0.10), transparent);
  transform: translateX(120%);
  transition: transform 900ms cubic-bezier(0.33, 1, 0.68, 1);
}

.services-highlight:hover::before {
  transform: translateX(-120%);
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: var(--heading-2);
  line-height: var(--line-tight);
  color: var(--accent);
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--line-relaxed);
}

/* Curtain reveal (front page load) */

.curtain-reveal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  direction: ltr;
  pointer-events: auto;
}

.curtain-reveal.curtain-done {
  pointer-events: none;
  visibility: hidden;
  animation: none;
}

.curtain-panel {
  width: 50%;
  height: 100%;
  background: #0A192F;
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.curtain-panel-left {
  transform: translateX(0);
}

.curtain-panel-right {
  transform: translateX(0);
}

.curtain-reveal.open .curtain-panel-left {
  transform: translateX(-100%);
}

.curtain-reveal.open .curtain-panel-right {
  transform: translateX(100%);
}

/* الهيرو */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top left, var(--accent-soft), transparent 55%),
    radial-gradient(circle at bottom right, var(--accent-soft-strong), transparent 60%),
    linear-gradient(to bottom, var(--off-white), var(--bg-section-alt));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  background: rgba(8, 20, 42, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-size: var(--heading-1);
  margin-bottom: 1.2rem;
  line-height: var(--line-tight);
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  margin: 0 0 1.7rem;
  color: rgba(200, 220, 255, 0.88);
  font-size: var(--text-base);
  line-height: var(--line-relaxed);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  background: rgba(100, 160, 255, 0.18);
  border: 1px solid rgba(150, 200, 255, 0.35);
  font-size: 0.8rem;
  color: rgba(210, 235, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* الأزرار */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--text-base);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-med),
    color var(--transition-med),
    border-color var(--transition-med),
    transform var(--transition-med),
    box-shadow var(--transition-med);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(15, 39, 68, 0.25);
}

.btn-primary:hover {
  background: #0d1f38;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(15, 39, 68, 0.3);
}

.btn-ghost {
  background: var(--white);
  color: var(--accent);
  border-color: rgba(15, 39, 68, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn-full-width {
  width: 100%;
}

/* بانر العرض */

.section-offer {
  padding-block: 1.8rem;
}

.offer-text {
  margin: 0;
  text-align: center;
  color: var(--accent);
  background: var(--bg-section-alt);
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--accent-soft-strong);
}

/* الشبكات والكروت */

.cards-grid {
  display: grid;
  gap: 1.2rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--border-subtle);
}

.card-title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.card-text {
  margin: 0;
  color: var(--text-muted);
}

/* من نحن */

.about-grid {
  display: grid;
  gap: 1.5rem;
}

@keyframes panelGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes panelFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

.about-panel {
  background: linear-gradient(135deg, #f0f4ff, #ffffff, #dbeafe, #eef2ff, #e0eaff, #ffffff, #f0f4ff);
  background-size: 300% 300%;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  animation: panelGradient 7s ease infinite, panelFloat 4s ease-in-out infinite;
}

.about-panel:nth-child(2) {
  animation-delay: 0s, 1.8s;
}

.about-panel::before {
  content: "";
  position: absolute;
  inset-inline-start: -40%;
  inset-block-start: -40%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 42, 92, 0.14), transparent 70%);
  opacity: 0.8;
}

.about-panel-header {
  position: relative;
  margin-bottom: 0.9rem;
}

.about-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 42, 92, 0.07);
  color: var(--accent);
  font-size: 0.75rem;
}

.about-panel-title {
  margin: 0.45rem 0 0;
  font-size: 1.55rem;
  text-shadow: 0 0 20px rgba(16, 42, 92, 0.2), 0 0 36px rgba(16, 42, 92, 0.1);
}

.about-panel-text {
  position: relative;
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-panel-points {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-point {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.about-point-arrow {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  border-inline-start-color: transparent;
  transform: rotate(-45deg);
  position: relative;
  flex-shrink: 0;
}

.about-point-arrow::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: -3px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}

.about-point-text {
  color: var(--text-main);
}

.about-point:hover .about-point-arrow {
  animation: arrow-nudge 600ms cubic-bezier(0.33, 1, 0.68, 1);
}

.about-floating-arrow {
  position: absolute;
  inset-inline-end: 1.1rem;
  inset-block-end: 1.1rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.10);
  display: grid;
  place-items: center;
  animation: floaty 1800ms cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

.about-floating-arrow::before {
  content: "↗";
  font-size: 1.25rem;
  color: var(--accent);
  transform: rotate(10deg);
}

@keyframes arrow-nudge {
  0% {
    transform: translateX(0) rotate(-45deg);
  }
  40% {
    transform: translateX(4px) rotate(-45deg);
  }
  100% {
    transform: translateX(0) rotate(-45deg);
  }
}

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

.about-values {
  display: grid;
  gap: 0.9rem;
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
}

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--white);
  box-shadow:
    0 10px 22px rgba(15, 39, 68, 0.08),
    0 0 20px var(--accent-soft-strong),
    0 0 36px var(--accent-soft);
  filter: drop-shadow(0 0 8px var(--accent-soft));
  flex-shrink: 0;
}

.value-content-title {
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.value-content-text {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* بليس هولدرات */

.portfolio-placeholder,
.partners-placeholder,
.testimonials-placeholder {
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* تواصل معنا */

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--text-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--off-white);
  color: var(--text-main);
  font-family: inherit;
  font-size: var(--text-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(79, 195, 247, 0.35);
}

.contact-info {
  font-size: var(--text-base);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
  max-height: 400px;
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* CTA بعد الخدمات */

.services-cta-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1.7rem 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--bg-section-alt), var(--white));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.services-cta-title {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.services-cta-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.services-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* اعمال نفتخر بها */

.works-proud {
  position: relative;
  overflow: hidden;
}

.works-proud-inner {
  position: relative;
  padding: 2rem 0;
  text-align: center;
}

.works-proud-marquee-wrap {
  width: 100%;
  overflow: hidden;
  height: 130px;
  margin-bottom: -60px;
  position: relative;
  z-index: 0;
  direction: ltr;
}

.works-proud-marquee {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  animation: works-proud-scroll 40s linear infinite;
  will-change: transform;
  direction: ltr;
}

.works-proud-marquee img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  margin-inline: 0.4rem;
  border: 2px solid rgba(16, 42, 92, 0.2);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  background: #f1f5f9;
}

.works-proud-head {
  position: relative;
  z-index: 2;
  margin-bottom: 1.2rem;
}

.works-proud-title {
  margin: 0 0 0.35rem;
  font-size: 2.2rem;
  color: var(--accent);
  display: inline-block;
  padding: 0.55rem 1.15rem 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 42, 92, 0.18);
  border-radius: var(--radius-md);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.1),
    0 0 40px rgba(16, 42, 92, 0.08);
  text-shadow:
    0 0 24px rgba(16, 42, 92, 0.4),
    0 0 48px rgba(16, 42, 92, 0.25),
    0 0 72px rgba(16, 42, 92, 0.15);
  filter: drop-shadow(0 4px 24px rgba(16, 42, 92, 0.25));
  transition: transform 420ms cubic-bezier(0.33, 1, 0.68, 1);
}

.works-proud.in-view .works-proud-title {
  animation: works-proud-float 3s ease-in-out infinite;
}

.works-proud-slogan {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  text-shadow: 0 0 20px rgba(16, 42, 92, 0.3), 0 0 36px rgba(16, 42, 92, 0.15);
  filter: drop-shadow(0 2px 14px rgba(16, 42, 92, 0.18));
  animation: works-proud-float 3s ease-in-out infinite 0.4s;
}

.works-proud-brief {
  max-width: 520px;
  margin: 0 auto 1rem;
}

.works-proud-brief p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.works-proud-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

@keyframes works-proud-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes works-proud-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .works-proud-marquee {
    animation: none;
  }
  .works-proud.in-view .works-proud-title,
  .works-proud-slogan {
    animation: none;
  }
}

@media (min-width: 768px) {
  .works-proud-marquee-wrap {
    height: 150px;
    margin-bottom: -70px;
  }
  .works-proud-marquee img {
    width: 220px;
    height: 130px;
    margin-inline: 0.5rem;
  }
  .works-proud-title {
    font-size: 2.6rem;
  }
  .works-proud-slogan {
    font-size: 1.15rem;
  }
}

/* فوتر زجاجي (ثيم فاتح) */

.footer {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.04);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-title {
  margin: 0 0 0.6rem;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--accent);
}

.footer-text {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.footer-social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.footer-social-list a:hover {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.08);
}

.footer-social-icon {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* زر واتساب العائم */

.wa-float {
  position: fixed;
  inset-inline-start: 1rem;
  inset-block-end: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow:
    0 12px 40px rgba(37, 211, 102, 0.25),
    0 0 32px rgba(37, 211, 102, 0.15),
    0 20px 60px rgba(15, 23, 42, 0.12);
  color: #128C7E;
  text-decoration: none;
  transition: transform 260ms cubic-bezier(0.33, 1, 0.68, 1), box-shadow 260ms cubic-bezier(0.33, 1, 0.68, 1);
}

.wa-float:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(37, 211, 102, 0.35),
    0 0 48px rgba(37, 211, 102, 0.25),
    0 28px 80px rgba(15, 23, 42, 0.15);
}

.wa-float-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow:
    0 0 20px rgba(37, 211, 102, 0.5),
    0 4px 16px rgba(37, 211, 102, 0.3);
}

.wa-float-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #128C7E;
}

/* ما يميزنا */

.features-grid {
  display: grid;
  gap: 1rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-soft);
  transition: transform 320ms cubic-bezier(0.33, 1, 0.68, 1), box-shadow 320ms cubic-bezier(0.33, 1, 0.68, 1), border-color var(--transition-med);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(15, 39, 68, 0.12);
  border-color: var(--accent-soft-strong);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(16, 42, 92, 0.08);
  color: var(--accent);
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.08),
    0 0 24px rgba(16, 42, 92, 0.12),
    0 0 40px rgba(16, 42, 92, 0.06);
  filter: drop-shadow(0 0 10px rgba(16, 42, 92, 0.2));
}

.feature-title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.feature-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* أنيميشن fade-in */

.fade-section {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition:
    opacity 560ms cubic-bezier(0.33, 1, 0.68, 1),
    transform 560ms cubic-bezier(0.33, 1, 0.68, 1);
  will-change: opacity, transform;
}

.fade-section.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children when section enters view */
.fade-section.in-view .feature-card:nth-child(1) { transition-delay: 0ms; }
.fade-section.in-view .feature-card:nth-child(2) { transition-delay: 80ms; }
.fade-section.in-view .feature-card:nth-child(3) { transition-delay: 160ms; }
.fade-section.in-view .about-panel:nth-child(1) { transition-delay: 0ms; }
.fade-section.in-view .about-panel:nth-child(2) { transition-delay: 120ms; }

/* Hero content entrance — pure CSS, no JS dependency */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .hero-title {
  animation: heroFadeUp 0.75s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}
.hero .hero-subtitle {
  animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both;
}
.hero .hero-ctas {
  animation: heroFadeUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both;
}
.hero .hero-chips {
  animation: heroFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.05s both;
}

/* Override: if JS adds in-view to hero, ensure items are visible (belt-and-suspenders) */
.hero.in-view .hero-title,
.hero.in-view .hero-subtitle,
.hero.in-view .hero-ctas,
.hero.in-view .hero-chips {
  opacity: 1;
  transform: translateY(0);
}

/* إذا لم يضف JS صنف .in-view (مثلاً صفحة الشروط/الخصوصية)، نظهر المحتوى بعد تأخير قصير */
@keyframes fade-section-fallback {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fade-section:not(.in-view) {
  animation: fade-section-fallback 0.5s ease 0.4s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .fade-section,
  .fade-section.in-view .feature-card,
  .fade-section.in-view .about-panel {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0ms !important;
  }

  .hero .hero-title,
  .hero .hero-subtitle,
  .hero .hero-ctas,
  .hero .hero-chips {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .about-floating-arrow {
    animation: none !important;
  }

  .about-panel,
  .about-panel:nth-child(2) {
    animation: none !important;
    background: linear-gradient(135deg, var(--white), var(--bg-section-alt)) !important;
  }

  .nav-link,
  .nav-link:hover,
  .nav-link:active,
  .nav-link.is-active {
    transform: none;
  }

  .sidebar-link .icon,
  .sidebar-link:hover .icon,
  .sidebar-link:active .icon,
  .sidebar-link.is-active .icon {
    transform: none;
    filter: drop-shadow(0 0 6px rgba(16, 42, 92, 0.3));
  }

  .feature-card:hover,
  .btn-primary:hover,
  .footer-social-list a:hover {
    transform: none;
  }
}

/* ريسبونسيف */

@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-overlay {
    padding: 3rem;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  }

  .footer-inner {
    grid-template-columns: 2fr 1.3fr 1.3fr 1fr;
  }
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .services-cta-card {
    padding: 1.4rem 1.1rem;
  }

  /* Hero: lock to viewport, no overflow */
  .hero {
    min-height: calc(100dvh - var(--header-height));
    min-height: calc(100vh - var(--header-height));
  }

  .hero-overlay {
    padding: 1.5rem;
    max-width: calc(100% - 1.5rem);
    margin-inline-start: 0.75rem;
  }
}

/* ========== صفحة الكاتالوج / معرض الأعمال ========== */

.catalog-hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
  background: var(--bg-section);
}

.catalog-hero-title {
  margin: 0 0 0.5rem;
  font-size: 2.2rem;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(16, 42, 92, 0.2);
}

.catalog-hero-tagline {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.catalog-gallery {
  padding-top: 1rem;
  padding-bottom: 3rem;
  background: var(--bg-section-alt);
}

.catalog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.catalog-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  background: var(--bg-elevated);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.catalog-card:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.catalog-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 42, 92, 0.5);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition-med);
}

.catalog-card:hover .catalog-card-overlay {
  opacity: 1;
}

@media (min-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .catalog-hero-title {
    font-size: 2.6rem;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Lightbox (CSS :target) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 50%;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ========== صفحة المحتوى النصي (قانوني، من نحن، إلخ) ========== */
.page-content,
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.page-content p,
.legal-content p {
  margin: 0 0 1rem;
  color: var(--text-main);
}

.page-content p:last-child,
.legal-content p:last-child {
  margin-bottom: 0;
}

.page-content h2,
.legal-content h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--accent);
}

.page-content h2:first-child,
.legal-content h2:first-child {
  margin-top: 0;
}

.page-content ul,
.legal-content ul {
  margin: 0.5rem 0 1rem;
  padding-inline-start: 1.5rem;
}

.page-content li,
.legal-content li {
  margin-bottom: 0.35rem;
}

.page-content .page-updated,
.legal-content .page-updated {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-content a,
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

.page-content a:hover,
.legal-content a:hover {
  text-decoration: none;
}

/* ========== Modern inner pages: hero + content card ========== */
.page-hero {
  padding: calc(var(--header-height) + 3rem) 0 2.5rem;
  background: linear-gradient(180deg, var(--bg-section-alt) 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero .section-title {
  margin-bottom: 0.5rem;
}

.page-hero .section-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

.content-card {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  padding: 2rem 2.25rem;
  margin: -1rem auto 2rem;
  max-width: 780px;
}

.legal-content-wrap .legal-content h2 {
  position: relative;
  padding-inline-start: 1rem;
  border-inline-start: 4px solid var(--accent);
  margin-top: 2rem;
  font-size: 1.2rem;
}

.legal-content-wrap .legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content-wrap .page-updated,
.page-content-wrap .page-updated {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
}

.page-cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.about-value-item {
  padding: 1.25rem;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}

.about-value-item strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.section--alt {
  background: var(--bg-section-alt);
}

/* صفحة تصميم وتنفيذ الديكور — شبكة الإحصائيات */
.decoration-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.decoration-stat {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.decoration-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.decoration-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* خطوات العمل — صفحة الديكور */
.decoration-process {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-top: 0.5rem;
}

.decoration-process-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  min-width: 200px;
}

.decoration-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
}

.decoration-process-label {
  font-size: 0.95rem;
  color: var(--text-main);
}
