@font-face {
  font-display: block;
  font-family: Inter;
  src: url(../fonts/Inter/Inter-VariableFont_slntwght.ttf) format("truetype");
}
@font-face {
  font-display: block;
  font-family: Cairo;
  src: url(../fonts/Cairo/Cairo-VariableFont_slntwght.ttf) format("truetype");
}
@font-face {
  font-display: swap;
  font-family: Almarai;
  src: url(../fonts/Almarai/Almarai-Bold.ttf) format("truetype");
}
@font-face {
  font-display: swap;
  font-family: Somar-Sans;
  src: url(../fonts/SomarSans/SomarSans-Regular.ttf) format("truetype");
}
@font-face {
  font-display: swap;
  font-family: Nunito;
  src: url(../fonts/Nunito/Nunito-Bold.ttf) format("truetype");
}
@font-face {
  font-display: swap;
  font-family: Saudi-Riyal;
  src: url(../fonts/Saudi-Riyal/saudi_riyal.ttf) format("truetype");
}
@font-face {
  font-family: UAE-Dirham;
  src: url(../fonts/UAE-Dirham/AED-Regular.otf) format("truetype");
}
@font-face {
  font-family: "PingARLT";
  src:
    url(../fonts/PingARLT/PingARLT-Regular.woff2) format("woff2"),
    url(../fonts/PingARLT/PingARLT-Regular.woff) format("woff");
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "PingARLT", serif !important;
  overflow-x: hidden;
}

html,
body {
  min-height: 100%;
}

[data-bs-theme="dark"] {
  --star-strong: rgba(255, 255, 255, 0.9);
  --star-medium: rgba(200, 220, 255, 0.6);
  --star-soft: rgba(160, 180, 255, 0.4);
  --glow-color: rgba(180, 200, 255, 0.08);
}

[data-bs-theme="light"] {
  --star-strong: rgba(255, 120, 200, 0.9);
  --star-medium: rgba(255, 160, 215, 0.65);
  --star-soft: rgba(255, 200, 230, 0.45);
  --glow-color: rgba(255, 120, 200, 0.15);
}

body {
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, var(--star-strong), transparent),
    radial-gradient(1px 1px at 70% 40%, var(--star-medium), transparent),
    radial-gradient(1.6px 1.6px at 40% 80%, var(--star-strong), transparent),
    radial-gradient(1px 1px at 90% 60%, var(--star-soft), transparent),
    radial-gradient(1.3px 1.3px at 10% 70%, var(--star-medium), transparent);
  background-size: 280px 280px;
  animation: starsMove 60s linear infinite;

  opacity: 0.9;
  z-index: 0;
  pointer-events: none;

  filter: drop-shadow(0 0 4px var(--star-strong))
    drop-shadow(0 0 8px var(--star-medium));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, var(--glow-color), transparent 45%),
    radial-gradient(circle at 80% 80%, var(--glow-color), transparent 50%);
  animation: starsGlow 8s ease-in-out infinite alternate;

  z-index: 1;
  pointer-events: none;
}

[data-bs-theme="dark"] body::before,
[data-bs-theme="dark"] body::after {
  mix-blend-mode: screen;
}

body::before,
body::after {
  max-width: 100vw;
  overflow: hidden;
}

body > * {
  position: relative;
  z-index: 2;
}

@keyframes starsMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -600px 600px;
  }
}

@keyframes starsGlow {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.75;
  }
}

.rotate-90 {
  transform: rotate(-90deg);
}

a {
  text-decoration: none !important;
}

@media (max-width: 767.98px) {
  .action-bar {
    display: flex;
    flex-direction: row;
    gap: 25px;
    position: fixed !important;
    bottom: 60px !important;
    left: 50% !important;
    transform: translateX(-50%);
    background: #fff;
    padding: 5px;
    z-index: 1020 !important;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }

  .action-bar .btn {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
  .action-bar .btn span {
    border: none !important;
  }
  .action-bar .btn:hover {
    background-color: #333d4c !important;
  }
}

.navbar {
  background-color: rgba(var(--bs-body-bg-rgb), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  width: 95%;
  max-width: 1328px;
  margin: 1rem auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#themeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Service Card */
[data-bs-theme="light"] {
  --card-bg-start: rgba(255, 255, 255, 0.88);
  --card-bg-end: rgba(255, 255, 255, 0.68);
  --card-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  --icon-shadow: rgba(13, 110, 253, 0.35);
  --bg-accent: radial-gradient(circle at top left, #5eead4, #60a5fa, #a78bfa);
  --divider-color: rgba(0, 0, 0, 0.06);
  --cta-bg: rgba(255, 255, 255, 0.35);
  --cta-hover-bg: rgba(13, 110, 253, 0.08);
}

[data-bs-theme="dark"] {
  --card-bg-start: rgba(20, 22, 30, 0.336);
  --card-bg-end: rgba(20, 22, 30, 0.068);
  --card-shadow:
    0 25px 60px rgba(0, 0, 0, 0.137), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --icon-shadow: rgba(120, 160, 255, 0.45);
  --bg-accent: radial-gradient(
    circle at top left,
    rgba(94, 234, 212, 0.8),
    rgba(96, 165, 250, 0.7),
    rgba(167, 139, 250, 0.7)
  );
  --divider-color: rgba(255, 255, 255, 0.08);
  --cta-bg: rgba(255, 255, 255, 0.08);
  --cta-hover-bg: rgba(120, 160, 255, 0.18);
}

.service-card {
  border: none;
  border-radius: 1.5rem;
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 26%),
    rgb(255 255 255 / 12%)
  );
  backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
  position: relative;
  overflow: hidden;
}

.service-bg {
  position: absolute;
  width: 180px;
  height: 180px;
  background: var(--bg-accent);
  border-radius: 50%;
  top: -70px;
  inset-inline-start: -70px;
  opacity: 0.18;
  z-index: 0;
  transition: transform 1.2s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-6px) rotate(-3deg);
  box-shadow: 0 18px 40px var(--icon-shadow);
}

.service-details-bar {
  margin-top: auto;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--divider-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  background: var(--cta-bg);
  backdrop-filter: blur(6px);
  transition:
    background 0.35s ease,
    padding 0.35s ease;
}

.service-details-bar:hover {
  background: var(--cta-hover-bg);
  padding-left: 1.25rem;
}

/* 🌞 Light Mode */
[data-bs-theme="light"] {
  --portfolio-card-bg: #ffffff;
  --portfolio-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --portfolio-overlay: rgba(0, 0, 0, 0.45);
  --portfolio-title: #111;
  --portfolio-text: rgba(0, 0, 0, 0.65);
  --portfolio-btn-bg: rgba(255, 255, 255, 0.95);
  --portfolio-btn-color: #111;
  --portfolio-badge-bg: var(--bs-primary);

  --swiper-bullet: #269da5;
  --swiper-bullet-active: #0478bb;
  --swiper-bullet-shadow: rgba(4, 120, 187, 0.35);
  --swiper-btn-bg: #ffffff;
  --swiper-btn-color: #111827;
  --swiper-btn-border: rgba(0, 0, 0, 0.08);
  --swiper-btn-hover-bg: #f3f4f6;
}

[data-bs-theme="dark"] {
  --portfolio-card-bg: #141722;
  --portfolio-card-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  --portfolio-overlay: rgba(0, 0, 0, 0.65);
  --portfolio-title: #ffffff;
  --portfolio-text: rgba(255, 255, 255, 0.7);
  --portfolio-btn-bg: rgba(255, 255, 255, 0.14);
  --portfolio-btn-color: #ffffff;
  --portfolio-badge-bg: rgba(13, 110, 253, 0.9);

  --swiper-bullet: rgba(120, 180, 255, 0.55);
  --swiper-bullet-active: rgba(180, 200, 255, 0.95);
  --swiper-bullet-shadow: rgba(180, 200, 255, 0.45);
  --swiper-btn-bg: rgba(255, 255, 255, 0.12);
  --swiper-btn-color: #ffffff;
  --swiper-btn-border: rgba(255, 255, 255, 0.15);
  --swiper-btn-hover-bg: rgba(255, 255, 255, 0.22);
}

/* =====================================================
   PORTFOLIO CARD
===================================================== */

#portfolio .card {
  background: var(--portfolio-card-bg);
  box-shadow: var(--portfolio-card-shadow);
  border-radius: 1rem;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s ease;
}

#portfolio .card:hover {
  transform: translateY(-10px);
}

/* Services Section Emphasis */
#services {
  position: relative;
  isolation: isolate;
}

.service-card-wrap {
  position: relative;
  padding: 10px;
  border-radius: 1.8rem;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.18),
    rgba(94, 234, 212, 0.12),
    rgba(167, 139, 250, 0.14)
  );
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.service-card-wrap::before,
.service-card-wrap::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 1.4rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  opacity: 0.6;
  pointer-events: none;
}

.service-card-wrap::after {
  inset: 4px;
  border: 1px solid rgba(13, 110, 253, 0.25);
  opacity: 0.8;
}

.service-card-wrap .service-card {
  border-radius: 1.4rem;
}

.service-card-wrap::marker {
  content: "";
}

.service-card-wrap .service-card::before {
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-start: -40px;
  width: 110px;
  height: 110px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
  opacity: 0.55;
  filter: blur(2px);
  z-index: 0;
}

.service-card-wrap .service-card::after {
  content: "";
  position: absolute;
  bottom: -45px;
  inset-inline-start: -45px;
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle,
    rgba(13, 110, 253, 0.25),
    transparent 70%
  );
  opacity: 0.6;
  filter: blur(6px);
  z-index: 0;
}

.service-card {
  transform: translateZ(0);
}

.service-card .card-body,
.service-card .service-details-bar,
.service-card .service-bg {
  position: relative;
  z-index: 1;
}

.service-card-wrap:hover {
  transform: translateY(-4px);
  transition: transform 0.35s ease;
}

/* Services Title Decoration (Simple + Dots) */
.section-title {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding-bottom: 0.5rem;
}

.section-title-center {
  width: 100%;
  justify-content: center;
}

.section-title-right {
  width: 100%;
  justify-content: flex-start;
}

.section-title-right::after {
  inset-inline-end: auto;
  inset-inline-start: 0;
  transform: none;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  opacity: 0.9;
}

.section-title-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.section-title-dots::before,
.section-title-dots::after,
.section-title-dots span {
  content: "";
  display: inline-block;
  border-radius: 50%;
  animation: titleDotPulse 1.6s ease-in-out infinite;
}

.section-title-dots::before {
  width: 6px;
  height: 6px;
  background: #5eead4;
  animation-delay: 0s;
}

.section-title-dots::after {
  width: 10px;
  height: 10px;
  background: #60a5fa;
  animation-delay: 0.2s;
}

.section-title-dots span {
  width: 14px;
  height: 14px;
  background: #a78bfa;
  animation-delay: 0.4s;
}

.section-title-dots::after,
.section-title-dots::before {
  opacity: 0.9;
}

.section-title-dots {
  position: relative;
}

.section-title-dots::before,
.section-title-dots::after {
  position: static;
}

.section-title-dots::before,
.section-title-dots::after,
.section-title-dots span {
  opacity: 0.2;
}

@keyframes titleDotPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
.service-icon i {
  position: relative;
  font-size: 4.5rem;
  color: #c3ff96f5;
  text-shadow: 0 10px 22px rgba(13, 110, 253, 0.35);
  animation: serviceIconPulse 1.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes serviceIconPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
    filter: drop-shadow(0 0 0 rgba(13, 110, 253, 0.35));
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(13, 110, 253, 0.55));
  }
}

/* =====================================================
   IMAGE OVERLAY
===================================================== */

#portfolio .hover-effect-target {
  transition: opacity 0.4s ease;
}

#portfolio .card:hover .hover-effect-target {
  opacity: 1;
}

#portfolio .hover-effect-target.bg-dark {
  background: var(--portfolio-overlay) !important;
}

@media (max-width: 991.98px) {
  #portfolio .hover-effect-target {
    opacity: 1 !important;
  }
}

/* =====================================================
   CARD CONTENT
===================================================== */

#portfolio .badge {
  background: var(--portfolio-badge-bg);
}

#portfolio .card-title {
  color: var(--portfolio-title);
}

#portfolio .card-text {
  color: var(--portfolio-text);
}

/* =====================================================
   ACTION BUTTONS
===================================================== */

#portfolio .btn-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--portfolio-btn-bg);
  color: var(--portfolio-btn-color);
  border-radius: 50%;
  border: none;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

#portfolio .btn-icon:hover {
  transform: scale(1.1);
}

/* =====================================================
   SWIPER NAVIGATION BUTTONS
===================================================== */

.swiper-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--swiper-btn-border);
  background: var(--swiper-btn-bg);
  color: var(--swiper-btn-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.swiper-btn i {
  font-size: 18px;
}

.swiper-btn:hover {
  background: var(--swiper-btn-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.swiper-btn:active {
  transform: scale(0.96);
}

/* =====================================================
   SWIPER PAGINATION
===================================================== */

.portfolio-swiper {
  padding-bottom: 60px;
}

.portfolio-swiper .swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.portfolio-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--swiper-bullet);
  opacity: 0.45;
  transition:
    width 0.3s ease,
    background 0.3s ease,
    opacity 0.3s ease;
}

.portfolio-swiper .swiper-pagination-bullet-active {
  width: 30px;
  border-radius: 6px;
  background: var(--swiper-bullet-active);
  opacity: 1;
  box-shadow: 0 0 14px var(--swiper-bullet-shadow);
}

/* =====================================================
   RTL FIX
===================================================== */

[dir="rtl"] .swiper-btn-prev i,
[dir="rtl"] .swiper-btn-next i {
  transform: rotate(180deg);
}

[dir="rtl"] .glow-circle {
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

/* Mobile Side Bar */
.mobile-side-bar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  background: rgba(var(--bs-body-bg-rgb), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 5px;
  border-radius: 0 16px 16px 0;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(var(--bs-body-color-rgb), 0.1);
  border-left: 0;
}

/* Typed Text Size */
.auto-type {
  font-family: "Marhey", sans-serif;
  font-size: 1.5rem;
  height: 40px;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  transform: translateZ(0);
  display: inline-block;
}

.typed-cursor {
  display: none !important;
}

.highlight-box {
  position: relative;
  padding: 1rem 1.25rem;
  border-right: 4px solid var(--bs-primary);
  background: rgba(13, 110, 253, 0.06);
  border-radius: 0.75rem;
}

.highlight-box .quote-icon {
  position: absolute;
  top: -20px;
  inset-inline-start: 50%;
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--bs-body-bg-rgb), 0.92);
  color: var(--bs-primary);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15);
  z-index: 2;
  transform-origin: 70% 10%;
  animation:
    quotePulse 2.6s ease-in-out infinite,
    quoteSwing 4.2s ease-in-out infinite;
}

.highlight-box .quote-icon i {
  font-size: 2.5rem;
  line-height: 1;
}

@keyframes quotePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 16px 28px rgba(13, 110, 253, 0.28);
  }
}

@keyframes quoteSwing {
  0%,
  100% {
    rotate: 0deg;
  }
  25% {
    rotate: -7deg;
  }
  75% {
    rotate: 7deg;
  }
}

/* Support Chatbox */
.support-chatbox {
  position: fixed;
  bottom: 90px;
  inset-inline-start: 20px;
  inset-inline-end: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background-color: var(--bs-body-bg);
  background-image: none;
  border: 1px solid rgba(var(--bs-body-color-rgb), 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

[data-bs-theme="dark"] .support-chatbox {
  background-color: #0f1117;
}

[data-bs-theme="light"] .support-chatbox {
  background-color: #ffffff;
}

.support-chatbox.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.support-chatbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.95),
    rgba(13, 110, 253, 0.7)
  );
  color: #fff;
}

.support-chatbox-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 16px rgba(13, 110, 253, 0.25);
  animation: supportAvatarFloat 3s ease-in-out infinite;
}

.support-chatbox-avatar img {
  width: 18px;
  height: 18px;
  animation: supportAvatarPulse 2.2s ease-in-out infinite;
}

.support-chatbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.8);
}

.support-chatbox-body {
  padding: 1rem;
}

.support-chatbox .support-input {
  background: rgba(var(--bs-body-bg-rgb), 0.9);
  border: 1px solid rgba(var(--bs-body-color-rgb), 0.2);
}

.support-chatbox .support-input:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.6);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}

.support-chatbox .support-feedback {
  min-height: 18px;
}

.support-chatbox textarea.form-control {
  resize: none;
}

/* Auth Modal */
.auth-modal {
  max-width: 420px;
}

.auth-forms {
  position: relative;
}

.auth-panel {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.auth-panel-register {
  display: none;
}

.auth-forms[data-auth-state="register"] .auth-panel-login {
  display: none;
}

.auth-forms[data-auth-state="register"] .auth-panel-register {
  display: block;
}

.auth-forms[data-auth-state="login"] .auth-panel-login {
  display: block;
}

.auth-forms[data-auth-state="login"] .auth-panel-register {
  display: none;
}

.auth-forgot-link,
.auth-switch {
  color: var(--bs-primary);
  text-decoration: none;
}

.auth-forgot-link:hover,
.auth-switch:hover {
  text-decoration: underline;
}

.auth-footer {
  justify-content: center;
}

@media (max-width: 575.98px) {
  .support-chatbox {
    bottom: 80px;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
  }
}

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

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

.welcome-wave {
  font-size: 2.4rem;
  color: #ffb703;
  animation: wave 1.8s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(14deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(14deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* ===== CTA Status Effect (Same as Status) ===== */
.cta-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.35) !important;

  background: linear-gradient(
    135deg,
    rgba(37, 211, 102, 0.18),
    rgba(37, 211, 102, 0.05)
  );

  transition:
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;

  animation: ctaGlow 2.2s ease-in-out infinite;
}

/* Hover color (same behavior) */
.cta-pill:hover {
  color: #fdae2d;
  transform: translateY(-2px);
}

/* Icon micro motion */
.cta-pill i {
  transition: transform 0.25s ease;
}

.cta-pill:hover i {
  transform: translateX(3px);
}

/* ===== Glow Animation ===== */
@keyframes ctaGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(37, 211, 102, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.35);
  }
}

/* Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  opacity: 1;
  background: rgba(120, 204, 109, 0.25);
  border: 1px solid transparent;
  -o-transition:
    width 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    height 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    background 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    margin 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    border-color 0.7s cubic-bezier(0.3, 0, 0.3, 1);
  transition:
    width 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    height 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    background 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    margin 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    border-color 0.7s cubic-bezier(0.3, 0, 0.3, 1);
  -webkit-transition:
    width 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    height 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    background 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    margin 0.3s cubic-bezier(0.3, 0, 0.3, 1),
    border-color 0.7s cubic-bezier(0.3, 0, 0.3, 1);
  z-index: 9999;
  pointer-events: none;
  border-radius: 100%;
  -moz-border-radius: 100%;
  -webkit-border-radius: 100%;
  -khtml-border-radius: 100%;
  transform: translate(-50%, -50%);
}

.cursor.cursor-zoom {
  width: 80px;
  height: 80px;
  background: rgba(120, 204, 109, 0);
  border-color: rgba(120, 204, 109, 1);
}

@media (max-width: 768px) {
  .cursor {
    display: none !important;
  }
}

.custom_card {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(
    234.25deg,
    hsla(0, 0%, 100%, 0.85),
    hsla(0, 0%, 100%, 0.25),
    #e1e4ff
  );
  z-index: 1;
}

/* 🔥 الإطار المتحرك */
.custom_card::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 18px;

  background: linear-gradient(90deg, #2e1ffd, #d979cc, #2f67fe, #2e1ffd);
  background-size: 300% 300%;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  padding: 4px;
  z-index: -1;

  animation: borderFlow 6s linear infinite;
}

/* 🎞️ حركة الإطار */
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

.animated_shine {
  display: inline-block;
  background: linear-gradient(
    261.91deg,
    #2e1ffd -3.09%,
    #d979cc 47.21%,
    #2e1ffd 93.65%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200%;
    will-change: background-position;
  }
}

/* Theme colors */
[data-bs-theme="light"] {
  --radial-divider: rgba(13, 110, 253, 0.35);
}

[data-bs-theme="dark"] {
  --radial-divider: rgba(140, 190, 255, 0.45);
}

.section-divider::after {
  content: "";
  position: absolute;
  bottom: -45px;
  inset-inline-end: 0;
  inset-inline-start: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 8%,
    var(--radial-divider) 50%,
    transparent 92%
  );
  opacity: 0.45;
  pointer-events: none;
}

.contact-card {
  background: var(--bs-body-bg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Contact Section Emphasis */

.contact-hero > * {
  position: relative;
  z-index: 1;
}

.contact-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: var(--bs-primary);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
}

.contact-badge img {
  filter: drop-shadow(0 4px 8px rgba(13, 110, 253, 0.3));
}

.contact-subtitle {
  max-width: 640px;
}

.contact-header-row {
  gap: 1.25rem 0;
}

.contact-header.text-end {
  align-items: flex-end;
}

.contact-badge {
  display: inline-flex;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.contact-cta-card {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.14),
    rgba(94, 234, 212, 0.12),
    rgba(167, 139, 250, 0.12)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  text-align: center;
  padding-block: 1.4rem;
}

.contact-features {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.9rem;
}

.contact-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--bs-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-feature i {
  font-size: 1rem;
}

.contact-body .contact-card {
  border: 1px solid rgba(var(--bs-body-color-rgb), 0.08);
}

@media (max-width: 991.98px) {
  .contact-header.text-end {
    align-items: center;
    text-align: center;
  }
  .contact-features {
    justify-content: center;
  }
}

.contact-icon {
  filter: drop-shadow(0 12px 24px rgba(13, 110, 253, 0.28));
  transform-origin: center;
  transition: transform 0.25s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.06);
}

.contact-icon-float {
  animation: contactFloat 3s ease-in-out infinite;
}

.contact-icon-pulse {
  animation: contactPulse 2.4s ease-in-out infinite;
}

.contact-icon-wiggle {
  animation: contactWiggle 2.8s ease-in-out infinite;
}

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

@keyframes contactPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes contactWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

.site-footer {
  position: relative;
  background: linear-gradient(to top, rgba(13, 110, 253, 0.08), transparent);
  overflow-x: hidden;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--bs-body-color);
  opacity: 0.75;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(-4px);
}

.footer-contact li {
  margin-bottom: 8px;
  opacity: 0.75;
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  transition: all 0.25s ease;
}

.footer-social:hover {
  background: var(--bs-primary);
  color: #fff;
}

.torn-paper {
  position: relative;
  overflow: hidden;
}

/* Torn edge at the END (RTL-friendly) */
.torn-paper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: -6px;
  width: 35px;

  background: var(--bs-body-bg);

  clip-path: polygon(
    55% 0%,
    40% 6%,
    55% 12%,
    38% 18%,
    52% 24%,
    36% 30%,
    54% 36%,
    40% 42%,
    56% 48%,
    38% 54%,
    52% 60%,
    36% 66%,
    55% 72%,
    40% 78%,
    54% 84%,
    38% 90%,
    52% 96%,
    55% 100%
  );

  box-shadow: 2px 0 3px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
[data-bs-theme="dark"] .torn-paper::after {
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.4);
}

.tech-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 14px 0;
  background: linear-gradient(
    90deg,
    rgba(13, 110, 253, 0.08),
    rgba(13, 110, 253, 0.02)
  );
  border: 1px solid rgba(13, 110, 253, 0.15);
}

.tech-marquee .js-marquee-wrapper {
  display: flex;
}

.tech-marquee .js-marquee {
  display: inline-flex;
  gap: 18px;
  align-items: center;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bs-body-bg);
  border: 1px solid rgba(13, 110, 253, 0.2);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.08);
  color: var(--bs-body-color);
  font-weight: 600;
  white-space: nowrap;
}

.tech-pill i {
  font-size: 20px;
  color: var(--bs-primary);
}

[data-bs-theme="dark"] .tech-marquee {
  background: linear-gradient(
    90deg,
    rgba(13, 110, 253, 0.15),
    rgba(13, 110, 253, 0.05)
  );
  border-color: rgba(13, 110, 253, 0.3);
}

[data-bs-theme="dark"] .tech-pill {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(13, 110, 253, 0.4);
}

/* Services cards: free layout (no frames/grounds) */
#services .service-card-wrap {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

#services .service-card-wrap::before,
#services .service-card-wrap::after {
  display: none;
}

#services .service-card {
  background: transparent;
  box-shadow: none;
  border: 0;
  backdrop-filter: none;
  align-items: center;
}

#services .service-card::before,
#services .service-card::after {
  display: none;
}

#services .service-bg {
  display: none;
}

#services .service-card-wrap:hover {
  transform: none;
}

#services {
  position: relative;
}

#services::before,
#services::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(13, 110, 253, 0.18),
    rgba(13, 110, 253, 0.02) 60%,
    transparent 70%
  );
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

#services::before {
  top: -40px;
  inset-inline-start: -30px;
}

#services::after {
  bottom: -60px;
  inset-inline-end: -20px;
}

#services .service-blob {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  --service-blob-translate-x: -50%;
  transform: translate(var(--service-blob-translate-x), -50%);
  width: 240px;
  height: 240px;
  opacity: 0.14;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: 0;
  animation: service-blob-float 12s ease-in-out infinite;
  background-image: var(--service-blob);
}

[dir="rtl"] #services .service-blob {
  --service-blob-translate-x: 50%;
}

#services .service-card {
  --service-blob: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M170 100C170 138 138 170 100 170C62 170 30 138 30 100C30 62 62 30 100 30C138 30 170 62 170 100Z' fill='none' stroke='%230d6efd' stroke-width='1.4' stroke-dasharray='8 6'/%3E%3Cpath d='M155 100C155 129 129 155 100 155C71 155 45 129 45 100C45 71 71 45 100 45C129 45 155 71 155 100Z' fill='none' stroke='%230d6efd' stroke-width='1.2' stroke-dasharray='4 5'/%3E%3Cpath d='M140 100C140 122 122 140 100 140C78 140 60 122 60 100C60 78 78 60 100 60C122 60 140 78 140 100Z' fill='none' stroke='%230d6efd' stroke-width='1.1' stroke-dasharray='3 4'/%3E%3Cpath d='M125 100C125 116 116 125 100 125C84 125 75 116 75 100C75 84 84 75 100 75C116 75 125 84 125 100Z' fill='none' stroke='%230d6efd' stroke-width='1' stroke-dasharray='2 4'/%3E%3C/svg%3E");
}

#services .service-card--branding {
  --service-blob: url(\"data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M110 30C150 30 190 60 190 110C190 160 150 190 110 190C70 190 30 160 30 110C30 60 70 30 110 30Z' fill='none' stroke='%230d6efd' stroke-width='1.5' stroke-dasharray='10 6'/%3E%3Ccircle cx='110' cy='110' r='52' fill='none' stroke='%230d6efd' stroke-width='1.2' stroke-dasharray='4 6'/%3E%3C/svg%3E\");
}

#services .service-card--marketing {
  --service-blob: url(\"data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M110 25C160 25 195 65 195 110C195 155 160 195 110 195C60 195 25 155 25 110C25 65 60 25 110 25Z' fill='none' stroke='%230d6efd' stroke-width='1.3' stroke-dasharray='6 8'/%3E%3Cpath d='M110 55C140 55 165 80 165 110C165 140 140 165 110 165C80 165 55 140 55 110C55 80 80 55 110 55Z' fill='none' stroke='%230d6efd' stroke-width='1.1' stroke-dasharray='3 5'/%3E%3C/svg%3E\");
}

#services .service-card--web {
  --service-blob: url(\"data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='110' cy='110' r='82' fill='none' stroke='%230d6efd' stroke-width='1.4' stroke-dasharray='5 7'/%3E%3Ccircle cx='110' cy='110' r='58' fill='none' stroke='%230d6efd' stroke-width='1.2' stroke-dasharray='2 6'/%3E%3Cpath d='M40 110H180' stroke='%230d6efd' stroke-width='1' stroke-dasharray='3 6'/%3E%3Cpath d='M110 40V180' stroke='%230d6efd' stroke-width='1' stroke-dasharray='3 6'/%3E%3C/svg%3E\");
}

#services .service-card--social {
  --service-blob: url(\"data:image/svg+xml,%3Csvg width='220' height='220' viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M110 30C150 30 190 60 190 110C190 160 150 190 110 190C70 190 30 160 30 110C30 60 70 30 110 30Z' fill='none' stroke='%230d6efd' stroke-width='1.2' stroke-dasharray='8 6'/%3E%3Ccircle cx='60' cy='80' r='10' fill='none' stroke='%230d6efd' stroke-width='1.4'/%3E%3Ccircle cx='160' cy='75' r='9' fill='none' stroke='%230d6efd' stroke-width='1.4'/%3E%3Ccircle cx='150' cy='150' r='8' fill='none' stroke='%230d6efd' stroke-width='1.4'/%3E%3Ccircle cx='70' cy='150' r='7' fill='none' stroke='%230d6efd' stroke-width='1.4'/%3E%3Cpath d='M70 150C90 135 130 135 150 150' fill='none' stroke='%230d6efd' stroke-width='1.1' stroke-dasharray='3 5'/%3E%3C/svg%3E\");
}

#services .service-card {
  z-index: 1;
}

#services .service-icon,
#services .card-title,
#services .card-text,
#services .service-card .btn {
  position: relative;
  z-index: 2;
}

#services .service-card {
  transition: transform 0.3s ease;
}

#services .service-card:hover {
  transform: translateY(-4px);
}

@keyframes service-blob-float {
  0% {
    transform: translate(var(--service-blob-translate-x), -50%) rotate(0deg)
      scale(0.85);
  }
  50% {
    transform: translate(var(--service-blob-translate-x), -50%) rotate(10deg)
      scale(1.35);
  }
  100% {
    transform: translate(var(--service-blob-translate-x), -50%) rotate(0deg)
      scale(0.85);
  }
}

#services .service-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#services .service-icon i {
  font-size: 28px;
  color: var(--bs-primary);
}

#services .service-card:hover .service-icon {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.18);
}

#services .service-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.22);
  color: var(--bs-primary);
  font-weight: 600;
}

#services .service-card .btn:hover,
#services .service-card .btn:focus {
  background: rgba(13, 110, 253, 0.14);
  border-color: rgba(13, 110, 253, 0.3);
  color: var(--bs-primary);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.2);
}
