/* ============================================================
   Site Setu - Animations & Keyframes
   animations.css
   ============================================================ */

/* ---- Floating card ---- */
@keyframes float-card {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(0.3deg); }
  66%       { transform: translateY(-6px) rotate(-0.3deg); }
}

/* ---- Floating badge 1 ---- */
@keyframes float-badge1 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-6px, -14px); }
}

/* ---- Floating badge 2 ---- */
@keyframes float-badge2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(8px, -10px); }
}

/* ---- Progress bar fill ---- */
@keyframes progress-fill {
  from { width: 0%; }
}

/* ---- Pulse dot ---- */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ---- Marquee scroll ---- */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Crane arm swing ---- */
@keyframes crane-swing {
  0%, 100% { transform: rotate(-4deg); }
  50%       { transform: rotate(4deg); }
}

/* ---- Bounce gentle ---- */
@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ---- Spin slow ---- */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- Shimmer ---- */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ---- Fade up ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Scale in ---- */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- Slide in from left ---- */
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- Slide in from right ---- */
@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- Count up hack (no JS needed for small numbers) ---- */
@keyframes count-tick {
  from { content: '0'; }
}

/* ---- Glow ring ---- */
@keyframes glow-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,0.4); }
  50%       { box-shadow: 0 0 0 16px rgba(14,165,233,0); }
}

/* ---- Hero text reveal stagger ---- */
.hero-badge    { animation: fadeUp 0.6s ease both 0.1s; }
.hero-title    { animation: fadeUp 0.7s ease both 0.25s; }
.hero-desc     { animation: fadeUp 0.7s ease both 0.40s; }
.hero-actions  { animation: fadeUp 0.7s ease both 0.55s; }
.hero-stats    { animation: fadeUp 0.7s ease both 0.70s; }
.hero-visual   { animation: slideRight 0.8s ease both 0.35s; }

/* ---- Construction animated strip ---- */
.construction-anim {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 24px;
}
.c-bar {
  width: 6px;
  background: linear-gradient(to top, var(--sky-deep), var(--sky-blue));
  border-radius: 3px;
  animation: bar-grow 1.4s ease-in-out infinite alternate;
}
.c-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.c-bar:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.c-bar:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.c-bar:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.c-bar:nth-child(5) { height: 28px; animation-delay: 0.4s; }
.c-bar:nth-child(6) { height: 45px; animation-delay: 0.5s; }
.c-bar:nth-child(7) { height: 32px; animation-delay: 0.6s; }

@keyframes bar-grow {
  from { transform: scaleY(0.4); opacity: 0.5; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* ---- Blueprint lines ---- */
.blueprint-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ---- Ticker / live badge ---- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.30);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: #059669;
  letter-spacing: 0.5px;
}
.live-dot {
  width: 7px; height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

/* ---- Card hover ripple ---- */
.ripple-wrap { position: relative; overflow: hidden; }
.ripple-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(14,165,233,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.ripple-wrap:hover::after { opacity: 1; }

/* ---- Typing cursor ---- */
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--sky-blue);
  margin-left: 2px;
  animation: cursor-blink 0.9s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- Sticky header shadow animation ---- */
#site-header {
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* ---- Gear spin decoration ---- */
.gear-spin {
  display: inline-block;
  animation: spin-slow 8s linear infinite;
}

/* ---- Notification pop ---- */
@keyframes notif-pop {
  0%   { transform: scale(0) translateY(10px); opacity: 0; }
  70%  { transform: scale(1.05) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.notif-pop { animation: notif-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }

/* ---- Stagger children ---- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.animated > *:nth-child(1) { opacity:1; transform:none; transition-delay:0.05s; }
.stagger-children.animated > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.15s; }
.stagger-children.animated > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.25s; }
.stagger-children.animated > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.35s; }
.stagger-children.animated > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.45s; }
.stagger-children.animated > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.55s; }
.stagger-children.animated > *:nth-child(7) { opacity:1; transform:none; transition-delay:0.65s; }
.stagger-children.animated > *:nth-child(8) { opacity:1; transform:none; transition-delay:0.75s; }