/* ============================================================
   INTEGRA ITEC – Animations
   ============================================================ */

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Typing cursor blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Scanning line for NOC panel */
@keyframes scan-line {
  0% { top: 0%; }
  100% { top: 100%; }
}

/* Staggered card fade in */
@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Rotate for loading indicators */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Gradient shift */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Number count up (CSS only trick via width animation) */
@keyframes count-bar {
  from { width: 0%; }
}

/* ─── Applied animations ─────────────────────────────────── */

/* Hero panel floating card */
.hero-panel {
  animation: float 6s ease-in-out infinite;
}

/* CTA button glow pulse */
.btn-primary {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Service icon subtle float on hover parent */
.service-card:hover .service-icon {
  animation: float 2s ease-in-out infinite;
}

/* SLA step number spin in on hover */
.sla-step:hover .sla-step-number {
  animation: glow-pulse 1s ease-in-out infinite;
}

/* Scan line effect inside hero panel (decorative) */
.hero-panel .scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), transparent);
  animation: scan-line 4s linear infinite;
  pointer-events: none;
}

/* ─── Typewriter (JS-driven) ─────────────────────────────── */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ─── Stagger delays for reveal ─────────────────────────── */
.stagger-1 { transition-delay: 0.05s !important; }
.stagger-2 { transition-delay: 0.15s !important; }
.stagger-3 { transition-delay: 0.25s !important; }
.stagger-4 { transition-delay: 0.35s !important; }
.stagger-5 { transition-delay: 0.45s !important; }
.stagger-6 { transition-delay: 0.55s !important; }

/* ─── Page transitions ──────────────────────────────────── */
body {
  animation: page-enter 0.5s ease-out;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Active nav item indicator ─────────────────────────── */
@keyframes active-slide-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ─── Form focus ring ────────────────────────────────────── */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  animation: focus-ring 0.3s ease;
}

@keyframes focus-ring {
  0% { box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
  100% { box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
}

/* ─── Success animation ──────────────────────────────────── */
.form-success .success-icon {
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-pop {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}
