/* =============================================
   N&M GROUP - Animations & Effects
   ============================================= */

/* ---- AOS Custom Overrides ---- */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ---- Glowing Text ---- */
.glow-text {
  text-shadow: 0 0 20px rgba(201,168,76,0.5), 0 0 40px rgba(201,168,76,0.2);
}

/* ---- Shimmer Effect ---- */
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmerMove 3s infinite;
}
@keyframes shimmerMove {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ---- Floating Animation ---- */
.float-anim {
  animation: floatUpDown 4s ease-in-out infinite;
}
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- Pulse Ring ---- */
.pulse-ring {
  position: relative;
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--gold);
  animation: pulseRing 2s ease-out infinite;
  opacity: 0;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* ---- Gold Gradient Text ---- */
.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Card Glow on Hover ---- */
.card-glow:hover {
  box-shadow: 0 0 30px rgba(201,168,76,0.15), 0 20px 60px rgba(0,0,0,0.4);
}

/* ---- Slide Up Entrance ---- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-up { animation: slideUp 0.6s ease forwards; }

/* ---- Fade In ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in { animation: fadeIn 0.5s ease forwards; }

/* ---- Scale In ---- */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.scale-in { animation: scaleIn 0.4s ease forwards; }

/* ---- Rotate Spin ---- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }

/* ---- Stagger Children ---- */
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }

/* ---- Typewriter ---- */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--gold);
  animation: typing 3s steps(40, end), blinkCursor 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--gold); }
}

/* ---- Gradient Border ---- */
.gradient-border {
  position: relative;
  border-radius: var(--radius);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-gold);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gradient-border:hover::before { opacity: 1; }

/* ---- Hero Text Animations ---- */
.hero-badge { animation: slideUp 0.6s ease 0.2s both; }
.hero-title { animation: slideUp 0.6s ease 0.4s both; }
.hero-subtitle { animation: slideUp 0.6s ease 0.6s both; }
.hero-features { animation: slideUp 0.6s ease 0.7s both; }
.hero-actions { animation: slideUp 0.6s ease 0.8s both; }
.hero-stats { animation: slideUp 0.6s ease 1s both; }

/* ---- Parallax Layers ---- */
.parallax-slow { will-change: transform; }
.parallax-medium { will-change: transform; }

/* ---- Number Counter Animation ---- */
.counter-number {
  transition: all 0.1s ease;
}

/* ---- Product Card Hover ---- */
.product-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ---- Section Entrance ---- */
.section-enter {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-enter.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Notification Toast ---- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark3);
  border: var(--border-gold);
  border-radius: 10px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--white);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-dark);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast i { color: var(--gold); }

/* ---- Image Zoom ---- */
.img-zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius);
}
.img-zoom-wrap img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-zoom-wrap:hover img { transform: scale(1.08); }

/* ---- Glassmorphism ---- */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}
.glass-gold {
  background: rgba(201,168,76,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201,168,76,0.2);
}

/* ---- Progress Bar Animated ---- */
.progress-bar-wrap {
  background: var(--dark4);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 50px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Tilt Effect (via JS) ---- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

/* ---- Dot Pattern Background ---- */
.dot-pattern {
  background-image: radial-gradient(rgba(201,168,76,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ---- Line Pattern ---- */
.line-pattern {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(201,168,76,0.03) 10px,
    rgba(201,168,76,0.03) 11px
  );
}