/* ========================================
   BITIRUVCHI LENTALAR - Animations
   ======================================== */

/* ====== FADE IN ON SCROLL ====== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-in.visible { opacity: 1; }

/* Delay variants */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* ====== FLOATING PARTICLES ====== */
.particles-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
  opacity: 0.3;
}
@keyframes floatParticle {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  33% { transform: translateY(-30px) rotate(120deg); opacity: 0.6; }
  66% { transform: translateY(-15px) rotate(240deg); opacity: 0.2; }
}

/* ====== SHIMMER (skeleton) ====== */
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ====== PULSE GLOW ====== */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}
.pulse-glow { animation: pulseGlow 2.5s ease-in-out infinite; }

/* ====== SPIN ====== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ====== RIBBON FLOAT ====== */
@keyframes ribbonFloat {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}
.ribbon-float { animation: ribbonFloat 4s ease-in-out infinite; }

/* ====== COUNTER ANIMATION (JS driven) ====== */
.counter-num {
  display: inline-block;
}

/* ====== NUMBER COUNTER ====== */
.stat-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ====== TYPING CURSOR ====== */
.typing::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
  color: var(--accent);
}
@keyframes blink { 50% { opacity: 0; } }

/* ====== HERO SWIPER custom bullet ====== */
.hero-swiper .swiper-pagination {
  bottom: 30px;
}
.hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.4) !important;
  opacity: 1;
  transition: all 0.3s ease;
}
.hero-swiper .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 5px;
  background: var(--accent) !important;
}

/* ====== GOLDEN LINE SEPARATOR ====== */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #F0D060);
  border-radius: 2px;
  margin: 16px auto;
}

/* ====== LOADING SPINNER ====== */
.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* ====== TOAST NOTIFICATION ====== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #2B0A5A, #7A1FFF);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius);
  padding: 16px 24px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 99999;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(0); }
.toast-icon { color: var(--accent); font-size: 1.1rem; }

/* ====== BACK TO TOP ====== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* ====== GRADIENT TEXT ====== */
.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====== CARD HOVER GLOW ====== */
.hover-glow {
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.25), 0 20px 60px rgba(122, 31, 255, 0.2);
  transform: translateY(-6px);
}
