/* ============================================================
   Nani Cleaning — nc-animations.css
   ============================================================ */

/* ── Keyframes ── */
@keyframes nc-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes nc-slide-right {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes nc-scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes nc-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes nc-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 168, 0.3); }
  50%       { box-shadow: 0 0 0 12px rgba(37, 99, 168, 0); }
}
@keyframes nc-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes nc-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes nc-bounce-in {
  0%   { transform: scale(0.3); opacity: 0; }
  50%  { transform: scale(1.05); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes nc-counter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Hero animations ── */
.nc-hero-content .nc-hero-eyebrow {
  animation: nc-fade-up 0.6s ease both;
  animation-delay: 0.1s;
}
.nc-hero-content .nc-hero-title {
  animation: nc-fade-up 0.7s ease both;
  animation-delay: 0.25s;
}
.nc-hero-content .nc-hero-desc {
  animation: nc-fade-up 0.7s ease both;
  animation-delay: 0.4s;
}
.nc-hero-content .nc-hero-actions {
  animation: nc-fade-up 0.7s ease both;
  animation-delay: 0.55s;
}
.nc-hero-content .nc-hero-trust {
  animation: nc-fade-up 0.7s ease both;
  animation-delay: 0.7s;
}
.nc-hero-visual {
  animation: nc-scale-in 0.9s ease both;
  animation-delay: 0.3s;
}
.nc-hero-badge {
  animation: nc-bounce-in 0.8s ease both;
  animation-delay: 0.9s;
}
.nc-hero-badge-2 {
  animation-delay: 1.1s;
}

/* ── Floating decorative element ── */
.nc-float-anim {
  animation: nc-float 4s ease-in-out infinite;
}

/* ── Pulse button ── */
.nc-pulse-btn {
  animation: nc-pulse-glow 2s ease-in-out infinite;
}

/* ── Scroll-reveal base ── */
.nc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.nc-reveal.nc-revealed {
  opacity: 1;
  transform: translateY(0);
}
.nc-reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.nc-reveal-left.nc-revealed {
  opacity: 1;
  transform: translateX(0);
}
.nc-reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.nc-reveal-right.nc-revealed {
  opacity: 1;
  transform: translateX(0);
}
.nc-reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.nc-reveal-scale.nc-revealed {
  opacity: 1;
  transform: scale(1);
}

/* ── Staggered children ── */
.nc-stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.nc-stagger-children > *:nth-child(2) { transition-delay: 0.15s; }
.nc-stagger-children > *:nth-child(3) { transition-delay: 0.25s; }
.nc-stagger-children > *:nth-child(4) { transition-delay: 0.35s; }
.nc-stagger-children > *:nth-child(5) { transition-delay: 0.45s; }

/* ── Counter animation ── */
.nc-count-anim {
  display: inline-block;
}

/* ── Hover card lift ── */
.nc-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nc-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* ── Image zoom on hover ── */
.nc-img-zoom {
  overflow: hidden;
}
.nc-img-zoom img {
  transition: transform 0.5s ease;
}
.nc-img-zoom:hover img {
  transform: scale(1.06);
}

/* ── Underline link animation ── */
.nc-link-underline {
  position: relative;
  display: inline-block;
}
.nc-link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--nc-blue-mid);
  transition: width 0.3s ease;
}
.nc-link-underline:hover::after { width: 100%; }

/* ── Shimmer loading ── */
.nc-shimmer {
  background: linear-gradient(90deg,
    var(--nc-gray-light) 25%,
    #e9ecef 50%,
    var(--nc-gray-light) 75%
  );
  background-size: 200% 100%;
  animation: nc-shimmer 1.5s infinite;
  border-radius: var(--nc-radius);
}

/* ── Progress bar ── */
.nc-progress-bar {
  height: 4px;
  background: var(--nc-border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.nc-progress-fill {
  height: 100%;
  background: var(--nc-green);
  width: 0;
  border-radius: 2px;
  transition: width 1.2s ease;
}
.nc-progress-fill.nc-animated { width: var(--nc-progress-width, 75%); }

/* ── Spin slow (decorative circles) ── */
.nc-spin-slow { animation: nc-spin-slow 20s linear infinite; }

/* ── Gradient text ── */
.nc-gradient-text {
  background: linear-gradient(135deg, var(--nc-blue-mid) 0%, var(--nc-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Notification badge pop ── */
@keyframes nc-badge-pop {
  0%   { transform: scale(0); }
  80%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.nc-badge-pop { animation: nc-badge-pop 0.5s ease 0.5s both; }
