:root {
  --fire-red: #e31e24;
  --deep-red: #c41018;
  --vibrant-orange: #ff6b35;
  --golden-yellow: #ffd700;
  --warm-amber: #ffa500;
  --dark-bg: #0d0d0d;
  --dark-layer: #140707;
  --dark-card: #171717;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.46);
  --grad-fire: linear-gradient(135deg, #e31e24 0%, #ff6b35 55%, #ffd700 100%);
  --grad-dark: linear-gradient(180deg, #0d0d0d 0%, #190909 52%, #0d0d0d 100%);
  --shadow-card: 0 24px 54px rgba(0, 0, 0, 0.28);
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-pill: 999px;
  --font-body: "Tajawal", "Cairo", sans-serif;
  --font-display: "Alexandria", "Cairo", sans-serif;
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(227, 30, 36, 0.14), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(255, 107, 53, 0.1), transparent 24%),
    var(--dark-bg);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

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

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

.page-shell {
  position: relative;
  min-height: 100vh;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.4), transparent 80%);
  opacity: .16;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.grad-text {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(13,13,13,.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  transition: padding .3s var(--ease), background .3s;
}

.navbar.scrolled {
  padding: 11px 24px;
  background: rgba(13,13,13,.97);
}

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

.nav-brand a {
  display: inline-flex;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(227,30,36,.5));
  animation: logoFloat 3s ease-in-out infinite;
}

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

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

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}

.navbar.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-link {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease-spring);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}

.nav-cta,
.nav-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--grad-fire);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 0 34px rgba(227, 30, 36, .32);
  transition: transform .25s var(--ease-spring), box-shadow .25s, filter .25s;
}

.nav-cta:hover,
.nav-cta-link:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 44px rgba(227,30,36,.7);
  filter: saturate(1.1);
}

.wa-fab {
  position: fixed;
  bottom: 80px;
  left: 18px;
  z-index: 998;
  min-width: 152px;
  height: 58px;
  padding: 0 16px 0 12px;
  background: linear-gradient(135deg, #25D366, #0ea95c);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37,211,102,.35), 0 0 0 1px rgba(255,255,255,.12) inset;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
  animation: waPulse 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.wa-fab-secondary {
  position: fixed;
  bottom: 146px;
  left: 18px;
  z-index: 997;
  min-width: 152px;
  height: 54px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #128C7E, #25D366);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(18,140,126,.3), 0 0 0 1px rgba(255,255,255,.1) inset;
  transition: transform .3s var(--ease-spring), box-shadow .3s;
  animation: waPulse 3.2s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.wa-fab:hover,
.wa-fab-secondary:hover {
  transform: translateY(-4px) scale(1.04);
}

.wa-fab-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
  font-size: 20px;
  flex-shrink: 0;
}

.wa-fab-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  display: block;
}

.wa-fab-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: right;
}

.wa-fab-text small {
  font-size: 10px;
  font-weight: 500;
  opacity: .9;
}

@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 42px rgba(37,211,102,.72); }
}

.hero-page {
  padding: 140px 0 40px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  padding: 56px;
  background:
    linear-gradient(140deg, rgba(227,30,36,.2), rgba(255,107,53,.08) 40%, rgba(255,255,255,.03)),
    rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-card);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  left: -60px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, .14), transparent 70%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--golden-yellow);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.16;
}

.hero-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 800;
  transition: transform .25s var(--ease-spring), border-color .25s ease, background .25s ease;
}

.btn-primary {
  background: var(--grad-fire);
  color: #fff;
  box-shadow: 0 10px 34px rgba(227, 30, 36, .28);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #fff;
}

.btn-primary:hover,
.btn-secondary:hover,
.nav-cta:hover {
  transform: translateY(-3px) scale(1.02);
}

.page-section {
  padding: 34px 0 100px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.9;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

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

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

.panel,
.stat-card,
.service-card,
.faq-item,
.portfolio-card,
.highlight-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.panel,
.stat-card,
.service-card,
.faq-item,
.highlight-card {
  padding: 24px;
}

.panel h3,
.service-card h3,
.highlight-card h3,
.faq-question,
.portfolio-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.panel p,
.service-card p,
.highlight-card p,
.stat-card p,
.faq-answer p,
.portfolio-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.9;
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 34px;
}

.story-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items: stretch;
}

.story-image {
  min-height: 100%;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.timeline-step {
  min-height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(227,30,36,.2), rgba(255,107,53,.12));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
}

.service-card ul,
.highlight-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-card li,
.highlight-card li {
  color: var(--text-secondary);
  position: relative;
  padding-right: 18px;
}

.service-card li::before,
.highlight-card li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--golden-yellow);
  box-shadow: 0 0 12px rgba(255, 215, 0, .4);
}

.service-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(227,30,36,.22), rgba(255,107,53,.1));
  font-size: 28px;
}

.faq-wrap {
  display: grid;
  gap: 14px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  text-align: right;
}

.faq-question span:last-child {
  color: var(--golden-yellow);
  font-size: 28px;
  transition: transform .25s ease;
}

.faq-item.open .faq-question span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-answer p {
  padding-top: 16px;
}

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

.portfolio-card {
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.portfolio-card-body {
  padding: 18px 18px 22px;
}

.cta-banner {
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(227,30,36,.18), rgba(255,107,53,.08)),
    rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-card);
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
}

.cta-banner p {
  max-width: 680px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.9;
}

.page-footer {
  padding: 0 0 50px;
}

.footer-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.footer-card p {
  margin: 0;
  color: var(--text-secondary);
}

@media (max-width: 980px) {
  .story-layout,
  .grid-4,
  .grid-3,
  .grid-2,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .nav-center {
    order: 4;
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .28s ease, opacity .28s ease, padding-top .28s ease;
  }

  .navbar.menu-open .nav-center {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    padding-top: 8px;
  }

  .hero-card {
    padding: 34px 24px;
    border-radius: 28px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-center {
    gap: 6px;
  }

  .nav-link {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
  }

  .nav-cta,
  .nav-cta-link {
    width: 100%;
  }

  .wa-fab {
    min-width: 136px;
    height: 54px;
    left: 12px;
    bottom: 72px;
  }

  .wa-fab-secondary {
    min-width: 136px;
    height: 50px;
    left: 12px;
    bottom: 132px;
  }

  .hero-actions,
  .footer-card {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
