/* ============================================
   MOTION & ANIMATIONS - Sophisticated & Trustworthy
   ============================================ */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* ============================================
   PAGE LOAD ORCHESTRATION
   ============================================ */

/* Fade in on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered page load reveals - only for hero section */
.navbar {
  animation: fadeIn 0.6s ease-out;
}

.hero-pill {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-h .ht {
  animation: fadeInUp 0.8s ease-out both;
}

.hero-h .hw:nth-child(1) .ht { animation-delay: 0.3s; }
.hero-h .hw:nth-child(2) .ht { animation-delay: 0.4s; }
.hero-h .hw:nth-child(3) .ht { animation-delay: 0.5s; }

.hero-sub {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions {
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.hero-stats {
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-right {
  animation: fadeInUp 0.9s ease-out 0.5s both;
}

/* ============================================
   BUTTON HOVER EFFECTS
   ============================================ */

.btn::before, .btn-primary::before, .btn-outline::before, .btn-main::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.btn:hover::before, .btn-primary:hover::before, .btn-outline:hover::before, .btn-main:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover, .btn-primary:hover, .btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 242, 196, 0.25);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(13, 242, 196, 0.05);
  border-color: var(--a1);
}

.btn:active, .btn-primary:active, .btn-outline:active, .btn-main:active {
  transform: translateY(0);
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */

.card, .svc-card, .price-card, .testi-card, .case-card, .blog-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .svc-card:hover, .price-card:hover, .testi-card:hover, .case-card:hover, .blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Subtle glow on hover */
.card::after, .svc-card::after, .price-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(13, 242, 196, 0.1), rgba(139, 92, 246, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.card:hover::after, .svc-card:hover::after, .price-card:hover::after {
  opacity: 1;
}

/* ============================================
   LINK HOVER EFFECTS
   ============================================ */

.nav-links a {
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--a1);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.footer-nav-col a {
  transition: all 0.3s ease;
}

.footer-nav-col a:hover {
  color: var(--a1);
  transform: translateX(4px);
}

/* ============================================
   DASHBOARD ANIMATIONS
   ============================================ */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.sdot, .ww-dot, .aiw-sd {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes slideProgress {
  0% { width: 0; }
  100% { width: var(--w, 100%); }
}

.brow-fill, .avf, .pw-bfill {
  animation: slideProgress 1.5s ease-out 0.5s both;
}

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

.notify {
  animation: fadeInUp 0.6s ease-out 1s both, float 3s ease-in-out 1.6s infinite;
}

/* ============================================
   COUNTER ANIMATIONS
   ============================================ */

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hs-val, .metric-val, .cm-val, .astat-val {
  animation: countUp 0.6s ease-out both;
}

/* ============================================
   MARQUEE SMOOTH SCROLL
   ============================================ */

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mq-track {
  animation: marqueeScroll 40s linear infinite;
}

.mq-track:hover {
  animation-play-state: paused;
}

/* ============================================
   FORM FOCUS EFFECTS
   ============================================ */

.form-input, .form-textarea, .form-select, .fi {
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus, .fi:focus {
  border-color: var(--a1);
  box-shadow: 0 0 0 3px rgba(13, 242, 196, 0.1);
  transform: translateY(-2px);
}

/* ============================================
   LOGO - NO ROTATION (Constant)
   ============================================ */

/* Logo stays constant - no hover effects */

/* ============================================
   GLOW PULSE EFFECTS
   ============================================ */

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.glow, .page-header-glow, .cta-banner-glow, .cta-band-glow {
  animation: glowPulse 8s ease-in-out infinite;
}

.g1 { animation-delay: 0s; }
.g2 { animation-delay: 4s; }

/* ============================================
   NOISE TEXTURE ANIMATION
   ============================================ */

@keyframes noiseMove {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-5%, -5%); }
  50% { transform: translate(-10%, 5%); }
  75% { transform: translate(5%, -10%); }
}

.noise {
  animation: noiseMove 20s ease-in-out infinite;
}

/* ============================================
   TRUST BADGE ANIMATIONS
   ============================================ */

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

.trust-check {
  transition: transform 0.3s ease;
}

.trust-row span:hover .trust-check {
  transform: scale(1.2);
}

/* ============================================
   FAQ ACCORDION SMOOTH
   ============================================ */

.faq-icon, .fa-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-icon, .fa-item.open .fa-icon {
  transform: rotate(45deg);
}

.faq-a, .fa-a {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
}

/* ============================================
   STAT COUNTER REVEAL
   ============================================ */

@keyframes statReveal {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hs-val.counting, .metric-val.counting, .cm-val.counting, .astat-val.counting {
  animation: statReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

@keyframes scrollRun {
  0%, 100% { transform: translateY(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

.sh-runner {
  animation: scrollRun 2s ease-in-out infinite;
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .noise {
    animation: none;
  }
  
  .glow, .page-header-glow, .cta-banner-glow {
    animation: none;
    opacity: 0.3;
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.card:hover, .btn:hover {
  will-change: transform, box-shadow;
}

