/* ===== VARIABLES & RESET ===== */
:root {
  --clr-primary: #542187;
  --clr-primary-dark: #3a1660;
  --clr-primary-darker: #2d1149;
  --clr-primary-light: #6b2ea6;
  --clr-accent: #a855f7;
  --clr-white: #ffffff;
  --clr-off-white: #faf8fc;
  --clr-border: #ede8f2;
  --clr-text: #333;
  --clr-text-light: #b8a0cc;
  --clr-text-secondary: #999;
  --ff-ar-regular: "ArbFont-Regular", sans-serif;
  --ff-ar-medium: "ArbFont-Medium", sans-serif;
  --ff-ar-bold: "ArbFont-Bold", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --sp-xs: 0.5rem;
  --sp-sm: 0.75rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 25px;
  --radius-full: 50%;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
  --transition: 0.3s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 70px;
  --max-w: 1320px;
}
@font-face {
  font-family: "ArbFont-Regular";
  src: url("../fonts/ArbFONTS-4_F4.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "ArbFont-Medium";
  src: url("../fonts/ArbFONTS-4_F5.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "ArbFont-Bold";
  src: url("../fonts/ArbFONTS-BR.ttf") format("truetype");
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-primary) var(--clr-off-white);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--clr-off-white);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  border-radius: 20px;
  border: 2px solid var(--clr-off-white);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--clr-primary-light) 0%, var(--clr-primary) 100%);
}
::-webkit-scrollbar-thumb:active {
  background: var(--clr-primary-darker);
}

body {
  font-family: var(--ff-ar-regular);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  width: 100%;
}

/* ===== CTA Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 9px 24px;
  border-radius: var(--radius-lg);
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn--white {
  background: var(--clr-white);
  color: var(--clr-primary);
  border-color: var(--clr-white);
}
.btn--white:hover {
  background: transparent;
  color: var(--clr-white);
  border-color: var(--clr-white);
}

main {
  flex: 1;
  min-height: 60vh;
  position: relative;
  z-index: 1;
}

:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(84, 33, 135, 0.1);
  border-bottom: 1px solid rgba(84, 33, 135, 0.06);
}
.nav.scrolled .nav__logo img { filter: none; }
.nav.scrolled .nav__logo:hover img { filter: drop-shadow(0 4px 12px rgba(84, 33, 135, 0.3)); }
.nav.scrolled .nav__logo::after { background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary)); }
.nav.scrolled .nav__link { color: var(--clr-primary-dark); }
.nav.scrolled .nav__link:hover { color: var(--clr-primary); }
.nav.scrolled .nav__link--active { color: var(--clr-primary); }
.nav.scrolled .nav__item.show > .nav__link { color: var(--clr-primary); }
.nav.scrolled .nav__link::after { background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary)); }
.nav.scrolled .nav__arrow svg { fill: var(--clr-primary-dark); }
.nav.scrolled .nav__search-btn { background: rgba(84, 33, 135, 0.06); color: var(--clr-primary-dark); }
.nav.scrolled .nav__search-btn:hover { background: rgba(84, 33, 135, 0.12); color: var(--clr-primary); }
.nav.scrolled .nav__lang { border-color: rgba(84, 33, 135, 0.2); color: var(--clr-primary-dark); }
.nav.scrolled .nav__lang:hover { background: rgba(84, 33, 135, 0.06); border-color: rgba(84, 33, 135, 0.4); }
.nav.scrolled .nav__cta { border-color: var(--clr-primary); background: var(--clr-primary); }
.nav.scrolled .nav__cta:hover { background: var(--clr-primary-dark); border-color: var(--clr-primary-dark); box-shadow: 0 6px 20px rgba(84, 33, 135, 0.3); }
.nav.scrolled .nav__hamburger span { background: var(--clr-primary); }
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
}
.nav__logo img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: logoEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nav__logo:hover img {
  transform: scale(1.06) rotate(-1deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.nav__logo::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
  border-radius: 2px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__logo:hover::after {
  width: 100%;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.92);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Nav Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  flex: 1;
  justify-content: center;
}
.nav__item {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
  animation: navItemSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nav__item:nth-child(1) { animation-delay: 0.1s; }
.nav__item:nth-child(2) { animation-delay: 0.15s; }
.nav__item:nth-child(3) { animation-delay: 0.2s; }
.nav__item:nth-child(4) { animation-delay: 0.25s; }
.nav__item:nth-child(5) { animation-delay: 0.3s; }
.nav__item:nth-child(6) { animation-delay: 0.35s; }
.nav__item:nth-child(7) { animation-delay: 0.4s; }
.nav__item:nth-child(8) { animation-delay: 0.45s; }

@keyframes navItemSlide {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav__item[data-dropdown] {
  position: relative;
}
.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--sp-md);
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.9);
  height: 100%;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  cursor: pointer;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
  border-radius: 3px 3px 0 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__link:hover {
  color: #fff;
}
.nav__link:hover::after,
.nav__link--active::after,
.nav__item.show > .nav__link::after {
  width: 100%;
}
.nav__item.show > .nav__link {
  color: #fff;
}
.nav__link--active {
  color: #fff;
  font-family: var(--ff-ar-bold);
}
.nav__arrow {
  display: inline-flex;
  transition: transform var(--transition);
}
.nav__arrow svg {
  width: 14px;
  height: 14px;
  fill: rgba(255, 255, 255, 0.9);
  transition: all var(--transition);
}
.nav__item:hover .nav__arrow svg,
.nav__item.show .nav__arrow svg {
  transform: rotate(180deg);
}

/* Nav Actions (left side) */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
  animation: navActionsEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes navActionsEntrance {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.nav__search-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.nav__search-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.nav__lang {
  padding: 5px 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}
.nav__lang:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-lg);
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: var(--clr-white);
  white-space: nowrap;
}
.nav__cta svg {
  width: 16px;
  height: 16px;
}
.nav__cta:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: var(--clr-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* ===== SMALL DROPDOWN ===== */
.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 230px;
  background: var(--clr-white);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 50px rgba(84, 33, 135, 0.14), 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  border-top: 3px solid var(--clr-accent);
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -18px;
  right: 0;
  left: 0;
  height: 18px;
}
.nav__item.show .dropdown,
.nav__item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--clr-primary-dark);
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}
.dropdown__item:hover {
  background: var(--clr-off-white);
  color: var(--clr-primary);
}
.dropdown__icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--clr-off-white), rgba(168, 85, 247, 0.04));
  border: 1.5px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.dropdown__item:hover .dropdown__icon-wrap {
  border-color: rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(168, 85, 247, 0.12));
}
.dropdown__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--clr-primary-light);
  transition: stroke 0.25s ease;
}
.dropdown__item:hover svg {
  stroke: var(--clr-primary);
}

/* ===== MEGA DROPDOWN (positioned outside nav) ===== */
.mega-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  width: 100%;
  background: var(--clr-white);
  border-top: 3px solid var(--clr-accent);
  padding: 2rem 0 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
  box-shadow: 0 25px 60px rgba(84, 33, 135, 0.14), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.mega-panel::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.12), transparent);
}
.mega-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mega overlay backdrop */
.mega-overlay {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 17, 73, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mega-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.mega__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--clr-primary-dark);
  font-family: var(--ff-ar-medium);
  font-size: 0.82rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.mega__item:hover {
  background: var(--clr-off-white);
  border-color: rgba(168, 85, 247, 0.12);
  color: var(--clr-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(84, 33, 135, 0.06);
}
.mega__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--clr-border);
  background: linear-gradient(135deg, var(--clr-off-white), rgba(168, 85, 247, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--clr-primary-light);
}
.mega__item:hover .mega__icon {
  border-color: rgba(168, 85, 247, 0.3);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.15));
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.12);
  color: var(--clr-primary);
}
.mega__icon svg {
  stroke: currentColor !important;
  transition: stroke 0.25s ease;
}
.mega__item:hover .mega__icon svg {
  stroke: currentColor !important;
}
.mega__text {
  line-height: 1.5;
  transition: color 0.25s ease;
  letter-spacing: -0.01em;
}

/* ===== HAMBURGER (Mobile) ===== */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 17, 73, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay__inner {
  width: 100%;
  max-width: 650px;
  padding: 0 var(--sp-xl);
  transform: translateY(-20px);
  transition: transform var(--transition-slow);
}
.search-overlay.active .search-overlay__inner {
  transform: translateY(0);
}
.search-overlay__form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0 var(--sp-lg);
  gap: var(--sp-md);
}
.search-overlay__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--clr-white);
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-lg);
  padding: var(--sp-lg) 0;
  direction: rtl;
}
.search-overlay__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.search-overlay__close {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.search-overlay__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== NAVBAR RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav__link {
    padding: 0 var(--sp-sm);
    font-size: var(--fs-xs);
  }
  .mega__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .nav__hamburger {
    display: flex;
  }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    right: -100%;
    width: min(300px, 80vw);
    height: calc(100vh - var(--nav-h));
    background: linear-gradient(180deg, #2d1149 0%, #1e0b35 40%, #150826 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0.5rem 0 2rem;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
    border-left: 1px solid rgba(168, 85, 247, 0.15);
  }
  .nav__menu.active {
    right: 0;
  }
  .nav__item {
    height: auto;
    flex-direction: column;
    animation: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav__item:last-child {
    border-bottom: none;
  }
  .nav__item:first-child .nav__link {
    padding-top: 0.6rem;
  }
  .nav__link {
    height: auto;
    padding: 0.85rem 1.2rem;
    font-size: 0.88rem;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.25s ease;
  }
  .nav__link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
  }
  .nav__link--active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.08));
    border-right: 3px solid var(--clr-accent, #a855f7);
    font-family: var(--ff-ar-bold);
  }
  [dir="ltr"] .nav__link--active {
    border-right: none;
    border-left: 3px solid var(--clr-accent, #a855f7);
  }
  .nav__link::after {
    display: none !important;
  }
  /* Override scrolled nav colors inside mobile drawer */
  .nav.scrolled .nav__menu .nav__link {
    color: rgba(255, 255, 255, 0.85) !important;
  }
  .nav.scrolled .nav__menu .nav__link:hover {
    color: #fff !important;
  }
  .nav.scrolled .nav__menu .nav__link--active {
    color: #fff !important;
  }
  .nav.scrolled .nav__menu .nav__arrow svg {
    fill: rgba(255, 255, 255, 0.7);
  }
  .nav__arrow {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  .nav__arrow svg {
    fill: rgba(255, 255, 255, 0.5);
    width: 11px;
    height: 11px;
  }
  .mega-expanded .nav__arrow {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.4);
    transform: rotate(180deg);
  }
  .mega-expanded .nav__arrow svg {
    fill: #fff;
  }

  /* Dropdown on mobile */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
    padding: 0.4rem 0;
    background: rgba(0, 0, 0, 0.15);
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    min-width: auto;
  }
  .nav__item.open .dropdown {
    display: block;
  }

  /* Mega panel inside drawer on mobile */
  .mega-panel {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    padding: 0;
    background: rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 0;
    box-shadow: none !important;
    z-index: auto !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  }
  .mega-panel.mobile-open {
    max-height: 600px;
    padding: 0.5rem 0;
  }
  .mega-panel .container {
    max-width: 100%;
    padding: 0;
  }
  .mega-panel::after {
    display: none;
  }
  .mega__grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .mega__item {
    padding: 0.5rem 1.4rem;
    border-radius: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75) !important;
    border: none;
    transition: all 0.2s ease;
  }
  .mega__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: none;
    box-shadow: none;
    border: none;
  }
  .mega__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
  }
  .mega__item:hover .mega__icon {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.15);
    box-shadow: none;
    color: #fff;
  }
  .mega-overlay {
    display: none !important;
  }
  .dropdown__item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.8rem;
  }
  .dropdown__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
  .dropdown__item svg {
    stroke: rgba(255, 255, 255, 0.6);
  }
  .nav__cta {
    display: none;
  }

  /* Mobile overlay */
  .mobile-overlay {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
  }
  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .nav__logo img {
    height: 36px;
  }
  .nav__menu {
    width: 280px;
  }
  .nav__lang {
    display: none;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

/* Background image with cinematic slow zoom + pan */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: heroImageZoom 30s ease-out forwards;
  will-change: transform;
}
@keyframes heroImageZoom {
  0%   { transform: scale(1.15) translateY(-1%); }
  100% { transform: scale(1) translateY(0); }
}

/* Overlay gradient — deeper at bottom where text sits */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(29, 10, 50, 0.2) 0%,
      rgba(45, 17, 73, 0.3) 25%,
      rgba(45, 17, 73, 0.6) 55%,
      rgba(29, 10, 50, 0.88) 85%,
      rgba(20, 5, 40, 0.96) 100%
    );
  z-index: 1;
}

/* Ambient glow behind content area */
.hero__overlay::after {
  content: "";
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Container — push content to bottom third */
.hero__container {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 6rem);
  padding-bottom: 5.5rem;
  width: 100%;
}

/* Content */
.hero__content {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

/* Badge — glass pill */
.hero__badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  padding: 0.4rem 1.5rem;
  border-radius: 100px;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Title */
.hero__title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--clr-white);
  line-height: 1.4;
  margin-bottom: var(--sp-md);
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}
.hero__title-accent {
  color: var(--clr-accent);
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 40%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title-sep {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 0.2em;
  font-weight: normal;
}

/* Accent bar — animated reveal */
.hero__accent {
  height: 3px;
  margin: 0 auto var(--sp-lg);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--clr-accent) 0%, #06b6d4 50%, #10b981 100%);
  width: 0;
  opacity: 0;
  animation: heroAccentGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}
@keyframes heroAccentGrow {
  0%   { width: 0; opacity: 0; }
  30%  { opacity: 1; }
  100% { width: 60px; opacity: 1; }
}

/* Description */
.hero__desc {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  margin-bottom: var(--sp-xl);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

/* Actions */
.hero__actions {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.35s forwards;
}

/* Buttons — glass morphism pill style */
.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1.5px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.hero__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero__btn--primary {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: var(--clr-white);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 24px rgba(84, 33, 135, 0.3), 0 0 0 0 rgba(168, 85, 247, 0);
}
.hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(84, 33, 135, 0.45), 0 0 20px rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.6);
}
.hero__btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(84, 33, 135, 0.3);
}
.hero__btn--outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero__btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.hero__btn--outline:active {
  transform: translateY(0);
}
.hero__btn svg {
  flex-shrink: 0;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}
.hero__scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 11px;
  position: relative;
  transition: border-color 0.3s ease;
}
.hero__scroll:hover .hero__scroll-mouse {
  border-color: rgba(255, 255, 255, 0.5);
}
.hero__scroll-mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  animation: heroScrollWheel 2.2s cubic-bezier(0.4, 0, 0, 1) infinite;
}
@keyframes heroScrollWheel {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Main entrance animation — smooth reveal with blur + subtle lift */
@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Hero Responsive */
@media (max-width: 768px) {
  .hero { align-items: center; }
  .hero__container { padding-bottom: 4rem; padding-top: calc(var(--nav-h) + 2.5rem); }
  .hero__title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .hero__desc { font-size: var(--fs-xs); line-height: 1.8; }
  .hero__btn { padding: 0.65rem 1.5rem; font-size: var(--fs-xs); }
}
@media (max-width: 480px) {
  .hero__container { padding-bottom: 2.5rem; padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__title { font-size: clamp(1.2rem, 5.5vw, 1.6rem); }
  .hero__desc { font-size: 0.82rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__btn { width: 100%; max-width: 260px; justify-content: center; }
  .hero__scroll { display: none; }
}

/* ===== ABOUT SECTION (من نحن) ===== */
.about {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  background: var(--clr-white);
}

/* Decorative top wave connector */
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(20, 5, 40, 0.96) 0%, transparent 100%);
  pointer-events: none;
}

/* Subtle grid pattern */
.about::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(84, 33, 135, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.about__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Left visual side */
.about__visual {
  position: relative;
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(84, 33, 135, 0.12);
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__image-wrap:hover img {
  transform: scale(1.03);
}

/* Experience badge */
.about__exp {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(84, 33, 135, 0.3);
  z-index: 2;
}

.about__exp-num {
  display: block;
  font-family: var(--ff-ar-bold);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.about__exp-label {
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  opacity: 0.9;
}

/* Decorative accent dot */
.about__visual::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: -2rem;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05));
  z-index: -1;
}

/* Right content side */
.about__content {
  position: relative;
}

.about__label {
  display: inline-block;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  color: var(--clr-accent);
  background: rgba(168, 85, 247, 0.08);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: var(--sp-md);
  letter-spacing: 0.03em;
}

.about__title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--clr-primary-dark);
  line-height: 1.4;
  margin-bottom: var(--sp-lg);
}

.about__title-highlight {
  color: var(--clr-accent);
  position: relative;
}

.about__title-highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 0;
  left: 0;
  height: 6px;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 3px;
  z-index: -1;
}

.about__desc {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-base);
  color: #555;
  line-height: 1.9;
  margin-bottom: var(--sp-xl);
}

.about__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  color: var(--clr-white);
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(84, 33, 135, 0.25);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(84, 33, 135, 0.4);
}

.about__btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.about__btn:hover svg {
  transform: translateX(-4px);
}

html[dir="ltr"] .about__btn:hover svg {
  transform: translateX(4px);
}

/* Scroll reveal */
.about__inner > * {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about__inner.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.about__inner.revealed > :nth-child(2) {
  transition-delay: 0.15s;
}

/* About responsive */
@media (max-width: 968px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__visual { max-width: 480px; margin: 0 auto; }
  .about__content { text-align: center; }
  .about__exp { bottom: -1rem; right: 1rem; }
}

@media (max-width: 480px) {
  .about { padding: 4rem 0 3rem; }
  .about__exp { padding: 0.8rem 1rem; }
  .about__exp-num { font-size: 1.6rem; }
}


/* ===== WHY CHOOSE US (ما يميزنا) ===== */
.features {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f6fb 0%, #f1ecf8 100%);
}

/* Decorative circles */
.features::before,
.features::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.features::before {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
}

.features::after {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: -60px;
  background: radial-gradient(circle, rgba(84, 33, 135, 0.05) 0%, transparent 70%);
}

/* Section header */
.features__header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.features__label {
  display: inline-block;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  color: var(--clr-accent);
  background: rgba(168, 85, 247, 0.08);
  padding: 0.3rem 1rem;
  border-radius: 100px;
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.03em;
}

.features__title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--clr-primary-dark);
  line-height: 1.4;
}

/* Card grid */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Flip card wrapper */
.features__card {
  perspective: 1000px;
  height: 260px;
  cursor: pointer;
}

/* Inner container that flips */
.features__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.features__card:hover .features__card-inner {
  transform: rotateY(180deg);
}

html[dir="ltr"] .features__card:hover .features__card-inner {
  transform: rotateY(-180deg);
}

/* Shared face styles */
.features__card-front,
.features__card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
}

/* Front face */
.features__card-front {
  background: var(--clr-white);
  border: 1px solid rgba(84, 33, 135, 0.06);
  box-shadow: 0 4px 24px rgba(84, 33, 135, 0.05);
  transition: box-shadow 0.4s ease;
}

.features__card:hover .features__card-front {
  box-shadow: 0 8px 32px rgba(84, 33, 135, 0.12);
}

/* Icon circle */
.features__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(84, 33, 135, 0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.features__icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(168, 85, 247, 0.12);
  transition: all 0.6s ease;
}

.features__card:hover .features__icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(84, 33, 135, 0.1) 100%);
}

.features__card:hover .features__icon::after {
  transform: rotate(90deg);
  border-color: rgba(168, 85, 247, 0.2);
}

.features__icon svg {
  width: 32px;
  height: 32px;
  color: var(--clr-primary);
}

.features__card-title {
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-base);
  color: var(--clr-primary-dark);
  text-align: center;
}

/* Back face */
.features__card-back {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  transform: rotateY(180deg);
  text-align: center;
  padding: 1.8rem 1.5rem;
}

html[dir="ltr"] .features__card-back {
  transform: rotateY(-180deg);
}

.features__card-back-title {
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-sm);
  color: var(--clr-accent);
  margin-bottom: 0.8rem;
}

.features__card-back-desc {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

/* Decorative line on back */
.features__card-back::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(168, 85, 247, 0.4);
}

/* Bottom row center alignment — 2 cards */
.features__grid-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: calc(66.666% + 0.5rem);
  margin: 1.5rem auto 0;
  position: relative;
  z-index: 1;
}

/* Scroll reveal for cards */
.features__card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.features__card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Features responsive */
@media (max-width: 968px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid-bottom {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features { padding: 3.5rem 0 4rem; }
  .features__grid { grid-template-columns: 1fr; }
  .features__grid-bottom {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .features__card { height: 200px; }
}


/* ===== SOLUTIONS BENTO GRID ===== */
.solutions {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: var(--clr-white);
}

/* Section header */
.solutions__header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.solutions__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.03em;
}

.solutions__label::before,
.solutions__label::after {
  content: "";
  width: 40px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--clr-accent));
  border-radius: 1px;
}

.solutions__label::after {
  background: linear-gradient(90deg, var(--clr-accent), transparent);
}

.solutions__title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--clr-primary-dark);
  line-height: 1.4;
  margin-bottom: var(--sp-sm);
}

.solutions__title-accent {
  color: var(--clr-accent);
  position: relative;
}

.solutions__title-accent::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 0;
  left: 0;
  height: 6px;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 3px;
  z-index: -1;
}

.solutions__subtitle {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: #777;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Bento grid layout */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

/* Shared card base */
.bento__card {
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.bento__card:hover {
  transform: translateY(-4px);
}

/* Card spans */
.bento__card--scalable    { grid-column: span 3; min-height: 320px; }
.bento__card--apps        { grid-column: span 4; min-height: 320px; }
.bento__card--security    { grid-column: span 5; min-height: 320px; }
.bento__card--payment     { grid-column: span 4; min-height: 280px; }
.bento__card--support     { grid-column: span 8; min-height: 280px; }

/* ---- Card variant: Purple gradient ---- */
.bento__card--purple {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  color: var(--clr-white);
  box-shadow: 0 8px 32px rgba(84, 33, 135, 0.15);
}

.bento__card--purple:hover {
  box-shadow: 0 16px 48px rgba(84, 33, 135, 0.25);
}

.bento__card--purple::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* ---- Card variant: White ---- */
.bento__card--white {
  background: var(--clr-white);
  border: 1px solid rgba(84, 33, 135, 0.07);
  box-shadow: 0 4px 20px rgba(84, 33, 135, 0.06);
}

.bento__card--white:hover {
  box-shadow: 0 12px 40px rgba(84, 33, 135, 0.12);
  border-color: rgba(168, 85, 247, 0.15);
}

/* ---- Card variant: Light purple tint ---- */
.bento__card--tint {
  background: linear-gradient(160deg, #f8f5fc 0%, #ede5f7 100%);
  border: 1px solid rgba(84, 33, 135, 0.06);
  box-shadow: 0 4px 20px rgba(84, 33, 135, 0.06);
}

.bento__card--tint:hover {
  box-shadow: 0 12px 40px rgba(84, 33, 135, 0.12);
}

/* Card inner layout */
.bento__body {
  position: relative;
  z-index: 2;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Card icon */
.bento__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento__card:hover .bento__icon {
  transform: scale(1.08) rotate(-3deg);
}

.bento__icon--glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bento__icon--solid {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(84, 33, 135, 0.08) 100%);
  border: 1px solid rgba(168, 85, 247, 0.1);
}

.bento__icon svg {
  width: 26px;
  height: 26px;
}

.bento__card--purple .bento__icon svg { color: var(--clr-white); }

.bento__card--white .bento__icon svg,
.bento__card--tint .bento__icon svg { color: var(--clr-primary); }

/* Card heading */
.bento__heading {
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-base);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.bento__card--purple .bento__heading { color: var(--clr-white); }

.bento__card--white .bento__heading,
.bento__card--tint .bento__heading { color: var(--clr-primary-dark); }

/* Card text */
.bento__text {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-xs);
  line-height: 1.8;
  flex: 1;
}

.bento__card--purple .bento__text { color: rgba(255, 255, 255, 0.8); }

.bento__card--white .bento__text,
.bento__card--tint .bento__text { color: #666; }

/* Card decorative image */
.bento__visual {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  z-index: 1;
  overflow: hidden;
}

.bento__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento__card:hover .bento__visual img {
  transform: scale(1.05);
}

.bento__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.bento__card--purple .bento__visual::before {
  background: linear-gradient(180deg,
    var(--clr-primary-dark) 0%,
    rgba(58, 22, 96, 0.3) 60%,
    transparent 100%
  );
}

.bento__card--tint .bento__visual::before {
  background: linear-gradient(180deg,
    #f1eaf8 0%,
    rgba(241, 234, 248, 0.3) 60%,
    transparent 100%
  );
}

/* Support card — side-by-side layout */
.bento__card--support .bento__body {
  flex-direction: row;
  gap: 2rem;
  padding: 0;
}

.bento__support-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.bento__support-img {
  width: 45%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

html[dir="rtl"] .bento__support-img {
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

html[dir="ltr"] .bento__support-img {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.bento__support-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento__card--support:hover .bento__support-img img {
  transform: scale(1.04);
}

/* Phone link */
.bento__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  color: var(--clr-accent);
  text-decoration: none;
  margin-top: 0.8rem;
  direction: ltr;
  width: fit-content;
  transition: color 0.3s ease;
}

.bento__phone:hover { color: var(--clr-primary); }

.bento__phone svg { width: 16px; height: 16px; }

/* Form link */
.bento__form-link {
  margin-top: auto;
  padding-top: 1rem;
}

.bento__form-link span {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-xs);
  color: #999;
}

.bento__form-link a {
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  color: var(--clr-primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(84, 33, 135, 0.3);
  transition: all 0.3s ease;
}

.bento__form-link a:hover {
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}

/* Scroll reveal for bento */
.bento__card {
  opacity: 0;
  transform: translateY(40px);
}

.bento__card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bento responsive */
@media (max-width: 968px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--scalable    { grid-column: span 1; min-height: 260px; }
  .bento__card--apps        { grid-column: span 1; min-height: 260px; }
  .bento__card--security    { grid-column: span 2; min-height: 280px; }
  .bento__card--payment     { grid-column: span 1; min-height: 260px; }
  .bento__card--support     { grid-column: span 2; min-height: 260px; }
}

@media (max-width: 600px) {
  .solutions { padding: 4rem 0; }
  .bento { grid-template-columns: 1fr; gap: 1rem; }
  .bento__card--security,
  .bento__card--apps,
  .bento__card--scalable,
  .bento__card--payment,
  .bento__card--support { grid-column: span 1; min-height: 200px; }

  .bento__card--support .bento__body { flex-direction: column; }
  .bento__support-img {
    width: 100%;
    height: 180px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl) !important;
    order: -1;
  }
  .bento__support-text { padding: 1.5rem; }
}


/* ===== SERVICES GRID (خدماتنا) ===== */
.services {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f5fc 0%, var(--clr-white) 100%);
}

.services__header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.services__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
}

.services__label::before,
.services__label::after {
  content: "";
  width: 32px;
  height: 1.5px;
  background: var(--clr-accent);
  border-radius: 1px;
}

.services__title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--clr-primary-dark);
  line-height: 1.4;
  margin-bottom: var(--sp-sm);
}

.services__subtitle {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: #777;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 4-column grid */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

/* Service card */
.services__card {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.4rem;
  border: 1px solid rgba(84, 33, 135, 0.05);
  box-shadow: 0 2px 12px rgba(84, 33, 135, 0.03);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  text-decoration: none;
  display: block;
}

.services__card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Top accent line on hover */
.services__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: right;
}

html[dir="ltr"] .services__card::before {
  transform-origin: left;
}

.services__card:hover::before {
  transform: scaleX(1);
}

.services__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(84, 33, 135, 0.1);
  border-color: rgba(168, 85, 247, 0.12);
}

/* Card icon */
.services__card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(84, 33, 135, 0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.services__card:hover .services__card-icon {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  transform: scale(1.05);
}

.services__card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--clr-primary);
  transition: color 0.3s ease;
}

.services__card:hover .services__card-icon svg {
  color: var(--clr-white);
}

.services__card-title {
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-sm);
  color: var(--clr-primary-dark);
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}

.services__card:hover .services__card-title {
  color: var(--clr-primary);
}

.services__card-desc {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-xs);
  color: #888;
  line-height: 1.7;
}

/* Services responsive */
@media (max-width: 968px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services { padding: 3rem 0; }
  .services__grid { grid-template-columns: 1fr; gap: 1rem; }
}


/* ===== FEATURED SERVICES TABS (أبرز خدماتنا) ===== */
.srv-tabs {
  position: relative;
  overflow: hidden;
}

/* Top bar — header */
.srv-tabs__header {
  background: var(--clr-white);
  padding: 3rem 0 1.5rem;
}

/* Title row — centered */
.srv-tabs__header-row {
  text-align: center;
  margin-bottom: 2rem;
}

.srv-tabs__title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--clr-primary-dark);
  margin-bottom: 0.5rem;
}

.srv-tabs__all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  color: var(--clr-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.srv-tabs__all:hover {
  color: var(--clr-accent);
  background: rgba(168, 85, 247, 0.05);
}

.srv-tabs__all svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.srv-tabs__all:hover svg {
  transform: translateX(-3px);
}

html[dir="ltr"] .srv-tabs__all:hover svg {
  transform: translateX(3px);
}

/* Tab navigation — centered pill track */
.srv-tabs__nav {
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  padding: 0.35rem;
  background: #f4f0f8;
  border-radius: 100px;
  max-width: fit-content;
  margin: 0 auto;
}

.srv-tabs__nav::-webkit-scrollbar { display: none; }

/* Sliding glider indicator */
.srv-tabs__glider {
  position: absolute;
  top: 0.35rem;
  height: calc(100% - 0.7rem);
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(84, 33, 135, 0.35);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.srv-tabs__tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  color: #777;
  background: none;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.srv-tabs__tab svg {
  width: 17px;
  height: 17px;
  opacity: 0.4;
  transition: all 0.35s ease;
}

.srv-tabs__tab:hover {
  color: var(--clr-primary);
}

.srv-tabs__tab:hover svg { opacity: 0.7; }

.srv-tabs__tab.active {
  color: var(--clr-white);
}

.srv-tabs__tab.active svg { opacity: 1; color: var(--clr-white); }

/* Tab content area */
.srv-tabs__content {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

/* Decorative gradient orbs */
.srv-tabs__content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Floating dashed ring decoration */
.srv-tabs__content::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.05);
  top: -100px;
  right: -80px;
  animation: srvOrbit 25s linear infinite;
  pointer-events: none;
}

@keyframes srvOrbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Main grid: fixed image + swapping text */
.srv-tabs__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
}

/* Fixed image side — never changes */
.srv-tabs__fixed-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.srv-tabs__panel-img-wrap {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: srvImgGlow 3.5s ease-in-out infinite;
}

.srv-tabs__panel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 6s cubic-bezier(0.22, 1, 0.36, 1);
}

.srv-tabs__panel-img-wrap:hover img {
  transform: scale(1.06);
}

/* Purple gradient overlay */
.srv-tabs__panel-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(84, 33, 135, 0.3) 0%, rgba(107, 46, 166, 0.1) 100%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.srv-tabs__panel-img-wrap:hover .srv-tabs__panel-img-overlay {
  opacity: 0.4;
}

/* Dashed orbit ring */
.srv-tabs__panel-img-wrap::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 26px;
  border: 1.5px dashed rgba(255, 255, 255, 0.08);
  animation: statsOrbitSpin 30s linear infinite;
  pointer-events: none;
}

@keyframes srvImgGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.1), 0 0 60px rgba(168, 85, 247, 0); }
  50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.25), 0 0 80px rgba(168, 85, 247, 0.08); }
}

/* Panels wrapper — holds all text panels stacked */
.srv-tabs__panels {
  position: relative;
  min-height: 220px;
}

/* Individual text panel */
.srv-tabs__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s 0.45s;
}

.srv-tabs__panel.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
              visibility 0s 0s;
}

/* Staggered entrance for text elements */
.srv-tabs__panel.active .srv-tabs__panel-title {
  animation: srvReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}
.srv-tabs__panel.active .srv-tabs__panel-tagline {
  animation: srvReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.srv-tabs__panel.active .srv-tabs__panel-desc {
  animation: srvReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.srv-tabs__panel.active .srv-tabs__panel-stat {
  animation: srvReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes srvReveal {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Panel text */
.srv-tabs__panel-title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--clr-white);
  margin-bottom: 0.6rem;
}

.srv-tabs__panel-tagline {
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  color: #d8b4fe;
  margin-bottom: 1rem;
}

.srv-tabs__panel-desc {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

/* Client count inside panel */
.srv-tabs__panel-stat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.srv-tabs__panel-stat-label {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

.srv-tabs__panel-stat-num {
  font-family: var(--ff-ar-bold);
  font-size: 1.8rem;
  background: linear-gradient(135deg, #d8b4fe, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  direction: ltr;
}

/* Tab section responsive */
@media (max-width: 968px) {
  .srv-tabs__nav { max-width: 100%; overflow-x: auto; }
  .srv-tabs__layout { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .srv-tabs__fixed-visual { order: -1; }
  .srv-tabs__panel-img-wrap { max-width: 320px; margin: 0 auto; }
  .srv-tabs__panels { min-height: 200px; }
  .srv-tabs__panel-desc { margin: 0 auto 1.5rem; }
  .srv-tabs__panel-stat { justify-content: center; }
}

@media (max-width: 600px) {
  .srv-tabs__nav { border-radius: 16px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .srv-tabs__glider { display: none; }
  .srv-tabs__tab { padding: 0.55rem 0.8rem; font-size: 0.7rem; }
  .srv-tabs__tab svg { display: none; }
  .srv-tabs__tab.active { background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%); color: var(--clr-white); box-shadow: 0 4px 16px rgba(84,33,135,0.25); }
  .srv-tabs__layout { padding: 2.5rem 0; }
  .srv-tabs__panel-img-wrap { max-width: 260px; }
  .srv-tabs__panels { min-height: 180px; }
}


/* ===== PORTFOLIO / WORKS ===== */
.portfolio {
  padding: 5rem 0;
  background: var(--clr-white);
  position: relative;
}

.portfolio__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.portfolio__badge {
  display: inline-block;
  font-family: var(--ff-ar-medium);
  font-size: 0.82rem;
  color: var(--clr-primary);
  background: rgba(84, 33, 135, 0.08);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}

.portfolio__title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--clr-primary-dark);
  margin-bottom: 0.4rem;
}

.portfolio__desc {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: #777;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

/* Grid */
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

/* Featured card (image) */
.portfolio__card--featured {
  grid-row: 1 / 3;
  grid-column: 1 / 3;
}

.portfolio__card--featured .portfolio__card-visual {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  min-height: 320px;
}

.portfolio__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio__card--featured:hover .portfolio__card-img {
  transform: scale(1.04);
}

.portfolio__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(58, 22, 96, 0.8) 100%);
}

.portfolio__card-stats {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 2rem;
}

.portfolio__card-stat-num {
  display: block;
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: var(--clr-white);
  line-height: 1.2;
}

.portfolio__card-stat-label {
  font-family: var(--ff-ar-regular);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Category cards */
a.portfolio__card {
  text-decoration: none;
  color: inherit;
}

.portfolio__card {
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 150px;
}

.portfolio__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(84, 33, 135, 0.15);
}

.portfolio__card[data-gradient="1"] {
  background: linear-gradient(145deg, #542187 0%, #7c3aed 100%);
  color: var(--clr-white);
}

.portfolio__card[data-gradient="2"] {
  background: linear-gradient(145deg, #3a1660 0%, #6b2ea6 100%);
  color: var(--clr-white);
}

.portfolio__card[data-gradient="3"] {
  background: linear-gradient(145deg, #6b2ea6 0%, #a855f7 100%);
  color: var(--clr-white);
}

.portfolio__card[data-gradient="4"] {
  background: linear-gradient(145deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  color: var(--clr-white);
}

/* Deco circle */
.portfolio__card[data-gradient]::before {
  content: "";
  position: absolute;
  top: -30px;
  inset-inline-end: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.portfolio__card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.portfolio__card-cat {
  font-family: var(--ff-ar-regular);
  font-size: 0.72rem;
  opacity: 0.6;
  margin-bottom: 0.2rem;
}

.portfolio__card-name {
  font-family: var(--ff-ar-bold);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.portfolio__card-count {
  font-family: var(--ff-ar-medium);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Scroll reveal */
.portfolio__card {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.portfolio__card.is-visible:hover {
  transform: translateY(-4px);
}

.portfolio__card:nth-child(1) { transition-delay: 0s; }
.portfolio__card:nth-child(2) { transition-delay: 0.06s; }
.portfolio__card:nth-child(3) { transition-delay: 0.12s; }
.portfolio__card:nth-child(4) { transition-delay: 0.18s; }
.portfolio__card:nth-child(5) { transition-delay: 0.24s; }

/* CTA Row */
.portfolio__cta-row {
  text-align: center;
  margin-top: 2.5rem;
}

.portfolio__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-ar-bold);
  font-size: 0.9rem;
  color: var(--clr-white);
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  padding: 0.8rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.portfolio__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-primary-light) 0%, var(--clr-accent) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.portfolio__cta:hover::before {
  opacity: 1;
}

.portfolio__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(84, 33, 135, 0.3);
}

.portfolio__cta span,
.portfolio__cta svg {
  position: relative;
  z-index: 1;
}

.portfolio__cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.portfolio__cta:hover svg {
  transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 900px) {
  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .portfolio__card--featured {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .portfolio__card--featured .portfolio__card-visual {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .portfolio { padding: 3.5rem 0; }
  .portfolio__header { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  .portfolio__grid {
    grid-template-columns: 1fr;
  }
  .portfolio__card--featured .portfolio__card-visual {
    min-height: 180px;
  }
}


/* ===== CONTACT US FORM ===== */
.cform {
  padding: 5rem 0;
  background: #faf8fd;
  position: relative;
  overflow: hidden;
}

.cform__header {
  text-align: center;
  margin-bottom: 3rem;
}

.cform__badge {
  display: inline-block;
  font-family: var(--ff-ar-medium);
  font-size: 0.82rem;
  color: var(--clr-primary);
  background: rgba(84, 33, 135, 0.08);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.cform__title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--clr-primary-dark);
  margin-bottom: 0.6rem;
}

.cform__desc {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: #777;
  line-height: 1.8;
}

/* Grid: Info + Form */
.cform__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
  align-items: start;
}

/* Info Card */
.cform__info {
  position: relative;
}

.cform__info-inner {
  background: linear-gradient(145deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.cform__info-deco {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.cform__info-deco::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.cform__info-title {
  font-family: var(--ff-ar-bold);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.cform__info-desc {
  font-family: var(--ff-ar-regular);
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.cform__info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cform__info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cform__info-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.8;
}

.cform__info-label {
  display: block;
  font-family: var(--ff-ar-regular);
  font-size: 0.75rem;
  opacity: 0.65;
  margin-bottom: 0.15rem;
}

.cform__info-value {
  font-family: var(--ff-ar-medium);
  font-size: 0.9rem;
  color: var(--clr-white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.cform__info-value:hover {
  opacity: 0.8;
}

/* Form */
.cform__form {
  background: var(--clr-white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(84, 33, 135, 0.06);
  border: 1px solid rgba(84, 33, 135, 0.06);
}

.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.cform__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.cform__field:last-child:not(.cform__row .cform__field) {
  margin-bottom: 1.5rem;
}

.cform__label {
  font-family: var(--ff-ar-medium);
  font-size: 0.85rem;
  color: var(--clr-primary-dark);
  margin-bottom: 0.5rem;
}

.cform__input {
  font-family: var(--ff-ar-regular);
  font-size: 0.9rem;
  color: var(--clr-primary-dark);
  background: #faf8fd;
  border: 1.5px solid rgba(84, 33, 135, 0.1);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.cform__input::placeholder {
  color: #aaa;
  font-family: var(--ff-ar-regular);
}

.cform__input:focus {
  border-color: var(--clr-primary);
  background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(84, 33, 135, 0.08);
}

.cform__input.is-invalid {
  border-color: #e74c3c;
  background: #fef5f5;
}

.cform__input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.cform__error {
  font-family: var(--ff-ar-regular);
  font-size: 0.75rem;
  color: #e74c3c;
  margin-top: 0.35rem;
  display: none;
}

.cform__input.is-invalid ~ .cform__error,
.cform__phone-wrap.is-invalid ~ .cform__error,
.cform__select-wrap.is-invalid ~ .cform__error {
  display: block;
}

/* Phone field */
.cform__phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid rgba(84, 33, 135, 0.1);
  border-radius: 12px;
  background: #faf8fd;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cform__phone-wrap:focus-within {
  border-color: var(--clr-primary);
  background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(84, 33, 135, 0.08);
}

.cform__phone-wrap.is-invalid {
  border-color: #e74c3c;
  background: #fef5f5;
}

.cform__phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  font-family: var(--ff-ar-medium);
  font-size: 0.85rem;
  color: var(--clr-primary);
  background: rgba(84, 33, 135, 0.05);
  border-inline-end: 1.5px solid rgba(84, 33, 135, 0.1);
  user-select: none;
  white-space: nowrap;
}

.cform__input--phone {
  border: none;
  border-radius: 0;
  background: transparent;
  padding-inline-start: 0.8rem;
}

.cform__input--phone:focus {
  box-shadow: none;
  background: transparent;
}

/* Select */
.cform__select-wrap {
  position: relative;
}

.cform__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-inline-end: 2.5rem;
}

.cform__select-arrow {
  position: absolute;
  top: 50%;
  inset-inline-end: 0.8rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #999;
  pointer-events: none;
  transition: transform 0.3s;
}

.cform__select:focus ~ .cform__select-arrow {
  color: var(--clr-primary);
}

.cform__select-wrap.is-invalid .cform__select {
  border-color: #e74c3c;
  background: #fef5f5;
}

/* Textarea */
.cform__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit */
.cform__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-ar-bold);
  font-size: 0.95rem;
  color: var(--clr-white);
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  border: none;
  border-radius: 12px;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.cform__submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-primary-light) 0%, var(--clr-accent) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.cform__submit:hover::before {
  opacity: 1;
}

.cform__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(84, 33, 135, 0.3);
}

.cform__submit:active {
  transform: translateY(0);
}

.cform__submit span,
.cform__submit-icon {
  position: relative;
  z-index: 1;
}

.cform__submit-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

html[dir="rtl"] .cform__submit-icon {
  transform: scaleX(-1);
}

.cform__submit:hover .cform__submit-icon {
  transform: translate(-3px, -3px);
}

html[dir="rtl"] .cform__submit:hover .cform__submit-icon {
  transform: scaleX(-1) translate(-3px, -3px);
}

/* Success state */
.cform__submit.is-sending {
  opacity: 0.7;
  pointer-events: none;
}

.cform__submit.is-sent {
  background: #25d366;
  pointer-events: none;
}

.cform__submit.is-sent::before {
  opacity: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .cform__grid {
    grid-template-columns: 1fr;
  }
  .cform__info-inner {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .cform { padding: 3.5rem 0; }
  .cform__form { padding: 1.5rem; }
  .cform__header { margin-bottom: 2rem; }
}

@media (max-width: 480px) {
  .cform__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cform__row .cform__field {
    margin-bottom: 1.25rem;
  }
  .cform__form { padding: 1.25rem; border-radius: 16px; }
  .cform__info-inner { border-radius: 16px; padding: 1.5rem 1rem; }
  .cform__submit { width: 100%; justify-content: center; }
}


/* ===== STATS / NUMBERS SECTION ===== */
.stats {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 50%, #6b2ea6 100%);
}

/* Subtle mesh overlay */
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Grid background pattern */
.stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.stats__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

/* ---- Left side: Header + Counters ---- */
.stats__content {
  position: relative;
}

.stats__header {
  margin-bottom: 2.5rem;
}

.stats__label {
  display: inline-block;
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-xs);
  color: #d8b4fe;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 1.2rem;
  border-radius: 100px;
  margin-bottom: var(--sp-sm);
}

.stats__title {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--clr-white);
  line-height: 1.4;
  margin-bottom: var(--sp-sm);
}

.stats__desc {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.9;
  max-width: 500px;
}

/* Counter grid — 2x2 */
.stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Individual counter card — glass morphism */
.stats__item {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(30px);
}

.stats__item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stats__item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Counter icon */
.stats__item-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats__item:hover .stats__item-icon {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.3);
}

.stats__item-icon svg {
  width: 22px;
  height: 22px;
  color: #d8b4fe;
}

/* Counter number */
.stats__item-num {
  font-family: var(--ff-ar-bold);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--clr-white);
  line-height: 1;
  direction: ltr;
  display: inline-block;
}

.stats__item-label {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

/* ---- Right side: Satisfaction ring ---- */
.stats__ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.stats__ring-wrap.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stats__ring-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
}

.stats__ring-title {
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-base);
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}

/* SVG Ring container */
.stats__ring {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 1.2rem;
}

.stats__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.3));
}

/* Background track */
.stats__ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 10;
}

/* Animated progress arc */
.stats__ring-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke: url(#statsGradient);
  stroke-dasharray: 565.48;
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats__ring-fill.animated {
  stroke-dashoffset: 22.62;
}

/* Spinning orbit ring — properly sized outside the card padding */
.stats__ring-orbit {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  animation: statsOrbitSpin 25s linear infinite;
}

.stats__ring-orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8b4fe;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6), 0 0 20px rgba(168, 85, 247, 0.3);
}

@keyframes statsOrbitSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Second orbit — wider, opposite */
.stats__ring-orbit-2 {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dotted rgba(255, 255, 255, 0.06);
  animation: statsOrbitSpin 35s linear infinite reverse;
}

.stats__ring-orbit-2::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(216, 180, 254, 0.5);
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.3);
}

/* Center percentage */
.stats__ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats__ring-num {
  font-family: var(--ff-ar-bold);
  font-size: 2.8rem;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #d8b4fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats__ring-num span:last-child {
  font-size: 1.3rem;
  background: linear-gradient(135deg, #d8b4fe 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats__ring-subtitle {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.45);
}

/* Floating decorative elements */
.stats__ring-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.15);
  animation: statsFloat 4s ease-in-out infinite;
}

.stats__ring-card::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(216, 180, 254, 0.15);
  animation: statsFloat 4s ease-in-out infinite 2s;
}

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

/* Stats responsive */
@media (max-width: 968px) {
  .stats__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stats__content { text-align: center; }
  .stats__desc { margin: 0 auto; }
  .stats__ring-card { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .stats { padding: 2.5rem 0; }
  .stats__grid { grid-template-columns: 1fr; gap: 1rem; }
  .stats__item { padding: 1rem 0.8rem; }
  .stats__ring { width: 140px; height: 140px; }
  .stats__ring-num { font-size: 2rem; }
  .stats__ring-card { padding: 1.5rem 1rem; }
}


/* ===== FOOTER CTA ===== */
.footer-cta {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.footer-cta::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.footer-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  padding: 3.5rem 0;
  position: relative;
  z-index: 1;
}
.footer-cta__title {
  font-family: var(--ff-ar-bold);
  font-size: 1.75rem;
  color: var(--clr-white);
  margin-bottom: var(--sp-xs);
}
.footer-cta__desc {
  font-family: var(--ff-ar-regular);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}
.footer-cta__actions {
  display: flex;
  gap: var(--sp-md);
  flex-shrink: 0;
}
.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--ff-ar-medium);
  font-size: var(--fs-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.footer-cta__btn--primary {
  background: var(--clr-white);
  color: var(--clr-primary);
}
.footer-cta__btn--primary:hover {
  background: var(--clr-off-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.footer-cta__btn--outline {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.footer-cta__btn--outline:hover {
  border-color: var(--clr-white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--clr-primary-darker);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
}
.footer__main {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.footer__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
  filter: brightness(0) invert(1);
}
.footer__desc {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  max-width: 340px;
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: var(--sp-sm);
}
.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  transition: all var(--transition);
}
.footer__social-link:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

/* Column Titles */
.footer__col-title {
  font-family: var(--ff-ar-bold);
  font-size: var(--fs-md);
  color: var(--clr-white);
  margin-bottom: var(--sp-lg);
  position: relative;
  padding-bottom: var(--sp-sm);
}
.footer__col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), rgba(168, 85, 247, 0.3));
  border-radius: 3px;
}

/* Links */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.footer__link {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer__link svg {
  opacity: 0;
  transform: translateX(6px);
  transition: all var(--transition);
  flex-shrink: 0;
}
.footer__link:hover {
  color: var(--clr-white);
  transform: translateX(-4px);
}
.footer__link:hover svg {
  opacity: 1;
  transform: translateX(0);
  color: var(--clr-accent);
}

/* Contact Items */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition);
}
.footer__contact-item:hover {
  color: var(--clr-white);
}
.footer__contact-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-white);
  transition: all var(--transition);
}
.footer__contact-item:hover .footer__contact-icon {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--clr-accent);
}

/* Footer Bottom */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--sp-lg) 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copyright {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
}
.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.footer__bottom-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}
.footer__bottom-link {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.footer__bottom-link:hover {
  color: var(--clr-white);
}

/* ===== FLOATING CONTACT BUTTON ===== */
.float-contact {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  align-items: center;
}
.float-contact__toggle {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  padding: 18px 12px;
  font-family: var(--ff-ar-bold);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 0 12px 12px 0;
  letter-spacing: 1px;
  transition: all var(--transition);
  box-shadow: 3px 0 20px rgba(84, 33, 135, 0.3);
  position: relative;
  z-index: 2;
}
.float-contact__toggle:hover {
  background: var(--clr-primary-dark);
  padding-right: 15px;
}
.float-contact.active .float-contact__toggle {
  background: var(--clr-primary-dark);
  border-radius: 0 12px 12px 0;
}
.float-contact__actions {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.float-contact.active .float-contact__actions {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  left: calc(100%);
}
.float-contact__action {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: scale(0) translateX(-20px);
  border: none;
  cursor: pointer;
}
.float-contact.active .float-contact__action {
  transform: scale(1) translateX(0);
}
.float-contact.active .float-contact__action:nth-child(1) {
  transition-delay: 0.05s;
}
.float-contact.active .float-contact__action:nth-child(2) {
  transition-delay: 0.1s;
}
.float-contact.active .float-contact__action:nth-child(3) {
  transition-delay: 0.15s;
}
.float-contact__action:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}
.float-contact__action--email {
  background: var(--clr-primary);
}
.float-contact__action--phone {
  background: #29b6f6;
}
.float-contact__action--whatsapp {
  background: #25d366;
}

/* Float Contact Mobile */
@media (max-width: 768px) {
  .float-contact__toggle {
    padding: 14px 10px;
    font-size: 0.75rem;
  }
  .float-contact__action {
    width: 46px;
    height: 46px;
  }
  .float-contact__action svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== CONTACT FORM MODAL ===== */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.contact-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.contact-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--clr-white);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  width: 92%;
  max-width: 420px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}
.contact-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.contact-modal__close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--clr-off-white);
  color: var(--clr-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.contact-modal__close:hover {
  background: #fee2e2;
  color: #ef4444;
}
.contact-modal__title {
  font-family: var(--ff-ar-bold);
  font-size: 1.35rem;
  color: var(--clr-primary);
  text-align: center;
  margin-bottom: 1.75rem;
}
.contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-modal__field input,
.contact-modal__field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--clr-border);
  border-radius: 12px;
  font-family: var(--ff-ar-regular);
  font-size: 0.95rem;
  color: var(--clr-text);
  background: var(--clr-white);
  transition: all var(--transition);
  outline: none;
  direction: rtl;
  box-sizing: border-box;
}
.contact-modal__field input::placeholder,
.contact-modal__field textarea::placeholder {
  color: var(--clr-text-secondary);
  opacity: 0.6;
}
.contact-modal__field input:focus,
.contact-modal__field textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px rgba(84, 33, 135, 0.1);
}
.contact-modal__field textarea {
  resize: none;
  min-height: 100px;
}
.contact-modal__submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--clr-primary);
  color: var(--clr-white);
  font-family: var(--ff-ar-bold);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}
.contact-modal__submit:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(84, 33, 135, 0.35);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(84, 33, 135, 0.4);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--clr-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(84, 33, 135, 0.5);
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-cta__inner {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 0;
  }
  .footer-cta__title {
    font-size: var(--fs-xl);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
  }
  .footer__brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  .footer__desc {
    max-width: 100%;
  }
  .footer__social {
    justify-content: center;
  }
  .footer__col-title::after {
    right: auto;
    left: auto;
  }
}
@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
    text-align: center;
  }
  .footer__col-title::after {
    right: 50%;
    transform: translateX(50%);
  }
  .footer__link {
    justify-content: center;
  }
  .footer__contact-item {
    justify-content: center;
  }
  .footer__bottom-inner {
    flex-direction: column;
    gap: var(--sp-md);
    text-align: center;
  }
  .footer-cta__actions {
    flex-direction: column;
    width: 100%;
  }
  .footer-cta__btn {
    justify-content: center;
    width: 100%;
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
  .footer-cta__title {
    font-size: 1.3rem;
  }
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ===== LTR (English) OVERRIDES ===== */

/* Logo underline */
html[dir="ltr"] .nav__logo::after {
  right: auto;
  left: 0;
}

/* Nav link underline */
html[dir="ltr"] .nav__link::after {
  right: auto;
  left: 0;
}

/* Nav actions entrance animation */
html[dir="ltr"] .nav__actions {
  animation-name: navActionsEntranceLTR;
}
@keyframes navActionsEntranceLTR {
  0% { opacity: 0; transform: translateX(10px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Dropdown position */
html[dir="ltr"] .dropdown {
  right: auto;
  left: 0;
}

/* Search close button */
html[dir="ltr"] .search-overlay__close {
  left: auto;
  right: 40px;
}

/* Search input direction */
html[dir="ltr"] .search-overlay__input {
  direction: ltr;
}

/* Contact form inputs direction */
html[dir="ltr"] .contact-modal__field input,
html[dir="ltr"] .contact-modal__field textarea {
  direction: ltr;
}

/* Mobile menu slide from left */
@media (max-width: 900px) {
  html[dir="ltr"] .nav__menu {
    right: auto;
    left: -100%;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    border-left: none;
    border-right: 1px solid rgba(168, 85, 247, 0.15);
    transition: left var(--transition-slow);
  }
  html[dir="ltr"] .nav__menu.active {
    right: auto;
    left: 0;
  }
}

/* Footer CTA decorative circles */
html[dir="ltr"] .footer-cta::before {
  right: auto;
  left: -10%;
}
html[dir="ltr"] .footer-cta::after {
  left: auto;
  right: -5%;
}

/* Footer column title underline */
html[dir="ltr"] .footer__col-title::after {
  right: auto;
  left: 0;
}

/* Footer link chevron & hover */
html[dir="ltr"] .footer__link svg {
  transform: translateX(-6px) scaleX(-1);
}
html[dir="ltr"] .footer__link:hover {
  transform: translateX(4px);
}
html[dir="ltr"] .footer__link:hover svg {
  transform: translateX(0) scaleX(-1);
}

/* Floating contact - flip to right side */
html[dir="ltr"] .float-contact {
  left: auto;
  right: 0;
}
html[dir="ltr"] .float-contact__toggle {
  border-radius: 12px 0 0 12px;
  box-shadow: -3px 0 20px rgba(84, 33, 135, 0.3);
}
html[dir="ltr"] .float-contact__toggle:hover {
  padding-right: 12px;
  padding-left: 15px;
}
html[dir="ltr"] .float-contact.active .float-contact__toggle {
  border-radius: 12px 0 0 12px;
}
html[dir="ltr"] .float-contact__actions {
  left: auto;
  right: 0;
}
html[dir="ltr"] .float-contact.active .float-contact__actions {
  left: auto;
  right: calc(100%);
}
html[dir="ltr"] .float-contact__action {
  transform: scale(0) translateX(20px);
}
html[dir="ltr"] .float-contact.active .float-contact__action {
  transform: scale(1) translateX(0);
}

/* Contact modal close button */
html[dir="ltr"] .contact-modal__close {
  left: auto;
  right: 16px;
}

/* Back to top button */
html[dir="ltr"] .back-to-top {
  left: auto;
  right: 30px;
}

/* LTR responsive overrides */
@media (max-width: 900px) {
  html[dir="ltr"] .footer__col-title::after {
    right: auto;
    left: auto;
  }
}
@media (max-width: 600px) {
  html[dir="ltr"] .footer__col-title::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  html[dir="ltr"] .back-to-top {
    left: auto;
    right: 20px;
  }
}

/* About section LTR */
html[dir="ltr"] .about__exp {
  right: auto;
  left: -1.5rem;
}

html[dir="ltr"] .about__visual::before {
  left: auto;
  right: -2rem;
}

html[dir="ltr"] .about__title-highlight::after {
  right: auto;
  left: 0;
}

/* Language button - always show Arabic font for عربي text */
html[dir="ltr"] .nav__lang {
  font-family: "ArbFont-Medium", sans-serif;
}

/* Hide lang button on mobile - restore */
@media (max-width: 480px) {
  html[dir="ltr"] .nav__lang {
    display: none;
  }
}
