/**
 * STARINTECH — Micro-Interactions & Animation System
 * High-End SaaS Animation Library, Keyframes, Ambient Orbs & Micro-interactions
 */

/* Accessibility: Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0.01ms !important;
  }
}

/* ========================================================
   1. AMBIENT GLOWING ORBS (HERO & CTA BACKGROUNDS)
   ======================================================== */
@keyframes floatOrb1 {
  0%, 100% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.7;
  }
  33% {
    transform: translate(30px, -40px) scale(1.12);
    opacity: 0.85;
  }
  66% {
    transform: translate(-20px, 25px) scale(0.95);
    opacity: 0.6;
  }
}

@keyframes floatOrb2 {
  0%, 100% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-45px, -35px) scale(1.18);
    opacity: 0.8;
  }
}

@keyframes floatOrb3 {
  0%, 100% {
    transform: translate(0px, 0px) scale(0.9);
    opacity: 0.4;
  }
  50% {
    transform: translate(35px, 30px) scale(1.1);
    opacity: 0.65;
  }
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.ambient-orb-orange {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(244, 81, 30, 0.22) 0%, rgba(255, 122, 0, 0.08) 60%, transparent 75%);
  animation: floatOrb1 12s ease-in-out infinite;
}

.ambient-orb-blue {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(13, 148, 136, 0.06) 60%, transparent 75%);
  animation: floatOrb2 15s ease-in-out infinite;
}

.ambient-orb-purple {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, rgba(236, 72, 153, 0.05) 60%, transparent 75%);
  animation: floatOrb3 18s ease-in-out infinite;
}

@media (max-width: 768px) {
  .ambient-orb {
    filter: blur(40px);
  }
  .ambient-orb-orange {
    width: 240px;
    height: 240px;
  }
  .ambient-orb-blue {
    width: 220px;
    height: 220px;
  }
  .ambient-orb-purple {
    width: 190px;
    height: 190px;
  }
}

/* ========================================================
   2. FLOATING CARDS & MOCKUPS
   ======================================================== */
@keyframes floatSlow1 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.8deg);
  }
}

@keyframes floatSlow2 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(-1deg);
  }
}

@keyframes floatSlow3 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float-1 {
  animation: floatSlow1 5.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.animate-float-2 {
  animation: floatSlow2 6.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 1s;
}

.animate-float-3 {
  animation: floatSlow3 4.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 2s;
}

/* ========================================================
   3. STATUS RADAR PULSE (LIVE INDICATORS)
   ======================================================== */
@keyframes radarRipple {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes radarRippleOrange {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(244, 81, 30, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(244, 81, 30, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(244, 81, 30, 0);
  }
}

.status-dot-emerald {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #10B981;
  border-radius: 50%;
  animation: radarRipple 2s infinite;
}

.status-dot-orange {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #F4511E;
  border-radius: 50%;
  animation: radarRippleOrange 2s infinite;
}

/* ========================================================
   4. SHIMMER & BUTTON GLOW SWEEPS
   ======================================================== */
@keyframes shimmerSweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-22deg);
  animation: shimmerSweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ========================================================
   5. GLASSMORPHISM & CARD HIGHLIGHTS
   ======================================================== */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 36px rgba(11, 19, 43, 0.08);
}

.glass-panel-dark {
  background: rgba(11, 19, 43, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
}

/* ========================================================
   6. INTERACTIVE HOVER LIFT & GLOW (MICRO-INTERACTIONS)
   ======================================================== */
.service-card,
.product-card,
.portfolio-card,
.stat-box,
.trust-item,
.faq-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  will-change: transform, box-shadow;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 22px 42px -12px rgba(244, 81, 30, 0.18), 0 4px 10px rgba(0, 0, 0, 0.03);
  border-color: rgba(244, 81, 30, 0.35);
}

.service-card:hover .service-card-icon-wrap {
  transform: scale(1.14) rotate(4deg);
}

.service-card-icon-wrap {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 22px 45px -12px rgba(11, 19, 43, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: rgba(244, 81, 30, 0.35);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(11, 19, 43, 0.18);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.06);
}

.portfolio-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 19, 43, 0.08);
  border-color: rgba(244, 81, 30, 0.25);
}

.trust-item:hover .trust-item-icon {
  transform: scale(1.15);
}

.trust-item-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================================
   7. PULSING ACCENT BADGE
   ======================================================== */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 81, 30, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(244, 81, 30, 0);
  }
}

.pulse-badge {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ========================================================
   8. GRADIENT TEXT HELPER
   ======================================================== */
.text-gradient-orange {
  background: linear-gradient(135deg, #F4511E 0%, #FF7A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ========================================================
   9. STAT COUNTERS GLOW & HIGHLIGHT
   ======================================================== */
.stats-counter {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}
