/*
 * ═══════════════════════════════════════════════════════════════
 *  TIKTOK GLASSMORPHIC SERVICE CARDS
 *  Mxperttech Theme — tiktok-cards.css
 *
 *  TikTok brand colors:
 *    Cyan   #69C9D0  (left neon edge)
 *    Red    #EE1D52  (right neon edge)
 *    White  #FFFFFF  (glass surface / text)
 *    Black  #010101  (deep void base)
 * ═══════════════════════════════════════════════════════════════
 */

/* ── CSS tokens ──────────────────────────────────────────────── */
:root {
  --tt-cyan:        #69C9D0;
  --tt-red:         #EE1D52;
  --tt-cyan-glow:   rgba(105, 201, 208, 0.55);
  --tt-red-glow:    rgba(238, 29, 82, 0.55);
  --tt-cyan-dim:    rgba(105, 201, 208, 0.18);
  --tt-red-dim:     rgba(238, 29, 82, 0.18);
  --tt-glass-bg:    rgba(255, 255, 255, 0.055);
  --tt-glass-blur:  18px;
  --tt-radius:      20px;
  --tt-line-speed:  3s;
}

/* ════════════════════════════════════════════════════════════════
   SERVICE CARD — GLASSMORPHIC TIKTOK SHELL
════════════════════════════════════════════════════════════════ */
.service-card {
  position: relative;
  padding: 32px 24px 28px;
  border-radius: var(--tt-radius);
  background: var(--tt-glass-bg);
  backdrop-filter: blur(var(--tt-glass-blur));
  -webkit-backdrop-filter: blur(var(--tt-glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;

  /* Dual-colour TikTok shadow — cyan left, red right */
  box-shadow:
    -4px 0  18px var(--tt-cyan-dim),
     4px 0  18px var(--tt-red-dim),
     0   8px 32px rgba(0, 0, 0, 0.45);

  transition:
    box-shadow      0.4s ease,
    transform       0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color    0.4s ease;
}

/* ── Hover lift + stronger TikTok glow ── */
.service-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow:
    -8px  0  36px var(--tt-cyan-glow),
     8px  0  36px var(--tt-red-glow),
     0  16px 48px rgba(0, 0, 0, 0.55),
     0   0  80px rgba(105, 201, 208, 0.08);
}

/* ════════════════════════════════════════════════════════════════
   MOVING COLOUR LINES OVERLAY  (3 diagonal bands)
   Cyan sweeps left→right, Red sweeps right→left, alternating
════════════════════════════════════════════════════════════════ */

/* Band 1 — subtle static cyan tint (no animation) */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(105, 201, 208, 0.06) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Band 2 — subtle static red tint (no animation) */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -105deg,
    transparent 0%,
    rgba(238, 29, 82, 0.04) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* tt-line-h — hidden (animation removed) */
.service-card .tt-line-h {
  display: none;
}

/* ── Card content sits above both overlay layers ── */
.service-card .service-thumb,
.service-card .service-icon,
.service-card .service-name,
.service-card .service-desc,
.service-card .cybe-msg-btn {
  position: relative;
  z-index: 2;
}

/* ════════════════════════════════════════════════════════════════
   THUMBNAIL / ICON  — glass inset frame
════════════════════════════════════════════════════════════════ */
.service-card .service-thumb,
.service-card .service-icon {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(105, 201, 208, 0.12),
    0 0 14px rgba(238, 29, 82, 0.08);
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════
   SERVICE NAME
════════════════════════════════════════════════════════════════ */
.service-card .service-name {
  color: #fff;
  text-shadow:
    0 0  8px var(--tt-cyan-glow),
    0 1px 0  rgba(0,0,0,0.6);
  transition: text-shadow 0.3s;
}

.service-card:hover .service-name {
  text-shadow:
    0 0 14px var(--tt-cyan),
    0 0 28px rgba(105, 201, 208, 0.45);
}

/* ════════════════════════════════════════════════════════════════
   SERVICE DESCRIPTION
════════════════════════════════════════════════════════════════ */
.service-card .service-desc {
  color: rgba(200, 215, 230, 0.80);
}

/* tt-edge-left / tt-edge-right removed */
.service-card .tt-edge-left,
.service-card .tt-edge-right { display: none !important; }

/* ════════════════════════════════════════════════════════════════
   CORNER ACCENT DOTS — top-left cyan, bottom-right red
════════════════════════════════════════════════════════════════ */
.service-card .tt-corner-tl,
.service-card .tt-corner-br {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  z-index: 4;
}
.service-card .tt-corner-tl {
  top: 12px; left: 12px;
  background: var(--tt-cyan);
  box-shadow: 0 0 6px var(--tt-cyan-dim);
  opacity: 0.5;
}
.service-card .tt-corner-br {
  bottom: 12px; right: 12px;
  background: var(--tt-red);
  box-shadow: 0 0 6px var(--tt-red-dim);
  opacity: 0.5;
}

/* ════════════════════════════════════════════════════════════════
   MESSAGE ME BUTTON — light sweep animation
   TikTok dual-gradient with travelling white flare
════════════════════════════════════════════════════════════════ */
.service-card .cybe-msg-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 24px;
  border-radius: 10px;
  font-family: var(--font-label, 'Syne', sans-serif);
  font-size: var(--sz-label, 10px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;

  background: var(--blue, #0000ff);

  box-shadow:
    0 0 14px rgba(0, 0, 255, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.4);

  transition:
    transform    0.2s ease,
    box-shadow   0.3s ease;
}

.service-card .cybe-msg-btn:hover {
  transform: translateY(-2px) scale(1.04);
  background: #0000cc;
  box-shadow:
    0 0 24px rgba(0, 0, 255, 0.55),
    0 8px 24px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.service-card .cybe-msg-btn:active {
  transform: scale(0.97);
}

/* ════════════════════════════════════════════════════════════════
   GRID — ensure stagger feels right on mobile too
════════════════════════════════════════════════════════════════ */




/* ════════════════════════════════════════════════════════════════
   DARK / LIGHT MODE ADJUSTMENTS
════════════════════════════════════════════════════════════════ */
[data-theme="light"] .service-card {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.40);
}
[data-theme="light"] .service-card .service-name { color: #0a0a1a; text-shadow: 0 0 12px var(--tt-cyan-glow); }
[data-theme="light"] .service-card .service-desc { color: #38385a; }

/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITY — reduce motion
════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .service-card::before,
  .service-card::after {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   PARTNERSHIP SECTION — TIKTOK GLASSMORPHIC
   1. Photo wrap  →  glass frame + water-ripple beneath
   2. Proposal card  →  glass shell + water-ripple beneath
════════════════════════════════════════════════════════════════ */

/* ── Shared water-ripple keyframe ───────────────────────────── */
@keyframes tt-ripple-1 {
  0%   { transform: scale(0.6);  opacity: 0.28; }
  60%  { transform: scale(1.55); opacity: 0.08; }
  100% { transform: scale(1.9);  opacity: 0;    }
}
@keyframes tt-ripple-2 {
  0%   { transform: scale(0.6);  opacity: 0.20; }
  60%  { transform: scale(1.55); opacity: 0.06; }
  100% { transform: scale(1.9);  opacity: 0;    }
}
@keyframes tt-ripple-3 {
  0%   { transform: scale(0.6);  opacity: 0.14; }
  60%  { transform: scale(1.55); opacity: 0.04; }
  100% { transform: scale(1.9);  opacity: 0;    }
}

/* ════════════════
   PHOTO WRAP
════════════════ */
.cybe-pp-photo-wrap {
  position: relative;
  /* Glass frame */
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tt-radius, 20px);
  overflow: visible !important; /* allow ripples to bleed out */

  /* Dual TikTok shadow */
  box-shadow:
    -5px 0  22px rgba(105, 201, 208, 0.22),
     5px 0  22px rgba(238,  29,  82, 0.22),
     0   8px 32px rgba(0, 0, 0, 0.50);

  transition: box-shadow 0.4s ease;
}
.cybe-pp-photo-wrap:hover {
  box-shadow:
    -10px 0  40px rgba(105, 201, 208, 0.40),
      10px 0  40px rgba(238,  29,  82, 0.40),
     0   16px 48px rgba(0, 0, 0, 0.60);
}

/* Cyan ripple beneath photo */
.cybe-pp-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(105, 201, 208, 0.60);
  pointer-events: none;
  z-index: -1;
  animation: tt-ripple-1 3.2s ease-out infinite;
}
/* Red ripple — offset timing */
.cybe-pp-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(238, 29, 82, 0.50);
  pointer-events: none;
  z-index: -1;
  animation: tt-ripple-2 3.2s ease-out infinite;
  animation-delay: 1.6s;
}

/* Third ripple (white) via a child span injected by JS or manual wrapper) —
   We use the img itself as a sibling-based trick with a generated wrapper */
.cybe-pp-ripple-3 {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  pointer-events: none;
  z-index: -1;
  animation: tt-ripple-3 3.2s ease-out infinite;
  animation-delay: 0.8s;
}

/* Photo itself — clip inside the glass frame */
.cybe-pp-photo {
  border-radius: calc(var(--tt-radius, 20px) - 2px);
  display: block;
  width: 100%;
}


/* ════════════════
   PROPOSAL CARD — transparent glass, TikTok lights show through
   Blue border-radius glow preserved, background removed
════════════════ */
.cybe-pp-card {
  background: transparent !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  animation: none !important;
  /* Keep the blue corner glow from style.css box-shadow intact — no override here */
}

/* Remove all injected overlay spans on the card */
.cybe-pp-card > .cybe-pp-ripple-3,
.cybe-pp-card > .tt-edge-left,
.cybe-pp-card > .tt-edge-right,
.cybe-pp-card > .tt-corner-tl,
.cybe-pp-card > .tt-corner-br { display: none !important; }

/* Clear ::before and ::after — no ripples */
.cybe-pp-card::before,
.cybe-pp-card::after {
  content: none !important;
  display: none !important;
}

/* Let's Partner button — static TikTok gradient, no animations */
.cybe-pp-cta.btn.btn-primary {
  background: linear-gradient(
    110deg,
    var(--tt-red, #EE1D52)  0%,
    #c0156d                  35%,
    #1a6fa0                  65%,
    var(--tt-cyan, #69C9D0) 100%
  ) !important;
  border: none !important;
  box-shadow:
    0 0 14px rgba(238,29,82,0.30),
    0 0 14px rgba(105,201,208,0.20),
    0 4px 18px rgba(0,0,0,0.45) !important;
  transition: transform 0.2s ease, box-shadow 0.3s ease !important;
}
.cybe-pp-cta.btn.btn-primary::before,
.cybe-pp-cta.btn.btn-primary::after { content: none !important; display: none !important; }
.cybe-pp-cta.btn.btn-primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow:
    0 0 22px rgba(238,29,82,0.50),
    0 0 22px rgba(105,201,208,0.40),
    0 8px 28px rgba(0,0,0,0.55) !important;
  color: #fff !important;
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  .cybe-pp-photo-wrap::before,
  .cybe-pp-photo-wrap::after,
  .cybe-pp-photo-wrap > .cybe-pp-ripple-3 {
    animation: none !important;
  }
  .cybe-pp-card { animation: none !important; }
}
