/* ===== Creative FX — Караоке Рум ===== */

/* Scroll progress */
.fx-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 10001;
  background: linear-gradient(90deg, #5E2177, #593C90, #ec4899, #593C90);
  background-size: 200% 100%;
  animation: fxProgressShine 3s linear infinite;
  box-shadow: 0 0 12px rgba(89, 60, 144, 0.8);
  pointer-events: none;
  transition: width 0.08s linear;
}

@keyframes fxProgressShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Custom cursor glow (desktop) */
.fx-cursor {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(89, 60, 144, 0.18) 0%, rgba(89, 60, 144, 0.06) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

body.fx-cursor-on .fx-cursor { opacity: 1; }

/* Hero enhancements */
.hero-bg {
  animation: fxKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes fxKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(89, 60, 144, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
    rgba(0, 0, 0, 0.4);
}

.hero-accent {
  animation: fxNeonPulse 2.8s ease-in-out infinite;
  text-shadow:
    0 0 20px rgba(89, 60, 144, 0.9),
    0 0 40px rgba(89, 60, 144, 0.5),
    0 0 80px rgba(94, 33, 119, 0.3);
}

@keyframes fxNeonPulse {
  0%, 100% {
    filter: brightness(1);
    text-shadow:
      0 0 20px rgba(89, 60, 144, 0.9),
      0 0 40px rgba(89, 60, 144, 0.5),
      0 0 80px rgba(94, 33, 119, 0.3);
  }
  50% {
    filter: brightness(1.25);
    text-shadow:
      0 0 30px rgba(89, 60, 144, 1),
      0 0 60px rgba(89, 60, 144, 0.7),
      0 0 100px rgba(236, 72, 153, 0.4);
  }
}

/* Floating orbs */
.fx-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: fxOrbFloat 12s ease-in-out infinite;
}

.fx-orb--1 {
  width: 280px;
  height: 280px;
  background: #593C90;
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.fx-orb--2 {
  width: 200px;
  height: 200px;
  background: #ec4899;
  bottom: 15%;
  left: 8%;
  animation-delay: -4s;
}

.fx-orb--3 {
  width: 160px;
  height: 160px;
  background: #5E2177;
  top: 50%;
  left: 45%;
  animation-delay: -8s;
}

@keyframes fxOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

/* Particles canvas */
.fx-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

/* Sound wave equalizer */
.fx-soundwave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 36px;
  margin-top: 28px;
  opacity: 0.85;
}

.fx-soundwave span {
  display: block;
  width: 5px;
  min-height: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #FFDE59, #593C90);
  box-shadow: 0 0 8px rgba(89, 60, 144, 0.6);
  animation: fxWave 1.1s ease-in-out infinite;
  transform-origin: bottom;
}

.fx-soundwave span:nth-child(1)  { animation-delay: 0.00s; height: 12px; }
.fx-soundwave span:nth-child(2)  { animation-delay: 0.10s; height: 20px; }
.fx-soundwave span:nth-child(3)  { animation-delay: 0.20s; height: 28px; }
.fx-soundwave span:nth-child(4)  { animation-delay: 0.05s; height: 18px; }
.fx-soundwave span:nth-child(5)  { animation-delay: 0.30s; height: 32px; }
.fx-soundwave span:nth-child(6)  { animation-delay: 0.15s; height: 24px; }
.fx-soundwave span:nth-child(7)  { animation-delay: 0.25s; height: 30px; }
.fx-soundwave span:nth-child(8)  { animation-delay: 0.08s; height: 16px; }
.fx-soundwave span:nth-child(9)  { animation-delay: 0.35s; height: 26px; }
.fx-soundwave span:nth-child(10) { animation-delay: 0.12s; height: 22px; }
.fx-soundwave span:nth-child(11) { animation-delay: 0.28s; height: 14px; }
.fx-soundwave span:nth-child(12) { animation-delay: 0.18s; height: 20px; }

@keyframes fxWave {
  0%, 100% { transform: scaleY(0.35); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Hero reviews glow frame */
.hero-reviews-widget {
  box-shadow:
    0 0 0 1px rgba(89, 60, 144, 0.3),
    0 8px 40px rgba(94, 33, 119, 0.25),
    0 0 60px rgba(89, 60, 144, 0.15);
  animation: fxReviewsGlow 4s ease-in-out infinite;
}

@keyframes fxReviewsGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(89, 60, 144, 0.3), 0 8px 40px rgba(94, 33, 119, 0.25), 0 0 60px rgba(89, 60, 144, 0.15); }
  50% { box-shadow: 0 0 0 1px rgba(89, 60, 144, 0.5), 0 12px 50px rgba(94, 33, 119, 0.35), 0 0 80px rgba(236, 72, 153, 0.2); }
}

/* Section title shimmer */
.section-title {
  background-size: 200% auto;
  animation: fxTitleShimmer 5s linear infinite;
}

@keyframes fxTitleShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Hall card shine + 3D */
.hall-card {
  position: relative;
  transform-style: preserve-3d;
  perspective: 800px;
}

.hall-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(89, 60, 144, 0.12) 50%,
    transparent 60%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  opacity: 0;
  transition: opacity 0.4s ease, background-position 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

.hall-card:hover::before {
  opacity: 1;
  background-position: -100% 0;
}

.hall-visual.velur::before,
.hall-visual.neon::before,
.hall-visual.loft::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hall-visual.velur::before { background: radial-gradient(circle, rgba(89, 60, 144, 0.35) 0%, transparent 70%); }
.hall-visual.neon::before  { background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, transparent 70%); }
.hall-visual.loft::before  { background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%); }

.hall-card:hover .hall-visual.velur::before,
.hall-card:hover .hall-visual.neon::before,
.hall-card:hover .hall-visual.loft::before {
  opacity: 1;
}

/* Advantage cards — gradient border */
.advantage-card {
  position: relative;
  overflow: hidden;
}

.advantage-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, #5E2177, #593C90, #ec4899, #5E2177);
  background-size: 300% 300%;
  animation: fxBorderSpin 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.advantage-card:hover::after { opacity: 1; }

.advantage-card > * { position: relative; z-index: 1; }

.advantage-card {
  background-clip: padding-box;
}

.advantage-card::before {
  display: none;
}

@keyframes fxBorderSpin {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gallery glow frame */
.photo-slider-viewport {
  box-shadow:
    0 0 0 1px rgba(89, 60, 144, 0.25),
    0 0 40px rgba(94, 33, 119, 0.2);
  animation: fxGalleryPulse 5s ease-in-out infinite;
}

@keyframes fxGalleryPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(89, 60, 144, 0.25), 0 0 40px rgba(94, 33, 119, 0.2); }
  50% { box-shadow: 0 0 0 2px rgba(89, 60, 144, 0.4), 0 0 60px rgba(89, 60, 144, 0.35); }
}

/* Contact cards pulse */
.contact-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(89, 60, 144, 0.15), transparent 30%);
  animation: fxContactSpin 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-card:hover::before { opacity: 1; }

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(94, 33, 119, 0.25);
}

@keyframes fxContactSpin {
  to { transform: rotate(360deg); }
}

/* Guests logos glow */
.guests-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.guests-item:hover {
  transform: translateY(-8px) scale(1.08);
  filter: none;
  animation-play-state: paused;
  box-shadow:
    0 0 0 5px rgba(89, 60, 144, 0.55),
    0 0 42px rgba(89, 60, 144, 0.85),
    0 16px 36px rgba(0, 0, 0, 0.5);
}

/* CTA button magnetic glow */
.btn-primary,
.btn-hero {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after,
.btn-hero:hover::after {
  transform: translateX(100%);
}

/* Header glass intensify on scroll */
.header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  border-bottom-color: rgba(89, 60, 144, 0.25);
  box-shadow: 0 4px 30px rgba(94, 33, 119, 0.15);
}

/* Price card ambient */
.price-card {
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(89, 60, 144, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: fxPriceGlow 4s ease-in-out infinite;
}

@keyframes fxPriceGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

/* Section ambient lines */
.halls,
.gallery,
.contacts {
  position: relative;
}

.halls::before,
.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(89, 60, 144, 0.5), transparent);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fx-scroll-progress,
  .fx-cursor,
  .fx-orbs,
  .fx-particles,
  .fx-soundwave,
  .hero-bg,
  .hero-accent,
  .hero-reviews-widget,
  .section-title,
  .photo-slider-viewport,
  .contact-card::before,
  .advantage-card::after,
  .price-card::before {
    animation: none !important;
  }

  .hero-bg { transform: none !important; }
}

@media (max-width: 768px) {
  .fx-cursor { display: none; }
  .fx-soundwave { height: 28px; margin-top: 20px; }
  .fx-orb--1 { width: 180px; height: 180px; }
  .fx-orb--2 { width: 140px; height: 140px; }
  .fx-orb--3 { display: none; }
}

@media (hover: none) {
  .hall-card::before { display: none; }
}
