/*
 * ═══════════════════════════════════════════════════════════════
 *  TIKTOK GLASSMORPHIC SERVICE CARDS
 *  Valfinery Fashion World 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 — cyan diagonal sweep */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(105, 201, 208, 0.10) 45%,
    rgba(105, 201, 208, 0.22) 50%,
    rgba(105, 201, 208, 0.10) 55%,
    transparent 62%,
    transparent 100%
  );
  background-size: 250% 100%;
  animation: tt-sweep-cyan var(--tt-line-speed) linear infinite;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Band 2 — red diagonal counter-sweep */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -105deg,
    transparent 0%,
    transparent 40%,
    rgba(238, 29, 82, 0.08) 47%,
    rgba(238, 29, 82, 0.18) 52%,
    rgba(238, 29, 82, 0.08) 57%,
    transparent 64%,
    transparent 100%
  );
  background-size: 250% 100%;
  animation: tt-sweep-red calc(var(--tt-line-speed) * 1.4) linear infinite;
  animation-delay: calc(var(--tt-line-speed) * 0.5);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

@keyframes tt-sweep-cyan {
  0%   { background-position: 200% 0; }
  100% { background-position: -50% 0; }
}
@keyframes tt-sweep-red {
  0%   { background-position: -50% 0; }
  100% { background-position: 200% 0; }
}

/* ── Third band: thin horizontal line travelling top→bottom ── */
.service-card .tt-line-h {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--tt-cyan) 30%,
    rgba(255, 255, 255, 0.9) 50%,
    var(--tt-red)  70%,
    transparent 100%
  );
  opacity: 0.55;
  animation: tt-line-drop 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  border-radius: 1px;
}
@keyframes tt-line-drop {
  0%   { top: -4px;    opacity: 0;    }
  15%  { opacity: 0.6;                }
  85%  { opacity: 0.5;                }
  100% { top: calc(100% + 4px); opacity: 0; }
}

/* ── 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 .vfw-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 10px var(--tt-cyan), 0 0 20px var(--tt-cyan-dim);
  animation: tt-dot-blink 2s ease-in-out infinite;
}
.service-card .tt-corner-br {
  bottom: 12px; right: 12px;
  background: var(--tt-red);
  box-shadow: 0 0 10px var(--tt-red), 0 0 20px var(--tt-red-dim);
  animation: tt-dot-blink 2s ease-in-out infinite 1s;
}
@keyframes tt-dot-blink {
  0%, 100% { opacity: 0.6; transform: scale(1);    }
  50%       { opacity: 1.0; transform: scale(1.35); }
}

/* ════════════════════════════════════════════════════════════════
   MESSAGE ME BUTTON — light sweep animation
   TikTok dual-gradient with travelling white flare
════════════════════════════════════════════════════════════════ */
.service-card .vfw-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;

  /* Base TikTok gradient */
  background: linear-gradient(
    110deg,
    var(--tt-red)  0%,
    #c0156d        35%,
    #1a6fa0        65%,
    var(--tt-cyan) 100%
  );
  background-size: 200% 100%;
  animation: tt-btn-gradient 3.5s ease infinite;

  box-shadow:
    0 0 12px var(--tt-red-dim),
    0 0 12px var(--tt-cyan-dim),
    0 4px 16px rgba(0, 0, 0, 0.4);

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

/* Gradient colour shift */
@keyframes tt-btn-gradient {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* Travelling white flare on top */
.service-card .vfw-msg-btn::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  animation: tt-btn-sweep 2.2s ease-in-out infinite;
  border-radius: inherit;
  pointer-events: none;
}
@keyframes tt-btn-sweep {
  0%   { left: -45%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* Ripple ring on hover */
.service-card .vfw-msg-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(105, 201, 208, 0.5);
  animation: tt-btn-ring 2.5s ease-out infinite;
}
@keyframes tt-btn-ring {
  0%   { box-shadow: 0 0  0 0   rgba(105, 201, 208, 0.55); }
  70%  { box-shadow: 0 0  0 10px rgba(105, 201, 208, 0);   }
  100% { box-shadow: 0 0  0 0   rgba(105, 201, 208, 0);    }
}

.service-card .vfw-msg-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 20px var(--tt-red-glow),
    0 0 20px var(--tt-cyan-glow),
    0 8px 24px rgba(0, 0, 0, 0.5);
  color: #fff;
}

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

/* ════════════════════════════════════════════════════════════════
   GRID — ensure stagger feels right on mobile too
════════════════════════════════════════════════════════════════ */
.services-strip-grid .service-card:nth-child(even) {
  --tt-line-speed: 3.6s;
}
.services-strip-grid .service-card:nth-child(3n) {
  --tt-line-speed: 2.8s;
}

/* ── Stagger the horizontal line drop per card ── */
.services-strip-grid .service-card:nth-child(1) .tt-line-h { animation-delay: 0s; }
.services-strip-grid .service-card:nth-child(2) .tt-line-h { animation-delay: 0.65s; }
.services-strip-grid .service-card:nth-child(3) .tt-line-h { animation-delay: 1.3s; }
.services-strip-grid .service-card:nth-child(4) .tt-line-h { animation-delay: 1.95s; }
.services-strip-grid .service-card:nth-child(5) .tt-line-h { animation-delay: 2.6s; }
.services-strip-grid .service-card:nth-child(6) .tt-line-h { animation-delay: 3.25s; }
.services-strip-grid .service-card:nth-child(7) .tt-line-h { animation-delay: 3.9s; }
.services-strip-grid .service-card:nth-child(8) .tt-line-h { animation-delay: 0.35s; }

/* ── Stagger msg btn sweep per card ── */
.services-strip-grid .service-card:nth-child(2) .vfw-msg-btn::before { animation-delay: 0.8s; }
.services-strip-grid .service-card:nth-child(3) .vfw-msg-btn::before { animation-delay: 1.5s; }
.services-strip-grid .service-card:nth-child(4) .vfw-msg-btn::before { animation-delay: 0.4s; }
.services-strip-grid .service-card:nth-child(5) .vfw-msg-btn::before { animation-delay: 1.1s; }
.services-strip-grid .service-card:nth-child(6) .vfw-msg-btn::before { animation-delay: 1.8s; }

/* ════════════════════════════════════════════════════════════════
   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,
  .service-card .tt-line-h,
  .service-card .tt-corner-tl,
  .service-card .tt-corner-br,
  .service-card .vfw-msg-btn,
  .service-card .vfw-msg-btn::before,
  .service-card .vfw-msg-btn::after {
    animation: none !important;
  }
  .service-card .vfw-msg-btn {
    background: linear-gradient(110deg, var(--tt-red), var(--tt-cyan));
  }
}

/* ════════════════════════════════════════════════════════════════
   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
════════════════ */
.vfw-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;
}
.vfw-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 */
.vfw-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 */
.vfw-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 */
.vfw-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 */
.vfw-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
════════════════ */
.vfw-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 */
.vfw-pp-card > .vfw-pp-ripple-3,
.vfw-pp-card > .tt-edge-left,
.vfw-pp-card > .tt-edge-right,
.vfw-pp-card > .tt-corner-tl,
.vfw-pp-card > .tt-corner-br { display: none !important; }

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

/* Let's Partner button — static TikTok gradient, no animations */
.vfw-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;
}
.vfw-pp-cta.btn.btn-primary::before,
.vfw-pp-cta.btn.btn-primary::after { content: none !important; display: none !important; }
.vfw-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) {
  .vfw-pp-photo-wrap::before,
  .vfw-pp-photo-wrap::after,
  .vfw-pp-photo-wrap > .vfw-pp-ripple-3 {
    animation: none !important;
  }
  .vfw-pp-card { animation: none !important; }
}
