/* ─── SECTION ────────────────────────────────────────── */
.our-service-container {
  background-color: var(--intro-bg);
  position: relative;
}

.our-service-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(99,102,241,.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(6,182,212,.03) 0%, transparent 70%);
  pointer-events: none;
}

.dark-mode .our-service-container {
  background-color: var(--dark-bg);
}
.dark-mode .our-service-heading-text {
  color: #f1f5f9;
}
.dark-mode .our-service-container .our-service-desc-text {
  color: #64748b;
}

/* ─── CARD BASE (LIGHT MODE) ───────────────────────────── */
.svc-card {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 1.25rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color .4s ease, transform .4s cubic-bezier(.23,1,.32,1), box-shadow .4s ease;
  box-shadow:
    0 0 0 1px rgba(99,102,241,.02),
    0 4px 15px rgba(0,0,0,.04);
}

.svc-card:hover {
  border-color: rgba(99,102,241,.3);
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(99,102,241,.1),
    0 15px 35px rgba(0,0,0,.08),
    0 0 30px rgba(99,102,241,.05);
}

/* ─── SCAN LINE ────────────────────────────────────────── */
.svc-scanline {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(99,102,241,.0) 10%,
    rgba(99,102,241,1) 50%,
    rgba(6,182,212,.8) 70%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: 2px 2px 0 0;
}

.svc-card:hover .svc-scanline {
  opacity: 1;
  animation: scan-line 2s linear infinite;
}

@keyframes scan-line {
  0%   { transform: scaleX(0); transform-origin: left; opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform: scaleX(1); transform-origin: right; }
  90%  { opacity: 1; }
  100% { transform: scaleX(0); transform-origin: right; opacity: 0; }
}

/* ─── CORNER ACCENTS ───────────────────────────────────── */
.svc-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  transition: opacity .4s ease, width .4s ease, height .4s ease;
  opacity: 0;
  z-index: 2;
}

.svc-card:hover .svc-corner { opacity: 1; }

.svc-corner-tl {
  top: -1px; left: -1px;
  border-top: 2px solid #818cf8;
  border-left: 2px solid #818cf8;
  border-radius: 1.25rem 0 0 0;
}
.svc-corner-tr {
  top: -1px; right: -1px;
  border-top: 2px solid #22d3ee;
  border-right: 2px solid #22d3ee;
  border-radius: 0 1.25rem 0 0;
}
.svc-corner-bl {
  bottom: -1px; left: -1px;
  border-bottom: 2px solid #22d3ee;
  border-left: 2px solid #22d3ee;
  border-radius: 0 0 0 1.25rem;
}
.svc-corner-br {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid #818cf8;
  border-right: 2px solid #818cf8;
  border-radius: 0 0 1.25rem 0;
}

/* ─── GLOW RING ────────────────────────────────────────── */
.svc-glow-ring {
  position: absolute;
  inset: -1px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(6,182,212,.05), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.svc-card:hover .svc-glow-ring { opacity: 1; }

/* ─── IMAGE (LIGHT MODE) ───────────────────────────────── */
.svc-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: .85rem;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(99,102,241,.08);
}

.svc-img-wrap.svc-img-sm {
  height: 150px;
}

.svc-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: .9;
  transition: transform .7s cubic-bezier(.23,1,.32,1), opacity .4s ease;
}

.svc-card:hover .svc-img {
  transform: scale(1.08);
  opacity: 1;
}

.svc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,255,255,.9) 0%, rgba(255,255,255,.2) 40%, transparent 100%);
  transition: opacity .4s ease;
}
.svc-card:hover .svc-img-overlay { opacity: .2; }

/* Holographic shimmer */
.svc-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255,255,255,.4) 40%,
    rgba(255,255,255,.6) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0s;
}
.svc-card:hover .svc-shimmer {
  transform: translateX(100%);
  transition: transform .7s ease;
}

/* ─── CONTENT (LIGHT MODE) ─────────────────────────────── */
.svc-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.svc-text-wrap { display: flex; flex-direction: column; gap: .5rem; }

.svc-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -.02em;
  line-height: 1.2;
  transition: color .3s ease;
}
.svc-card:hover .svc-title { color: #4f46e5; }

.svc-desc {
  font-size: .85rem;
  color: #64748b;
  line-height: 1.5;
  transition: color .3s ease;
}
.svc-card:hover .svc-desc { color: #475569; }

/* Footer */
.svc-footer {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .25rem;
}

.svc-link-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: #6366f1;
  text-transform: uppercase;
  transition: color .3s ease;
}
.svc-card:hover .svc-link-label { color: #4f46e5; }

.svc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  color: #6366f1;
  transition: all .35s cubic-bezier(.23,1,.32,1);
}
.svc-card:hover .svc-arrow {
  background: rgba(99,102,241,.15);
  border-color: rgba(99,102,241,.4);
  color: #4f46e5;
  transform: translateX(4px);
  box-shadow: 0 0 10px rgba(99,102,241,.2);
}

/* ─── SECTION HEADING ─────────────────────────────── */
.our-service-heading-text { color: #111827; }
.our-service-desc-text    { color: #6b7280; }

/* ═══════════════════════════════════════════════════════════
   DARK MODE OVERRIDES
   ═══════════════════════════════════════════════════════════ */
.dark-mode .svc-card {
  background: linear-gradient(135deg, #0c0c14 0%, #0a0a12 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow:
    0 0 0 1px rgba(99,102,241,.04),
    0 8px 32px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.dark-mode .svc-card:hover {
  border-color: rgba(99,102,241,.7);
  box-shadow:
    0 0 0 1px rgba(99,102,241,.3),
    0 20px 60px rgba(0,0,0,.8),
    0 0 40px rgba(99,102,241,.15),
    0 0 80px rgba(6,182,212,.08),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.dark-mode .svc-glow-ring {
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(6,182,212,.1), transparent 60%);
}

.dark-mode .svc-img-wrap {
  background: #0f0f1a;
  border: 1px solid rgba(99,102,241,.12);
}

.dark-mode .svc-img {
  opacity: .75;
  filter: saturate(.8) brightness(.9);
}
.dark-mode .svc-card:hover .svc-img {
  opacity: 1;
  filter: saturate(1.1) brightness(1);
}

.dark-mode .svc-img-overlay {
  background: linear-gradient(to top, rgba(5,5,8,.95) 0%, rgba(5,5,8,.3) 50%, transparent 100%);
}
.dark-mode .svc-card:hover .svc-img-overlay { opacity: .6; }

.dark-mode .svc-shimmer {
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(99,102,241,.08) 40%,
    rgba(6,182,212,.12) 50%,
    transparent 70%
  );
}

.dark-mode .svc-title { color: #f1f5f9; }
.dark-mode .svc-card:hover .svc-title { color: #a5b4fc; }

.dark-mode .svc-desc { color: #94a3b8; }
.dark-mode .svc-card:hover .svc-desc { color: #cbd5e1; }

.dark-mode .svc-link-label { color: #6366f1; }
.dark-mode .svc-card:hover .svc-link-label { color: #a5b4fc; }

.dark-mode .svc-arrow {
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.25);
  color: #6366f1;
}
.dark-mode .svc-card:hover .svc-arrow {
  background: rgba(99,102,241,.25);
  border-color: rgba(99,102,241,.6);
  color: #a5b4fc;
  box-shadow: 0 0 14px rgba(99,102,241,.4);
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 640px) {
  .svc-img-wrap, .svc-img-sm  { height: 130px; }
  .svc-title     { font-size: 1.1rem; }
  .our-service-heading-text { font-size: 2rem; }
}


