body {
  --brand-blue: #359BD3;
  --brand-blue-dark: #257fae;
  --brand-green: #8CC63F;
  --brand-navy: #050B18;
  font-family: "Open Sans", "Tajawal", sans-serif;
  /* Removed body transition — was forcing repaint of the entire page on theme toggle */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

.tech-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

.dark .tech-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.glow-effect {
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.06);
}

.dark .glow-effect {
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

html[lang="en"] .lang-ar {
  display: none !important;
}

html[lang="ar"] .lang-en {
  display: none !important;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

::-webkit-scrollbar-thumb:hover {
  background: #0066cc;
}

.flow-node {
  transition-property: transform, box-shadow;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.flow-node:hover {
  transform: translate3d(0, -4px, 0) scale3d(1.02, 1.02, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 102, 204, 0.25);
}

.nav-link {
  transition-property: color;
  transition-duration: 180ms;
  transition-timing-function: ease;
}

.service-detail-card,
.soft-card,
.service-card-v2 {
  transition-property: transform, box-shadow, border-color, background-color;
  transition-duration: 300ms;
  transition-timing-function: ease;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: layout style;
}

.service-detail-card:hover,
.soft-card:hover,
.service-card-v2:hover {
  transform: translate3d(0, -4px, 0);
}

.pressable {
  transition-property: transform, background-color, color, box-shadow, border-color;
  transition-duration: 180ms;
  transition-timing-function: ease;
}

.pressable:active {
  transform: scale(0.96);
}

.text-electric-blue,
.text-cyan-500,
.text-cyan-600,
.dark .dark\:text-cyan-400 {
  color: var(--brand-blue) !important;
}

.text-cyber-green,
.text-blue-500,
.text-emerald-500,
.dark .dark\:text-emerald-400 {
  color: var(--brand-green) !important;
}

.bg-electric-blue,
.bg-cyan-500,
.bg-blue-500 {
  background-color: var(--brand-blue) !important;
}

.bg-cyber-green,
.bg-emerald-500 {
  background-color: var(--brand-green) !important;
}

.border-cyan-500\/20,
.border-cyan-500\/50,
.border-blue-500\/50 {
  border-color: rgb(0 168 248 / 0.28) !important;
}

.pressable[class*="bg-gradient"],
button[class*="bg-gradient"],
a[class*="bg-gradient"] {
  background-image: none !important;
  background-color: var(--brand-blue) !important;
  box-shadow: 0 16px 34px rgb(0 168 248 / 0.18);
}

.pressable[class*="bg-gradient"]:hover,
button[class*="bg-gradient"]:hover,
a[class*="bg-gradient"]:hover {
  background-color: var(--brand-blue-dark) !important;
}

.bg-clip-text.text-transparent,
.text-transparent.bg-clip-text {
  background-image: none !important;
  color: var(--brand-blue) !important;
  -webkit-text-fill-color: currentColor;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgb(0 168 248 / 0.12), transparent 22rem),
    rgb(248 250 252 / 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
  backdrop-filter: blur(14px);
}

.dark .page-loader {
  background:
    radial-gradient(circle at 50% 42%, rgb(0 168 248 / 0.16), transparent 24rem),
    rgb(5 11 24 / 0.94);
}

.page-loader.is-active {
  opacity: 1;
  visibility: visible;
}

.loader-panel {
  display: grid;
  place-items: center;
  gap: 1rem;
  min-width: 14rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgb(0 168 248 / 0.18);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 0.72);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.12);
}

.dark .loader-panel {
  border-color: rgb(255 255 255 / 0.1);
  background: rgb(15 23 42 / 0.72);
}

.loader-cloud {
  position: relative;
  width: 7.5rem;
  aspect-ratio: 1;
}

.loader-cloud > img,
.loader-cloud-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loader-cloud > img {
  opacity: 0.22;
  filter: grayscale(1);
}

.loader-cloud-fill {
  background-image: var(--loader-cloud);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  clip-path: inset(100% 0 0 0);
  animation: cloud-fill 1.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.loader-copy {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.animated-tech-bg {
  position: relative;
  isolation: isolate;
  background-color: #f8fafc; /* Matches bg-slate-50 to block parent's static grid */
  /* contain: paint removed — allows ::before (fixed) to cover full viewport */
}

.dark .animated-tech-bg {
  background-color: #050B18; /* Matches bg-slate-950/deep-navy to block parent's static grid */
}

/* Prevent double grid when both classes are on the same element */
.tech-grid.animated-tech-bg {
  background-image: none !important;
}

.animated-tech-bg::before {
  content: "";
  position: fixed; /* Covers the full viewport — not clipped by parent */
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(53, 155, 211, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 198, 63, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
  /* animation: tech-grid-drift 24s linear infinite; — disabled: grid is now static */
}

.animated-tech-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(53, 155, 211, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 28%, rgba(140, 198, 63, 0.14), transparent 24rem),
    radial-gradient(circle at 50% 92%, rgba(53, 155, 211, 0.08), transparent 30rem);
  pointer-events: none;
}

.dark .animated-tech-bg::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

.tech-constellation {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(53, 155, 211, 0.22);
  border-radius: 1rem;
  color: rgba(53, 155, 211, 0.58);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 45px rgba(53, 155, 211, 0.1);
  will-change: transform;
  animation: icon-float 9s ease-in-out infinite;
  transition: transform 0.1s ease-out;
}

/* Spider-web shimmer canvas overlay */
.grid-shimmer-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: multiply;
}
.dark .grid-shimmer-canvas {
  opacity: 0.7;
  mix-blend-mode: screen;
}

/* Mobile menu subtle grid background */
.mobile-menu-grid {
  background-image:
    linear-gradient(to right, rgba(53, 155, 211, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 155, 211, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  background-color: #ffffff;
}
.dark .mobile-menu-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  background-color: #050B18;
}

/* Hero slideshow — full-width square on mobile */
@media (max-width: 639px) {
  .hero-slideshow-mobile {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-radius: 0 !important;
    aspect-ratio: 1 / 1;
  }
}
/* On sm+ restore normal appearance with fixed height */
@media (min-width: 640px) {
  .hero-slideshow-mobile {
    aspect-ratio: unset !important;
    height: 480px;
    border-radius: 1.5rem !important;
  }
}

.dark .floating-icon {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(92, 178, 223, 0.62);
  background: rgba(15, 23, 42, 0.38);
}

.floating-icon:nth-child(2n) {
  color: rgba(140, 198, 63, 0.58);
}

/* حركة هادئة كل ثانيتين: سكون 2ث ثم انتقال 2ث ثم سكون 2ث ثم عودة 2ث */
.floating-icon:nth-child(1) { animation-duration: 8s; animation-delay: 0s; }
.floating-icon:nth-child(2) { animation-duration: 8s; animation-delay: -1.3s; animation-direction: reverse; }
.floating-icon:nth-child(3) { animation-duration: 8s; animation-delay: -2.6s; }
.floating-icon:nth-child(4) { animation-duration: 8s; animation-delay: -3.9s; animation-direction: reverse; }
.floating-icon:nth-child(5) { animation-duration: 8s; animation-delay: -5.2s; }
.floating-icon:nth-child(6) { animation-duration: 8s; animation-delay: -6.5s; }

.connection-line {
  position: absolute;
  height: 1px;
  width: 18rem;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(53, 155, 211, 0.34), transparent);
  will-change: transform, opacity;
  opacity: 0.25;
}

.dark .connection-line {
  background: linear-gradient(90deg, transparent, rgba(140, 198, 63, 0.3), transparent);
  opacity: 0.15;
}

.live-card {
  position: relative;
  overflow: hidden;
}

.live-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(53, 155, 211, 0.7), rgba(140, 198, 63, 0.55), rgba(53, 155, 211, 0.05));
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.live-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 48%;
  height: 200%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0;
  transition: left 620ms ease, opacity 220ms ease;
  pointer-events: none;
}

.live-card:hover::before {
  opacity: 1;
}

.live-card:hover::after {
  left: 130%;
  opacity: 1;
}

.shift-map-card::after {
  display: none;
}

.shift-map-card {
  background-image:
    linear-gradient(to right, rgb(0 168 248 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(0 168 248 / 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
}

.dark .shift-map-card {
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.035) 1px, transparent 1px);
}

.shift-map-stage {
  isolation: isolate;
}

.shift-ring {
  position: absolute;
  inset: 2.25rem 3.2rem;
  border: 1px dashed rgb(0 168 248 / 0.34);
  border-radius: 999px;
  animation: shift-ring-breathe 5.5s ease-in-out infinite;
}

.shift-ring-inner {
  inset: 4.8rem 6.2rem;
  border-color: rgb(128 192 40 / 0.36);
  animation-delay: -1.4s;
}

.shift-route {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: rgb(0 168 248 / 0.24);
  transform-origin: center;
}

.shift-route::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--brand-green);
  box-shadow: 0 0 0 6px rgb(128 192 40 / 0.12);
  transform: translate(-50%, -50%);
  animation: shift-packet 4.8s ease-in-out infinite;
}

.shift-route-b {
  background: rgb(128 192 40 / 0.24);
  transform: rotate(90deg);
}

.shift-route-b::after {
  background: var(--brand-blue);
  box-shadow: 0 0 0 6px rgb(0 168 248 / 0.12);
  animation-delay: -2.2s;
}

.shift-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 8.7rem;
  height: 8.7rem;
  place-items: center;
  border: 1px solid rgb(0 168 248 / 0.22);
  border-radius: 2rem;
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 24px 70px rgb(0 168 248 / 0.12);
  transform: translate(-50%, -50%);
}

.dark .shift-core {
  background: rgb(15 23 42 / 0.86);
}

.shift-node {
  position: absolute;
  z-index: 3;
  display: flex;
  min-width: 9.7rem;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgb(148 163 184 / 0.28);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.94);
  padding: 0.8rem;
  box-shadow: 0 18px 42px rgb(15 23 42 / 0.08);
}

.dark .shift-node {
  border-color: rgb(255 255 255 / 0.1);
  background: rgb(15 23 42 / 0.78);
}

.shift-node i {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.85rem;
  background: rgb(0 168 248 / 0.1);
}

.shift-node strong,
.shift-node small {
  display: block;
}

.shift-node strong {
  font-size: 0.82rem;
  line-height: 1.1;
  color: rgb(15 23 42);
}

.dark .shift-node strong {
  color: rgb(248 250 252);
}

.shift-node small {
  margin-top: 0.18rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgb(100 116 139);
}

@media (max-width: 640px) {
  .shift-node {
    min-width: 8rem;
    padding: 0.65rem;
  }

  .shift-node i {
    width: 2rem;
    height: 2rem;
  }

  .shift-core {
    width: 7.4rem;
    height: 7.4rem;
  }
}

.motion-ready [data-animate] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  will-change: opacity, transform;
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0ms);
}

.motion-ready [data-animate="slide-left"] {
  transform: translate3d(30px, 0, 0);
}

.motion-ready [data-animate="slide-right"] {
  transform: translate3d(-30px, 0, 0);
}

.motion-ready [data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.motion-ready [data-stagger] > * {
  --motion-delay: calc(var(--stagger-index, 0) * 90ms);
}

.counter-tabular {
  font-variant-numeric: tabular-nums;
}

@keyframes tech-grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(54px, 54px, 0);
  }
}

@keyframes icon-float {
  0%, 25% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50%, 75% {
    transform: translate3d(5px, -8px, 0) rotate(2deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes signal-scan {
  0%,
  100% {
    opacity: 0.15;
    transform: translateX(-12px) scaleX(0.75);
  }
  50% {
    opacity: 0.6;
    transform: translateX(18px) scaleX(1);
  }
}

@keyframes shift-ring-breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.985);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.015);
  }
}

@keyframes shift-packet {
  0% {
    left: 0%;
    opacity: 0;
  }
  12%,
  88% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes cloud-fill {
  0% {
    clip-path: inset(100% 0 0 0);
    opacity: 0.72;
  }
  62% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-tech-bg::before,
  .floating-icon,
  .connection-line {
    animation: none !important;
  }

  .shift-ring,
  .shift-route::after {
    animation: none !important;
  }

  .motion-ready [data-animate] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .live-card::after {
    display: none;
  }

  .loader-cloud-fill {
    animation: none;
    clip-path: inset(0 0 0 0);
  }
}

/* Optimized Typing Container - Zero Global Reflows */
.typing-isolate {
  display: inline-block;
  width: 250px;
  height: 28px;
  line-height: 28px;
  contain: strict;
  white-space: pre;
  will-change: contents;
}
@media (min-width: 768px) {
  .typing-isolate {
    height: 30px;
    line-height: 30px;
  }
}
html[lang="ar"] .typing-isolate {
  width: 220px;
}

/* Terminal Cursor */
.cursor::after {
  content: '█';
  animation: blink 1s step-start infinite;
  color: #359BD3;
  margin-inline-start: 4px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Custom Pulse Animation for the Page Loader Icon */
@keyframes loader-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
    filter: drop-shadow(0 0 24px rgba(53, 155, 211, 0.45));
  }
}
.loader-img-pulse {
  animation: loader-pulse 2s infinite ease-in-out;
}

/* Custom Emission Ripple Animations */
.loader-emission-ring-1 {
  animation: emission-wave 2.2s infinite cubic-bezier(0.22, 1, 0.36, 1);
}
.loader-emission-ring-2 {
  animation: emission-wave 2.2s infinite cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: 0.6s;
}

@keyframes emission-wave {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
    filter: blur(2px);
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
    filter: blur(16px);
  }
}

/* =========================================================================
   INTERACTIVE SERVICES SYSTEM (SECOND STEP STYLE)
   ========================================================================= */

.scards {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .scards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .scards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sc {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  contain: layout style;
}

@media (min-width: 640px) {
  .sc {
    aspect-ratio: 1 / 1;
  }
}

.dark .sc {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.sc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms ease;
}

.sc:hover, .sc.active {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(53, 155, 211, 0.35);
}

.dark .sc:hover, .dark .sc.active {
  border-color: rgba(53, 155, 211, 0.45);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.sc:hover::before, .sc.active::before {
  transform: scaleX(1);
}

.sc.active {
  border-color: var(--brand-blue) !important;
  box-shadow: 0 0 0 3px rgba(53, 155, 211, 0.15), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.dark .sc.active {
  box-shadow: 0 0 0 3px rgba(53, 155, 211, 0.25), 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.ciw {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(53, 155, 211, 0.08);
  border: 1px solid rgba(53, 155, 211, 0.18);
  transition: background-color 250ms ease, border-color 250ms ease;
}

.sc:hover .ciw, .sc.active .ciw {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.ciw i {
  font-size: 1.35rem;
  color: var(--brand-blue);
  transition: color 300ms ease;
}

.sc:hover .ciw i, .sc.active .ciw i {
  color: #ffffff;
}

.cn {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgb(148, 163, 184);
  margin-bottom: 0.5rem;
}

.sc h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: rgb(15, 23, 42);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.dark .sc h3 {
  color: #ffffff;
}

.sc p {
  font-size: 0.78rem;
  color: rgb(100, 116, 139);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.dark .sc p {
  color: rgb(148, 163, 184);
}

.carrow {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgb(241, 245, 249);
  border: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms ease, border-color 250ms ease;
  margin-top: auto;
}

.dark .carrow {
  background: rgb(15, 23, 42);
  border-color: rgba(255, 255, 255, 0.08);
}

.sc:hover .carrow, .sc.active .carrow {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.carrow i {
  font-size: 0.82rem;
  color: rgb(100, 116, 139);
  transition: color 300ms ease, transform 300ms ease;
}

.dark .carrow i {
  color: rgb(148, 163, 184);
}

.sc:hover .carrow i, .sc.active .carrow i {
  color: #ffffff;
  transform: translateX(3px);
}

html[dir="rtl"] .sc:hover .carrow i, html[dir="rtl"] .sc.active .carrow i {
  transform: translateX(-3px);
}

/* Detail Panel Container */
.dp {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.5rem;
  margin-top: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: panelReveal 300ms ease-out;
  display: none;
  contain: layout style;
}

.dark .dp {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dp.active {
  display: block;
}

@keyframes panelReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pt {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .pt {
    grid-template-columns: 1.1fr 1fr;
  }
}

.pv {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(53, 155, 211, 0.18), transparent 34rem),
    linear-gradient(135deg, rgba(5, 11, 24, 0.98), rgba(7, 18, 42, 0.98));
  aspect-ratio: 3 / 2;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .pv {
    border-inline-end: 1px solid rgba(148, 163, 184, 0.2);
  }
  .dark .pv {
    border-inline-end-color: rgba(255, 255, 255, 0.08);
  }
}

.pv img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  opacity: 1;
  mix-blend-mode: normal;
}

.dark .pv img {
  opacity: 1;
  mix-blend-mode: normal;
}

.pvb {
  display: none;
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(53, 155, 211, 0.28);
}

html[dir="rtl"] .pvb {
  left: auto;
  right: 1.25rem;
}

.pc {
  padding: 2.25rem;
  text-align: start;
}

.ptag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-blue);
  border: 1px solid rgba(53, 155, 211, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  background: rgba(53, 155, 211, 0.06);
}

.pc h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: rgb(15, 23, 42);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.dark .pc h2 {
  color: #ffffff;
}

.psub {
  color: var(--brand-green);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pdesc {
  color: rgb(74, 74, 72);
  font-size: 0.88rem;
  line-height: 1.8;
}

.dark .pdesc {
  color: rgb(148, 163, 184);
}

/* Feature grid inside Detail Panel */
.pf {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.dark .pf {
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .pf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fi {
  position: relative;
  padding: 1.75rem 2rem;
  border-inline-end: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  transition: background-color 200ms ease;
  text-align: start;
  cursor: pointer;
}

.dark .fi {
  border-inline-end-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .fi:nth-child(4) {
    border-inline-end: none;
  }
}

.fi:hover {
  background-color: rgba(53, 155, 211, 0.03);
}

.dark .fi:hover {
  background-color: rgba(53, 155, 211, 0.05);
}

.fiico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: rgba(53, 155, 211, 0.08);
  border: 1px solid rgba(53, 155, 211, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.fiico i {
  font-size: 1rem;
  color: var(--brand-blue);
}

.fit {
  position: static;
  font-size: 0.88rem;
  font-weight: 800;
  color: rgb(15, 23, 42);
  margin-bottom: 0.4rem;
}

.fit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dark .fit {
  color: #ffffff;
}

.fid {
  font-size: 0.76rem;
  color: rgb(100, 116, 139);
  line-height: 1.6;
}

.dark .fid {
  color: rgb(148, 163, 184);
}

.office-map {
  filter: grayscale(0.2) contrast(1.05);
  transition: filter 300ms ease;
}

.dark .office-map {
  filter: invert(0.9) hue-rotate(180deg) brightness(0.9) contrast(1.2);
}

@media (min-width: 1024px) {
  .fi:nth-child(4n) {
    border-inline-end: none;
  }
}

@keyframes card-pulse-glowing {
  0%, 100% {
    box-shadow: 0 0 0 0px var(--pulse-color, rgba(53, 155, 211, 0));
  }
  50% {
    box-shadow: 0 0 0 8px var(--pulse-color, rgba(53, 155, 211, 0.25));
    border-color: var(--brand-blue) !important;
  }
}

.highlight-service-card {
  --pulse-color: rgba(53, 155, 211, 0.25);
  animation: card-pulse-glowing 1.5s ease-in-out infinite;
  border-color: var(--brand-blue) !important;
  outline: none;
  border-radius: 0.65rem;
}

.dark .highlight-service-card {
  --pulse-color: rgba(53, 155, 211, 0.4);
}

/* Glowing blinking badge for new services (Red) */
.badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  background-color: #EF4444;
  color: #FFFFFF;
  padding: 0.12rem 0.4rem;
  border-radius: 9999px;
  margin-inline-start: 0.5rem;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  animation: badge-pulse-red 1.8s infinite ease-in-out;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  vertical-align: middle;
  line-height: 1;
}

@keyframes badge-pulse-red {
  0%, 100% {
    transform: scale(1);
    opacity: 0.95;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.85), 0 0 22px rgba(239, 68, 68, 0.5);
    background-color: #F87171;
  }
}

/* Vertical Mega Menu Styles */
.pillar-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: all 200ms ease;
}

.pillar-tab.active {
  background-color: rgba(53, 155, 211, 0.08) !important;
  color: var(--brand-blue) !important;
}

.dark .pillar-tab.active {
  background-color: rgba(53, 155, 211, 0.15) !important;
}

.pillar-tab.active .tab-icon-bg {
  background-color: var(--brand-blue) !important;
  border-color: var(--brand-blue) !important;
}

.pillar-tab.active .tab-icon-bg i {
  color: #ffffff !important;
}

/* =========================================================================
   FLOATING WHATSAPP BUTTON STYLES
   ========================================================================= */
.whatsapp-pulse-animation::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 4px solid #10b981;
  opacity: 0;
  animation: whatsapp-ping 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes whatsapp-ping {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes whatsapp-wiggle {
  0%, 100% { transform: scale(1) rotate(0); }
  15% { transform: scale(1.1) rotate(-8deg); }
  30% { transform: scale(1.1) rotate(8deg); }
  45% { transform: scale(1.1) rotate(-6deg); }
  60% { transform: scale(1.1) rotate(6deg); }
  75% { transform: scale(1.1) rotate(-3deg); }
  90% { transform: scale(1.1) rotate(3deg); }
}

.whatsapp-wiggle {
  animation: whatsapp-wiggle 1s ease-in-out !important;
}

/* Split Button Divider Styles */
.split-btn-divider {
  border-inline-end-width: 1px;
  border-inline-end-style: solid;
  border-inline-end-color: rgba(148, 163, 184, 0.25);
  border-radius: 0 !important;
}
.dark .split-btn-divider {
  border-inline-end-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   IT ProShift Homepage V2 - Custom Styles & Animations (Merged)
   ========================================================================== */

/* 1. 3D Cloud Network Visualization */
#cloudNetwork3D {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.network-container {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-svg {
  width: 110%;
  height: 110%;
  filter: drop-shadow(0 10px 30px rgba(53, 155, 211, 0.1));
}

/* Glowing Nodes */
.network-node {
  cursor: pointer;
  transition: all 0.3s ease;
  transform-origin: center;
}

.network-node:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px var(--glow-color, #359BD3));
}

.node-pulse-ring {
  transform-origin: center;
  animation: node-pulse-anim 2s infinite ease-out;
}

@keyframes node-pulse-anim {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* SVG Path traffic animation */
.network-path {
  stroke-dasharray: 8, 12;
  animation: path-flow-anim 30s linear infinite;
}

.network-path-fast {
  stroke-dasharray: 6, 10;
  animation: path-flow-anim 15s linear infinite;
}

@keyframes path-flow-anim {
  from {
    stroke-dashoffset: 500;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Tech Floating Dashboard Tooltips */
.tech-tooltip {
  position: absolute;
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(53, 155, 211, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) translateZ(30px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 50;
  white-space: nowrap;
}

.network-node:hover + .tech-tooltip,
.tech-tooltip.is-active {
  opacity: 1;
  transform: translateY(0) translateZ(50px);
}

/* 2. IT Services Interactive Section */
.v2-services-section {
  position: relative;
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.035);
  backdrop-filter: blur(8px);
}

.dark .v2-services-section {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

/* Filters */
.filter-btn {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(96, 112, 134, 0.15);
}

.filter-btn:hover {
  border-color: rgba(53, 155, 211, 0.4);
  transform: translateY(-2px);
}

.filter-btn.is-active {
  background-color: #359BD3;
  color: #ffffff;
  border-color: #359BD3;
  box-shadow: 0 8px 20px rgba(53, 155, 211, 0.35);
}

.dark .filter-btn.is-active {
  background-color: #8CC63F;
  color: #050b18;
  border-color: #8CC63F;
  box-shadow: 0 8px 20px rgba(140, 198, 63, 0.3);
}

/* Service Card V2 */
.service-card-v2 {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(96, 112, 134, 0.1);
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.dark .service-card-v2 {
  background-color: #071226;
  border-color: rgba(255, 255, 255, 0.05);
}

.service-card-v2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #359BD3, #8CC63F);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card-v2:hover {
  transform: translateY(-8px);
  border-color: rgba(53, 155, 211, 0.3);
  box-shadow: 0 20px 40px rgba(5, 11, 24, 0.05);
}

.dark .service-card-v2:hover {
  border-color: rgba(140, 198, 63, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card-v2:hover::before {
  opacity: 1;
}

/* Card Glow Effect on Hover */
.service-card-v2:hover .card-icon-wrapper {
  background-color: rgba(53, 155, 211, 0.1);
  transform: scale(1.1) rotate(5deg);
}

.dark .service-card-v2:hover .card-icon-wrapper {
  background-color: rgba(140, 198, 63, 0.1);
}

.card-icon-wrapper {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-pillar-flip-card {
  min-height: 370px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  perspective: 1400px;
  cursor: pointer;
}

.dark .service-pillar-flip-card {
  background: transparent;
  border-color: transparent;
}

.service-pillar-flip-card::before {
  display: none;
}

.service-pillar-flip-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: none;
}

.service-pillar-flip-card:focus-visible {
  outline: 3px solid rgba(53, 155, 211, 0.45);
  outline-offset: 6px;
  border-radius: 30px;
}

.dark .service-pillar-flip-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.pillar-flip-inner {
  position: relative;
  min-height: 370px;
  height: 100%;
  border-radius: 26px;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-pillar-flip-card:hover .pillar-flip-inner,
.service-pillar-flip-card:focus-within .pillar-flip-inner {
  transform: rotateY(180deg);
}

html[dir="rtl"] .service-pillar-flip-card:hover .pillar-flip-inner,
html[dir="rtl"] .service-pillar-flip-card:focus-within .pillar-flip-inner {
  transform: rotateY(-180deg);
}

.pillar-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(96, 112, 134, 0.16);
  border-radius: 26px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 22px 55px rgba(5, 11, 24, 0.08);
}

.dark .pillar-flip-face {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
}

.pillar-flip-front {
  justify-content: flex-end;
  background-color: #071226;
}

.pillar-flip-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.01);
}

.pillar-front-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 24, 0.05) 20%, rgba(5, 11, 24, 0.82) 100%),
    radial-gradient(circle at 78% 18%, rgba(53, 155, 211, 0.18), transparent 36%);
}

.pillar-front-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.pillar-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(53, 155, 211, 0.16);
  border: 1px solid rgba(53, 155, 211, 0.32);
  color: #80cef7;
  padding: 7px 11px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar-front-copy h3,
.pillar-flip-back h3 {
  margin-top: 14px;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.15;
}

.pillar-flip-back {
  justify-content: space-between;
  padding: 26px;
  background:
    radial-gradient(circle at 15% 10%, rgba(53, 155, 211, 0.22), transparent 36%),
    radial-gradient(circle at 85% 88%, rgba(140, 198, 63, 0.2), transparent 34%),
    #071226;
  transform: rotateY(180deg);
}

html[dir="rtl"] .pillar-flip-back {
  transform: rotateY(-180deg);
}

.pillar-flip-back p {
  margin-top: 14px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.91rem;
  line-height: 1.8;
}

.pillar-back-actions {
  display: grid;
  gap: 16px;
}

.pillar-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar-chip {
  border: 1px solid rgba(53, 155, 211, 0.3);
  border-radius: 999px;
  color: #bfe7fb;
  background: rgba(53, 155, 211, 0.1);
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pillar-chip:hover,
.pillar-chip:focus-visible {
  border-color: #8CC63F;
  background: rgba(140, 198, 63, 0.16);
  color: #ffffff;
}

.pillar-main-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 14px;
  background: #359BD3;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(53, 155, 211, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar-main-link:hover,
.pillar-main-link:focus-visible {
  transform: translateY(-2px);
  background: #8CC63F;
  box-shadow: 0 18px 32px rgba(140, 198, 63, 0.24);
}

@media (max-width: 640px) {
  .service-pillar-flip-card,
  .pillar-flip-inner {
    min-height: 330px;
  }

  .pillar-front-copy,
  .pillar-flip-back {
    padding: 20px;
  }

  .pillar-front-copy h3,
  .pillar-flip-back h3 {
    font-size: 1.32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-flip-inner {
    transition: none;
  }

  .service-pillar-flip-card:hover .pillar-flip-inner,
  .service-pillar-flip-card:focus-within .pillar-flip-inner,
  html[dir="rtl"] .service-pillar-flip-card:hover .pillar-flip-inner,
  html[dir="rtl"] .service-pillar-flip-card:focus-within .pillar-flip-inner {
    transform: none;
  }
}

/* 3. Testimonials and trust section */
.testimonial-container {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  transition: opacity 0.5s ease;
}

.partner-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Slider Controls */
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(96, 112, 134, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.is-active {
  width: 28px;
  border-radius: 5px;
  background-color: #359BD3;
}

.dark .slider-dot.is-active {
  background-color: #8CC63F;
}

/* Fade animation for filters */
.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. Lucide Duotone Icons custom styles */
.lucide-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
  stroke: currentColor;
  fill: currentColor;
  fill-opacity: 0.12;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  vertical-align: middle;
}

.service-card-v2:hover .lucide-icon {
  fill-opacity: 0.28;
  transform: scale(1.1) rotate(3deg);
}

.card-icon-wrapper {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding: 24px 0;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  cursor: grab;
}

.marquee-container:active {
  cursor: grabbing;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  flex-shrink: 0;
}

.partner-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 90px;
}

.partner-logo-svg {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .partner-logo-svg {
  filter: grayscale(100%) brightness(1.8) contrast(0.8);
}

.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.marquee-item:hover .partner-logo-svg {
  opacity: 1;
  filter: grayscale(0%) brightness(1) contrast(1);
  transform: scale(1.08);
}

.dark .marquee-item:hover .partner-logo-svg {
  filter: grayscale(0%) brightness(1.1) contrast(1);
}

.partner-logo-name {
  transition: color 0.3s ease;
}

.marquee-item:hover .partner-logo-name {
  color: #359BD3; /* Electric Blue */
}

.dark .marquee-item:hover .partner-logo-name {
  color: #8CC63F; /* Cyber Green */
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Premium Glowing Button */
@keyframes button-glow-pulse-light {
  0%, 100% {
    box-shadow: 0 0 15px rgba(53, 155, 211, 0.45),
                0 0 25px rgba(53, 155, 211, 0.2);
    border-color: rgba(53, 155, 211, 0.55);
  }
  50% {
    box-shadow: 0 0 28px rgba(53, 155, 211, 0.8),
                0 0 45px rgba(53, 155, 211, 0.4),
                0 0 15px rgba(140, 198, 63, 0.25);
    border-color: rgba(140, 198, 63, 0.8);
  }
}

@keyframes button-glow-pulse-dark {
  0%, 100% {
    box-shadow: 0 0 15px rgba(140, 198, 63, 0.45),
                0 0 25px rgba(140, 198, 63, 0.2);
    border-color: rgba(140, 198, 63, 0.45);
  }
  50% {
    box-shadow: 0 0 28px rgba(140, 198, 63, 0.9),
                0 0 45px rgba(140, 198, 63, 0.45),
                0 0 15px rgba(53, 155, 211, 0.3);
    border-color: rgba(53, 155, 211, 0.8);
  }
}

@keyframes shine-sweep {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

.btn-glow {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid rgba(53, 155, 211, 0.5);
  animation: button-glow-pulse-light 2.5s infinite ease-in-out;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Shine Sweep Effect */
.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine-sweep 4s infinite ease-in-out;
}

.btn-glow:hover {
  background: #359BD3; /* brand blue */
  color: #ffffff;
  border-color: #359BD3;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(53, 155, 211, 0.5),
              0 0 35px rgba(53, 155, 211, 0.8),
              0 0 70px rgba(53, 155, 211, 0.4) !important;
}

.dark .btn-glow {
  background: #050b18; /* brand navy */
  color: #ffffff;
  border-color: rgba(140, 198, 63, 0.4);
  animation: button-glow-pulse-dark 2.5s infinite ease-in-out;
}

.dark .btn-glow::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.dark .btn-glow:hover {
  background: #8CC63F; /* brand green */
  color: #050B18; /* brand navy */
  border-color: #8CC63F;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(140, 198, 63, 0.5),
              0 0 35px rgba(140, 198, 63, 0.85),
              0 0 70px rgba(140, 198, 63, 0.45) !important;
}

@media (max-width: 767px) {
  /* Icons visible on mobile but fully static — no floating animation */
  .floating-icon {
    display: grid !important;
    animation: none !important;
    transform: none !important;
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.45;
  }
  .connection-line {
    display: none !important; /* lines stay hidden on mobile — too distracting */
  }

  .marquee-container {
    cursor: default;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .marquee-container.marquee-mobile-static {
    scroll-behavior: auto;
  }

  .marquee-container.marquee-mobile-static .marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .marquee-container.marquee-mobile-static .marquee-item {
    scroll-snap-align: center;
    transform: none !important;
  }

  .marquee-container.marquee-mobile-static .partner-logo-svg,
  .marquee-container.marquee-mobile-static .partner-logo-name {
    transition: none;
  }
}

/* =========================================================================
   2026 UX refresh: light-first surfaces, tighter home services, dominant service selection
   ========================================================================= */

#v2ServicesGrid {
  gap: 1rem !important;
}

#v2ServicesGrid > a,
#v2ServicesGrid > article {
  border-radius: 1rem !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.045);
}

#v2ServicesGrid > a {
  min-height: 178px;
}

#v2ServicesGrid > a > div:first-child {
  height: 7.5rem !important;
  padding: 1rem !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 155, 211, 0.08), transparent 68%),
    #f8fafc !important;
}

#v2ServicesGrid > a img {
  max-height: 5.4rem;
}

#v2ServicesGrid > a > div:last-child {
  padding: 0.9rem 0.75rem 1rem !important;
}

#v2ServicesGrid > a h3 {
  font-size: 0.94rem !important;
  line-height: 1.25 !important;
}

.dark #v2ServicesGrid > a,
.dark #v2ServicesGrid > article {
  background: rgba(7, 18, 38, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.dark #v2ServicesGrid > a > div:first-child {
  background:
    radial-gradient(circle at 50% 0%, rgba(140, 198, 63, 0.08), transparent 68%),
    rgba(5, 11, 24, 0.55) !important;
}

.services-command-page .scards {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 0.8rem;
  margin-inline: auto;
}

.services-command-page .sc {
  grid-column: span 3;
  min-height: 146px;
  aspect-ratio: auto;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
  transition:
    grid-column 420ms cubic-bezier(0.16, 1, 0.3, 1),
    min-height 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 260ms ease,
    box-shadow 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease;
}

.services-command-page .sc h2 {
  color: rgb(15, 23, 42);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.25;
}

.services-command-page .sc p {
  margin-bottom: 0.65rem;
  max-height: 2.8rem;
  overflow: hidden;
}

.services-command-page .ciw {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.8rem;
}

.services-command-page .carrow {
  width: 1.85rem;
  height: 1.85rem;
}

.services-command-page .sc.active {
  grid-column: span 6;
  min-height: 210px;
  background:
    radial-gradient(circle at 14% 8%, rgba(53, 155, 211, 0.14), transparent 42%),
    radial-gradient(circle at 90% 92%, rgba(140, 198, 63, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(53, 155, 211, 0.42) !important;
  box-shadow: 0 24px 58px rgba(53, 155, 211, 0.14);
  transform: translateY(-2px);
}

.services-command-page .sc.active h2 {
  color: rgb(15, 23, 42);
  font-size: 1.42rem;
}

.services-command-page .sc.active p {
  max-height: 7rem;
  color: rgb(71, 85, 105) !important;
}

.services-command-page .sc.active .ciw,
.services-command-page .sc.active .carrow {
  background: rgba(53, 155, 211, 0.10);
  border-color: rgba(53, 155, 211, 0.18);
}

.services-command-page .sc.active .ciw i,
.services-command-page .sc.active .carrow i {
  color: rgb(2, 132, 199);
}

.dark .services-command-page .sc {
  background: rgba(7, 18, 38, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .services-command-page .sc h2 {
  color: #ffffff;
}

.dark .services-command-page .sc.active {
  background:
    radial-gradient(circle at 15% 10%, rgba(53, 155, 211, 0.22), transparent 38%),
    radial-gradient(circle at 90% 95%, rgba(140, 198, 63, 0.18), transparent 36%),
    #071226;
  border-color: rgba(53, 155, 211, 0.55) !important;
  box-shadow: 0 24px 58px rgba(5, 11, 24, 0.18);
}

.dark .services-command-page .sc.active h2 {
  color: #ffffff;
}

.dark .services-command-page .sc.active p {
  color: rgba(226, 232, 240, 0.78) !important;
}

.dark .services-command-page .sc.active .ciw,
.dark .services-command-page .sc.active .carrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.dark .services-command-page .sc.active .ciw i,
.dark .services-command-page .sc.active .carrow i {
  color: #ffffff;
}

.services-command-page .dp {
  scroll-margin-top: 112px;
  border-radius: 1.25rem;
  margin-top: 1.5rem;
}

.services-command-page .dp.active {
  animation: panelReveal 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-breadcrumbs {
  margin-bottom: 2rem;
}

.service-breadcrumbs ol {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.45rem;
  color: rgb(71, 85, 105);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  scrollbar-width: none;
}

.service-breadcrumbs ol::-webkit-scrollbar {
  display: none;
}

.service-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.service-breadcrumbs a,
.service-breadcrumbs-current {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.service-breadcrumbs a {
  color: rgb(71, 85, 105);
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.service-breadcrumbs a:hover {
  background: rgba(53, 155, 211, 0.09);
  color: rgb(2, 132, 199);
}

.service-breadcrumbs a:focus-visible {
  outline: 3px solid rgba(53, 155, 211, 0.35);
  outline-offset: 2px;
}

.service-breadcrumbs-current {
  background:
    linear-gradient(135deg, rgba(53, 155, 211, 0.16), rgba(140, 198, 63, 0.12)),
    rgba(248, 250, 252, 0.92);
  color: rgb(15, 23, 42);
  box-shadow: inset 0 0 0 1px rgba(53, 155, 211, 0.16);
}

.service-breadcrumbs i {
  color: rgb(53, 155, 211);
  font-size: 0.78rem;
}

.service-breadcrumbs-current i {
  color: rgb(34, 197, 94);
}

.service-breadcrumbs-separator {
  color: rgba(100, 116, 139, 0.55);
  padding-inline: 0.05rem;
}

.service-breadcrumbs-separator i {
  color: currentColor;
  font-size: 0.62rem;
}

html[dir="rtl"] .service-breadcrumbs-separator i {
  transform: rotate(180deg);
}

.dark .service-breadcrumbs ol {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(7, 18, 38, 0.95);
  color: rgb(203, 213, 225);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.dark .service-breadcrumbs a {
  color: rgb(203, 213, 225);
}

.dark .service-breadcrumbs a:hover {
  background: rgba(53, 155, 211, 0.14);
  color: rgb(125, 211, 252);
}

.dark .service-breadcrumbs-current {
  background:
    linear-gradient(135deg, rgba(53, 155, 211, 0.20), rgba(140, 198, 63, 0.14)),
    rgba(15, 23, 42, 0.82);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.16);
}

@media (max-width: 1023px) {
  .services-command-page .sc {
    grid-column: span 4;
  }

  .services-command-page .sc.active {
    grid-column: span 8;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 88px;
  }

  .services-command-page .sc,
  .services-command-page .sc.active {
    grid-column: span 12;
    min-height: auto;
  }

  .services-command-page .sc.active h2 {
    font-size: 1.2rem;
  }

  .service-breadcrumbs {
    margin-bottom: 0.85rem;
  }

  .service-breadcrumbs ol {
    width: 100%;
    border-radius: 999px;
    padding: 0.3rem;
    gap: 0.3rem;
  }

  .service-breadcrumbs a,
  .service-breadcrumbs-current {
    min-height: 1.85rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.68rem;
    gap: 0.35rem;
  }
}

/* =========================================================================
   Clean 3-Column Services Directory (frontend-design)
   ========================================================================= */
.services-editorial-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.editorial-service-item {
  width: 100%;
}

@media (min-width: 640px) {
  .editorial-service-item {
    width: calc(50% - 0.75rem);
  }
}

@media (min-width: 768px) {
  .editorial-service-item {
    width: calc(33.33% - 1rem);
  }
}

.editorial-service-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  border: 1px solid rgba(96, 112, 134, 0.08);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.dark .editorial-service-card {
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(15, 23, 42, 0.95);
}

.editorial-service-card:hover {
  transform: translate3d(0, -6px, 0);
  background: #ffffff;
  border-color: rgba(53, 155, 211, 0.25);
  box-shadow: 0 20px 40px -15px rgba(53, 155, 211, 0.12);
}

.dark .editorial-service-card:hover {
  background: rgba(7, 18, 38, 0.95);
  border-color: rgba(53, 155, 211, 0.35);
  box-shadow: 0 20px 40px -15px rgba(53, 155, 211, 0.25);
}

/* Enlarge Image Container to fill top of card */
.editorial-card-img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(53, 155, 211, 0.03), rgba(140, 198, 63, 0.03));
  overflow: hidden;
  transition: background 0.4s ease;
}

.dark .editorial-card-img-wrapper {
  background: linear-gradient(135deg, rgba(53, 155, 211, 0.06), rgba(140, 198, 63, 0.04));
}

.editorial-service-card:hover .editorial-card-img-wrapper {
  background: linear-gradient(135deg, rgba(53, 155, 211, 0.06), rgba(140, 198, 63, 0.06));
}

/* Enlarge image to fill or be extremely clear */
.editorial-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem; /* minimal padding to keep it huge but uncropped */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.editorial-service-card:hover .editorial-card-img-wrapper img {
  transform: scale3d(1.08, 1.08, 1);
}

/* Card Title Section */
.editorial-card-title-box {
  padding: 1.25rem 0.5rem 0.75rem 0.5rem;
  text-align: center;
}

.editorial-card-title-box h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: rgb(71, 85, 105);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.dark .editorial-card-title-box h3 {
  color: rgb(203, 213, 225);
}

.editorial-service-card:hover .editorial-card-title-box h3 {
  color: var(--brand-blue);
}
/* =========================================================================
   Hero Slideshow Optimization (Performance and GPU acceleration)
   ========================================================================= */
.slideshow-track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.slideshow-slide img {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* =========================================================================
   Brand Badges inside Mega Menu & Mobile Dropdowns
   ========================================================================= */
/* Service Item Wrapper with Separator Line */
.service-item-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgb(241, 245, 249);
}

.dark .service-item-wrapper {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Remove border and adjust padding for edge cases */
.service-item-wrapper:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.service-item-wrapper:first-child {
  padding-top: 0.25rem;
}

/* Brands Row under Service Title */
.service-brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-inline-start: 1.75rem; /* align with text start */
}

/* Large Brand Badge */
.large-brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 56px;
  background-color: #ffffff;
  border: 1px solid rgb(226, 232, 240);
  border-radius: 6px;
  padding: 2px;
  transition: all 250ms ease;
  text-decoration: none;
  overflow: hidden; /* Prevent scaled images from overflowing */
}

.dark .large-brand-badge {
  background-color: rgb(15, 23, 42);
  border-color: rgba(255, 255, 255, 0.08);
}

.large-brand-badge:hover {
  border-color: var(--brand-blue);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(53, 155, 211, 0.1);
}

.dark .large-brand-badge:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* Large Brand Logo Image (Full Color) */
.large-brand-badge img {
  max-height: 100% !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: none !important; /* No grayscale! */
  opacity: 0.9;
  transition: opacity 200ms ease;
  position: static !important;
}

.dark .large-brand-badge img {
  opacity: 0.85;
}

.large-brand-badge:hover img {
  opacity: 1;
}

/* Mobile Menu Brand List */
.mobile-brands-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-inline-start: 1.5rem;
}

.mobile-brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  width: 32px;
  background-color: rgb(241, 245, 249);
  border: 1px solid rgb(226, 232, 240);
  border-radius: 3px;
  padding: 1px;
}

.dark .mobile-brand-badge {
  background-color: rgb(15, 23, 42);
  border-color: rgba(255, 255, 255, 0.08);
}

.mobile-brand-badge img {
  max-height: 100% !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  opacity: 0.7;
}

.dark .mobile-brand-badge img {
  filter: brightness(1.5);
  opacity: 0.6;
}

/* Service Item Icons Spacing and Layout (Fixed Overlap) */
.service-link-icon {
  margin-inline-end: 12px !important;
  width: 18px !important;
  text-align: center !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.mobile-service-link-icon {
  margin-inline-end: 10px !important;
  width: 16px !important;
  text-align: center !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

/* Optimize brand logos scaling across all pages (Fixed small/faint logos) */
img[src*="synology.svg"] {
  transform: scale(1.6) !important;
}
img[src*="qnap.svg"] {
  transform: scale(1.4) !important;
}
img[src*="sophos.svg"] {
  transform: scale(1.3) !important;
}
img[src*="veeam.svg"] {
  transform: scale(1.45) !important;
}
img[src*="vmware.svg"] {
  transform: scale(1.35) !important;
}
img[src*="fortinet.svg"] {
  transform: scale(1.3) !important;
}
img[src*="cisco.svg"] {
  transform: scale(1.1) !important;
}
img[src*="eset.svg"] {
  transform: scale(1.15) !important;
}
img[src*="kaspersky.svg"] {
  transform: scale(1.35) !important;
}
img[src*="aws.svg"] {
  transform: scale(1.1) !important;
}
img[src*="azure.svg"] {
  transform: scale(1.1) !important;
}
img[src*="huawei.svg"] {
  transform: scale(1.2) !important;
}
img[src*="proxmox.svg"] {
  transform: scale(0.9) !important;
}

/* Floating Mobile Menu Styling */
#mobileMenu {
  top: 90px !important;
  z-index: 45 !important;
  border-radius: 2rem !important; /* Premium curved border */
  max-height: calc(100vh - 110px) !important;
  overflow: hidden !important;
}

@media (min-width: 640px) {
  #mobileMenu {
    top: 96px !important;
    max-height: calc(100vh - 120px) !important;
  }
}

/* =========================================================================
   UNIFORM SERVICE CARDS SECTION (3-Column Grid) - Compact Style
   ========================================================================= */
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background-color: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  min-height: 270px;
}

.dark .service-card {
  border-color: rgba(255, 255, 255, 0.06);
  background-color: rgba(15, 23, 42, 0.4);
  box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-card-img-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(135deg, rgba(53, 155, 211, 0.03) 0%, rgba(140, 198, 63, 0.03) 100%);
}

.dark .service-card-img-wrapper {
  background: linear-gradient(135deg, rgba(53, 155, 211, 0.05) 0%, rgba(140, 198, 63, 0.05) 100%);
}

.service-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-text {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
  flex: 1;
  justify-content: flex-start;
}

.service-card-num {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #94a3b8;
  opacity: 0.7;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
  margin: 0;
  transition: color 0.3s ease;
}

.dark .service-card h3 {
  color: #ffffff;
}

/* Hover & Micro-animations */
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(53, 155, 211, 0.4);
  box-shadow: 0 15px 30px -10px rgba(53, 155, 211, 0.1), 0 0 0 1px rgba(53, 155, 211, 0.05);
}

.dark .service-card:hover {
  border-color: rgba(140, 198, 63, 0.4);
  box-shadow: 0 15px 30px -10px rgba(140, 198, 63, 0.12), 0 0 0 1px rgba(140, 198, 63, 0.05);
}

.service-card:hover h3 {
  color: #359BD3;
}

.dark .service-card:hover h3 {
  color: #8CC63F;
}

.service-card:hover .service-card-img-wrapper img {
  transform: scale(1.08);
}

@media (max-width: 767px) {
  .service-card {
    min-height: auto;
  }
  .service-card-img-wrapper {
    height: 150px;
  }
  .service-card-text {
    padding: 1rem 1.15rem 1.15rem;
  }
}

/* Floating CTA Button Alignment LTR/RTL */
.cta-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .cta-button-container {
    align-items: flex-end;
  }
  .cta-button-text {
    text-align: right;
  }
  html[dir="rtl"] .cta-button-container {
    align-items: flex-start;
  }
  html[dir="rtl"] .cta-button-text {
    text-align: left;
  }
}

/* Mobile Menu Drag Handle Colors */
.mobile-menu-drag-handle {
  background-color: #9ca3af;
  width: 50px;
  height: 6px;
}
.mobile-menu-drag-handle:hover {
  background-color: #6b7280;
}
.dark .mobile-menu-drag-handle {
  background-color: #6b7280;
}
.dark .mobile-menu-drag-handle:hover {
  background-color: #9ca3af;
}

/* Services Section - Variant 3 (Accepted Impeccable Design) */
#services-section .grid-v3 {
  display: grid;
  grid-template-cols: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  #services-section .grid-v3 {
    grid-template-cols: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  #services-section .grid-v3 {
    grid-template-cols: repeat(3, 1fr);
  }
}

#services-section .card-v3 {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(53, 155, 211, 0.15);
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dark #services-section .card-v3 {
  background: rgba(10, 17, 32, 0.65);
  border-color: rgba(53, 155, 211, 0.2);
}

#services-section .card-v3:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--brand-blue);
  box-shadow: 0 0 30px rgba(53, 155, 211, 0.35);
}

#services-section .card-v3-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

#services-section .card-v3-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transition: all 0.5s ease;
}

#services-section .card-v3:hover .card-v3-img {
  transform: scale(1.1);
  filter: saturate(1.1) contrast(1.1);
}

#services-section .card-v3-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
}

.dark #services-section .card-v3-img-overlay {
  background: linear-gradient(to bottom, transparent, rgba(10, 17, 32, 0.95));
}

#services-section .card-v3-content {
  padding: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

#services-section .card-v3-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--brand-blue);
  opacity: 0.15;
  position: absolute;
  right: 1.5rem;
  top: 0.5rem;
  font-family: monospace;
}

#services-section .card-v3-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 1.5rem;
}

.dark #services-section .card-v3-title {
  color: #f8fafc;
}

#services-section .card-v3:hover .card-v3-title {
  color: var(--brand-blue);
}

