@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Montserrat:wght@500;600;700;800&display=swap");
:root {
  --red: #cf2027;
  --red-deep: #9f1018;
  --ink: #1f1f1f;
  --paper: #ffffff;
  --muted: #696969;
  --line: rgba(31, 31, 31, 0.12);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 70px rgba(31, 31, 31, 0.13);
  --radius: 8px;
  --pointer-x: 0px;
  --pointer-y: 0px;
}

:root[data-theme="dark"] {
  --paper: #080808;
  --ink: #f5f5f5;
  --muted: #b7b7b7;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(22, 22, 22, 0.62);
  --glass-strong: rgba(18, 18, 18, 0.84);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, var(--paper), color-mix(in srgb, var(--paper) 94%, #cf2027 6%));
  color: var(--ink);
  font-family: "Cairo", "Montserrat", Arial, sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(207, 32, 39, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 31, 0.035) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 46%, rgba(207, 32, 39, 0.07) 49%, transparent 52% 100%);
  background-size: 72px 72px, 72px 72px, 220% 100%;
  animation: ambientGrid 24s linear infinite;
}

:root[data-theme="dark"] body::before {
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(207, 32, 39, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(115deg, transparent 0 46%, rgba(207, 32, 39, 0.1) 49%, transparent 52% 100%);
}

html[dir="ltr"] body {
  font-family: "Montserrat", "Cairo", Arial, sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.scroll-progress {
  --scroll-progress: 0;
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  background: var(--red);
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
  box-shadow: 0 0 14px rgba(207, 32, 39, 0.6);
}

html[dir="rtl"] .scroll-progress {
  transform-origin: right center;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.nav {
  position: fixed;
  z-index: 20;
  top: 18px;
  inset-inline: clamp(14px, 4vw, 54px);
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 10px 14px;
  border-radius: var(--radius);
  animation: navArrival 0.72s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.brand img {
  width: 150px;
  height: 50px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] footer img {
  mix-blend-mode: screen;
  filter: brightness(1.12);
}

.nav nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.nav nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav nav a:hover {
  color: var(--red);
  transform: translateY(-2px);
}

.actions,
.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-button,
.lang-button,
.button,
.newsletter button {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.icon-button {
  width: 42px;
  background: var(--glass-strong);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.lang-button {
  padding: 0 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.button,
.newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-weight: 800;
  gap: 9px;
  position: relative;
  overflow: hidden;
}

.button::after,
.newsletter button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 28%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-18deg) translateX(-260%);
  transition: transform 0.65s ease;
}

.button:hover::after,
.newsletter button:hover::after {
  transform: skewX(-18deg) translateX(620%);
}

.primary,
.newsletter button {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: white;
  box-shadow: 0 18px 34px rgba(207, 32, 39, 0.28);
}

.ghost {
  background: var(--glass-strong);
  color: var(--ink);
}

.button:hover,
.icon-button:hover,
.lang-button:hover,
.newsletter button:hover {
  transform: translateY(-3px);
}

.hero {
  min-height: 100vh;
  padding: 128px clamp(18px, 6vw, 92px) 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 9% -8% auto auto;
  width: 42vw;
  aspect-ratio: 1;
  border: 1px solid rgba(207, 32, 39, 0.16);
  transform: rotate(32deg);
  pointer-events: none;
  animation: architecturalSweep 14s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 5.8vw, 5.5rem);
  line-height: 1.03;
  max-width: 980px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.lead,
.section-head p,
.platform p,
.contact-copy p,
.newsletter p,
.about-section p,
.signature-card p,
.resource-card p,
.maps-section p,
.service-card p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.8;
}

.lead {
  max-width: 760px;
  margin-bottom: 30px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 34px;
  max-width: 860px;
}

.proof-grid span {
  min-height: 72px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--muted);
  font-weight: 700;
  gap: 8px;
}

.proof-grid svg,
.signature-card li svg {
  flex: 0 0 auto;
  color: var(--red);
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.device-card {
  position: absolute;
  inset: 0 0 34px 0;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(140deg, rgba(31, 31, 31, 0.9), rgba(31, 31, 31, 0.58)),
    url("/assets/gallery/00003.jpg") center/cover;
  transform: translate3d(calc(var(--pointer-x) * 0.45), calc(var(--pointer-y) * 0.45), 0);
  transition: transform 0.5s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.tower-mark {
  width: min(72%, 460px);
  padding: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  animation: markBreathe 6s ease-in-out infinite;
}

.market-card,
.floating-stat {
  position: absolute;
  border-radius: var(--radius);
  padding: 18px;
}

.market-card {
  left: 26px;
  bottom: 28px;
  background: var(--red);
  color: white;
  display: grid;
  gap: 4px;
}

.market-card strong {
  font-size: 2rem;
}

.floating-stat {
  right: -22px;
  top: 54px;
  display: grid;
  gap: 4px;
  min-width: 170px;
  animation: gentleFloat 5.5s ease-in-out infinite;
}

.floating-stat svg {
  color: var(--red);
}

.floating-stat strong {
  color: var(--red);
  font-size: 1.5rem;
}

.section,
.band {
  padding: 86px clamp(18px, 6vw, 92px);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 82%, var(--red) 8%);
}

.platform-card {
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease;
}

.platform-card:hover {
  transform: translateY(-6px) scale(1.012);
}

.platform-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.platform-card span {
  position: absolute;
  inset-inline: 22px;
  bottom: 22px;
  background: rgba(255, 255, 255, 0.86);
  color: #1f1f1f;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font-weight: 800;
  margin-top: 8px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: end;
  gap: clamp(34px, 7vw, 100px);
}

.about-section .section-head {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.stat-item {
  min-height: 140px;
  padding: 20px 16px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-inline-start: 1px solid var(--line);
  transition: background 0.3s ease, transform 0.3s ease;
}

.stat-item:hover {
  background: color-mix(in srgb, var(--glass-strong) 84%, var(--red) 6%);
  transform: translateY(-4px);
}

.stat-item:first-child {
  border-inline-start: 0;
}

.stat-item strong {
  color: var(--red);
  font: 800 clamp(2rem, 4vw, 3.4rem)/1 "Montserrat", sans-serif;
}

.stat-item span {
  color: var(--muted);
  font-weight: 700;
}

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

.signature-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.signature-card:hover,
.service-card:hover,
.resource-card:hover {
  transform: translateY(-7px);
  border-color: rgba(207, 32, 39, 0.32);
  box-shadow: 0 28px 76px rgba(31, 31, 31, 0.16);
}

.service-icon,
.resource-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: var(--radius);
  margin-bottom: 22px;
}

.signature-card ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.signature-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.75;
}

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

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

.service-card {
  min-height: 230px;
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card > svg {
  color: var(--red);
  margin-bottom: 22px;
}

.number {
  color: var(--red);
  font: 800 2.4rem/1 "Montserrat", sans-serif;
}

.journey {
  grid-template-columns: 0.45fr 1fr;
}

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

.timeline-step {
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  align-content: space-between;
  background: var(--glass);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-step::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.5s ease;
}

.timeline-step:hover {
  transform: translateY(-5px);
  border-color: rgba(207, 32, 39, 0.34);
}

.timeline-step:hover::after {
  width: 100%;
}

.timeline-step span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 800;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-radius: var(--radius);
  overflow: hidden;
}

.logo-cell {
  min-height: 118px;
  display: grid;
  place-items: center;
  background: var(--glass-strong);
  padding: 18px;
}

.logo-cell img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.86;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  animation: logoDrift 7s ease-in-out infinite;
}

.logo-cell:nth-child(3n + 2) img {
  animation-delay: -2.3s;
}

.logo-cell:nth-child(3n) img {
  animation-delay: -4.6s;
}

.logo-cell:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}

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

.resource-card {
  min-height: 270px;
  padding: 24px;
  border-radius: var(--radius);
  display: grid;
  align-content: start;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.resource-card.downloadable {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.resource-card.downloadable:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 32, 39, 0.45);
}

.resource-card > span {
  color: var(--red);
  font-weight: 800;
  margin-bottom: 10px;
}

.resource-card small,
.map-panel small {
  color: var(--red);
  font-weight: 700;
  margin-top: auto;
}

.maps-section {
  align-items: stretch;
}

.map-panel {
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  align-content: start;
  gap: 20px;
}

.map-panel > svg {
  color: var(--red);
}

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

.map-list div,
.map-list a {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-list svg {
  color: var(--red);
  flex: 0 0 auto;
}

.social-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  align-items: end;
  gap: clamp(30px, 7vw, 100px);
  background: color-mix(in srgb, var(--ink) 96%, var(--red) 4%);
  color: var(--paper);
}

:root[data-theme="dark"] .social-section {
  background: #f3f3f3;
  color: #171717;
}

.social-section .section-head {
  margin-bottom: 0;
}

.social-section .section-head p {
  color: color-mix(in srgb, currentColor 68%, transparent);
}

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

.social-link {
  min-height: 98px;
  padding: 16px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 13px;
  color: white;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.social-link:hover {
  transform: translateY(-6px);
  filter: saturate(1.12) brightness(1.04);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.social-link.facebook { background: #1877f2; }
.social-link.youtube { background: #ff0000; }
.social-link.tiktok { background: #111111; box-shadow: 4px 4px 0 rgba(37, 244, 238, 0.52), -4px -4px 0 rgba(254, 44, 85, 0.42); }
.social-link.instagram { background: linear-gradient(135deg, #833ab4, #e1306c 52%, #f77737); }

.scroll-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.72s cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay, 0ms),
    transform 0.72s cubic-bezier(0.2, 0.75, 0.25, 1) var(--reveal-delay, 0ms);
}

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

.contact {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
}

.newsletter {
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
}

.newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
}

.newsletter input {
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--ink);
  background: var(--glass-strong);
}

.newsletter small {
  grid-column: 1 / -1;
  color: var(--red);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.newsletter form.is-sent small {
  opacity: 1;
  transform: translateY(0);
}

.newsletter small.visible {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-float {
  position: fixed;
  z-index: 18;
  inset-inline-end: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #25d366;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
}

footer a {
  font-weight: 800;
  direction: ltr;
}

footer {
  padding: 36px clamp(18px, 6vw, 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer img {
  width: 130px;
  mix-blend-mode: multiply;
}

.reveal {
  animation: rise 0.78s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.delay-1 {
  animation-delay: 0.12s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientGrid {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 72px 72px, 72px 72px, 100% 0; }
}

@keyframes navArrival {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes architecturalSweep {
  from { transform: rotate(28deg) translate3d(-8px, 8px, 0); }
  to { transform: rotate(34deg) translate3d(14px, -10px, 0); }
}

@keyframes markBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

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

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

@media (max-width: 1100px) {
  .hero,
  .band,
  .journey,
  .contact,
  .about-section,
  .social-section {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 820px) {
  .nav {
    grid-template-columns: 1fr auto;
    top: 10px;
  }

  .nav nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  html[dir="rtl"] .nav nav {
    justify-content: flex-start;
  }

  .brand img {
    width: 122px;
  }

  .hero {
    padding-top: 154px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 4.5rem);
  }

  .proof-grid,
  .timeline,
  .service-grid,
  .service-grid.compact,
  .signature-services,
  .resource-grid,
  .newsletter form {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .map-list,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .stat-item:first-child {
    border-top: 0;
  }

  .hero-visual {
    min-height: 420px;
  }

  .floating-stat {
    right: 12px;
  }

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

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
