/* Services grid — dark glassmorphism cards with 8 pure-CSS mini animations.
   All selectors are scoped to #services so the dark theme + glassmorphism don't
   bleed into other sections that share .card-1 / .heading-7 / .text-block-31 / .home-heading-h2
   (notably the case-studies card grid and the contact section). */

:root { --qs-violet: #4423FD; }

#services {
  background-color: #0D0D0D;
  color: #fff;
}

#services .home-heading-h2,
#services .heading-7 { color: #fff; }
#services .span-txt { color: #fff; }
#services .text-block-31 { color: rgba(255, 255, 255, 0.62); }

#services .call-to-action,
#services .collabrator-wrapper { color: #fff; }
#services .title-1 { color: #fff; }
#services .title-2 { color: rgba(255, 255, 255, 0.7); }

/* Glassmorphism card */
#services .card-1 {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}
#services .card-1:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

/* Dark circular arrow link in the corner is black by default; invert on dark glass. */
#services .div-block-198 .image-30 { filter: invert(1); opacity: 0.55; transition: opacity 200ms ease; }
#services .card-1:hover .div-block-198 .image-30 { opacity: 1; }

/* ---------- Animation container ---------- */
.service-anim {
  position: relative;
  width: 100%;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.service-anim * { box-sizing: border-box; }

/* =====================================================================
   1. AI AGENTS & VOICE AI — chat bubbles + typewriter text, loop 4s
   ===================================================================== */
.service-anim-ai-agents {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
}
.service-anim-ai-agents .anim-bubble {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.service-anim-ai-agents .anim-bubble-typed {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-bottom-left-radius: 2px;
  max-width: 0;
  animation: ai-typing 4s ease-in-out infinite;
}
.service-anim-ai-agents .anim-bubble-typed::after {
  content: "▍";
  margin-left: 1px;
  animation: ai-caret 0.6s steps(2) infinite;
}
.service-anim-ai-agents .anim-bubble-reply {
  align-self: flex-end;
  background: var(--qs-violet);
  color: #fff;
  border-bottom-right-radius: 2px;
  opacity: 0;
  transform: translateY(6px);
  animation: ai-reply 4s ease-in-out infinite;
  min-width: 22px;
  min-height: 14px;
}
.service-anim-ai-agents .anim-bubble-reply::before {
  content: "Sure!";
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}
@keyframes ai-typing {
  0%, 5%   { max-width: 0; }
  55%      { max-width: 100%; }
  70%, 95% { max-width: 100%; }
  100%     { max-width: 0; }
}
@keyframes ai-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ai-reply {
  0%, 55%  { opacity: 0; transform: translateY(6px); }
  65%, 95% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(6px); }
}

/* =====================================================================
   2. SEO & GEO — bars grow then #1 badge slides in, loop 3s
   ===================================================================== */
.service-anim-seo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px 14px;
}
.service-anim-seo .anim-bar {
  width: 14px;
  background: linear-gradient(180deg, var(--qs-violet), #6b4dff);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
}
.service-anim-seo .anim-bar:nth-child(1) { height: 30px; animation: seo-bar 3s ease-in-out infinite; }
.service-anim-seo .anim-bar:nth-child(2) { height: 44px; animation: seo-bar 3s ease-in-out 0.15s infinite; }
.service-anim-seo .anim-bar:nth-child(3) { height: 58px; animation: seo-bar 3s ease-in-out 0.3s infinite; }
.service-anim-seo .anim-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #fff;
  color: var(--qs-violet);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  opacity: 0;
  transform: translateX(20px);
  animation: seo-badge 3s ease-in-out infinite;
}
@keyframes seo-bar {
  0%, 5%   { transform: scaleY(0); }
  45%, 80% { transform: scaleY(1); }
  100%     { transform: scaleY(0); }
}
@keyframes seo-badge {
  0%, 35%  { opacity: 0; transform: translateX(20px); }
  55%, 80% { opacity: 1; transform: translateX(0); }
  100%     { opacity: 0; transform: translateX(20px); }
}

/* =====================================================================
   3. DIGITAL ADVERTISING — line graph draws L->R + $ pulses, loop 4s
   ===================================================================== */
.service-anim-ads { padding: 10px 12px; }
.service-anim-ads svg { width: 100%; height: 100%; display: block; }
.service-anim-ads .anim-line {
  fill: none;
  stroke: var(--qs-violet);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: ads-draw 4s ease-in-out infinite;
}
.service-anim-ads .anim-line-fill {
  fill: url(#ads-grad);
  opacity: 0;
  animation: ads-fill 4s ease-in-out infinite;
}
.service-anim-ads .anim-dollar {
  position: absolute;
  top: 10px; right: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--qs-violet);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: ads-dollar 4s ease-in-out infinite;
}
@keyframes ads-draw {
  0%, 5%   { stroke-dashoffset: 200; }
  65%, 85% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: 200; }
}
@keyframes ads-fill {
  0%, 60%  { opacity: 0; }
  75%, 88% { opacity: 1; }
  100%     { opacity: 0; }
}
@keyframes ads-dollar {
  0%, 65%   { opacity: 0; transform: scale(0.7); }
  72%       { opacity: 1; transform: scale(1.2); }
  82%       { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(0.7); }
}

/* =====================================================================
   4. WEBSITE DESIGN — browser loads, content fades in, loop 5s
   ===================================================================== */
.service-anim-web { padding: 8px 10px; }
.service-anim-web .anim-browser {
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-anim-web .anim-dots {
  display: flex;
  gap: 4px;
  padding: 5px 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.service-anim-web .anim-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.service-anim-web .anim-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.service-anim-web .anim-progress-bar {
  height: 100%;
  width: 0;
  background: var(--qs-violet);
  animation: web-progress 5s ease-in-out infinite;
}
.service-anim-web .anim-content {
  flex: 1;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.service-anim-web .anim-content .anim-row {
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  animation: web-row 5s ease-in-out infinite;
}
.service-anim-web .anim-content .anim-row:nth-child(1) { width: 80%; animation-delay: 0s; }
.service-anim-web .anim-content .anim-row:nth-child(2) { width: 65%; animation-delay: 0.15s; }
.service-anim-web .anim-content .anim-row:nth-child(3) { width: 50%; animation-delay: 0.3s; }
@keyframes web-progress {
  0%, 5%    { width: 0; }
  40%       { width: 100%; }
  85%       { width: 100%; }
  90%, 100% { width: 0; }
}
@keyframes web-row {
  0%, 40%   { opacity: 0; transform: translateY(4px); }
  55%       { opacity: 1; transform: translateY(0); }
  85%       { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(4px); }
}

/* =====================================================================
   5. AI AUTOMATION — 3 nodes with a pulse traveling the connection, loop 3s
   ===================================================================== */
.service-anim-automation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.service-anim-automation .anim-node {
  position: relative;
  z-index: 2;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--qs-violet);
  box-shadow: 0 0 0 0 rgba(68, 35, 253, 0.6);
}
.service-anim-automation .anim-node:nth-child(1) { animation: auto-pop 3s ease-in-out infinite 0s; }
.service-anim-automation .anim-node:nth-child(2) { animation: auto-pop 3s ease-in-out infinite 1s; }
.service-anim-automation .anim-node:nth-child(3) { animation: auto-pop 3s ease-in-out infinite 2s; }
.service-anim-automation .anim-line {
  position: absolute;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
  z-index: 1;
}
.service-anim-automation .anim-line-1 { left: 32px; right: 50%; margin-right: 9px; }
.service-anim-automation .anim-line-2 { left: 50%; right: 32px; margin-left: 9px; }
.service-anim-automation .anim-pulse {
  position: absolute;
  top: 50%;
  left: 32px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  transform: translateY(-50%);
  z-index: 3;
  animation: auto-pulse 3s ease-in-out infinite;
}
@keyframes auto-pulse {
  0%   { left: 32px; opacity: 0; }
  10%  { opacity: 1; }
  47%  { left: calc(50% - 3.5px); opacity: 1; }
  53%  { opacity: 1; }
  90%  { left: calc(100% - 32px - 7px); opacity: 1; }
  100% { left: calc(100% - 32px - 7px); opacity: 0; }
}
@keyframes auto-pop {
  0%, 100% { box-shadow: 0 0 0 0 rgba(68, 35, 253, 0); transform: scale(1); }
  10%      { box-shadow: 0 0 0 6px rgba(68, 35, 253, 0.4); transform: scale(1.15); }
  25%, 90% { box-shadow: 0 0 0 0 rgba(68, 35, 253, 0); transform: scale(1); }
}

/* =====================================================================
   6. REPUTATION MGMT — 5 stars fill gold L->R, review text fades, loop 4s
   ===================================================================== */
.service-anim-reputation {
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.service-anim-reputation .anim-stars { display: flex; gap: 4px; }
.service-anim-reputation .anim-star {
  width: 13px; height: 13px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 .587l3.668 7.431L24 9.75l-6 5.844L19.336 24 12 19.897 4.664 24 6 15.594 0 9.75l8.332-1.732z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 .587l3.668 7.431L24 9.75l-6 5.844L19.336 24 12 19.897 4.664 24 6 15.594 0 9.75l8.332-1.732z'/></svg>") center/contain no-repeat;
  animation: rep-star 4s ease-in-out infinite;
}
.service-anim-reputation .anim-star:nth-child(1) { animation-delay: 0s; }
.service-anim-reputation .anim-star:nth-child(2) { animation-delay: 0.25s; }
.service-anim-reputation .anim-star:nth-child(3) { animation-delay: 0.5s; }
.service-anim-reputation .anim-star:nth-child(4) { animation-delay: 0.75s; }
.service-anim-reputation .anim-star:nth-child(5) { animation-delay: 1s; }
.service-anim-reputation .anim-review {
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  animation: rep-review 4s ease-in-out infinite;
}
.service-anim-reputation .anim-review-line {
  height: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.4);
}
.service-anim-reputation .anim-review-line:nth-child(1) { width: 90%; }
.service-anim-reputation .anim-review-line:nth-child(2) { width: 65%; }
@keyframes rep-star {
  0%, 20%   { background: rgba(255, 255, 255, 0.18); }
  35%, 85%  { background: #FFC83D; }
  95%, 100% { background: rgba(255, 255, 255, 0.18); }
}
@keyframes rep-review {
  0%, 40%   { opacity: 0; transform: translateY(4px); }
  55%, 85%  { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(4px); }
}

/* =====================================================================
   7. CONTENT & SOCIAL — three post cards cycle from bottom, loop 3s
   ===================================================================== */
.service-anim-content { padding: 10px; }
.service-anim-content .anim-post {
  position: absolute;
  left: 12px; right: 12px;
  bottom: 12px; top: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  padding: 6px;
  gap: 6px;
  transform: translateY(100%);
  opacity: 0;
}
.service-anim-content .anim-post::before {
  content: "";
  width: 12px; height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--qs-violet);
  margin-top: 2px;
}
.service-anim-content .anim-post::after {
  content: "";
  flex: 1;
  background:
    linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35)) 0 2px / 100% 4px no-repeat,
    linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)) 0 12px / 70% 4px no-repeat;
}
.service-anim-content .anim-post-1 { background-color: rgba(68, 35, 253, 0.12); animation: content-slide 3s ease-in-out infinite 0s; }
.service-anim-content .anim-post-2 { animation: content-slide 3s ease-in-out infinite 1s; }
.service-anim-content .anim-post-3 { background-color: rgba(68, 35, 253, 0.12); animation: content-slide 3s ease-in-out infinite 2s; }
@keyframes content-slide {
  0%, 5%    { transform: translateY(100%); opacity: 0; }
  15%, 30%  { transform: translateY(0); opacity: 1; }
  40%, 100% { transform: translateY(-100%); opacity: 0; }
}

/* =====================================================================
   8. LEAD GENERATION — form fields fill, button pulses, check appears, loop 5s
   ===================================================================== */
.service-anim-leads {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}
.service-anim-leads .anim-field {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.service-anim-leads .anim-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(-100%);
  animation: leads-fill 5s ease-in-out infinite;
}
.service-anim-leads .anim-field-1::after { animation-delay: 0.2s; }
.service-anim-leads .anim-field-2::after { animation-delay: 0.9s; }
.service-anim-leads .anim-submit {
  height: 12px;
  width: 50%;
  margin-top: 2px;
  background: var(--qs-violet);
  border-radius: 3px;
  position: relative;
  animation: leads-submit 5s ease-in-out infinite;
}
.service-anim-leads .anim-check {
  position: absolute;
  bottom: 12px; right: 14px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #16C784;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(0.5);
  animation: leads-check 5s ease-in-out infinite;
}
@keyframes leads-fill {
  0%, 5%    { transform: translateX(-100%); }
  25%       { transform: translateX(0); }
  90%       { transform: translateX(0); }
  95%, 100% { transform: translateX(-100%); }
}
@keyframes leads-submit {
  0%, 65%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(68, 35, 253, 0.5); }
  72%       { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(68, 35, 253, 0); }
  85%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(68, 35, 253, 0); }
}
@keyframes leads-check {
  0%, 75%   { opacity: 0; transform: scale(0.5); }
  85%, 95%  { opacity: 1; transform: scale(1); }
  100%      { opacity: 0; transform: scale(0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .service-anim *,
  .service-anim *::before,
  .service-anim *::after { animation: none !important; }
}
