/* ══════════════════════════════════════════════════════════════
   VISUAL ENHANCEMENT LAYER — enhance.css
   Adds glow, vibrancy, animated borders, floating elements
   Works on top of existing styles — no conflicts
══════════════════════════════════════════════════════════════ */

/* ── 1. GLOWING SECTION BORDERS ── */
.section-dark,
.section-alt {
  border-top: 1px solid rgba(201,168,76,0.12);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  position: relative;
}

/* Animated top border sweep */
.section-dark::before,
.section-alt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,76,0) 20%,
    rgba(232,201,106,0.9) 50%,
    rgba(201,168,76,0) 80%,
    transparent 100%
  );
  animation: borderSweep 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes borderSweep {
  0%,100% { opacity: 0.3; transform: scaleX(0.4); }
  50%      { opacity: 1;   transform: scaleX(1); }
}

/* ── 2. CARD GLOW BORDERS ── */
.service-card,
.card,
.testimonial-card {
  position: relative;
}
.service-card::after,
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(201,168,76,0) 0%,
    rgba(201,168,76,0.4) 50%,
    rgba(201,168,76,0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}
.service-card:hover::after,
.card:hover::after {
  opacity: 1;
}

/* ── 3. SECTION HEADER GLOW ── */
.section-header h2 {
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.6), transparent);
  animation: headerGlow 3s ease-in-out infinite;
}
@keyframes headerGlow {
  0%,100% { opacity: 0.4; width: 40%; }
  50%      { opacity: 1;   width: 80%; }
}

/* ── 4. FLOATING ZODIAC SYMBOLS IN SECTIONS ── */
.section-dark .container,
.section-alt .container {
  position: relative;
}

/* ── 5. BADGE PULSE ── */
.badge {
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 8px rgba(201,168,76,0.2); }
  50%      { box-shadow: 0 0 20px rgba(201,168,76,0.5), 0 0 40px rgba(201,168,76,0.2); }
}

/* ── 6. HERO SECTION ENHANCEMENTS ── */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

/* Glowing orb behind hero text */
.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
    rgba(120,40,220,0.18) 0%,
    rgba(80,20,160,0.10) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
  z-index: 1;
}
@keyframes orbPulse {
  0%,100% { transform: translate(-50%,-50%) scale(0.9); opacity: 0.6; }
  50%      { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
}

/* ── 7. STAT NUMBERS GLOW ── */
.stat-num {
  animation: statGlow 4s ease-in-out infinite;
}
@keyframes statGlow {
  0%,100% { text-shadow: 0 0 20px rgba(201,168,76,0.3); }
  50%      { text-shadow: 0 0 40px rgba(201,168,76,0.7), 0 0 80px rgba(201,168,76,0.3); }
}

/* ── 8. GOLD LINE ANIMATION ── */
.gold-line {
  animation: goldLinePulse 3s ease-in-out infinite;
}
@keyframes goldLinePulse {
  0%,100% { box-shadow: 0 0 6px rgba(201,168,76,0.3); opacity: 0.7; }
  50%      { box-shadow: 0 0 18px rgba(201,168,76,0.7); opacity: 1; }
}

/* ── 9. BUTTON SHIMMER EFFECT ── */
.btn-gold::before,
.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  transform: skewX(-20deg);
  animation: btnShimmer 3s ease-in-out infinite;
}
@keyframes btnShimmer {
  0%    { left: -100%; }
  40%,100% { left: 150%; }
}

/* ── 10. FLOATING PARTICLES IN HERO ── */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp linear infinite;
  z-index: 1;
}
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ── 11. NAV BRAND GLOW ── */
.nav-brand-name {
  animation: navGlow 4s ease-in-out infinite;
}
@keyframes navGlow {
  0%,100% { text-shadow: 0 0 8px rgba(201,168,76,0.2); }
  50%      { text-shadow: 0 0 20px rgba(201,168,76,0.6), 0 0 40px rgba(201,168,76,0.2); }
}

/* ── 12. SERVICE CARD IMAGE OVERLAY GLOW ── */
.svc-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(120,40,220,0.15) 0%,
    transparent 50%,
    rgba(201,168,76,0.10) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover .svc-img-wrap::before {
  opacity: 1;
}

/* ── 13. SCROLL PROGRESS INDICATOR ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #a07830, #e8c96a, #ffffff, #e8c96a, #a07830);
  background-size: 200%;
  z-index: 9999;
  transition: width 0.1s linear;
  animation: progressShimmer 2s linear infinite;
  box-shadow: 0 0 10px rgba(232,201,106,0.8);
}
@keyframes progressShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── 14. SECTION TRANSITION GLOW DIVIDERS ── */
.cta-band {
  position: relative;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201,168,76,0.8),
    rgba(255,255,255,0.6),
    rgba(201,168,76,0.8),
    transparent
  );
  animation: ctaBorderGlow 3s ease-in-out infinite;
}
@keyframes ctaBorderGlow {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 1; box-shadow: 0 0 20px rgba(201,168,76,0.5); }
}

/* ── 15. WHY-CHOOSE CARDS ICON GLOW ── */
.card [style*="font-size:2.4rem"] {
  animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
  0%,100% { transform: translateY(0); filter: drop-shadow(0 0 8px rgba(201,168,76,0.4)); }
  50%      { transform: translateY(-6px); filter: drop-shadow(0 0 20px rgba(201,168,76,0.8)); }
}

/* ── 16. FOOTER TOP BORDER GLOW ── */
.footer::before {
  background: linear-gradient(90deg,
    transparent,
    rgba(201,168,76,0.9),
    rgba(255,255,255,0.5),
    rgba(201,168,76,0.9),
    transparent
  ) !important;
  height: 2px !important;
  animation: footerBorderGlow 4s ease-in-out infinite;
}
@keyframes footerBorderGlow {
  0%,100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ── 17. MOBILE OPTIMIZATIONS ── */
@media (max-width: 768px) {
  .hero::after { width: 300px; height: 300px; }
  .section-dark::before,
  .section-alt::before { animation-duration: 6s; }
  .btn-gold::before,
  .btn-whatsapp::before { display: none; }
}

/* ── 18. RESPECT REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   SERVICES TICKER STRIP
══════════════════════════════════════════════════════════════ */
.svc-ticker-section {
  position: relative;
  padding: 0;
  background: linear-gradient(135deg,
    rgba(30,10,60,0.98) 0%,
    rgba(20,8,45,0.98) 50%,
    rgba(30,10,60,0.98) 100%
  );
  border-top: 1px solid rgba(201,168,76,0.35);
  border-bottom: 1px solid rgba(201,168,76,0.35);
  overflow: hidden;
}

/* Glowing top & bottom lines */
.svc-ticker-section::before,
.svc-ticker-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(201,168,76,0.8), rgba(255,255,255,0.5), rgba(201,168,76,0.8), transparent
  );
  animation: tickerBorderGlow 3s ease-in-out infinite;
  z-index: 3;
}
.svc-ticker-section::before { top: 0; }
.svc-ticker-section::after  { bottom: 0; }
@keyframes tickerBorderGlow {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* Label pill on the left */
.svc-ticker-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #a07830, #c9a84c, #e8c96a);
  color: #0d0d1a;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 4;
  box-shadow: 4px 0 20px rgba(201,168,76,0.4);
}

/* Fade edges */
.svc-ticker-wrap {
  overflow: hidden;
  padding: 0 0 0 140px;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, black 12%, black 82%, transparent 96%
  );
  mask-image: linear-gradient(to right,
    transparent 0%, black 12%, black 82%, transparent 96%
  );
}

/* Scrolling track */
.svc-ticker-track {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  width: max-content;
  animation: tickerScroll 180s linear infinite;
  cursor: grab;
}
.svc-ticker-track:active { cursor: grabbing; }
.svc-ticker-track:hover  { animation-play-state: paused; }
.svc-ticker-track.paused { animation-play-state: paused; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Ticker navigation arrows */
.svc-ticker-nav {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  z-index: 5;
  padding-right: 12px;
  background: linear-gradient(to left, rgba(20,8,45,0.98) 60%, transparent 100%);
  padding-left: 32px;
}
.svc-ticker-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.45);
  background: rgba(201,168,76,0.1);
  color: #c9a84c;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.svc-ticker-btn:hover {
  background: rgba(201,168,76,0.28);
  border-color: rgba(201,168,76,0.9);
  transform: scale(1.1);
}

/* Individual service card */
.svc-tick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 50px;
  text-decoration: none;
  color: var(--cream);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on hover */
.svc-tick-card::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent, rgba(255,255,255,0.15), transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.svc-tick-card:hover::before {
  left: 130%;
}

.svc-tick-card:hover {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.75);
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 8px 28px rgba(201,168,76,0.30),
    0 0 0 1px rgba(201,168,76,0.20),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.svc-tick-icon {
  font-size: 1.3rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.svc-tick-card:hover .svc-tick-icon {
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.9));
}

.svc-tick-name {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.svc-tick-card:hover .svc-tick-name {
  color: #e8c96a;
}

.svc-tick-cta {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.svc-tick-card:hover .svc-tick-cta {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .svc-ticker-label {
    font-size: 0.62rem;
    padding: 0 12px;
  }
  .svc-ticker-wrap { padding-left: 110px; }
  .svc-tick-card { padding: 8px 14px; gap: 8px; }
  .svc-tick-name { font-size: 0.75rem; }
  .svc-tick-icon { font-size: 1.1rem; }
  .svc-tick-cta  { display: none; }
  .svc-ticker-track { animation-duration: 120s; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE PERFORMANCE — disable heavy animations on small screens
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Stop all infinite CSS animations that run even off-screen */
  .badge,
  .hero-badge,
  .stat-num,
  .gold-line,
  .nav-brand-name,
  .section-dark::before,
  .section-alt::before,
  .cta-band::before,
  .footer::before,
  .svc-tick-card::before,
  .btn-gold::before,
  .btn-whatsapp::before,
  .card [style*="font-size:2.4rem"],
  .section-header h2::after,
  .svc-ticker-section::before,
  .svc-ticker-section::after,
  .h-fab-wheel,
  #horoscope-fab a::after {
    animation: none !important;
  }

  /* Hide the horoscope FAB spinning halo on mobile — expensive conic-gradient */
  #horoscope-fab a::after { display: none !important; }

  /* Disable all box-shadow transitions on mobile — triggers compositing */
  .svc-tick-card:hover,
  .fab-btn:hover {
    box-shadow: none !important;
    transform: none !important;
  }

  /* Keep only the ticker scroll and card hover — those are user-triggered */
  .svc-ticker-track {
    animation-duration: 120s !important;
  }

  /* Simplify card hover on mobile — no 3D, just border glow */
  .service-card:hover,
  .card:hover {
    transform: none !important;
  }

  /* Remove hero orb — expensive radial gradient animation */
  .hero::after {
    display: none !important;
  }

  /* Remove floating particles */
  .hero-particle {
    display: none !important;
  }

  /* Simplify section borders */
  .section-dark::before,
  .section-alt::before {
    display: none !important;
  }

  /* Reduce backdrop-filter usage — very expensive on mobile */
  .rv-mq-card,
  .rv-form-card,
  .nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
