/* =============================================
   SALON VERA - Animacje i efekty
   ============================================= */

/* --- Fade in on scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Opóźnienia */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Hero animacja --- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge  { animation: heroFadeUp 0.6s ease 0.2s both; }
.hero h1     { animation: heroFadeUp 0.7s ease 0.4s both; }
.hero p      { animation: heroFadeUp 0.7s ease 0.6s both; }
.hero-buttons { animation: heroFadeUp 0.7s ease 0.8s both; }
.hero-stats  { animation: heroFadeUp 0.7s ease 1.0s both; }

/* --- Złoty shimmer --- */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-shimmer {
  background: linear-gradient(90deg, #c9a96e 0%, #f0d898 40%, #c9a96e 60%, #a07840 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* --- Pulse (telefon / CTA) --- */
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201,169,110,0.4); }
  50%       { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(201,169,110,0); }
}

.btn-pulse { animation: pulse 2.5s ease-in-out infinite; }

/* --- Ping dot (aktywność) --- */
@keyframes ping {
  0%   { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

.ping-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
}

.ping-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}

.ping-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
}

/* --- Floating orb tła --- */
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(201,169,110,0.12);
  top: 10%; right: 5%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 250px; height: 250px;
  background: rgba(201,169,110,0.06);
  bottom: 15%; right: 25%;
  animation-delay: 4s;
}

/* --- Scroll indicator --- */
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.5; }
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
}

/* --- Page loader --- */
@keyframes loaderFade {
  to { opacity: 0; visibility: hidden; }
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: loaderFade 0.4s ease 0.8s forwards;
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(201,169,110,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* --- Hover na kafelkach usług --- */
.service-card-icon {
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* --- Liczniki (stats) --- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-stat-number.counting {
  animation: countUp 0.5s ease forwards;
}
