/* =========================
   Wolf Digital Growth - UI System
   ========================= */

/* Base */
:root {
  --bg: #070A14;
  --bg2: #0B1020;

  --card: rgba(255, 255, 255, .06);
  --card2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .12);

  --text: #EAF0FF;
  --muted: rgba(234, 240, 255, .72);

  --brand1: #3B82F6;
  /* blue */
  --brand2: #8B5CF6;
  /* purple */
  --brand3: #EC4899;
  /* pink */

  --shadow: 0 18px 55px rgba(0, 0, 0, .42);
  --shadow2: 0 10px 28px rgba(0, 0, 0, .28);

  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --scroll: 0;
  /* 0..1 */
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1000px 500px at 12% 10%, rgba(59, 130, 246, .20), transparent 60%),
    radial-gradient(900px 450px at 90% 22%, rgba(139, 92, 246, .22), transparent 55%),
    radial-gradient(800px 420px at 40% 110%, rgba(236, 72, 153, .16), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
}

/* Subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .20), transparent 45%),
    radial-gradient(circle at 80% 55%, rgba(255, 255, 255, .12), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .03) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}

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

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

p {
  color: var(--muted)
}

b {
  color: rgba(234, 240, 255, .92)
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -.02em
}

h2 {
  font-size: clamp(24px, 3.2vw, 42px)
}

h3 {
  font-size: clamp(20px, 2.4vw, 30px)
}

h4 {
  font-size: 16px
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.text-center {
  text-align: center
}

.text-gradient {
  background-image: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Icons */
.icon-sm {
  width: 18px;
  height: 18px
}

.icon-md {
  width: 22px;
  height: 22px
}

.icon-lg {
  width: 30px;
  height: 30px
}

/* Buttons */
.btn-primary,
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.01em;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow2);
  cursor: pointer;
  user-select: none;
  isolation: isolate;
  transition: transform .18s var(--ease), filter .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, .95), rgba(139, 92, 246, .9));
  color: #071022;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(236, 72, 153, .35), rgba(59, 130, 246, .25), rgba(139, 92, 246, .35));
  filter: blur(18px);
  opacity: .0;
  z-index: -1;
  transition: opacity .18s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06)
}

.btn-primary:hover::after {
  opacity: .85
}

.btn-primary:active {
  transform: translateY(0px) scale(.99)
}

.btn-secondary {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .10);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 18px
}

.btn-inline {
  padding-inline: 18px
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 20, .56);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(16px);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
  transform-origin: 100% 50%;
  /* RTL: start from right */
  transform: scaleX(var(--scroll));
  opacity: .85;
}

.nav--scrolled {
  background: rgba(7, 10, 20, .82);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand__mark {
  width: 34 px;
  height: 34px;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
  transform: translateY(0);
}

.brand__text {
  font-size: 42px;
  line-height: 1;
  background-image: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__tag {
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(234, 240, 255, .55);
  transform: translateY(0);
}


@media (max-width: 520px) {
  .brand__text {
    font-size: 34px;
  }

  .brand__tag {
    font-size: 12px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }
}


.nav__links {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav__link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(234, 240, 255, .76);
  font-weight: 900;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
  transform: scaleX(0);
  transform-origin: 100% 50%;
  opacity: .0;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.nav__link:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  transform: translateY(-1px);
}

.nav__link:hover::after {
  transform: scaleX(1);
  opacity: .95
}

.nav__cta {
  padding: 10px 16px;
  font-size: 14px
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text);
  border-radius: 14px;
  padding: 10px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, .10);
  transform: translateY(-1px)
}

@media (min-width: 860px) {
  .nav__links {
    display: flex
  }

  .nav__toggle {
    display: none
  }
}

/* Mobile Menu */
.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: rgba(7, 10, 20, .92);
  backdrop-filter: blur(18px);
}

.mobile-menu__inner {
  padding: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .05);
  color: rgba(234, 240, 255, .86);
  font-weight: 900;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeDown .35s var(--ease) forwards;
}

.mobile-nav-item:hover {
  background: rgba(255, 255, 255, .08)
}

.mobile-menu__cta {
  margin-top: 6px;
  border-radius: 16px
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: clamp(70px, 10vh, 120px) 0;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  filter: blur(64px);
  opacity: .42;
  border-radius: 999px;
  mix-blend-mode: screen;
  animation: floaty 7s var(--ease) infinite;
}

.blob--1 {
  right: -120px;
  top: 70px;
  background: rgba(139, 92, 246, .55)
}

.blob--2 {
  left: -140px;
  top: 160px;
  background: rgba(59, 130, 246, .50);
  animation-delay: 1.5s
}

.blob--3 {
  left: 20%;
  bottom: -180px;
  background: rgba(236, 72, 153, .45);
  animation-delay: 3s
}

@keyframes floaty {
  0% {
    transform: translateY(0) translateX(0) scale(1)
  }

  50% {
    transform: translateY(-16px) translateX(10px) scale(1.04)
  }

  100% {
    transform: translateY(0) translateX(0) scale(1)
  }
}

.spotlight {
  position: absolute;
  inset: -1px;
  background: radial-gradient(800px 380px at var(--cx) var(--cy), rgba(59, 130, 246, .18), transparent 62%);
  opacity: .65;
  mask-image: radial-gradient(closest-side at 50% 30%, rgba(0, 0, 0, .9), transparent 72%);
}

.grid-noise {
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(closest-side at 50% 30%, rgba(0, 0, 0, .9), transparent 70%);
  opacity: .18;
}

.hero__content {
  position: relative;
  z-index: 2
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  text-align: center;
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 26px;
    text-align: right;
    align-items: center;
  }
}

.hero__copy {
  max-width: 68ch;
  margin-inline: auto
}

@media (min-width: 980px) {
  .hero__copy {
    margin-inline: 0
  }
}

.hero__title {
  font-size: clamp(34px, 5.2vw, 66px);
  font-weight: 900;
  margin: 14px 0 12px;
}

/* Hero title spacing (guaranteed on ALL viewports) */
.hero__title {
  line-height: 1.02;
}

.hero__line {
  display: block;
  line-height: 1.12;
}

.hero__line+.hero__line {
  margin-top: clamp(18px, 3.8vw, 64px);
  /* increase distance between the 2 sentences */
}

@media (max-width: 520px) {
  .hero__line+.hero__line {
    margin-top: clamp(16px, 5.2vw, 44px);
  }
}

.hero__subtitle {
  font-size: clamp(16px, 2.2vw, 22px);
  max-width: 74ch;
  margin: 0 auto 18px;
}

@media (min-width: 980px) {
  .hero__subtitle {
    margin: 0 0 18px;
  }
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

@media (min-width: 980px) {
  .hero__actions {
    justify-content: flex-start
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(59, 130, 246, .95), rgba(139, 92, 246, .9), rgba(236, 72, 153, .85));
  color: #070A14;
  box-shadow: var(--shadow2);
}

.hero__bullets {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 980px) {
  .hero__bullets {
    justify-content: flex-start
  }
}

.bullet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: rgba(234, 240, 255, .85);
  font-weight: 900;
}

/* Hero visual card */
.hero__visual {
  display: flex;
  justify-content: center
}

@media (min-width: 980px) {
  .hero__visual {
    justify-content: flex-end
  }
}

.hero-visual {
  position: relative;
  width: min(520px, 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 180deg, rgba(59, 130, 246, .0), rgba(59, 130, 246, .45), rgba(139, 92, 246, .45), rgba(236, 72, 153, .35), rgba(59, 130, 246, .0));
  filter: blur(18px);
  opacity: .55;
  animation: spin 10s linear infinite;
  z-index: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.hero-visual__ring {
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 340px at var(--mx, 50%) var(--my, 35%), rgba(255, 255, 255, .14), transparent 58%);
  opacity: .0;
  transition: opacity .18s var(--ease);
  z-index: 1;
}

.hero-visual:hover .hero-visual__ring {
  opacity: 1
}

.hero-visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 360px;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.05);
  transition: transform .8s var(--ease), opacity .6s var(--ease);
  opacity: .92;
}

.hero-visual:hover img {
  transform: scale(1.08);
  opacity: .78
}

.hero-visual__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(0deg, rgba(7, 10, 20, .88) 0%, rgba(7, 10, 20, .10) 55%, rgba(7, 10, 20, .04) 100%);
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  min-width: 110px;
}

.mini-stat span {
  font-size: 12px;
  color: rgba(234, 240, 255, .70);
  font-weight: 800;
}

.mini-stat strong {
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  letter-spacing: -.02em;
  background-image: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

/* Payment badges (icons only) */
.pay-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pay-badge {
  width: 150px;
  height: 80px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: contain;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  filter: brightness(0.9) grayscale(0.2) contrast(1.1);
}

.pay-badge:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  filter: brightness(1) grayscale(0) contrast(1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pay-badge--paypal {
  padding: 12px;
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow2);
  text-align: right;
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, .18), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(236, 72, 153, .12), transparent 55%);
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
}

.trust-card p {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(234, 240, 255, .70)
}

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

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 10, 20, .40);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
  color: rgba(234, 240, 255, .75);
  font-weight: 900;
  z-index: 3;
}

.scroll-hint__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .06);
  animation: bop 1.2s var(--ease) infinite;
}

@keyframes bop {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(4px)
  }
}

.scroll-hint__text {
  font-size: 12px;
  letter-spacing: .02em
}

/* Sections */
.section {
  padding: clamp(54px, 8vw, 92px) 0
}

.section__header {
  margin-bottom: 28px
}

.section__header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section__title {
  font-weight: 900
}

.section__subtitle {
  margin-top: 10px;
  max-width: 64ch
}

.section__line {
  width: 92px;
  height: 4px;
  border-radius: 999px;
  margin: 12px auto 0;
  background-image: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
}

/* Services */
.services {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 26px
}

.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, .12), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(139, 92, 246, .10), transparent 55%);
  filter: blur(60px);
  opacity: .0;
  transition: opacity .25s var(--ease);
  pointer-events: none;
}

.service:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
}

.service:hover::before {
  opacity: .8
}

.service__content p {
  margin: 10px 0 14px;
  max-width: 72ch
}

.service__content h3 {
  font-weight: 900;
  margin-top: 10px
}

@media (min-width: 980px) {
  .service {
    grid-template-columns: 420px 1fr;
    gap: 26px;
    padding: 22px 22px
  }

  .service--reverse {
    grid-template-columns: 1fr 420px;
  }

  .service--reverse .service__media {
    order: 2
  }
}

.media-card {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .55s var(--ease), filter .55s var(--ease);
  filter: saturate(1.06) contrast(1.02);
}

.service:hover .media-card img {
  transform: scale(1.08)
}

.media-glow {
  position: absolute;
  inset: -40px;
  filter: blur(50px);
  opacity: .30;
  pointer-events: none;
}

.media-glow--brand {
  background: rgba(59, 130, 246, .60)
}

.media-glow--purple {
  background: rgba(139, 92, 246, .62)
}

.media-glow--blue {
  background: rgba(59, 130, 246, .55)
}

.media-glow--pink {
  background: rgba(236, 72, 153, .55)
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

.pill--brand {
  color: rgba(59, 130, 246, 1)
}

.pill--purple {
  color: rgba(139, 92, 246, 1)
}

.pill--blue {
  color: rgba(59, 130, 246, 1)
}

.pill--pink {
  color: rgba(236, 72, 153, 1)
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .05);
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.feature-card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(139, 92, 246, .30);
  transform: translateX(-4px);
  /* RTL */
}

.text-green {
  color: #4ADE80
}

.text-purple {
  color: #C4B5FD
}

.text-blue {
  color: #93C5FD
}

.text-pink {
  color: #F9A8D4
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}

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

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

.portfolio-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  box-shadow: var(--shadow2);
  min-height: 340px;
  display: block;
}

.portfolio-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .8s var(--ease), opacity .6s var(--ease);
  transform: scale(1.02);
  opacity: .92;
  filter: saturate(1.05) contrast(1.02);
}

.portfolio-card:hover img {
  transform: scale(1.12);
  opacity: .60;
  filter: saturate(1.12) contrast(1.06)
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 10, 20, .92) 0%, rgba(7, 10, 20, .35) 55%, rgba(7, 10, 20, .10) 100%);
  opacity: .95;
  transition: opacity .25s var(--ease);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: .78
}

.portfolio-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.kicker {
  font-family: "Outfit", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  color: rgba(147, 197, 253, .9);
  margin: 0 0 8px;
}

.portfolio-card h3 {
  font-weight: 900
}

.portfolio-metric {
  margin: 8px 0 0;
  color: rgba(234, 240, 255, .72);
  font-size: 14px;
  max-width: 34ch;
}

.chip {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  transform: translateY(6px);
  opacity: .0;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}

.portfolio-card:hover .chip {
  transform: translateY(0);
  opacity: 1
}

/* Stats */
.stats {
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
}

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

@media (min-width: 900px) {
  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-card {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .05);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, .14), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(139, 92, 246, .12), transparent 55%);
  filter: blur(60px);
  opacity: .45;
  pointer-events: none;
}

.stat-card__num {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 30px;
  margin-bottom: 4px;
  background-image: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card__label {
  margin: 0;
  color: rgba(234, 240, 255, .66);
  font-size: 13px
}

/* CTA */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow);
  padding: 26px;
  text-align: center;
}

.cta-card__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, .35), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(236, 72, 153, .25), transparent 45%);
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
}

.cta-card__title {
  font-weight: 900;
  font-size: clamp(24px, 3.4vw, 40px);
  margin-bottom: 10px;
}

.cta-card__text {
  max-width: 70ch;
  margin: 0 auto 18px;
}

.cta-card__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(234, 240, 255, .55);
}

/* Footer */
.footer {
  padding: 48px 0 18px;
  position: relative;
  background: rgba(7, 10, 20, .55);
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.footer__topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-image: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
  opacity: .95;
}

.footer__inner {
  text-align: center;
  position: relative;
  z-index: 2
}

.footer__brand {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 40px;
  margin-bottom: 10px;
  background-image: linear-gradient(135deg, var(--brand1), var(--brand2), var(--brand3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__desc {
  max-width: 76ch;
  margin: 0 auto 18px;
  color: rgba(234, 240, 255, .70);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 22px;
}

.social {
  --accent: rgba(255, 255, 255, .28);
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow2);
  transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0);
  transition:
    transform .18s var(--ease),
    border-color .18s var(--ease),
    background .18s var(--ease),
    box-shadow .18s var(--ease);
  isolation: isolate;
}

.social::after {
  content: "";
  position: absolute;
  inset: -16px;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), var(--accent), transparent 60%);
  filter: blur(18px);
  opacity: 0;
  transition: opacity .22s var(--ease);
  z-index: 0;
}

.social:hover {
  transform: translate3d(var(--sx, 0px), calc(var(--sy, 0px) - 3px), 0) scale(1.02);
  border-color: rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .42);
}

.social:hover::after {
  opacity: .32
}

.social__bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  filter: blur(12px);
  transition: opacity .22s var(--ease);
  z-index: 0;
}

.social:hover .social__bg {
  opacity: .75
}

.social__icon {
  position: relative;
  z-index: 2;
  color: rgba(234, 240, 255, .75);
  transition: color .22s var(--ease), transform .22s var(--ease);
}

.social:hover .social__icon {
  color: #fff;
  transform: translateY(-1px);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor
}

.social__label {
  position: absolute;
  z-index: 3;
  top: -36px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(7, 10, 20, .86);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(234, 240, 255, .86);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  box-shadow: var(--shadow2);
}

.social:hover .social__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

/* Payment badges (Unified Frames) */
.pay-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pay-badge {
  width: 140px;
  /* Uniform width */
  height: 70px;
  /* Uniform height */
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: contain;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  filter: brightness(0.9) grayscale(0.2) contrast(1.1);
}

.pay-badge:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  filter: brightness(1) grayscale(0) contrast(1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social--whatsapp {
  --accent: rgba(37, 211, 102, .55)
}

.social--facebook {
  --accent: rgba(24, 119, 242, .55)
}

.social--instagram {
  --accent: rgba(253, 89, 73, .45)
}

.social--tiktok {
  --accent: rgba(255, 255, 255, .40)
}

.social--telegram {
  --accent: rgba(34, 158, 217, .55)
}

.social--x {
  --accent: rgba(255, 255, 255, .35)
}

.social--whatsapp .social__bg {
  background: #25D366
}

.social--facebook .social__bg {
  background: #1877F2
}

.social--instagram .social__bg {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%)
}

.social--tiktok .social__bg {
  background: #000
}

.social--telegram .social__bg {
  background: #229ED9
}

.social--x .social__bg {
  background: #000
}

.footer__copy {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: rgba(234, 240, 255, .55);
  font-size: 13px;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 10, 20, .65);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow2);
  display: grid;
  place-items: center;
  z-index: 60;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}

.to-top:hover {
  background: rgba(7, 10, 20, .78)
}

.to-top.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 61;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(37, 211, 102, .18);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow2);
  color: rgba(234, 240, 255, .92);
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: rgba(37, 211, 102, .26);
  border-color: rgba(255, 255, 255, .18);
}

.whatsapp-float__icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.whatsapp-float__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor
}

.whatsapp-float__text {
  font-size: 13px;
  letter-spacing: .02em
}

@media (max-width: 520px) {
  .whatsapp-float {
    padding: 12px;
  }

  .whatsapp-float__text {
    display: none
  }
}

/* Reveal (Scroll) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Fade-in helpers */
.fade-in-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .8s var(--ease) forwards;
}

.delay-100 {
  animation-delay: .10s
}

.delay-200 {
  animation-delay: .20s
}

.delay-300 {
  animation-delay: .30s
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Tilt effect */
.tilt {
  position: relative;
  will-change: transform;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .18s var(--ease);
}

.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(650px 280px at var(--mx, 50%) var(--my, 35%), rgba(255, 255, 255, .10), transparent 55%);
  opacity: .0;
  transition: opacity .18s var(--ease);
}

.tilt:hover::after {
  opacity: 1
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none
  }

  .nav::after {
    display: none
  }
}

/* =========================
   Services: pro button order + aligned badges
   ========================= */

/* Make the service content behave like a column so CTAs line up */
.service__content--centered {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* RTL start = يمين */
}

/* Badge (pill) should sit with the text column (not centered on the whole card) */
.service__content--centered .pill {
  position: static;
  margin: 2px 0 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
  animation: badgeIn .55s var(--ease) both;
}

.service__content--centered .pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* Title and copy width to keep clean alignment */
.service__content--centered .service__title-center {
  width: 100%;
  text-align: start;
  margin-top: 0;
}

.service__content--centered p,
.service__content--centered .feature-list {
  width: 100%;
}

/* Actions row (CTA buttons) */
.service__actions {
  width: 100%;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  justify-content: flex-start;
  /* RTL start = يمين */
}

/* Make the main CTA feel like it belongs to the section */
.service__actions .btn-inline {
  min-width: 150px;
}

/* Responsive: center everything on smaller screens */
@media (max-width: 979px) {
  .service__content--centered {
    align-items: center;
    text-align: center;
  }

  .service__content--centered .service__title-center {
    text-align: center;
  }

  .service__actions {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .service__actions .btn-inline {
    width: 100%;
  }
}

@keyframes badgeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* File designs (teal) */
.pill--teal {
  color: rgba(45, 212, 191, 1)
}

.media-glow--teal {
  background: rgba(45, 212, 191, .55)
}

.feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .05);
  flex: 0 0 10px;
}

.feature-dot--teal {
  background: rgba(45, 212, 191, 1)
}

.feature-card {
  gap: 12px
}

/* Footer phone */
.footer__phone {
  margin: 2px 0 14px;
  font-family: "Outfit", sans-serif;
  letter-spacing: .02em;
  font-weight: 800;
  color: rgba(234, 240, 255, .75);
}

.footer__phone a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
}

.footer__phone a:hover {
  background: rgba(255, 255, 255, .08);
}

/* CTA phone */
.cta-phone {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
  font-weight: 900;
  color: rgba(234, 240, 255, .78);
}

.cta-phone__label {
  opacity: .9
}

.cta-phone__sep {
  opacity: .55
}

.cta-phone__value {
  color: rgba(234, 240, 255, .92);
  border-bottom: 1px dashed rgba(255, 255, 255, .28);
}

.cta-phone__value:hover {
  color: #fff;
  border-bottom-color: rgba(139, 92, 246, .55);
}

/* Social SVG sizing */
.social__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}




/* Safety: if any old rule tries to override margin, force separation */


/* Responsive polish (all devices) */

/* Make tap targets and focus states nicer */
:where(a, button) {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button):focus-visible {
  outline: 2px solid rgba(139, 92, 246, .75);
  outline-offset: 3px;
  border-radius: 14px;
}

/* HERO: better scaling across devices */
.hero {
  padding: clamp(64px, 10vh, 120px) 0;
}

.hero__subtitle {
  max-width: 68ch;
}

.hero-visual img {
  height: clamp(240px, 36vh, 380px);
}

/* Mini stats: avoid squeezing on small screens */
.hero-visual__overlay {
  gap: 10px;
}

@media (max-width: 520px) {
  .hero-visual__overlay {
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
  }

  .mini-stat {
    min-width: 110px;
    flex: 1 1 110px;
  }
}

/* Buttons: stack nicely on tiny screens */
@media (max-width: 420px) {
  .hero__actions a {
    width: 100%;
  }

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

/* Trust cards: keep consistent height + padding */
.hero__trust .trust-card {
  padding: 16px;
}

@media (max-width: 520px) {
  .hero__trust {
    gap: 10px;
  }
}

/* SERVICES: mobile polish */
.service {
  position: relative;
}

@media (max-width: 520px) {
  .service {
    padding: 16px;
  }

  .service__content {
    text-align: center;
  }

  .service__content p {
    margin-inline: auto;
  }

  .service__content--centered .service__title-center {
    text-align: center;
  }

  .service__content--centered .pill {
    max-width: calc(100% - 24px);
    text-align: center;
    padding-inline: 14px;
  }

  .feature-list {
    align-items: stretch;
  }

  .feature-card {
    justify-content: center;
  }
}

/* Service layout: avoid very wide media on tablets */
@media (min-width: 521px) and (max-width: 979px) {
  .service {
    padding: 18px;
  }

  .service__media .media-card img {
    aspect-ratio: 16/9;
  }
}

/* PORTFOLIO: responsive heights */
.portfolio-card {
  min-height: clamp(260px, 40vh, 360px);
}

/* STATS: nicer numbers on small screens */
@media (max-width: 420px) {
  .stat-card__num {
    font-size: 26px;
  }

  .stats__grid {
    gap: 10px;
  }
}

/* FOOTER: reduce huge brand on very small screens */
@media (max-width: 420px) {
  .footer__brand {
    font-size: 34px;
  }

  .footer__desc {
    font-size: 14px;
  }
}

/* SOCIALS: keep spacing and avoid overflow */
.socials {
  padding-inline: 6px;
}

@media (max-width: 420px) {
  .socials {
    gap: 8px;
  }

  .social {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

/* Back-to-top safe area */
.to-top {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
}

/* NAV: prevent mobile menu from feeling cramped */
@media (max-width: 420px) {
  .mobile-nav-item {
    padding: 14px 12px;
  }
}


/* Brand text */
.logo-sub {
  font-weight: 600;
  opacity: .9
}

/* Cleanup: Removed redundant rules and unified sections */