/**
 * AeroBridge — Animation Styles
 * Scroll reveal, parallax, counters, stagger, tilt, floating elements
 */

/* ============================================================================
   SCROLL REVEAL
   ============================================================================ */

.reveal-element {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease-out,
              transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Stagger children */
.stagger-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out,
              transform 0.7s ease-out;
  will-change: opacity, transform;
}

.stagger-element.stagger-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ============================================================================
   NAVBAR MORPH
   ============================================================================ */

.navbar {
  transition: box-shadow 0.4s ease, background 0.4s ease;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-scrolled {
  box-shadow: 0 4px 30px rgba(11, 61, 145, 0.12) !important;
  background: rgba(255, 255, 255, 0.99);
}

.navbar-scrolled .navbar-brand img {
  height: 60px;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-brand img {
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================================
   HERO ANIMATIONS
   ============================================================================ */

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

.card, .testimonial-card, .pricing-card {
  transition: box-shadow 0.35s ease, border-color 0.3s ease;
}

/* Glow effect on hover */
.card:hover {
  box-shadow:
    0 10px 25px -3px rgba(11, 61, 145, 0.1),
    0 4px 6px -2px rgba(11, 61, 145, 0.05);
}

.card-feature:hover {
  border-left-width: 6px;
}

.card-feature.accent-red:hover {
  box-shadow:
    0 10px 25px -3px rgba(214, 69, 65, 0.12),
    0 4px 6px -2px rgba(214, 69, 65, 0.06);
}

.card-feature.accent-sky:hover {
  box-shadow:
    0 10px 25px -3px rgba(135, 206, 235, 0.2),
    0 4px 6px -2px rgba(135, 206, 235, 0.1);
}

/* ============================================================================
   BUTTON ANIMATIONS
   ============================================================================ */

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

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-3px);
}

/* ============================================================================
   TESTIMONIAL STARS SPARKLE
   ============================================================================ */

.stars-animate {
  animation: starSparkle 2s ease-in-out 1;
}

@keyframes starSparkle {
  0%   { opacity: 0; transform: scale(0.5); }
  40%  { opacity: 1; transform: scale(1.15); }
  60%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ============================================================================
   STAT COUNTER GLOW
   ============================================================================ */

.section-gradient .stat-card {
  position: relative;
}

.section-gradient .stat-number {
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
  transition: text-shadow 0.3s ease;
}

.section-gradient .stat-card:hover .stat-number {
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.5);
}

/* ============================================================================
   CTA SECTION GLOW
   ============================================================================ */

.cta-form {
  animation: formGlow 4s ease-in-out infinite alternate;
}

@keyframes formGlow {
  0%   { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 25px 50px -5px rgba(0, 0, 0, 0.15), 0 0 80px -10px rgba(255, 255, 255, 0.08); }
}

/* ============================================================================
   SECTION DIVIDER WAVES
   ============================================================================ */

.section-gradient {
  position: relative;
}

.section-gradient::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--surface-background);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

.section-gradient::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--surface-background);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

/* ============================================================================
   FOOTER LINK HOVER
   ============================================================================ */

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* ============================================================================
   WHATSAPP BOUNCE ENHANCED
   ============================================================================ */

.whatsapp-float {
  animation: whatsappBounce 3s ease-in-out infinite;
}

@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
  25%      { transform: translateY(-6px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5); }
  50%      { transform: translateY(0); box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
  75%      { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-element { opacity: 1; transform: none; }
  .stagger-element { opacity: 1; transform: none; }
  .hero-plane, .hero-plane-2 { display: none; }
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 1s ease 1.2s both;
}

.hero-scroll-indicator span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ============================================================================
   PAGE LOAD TRANSITION
   ============================================================================ */

body {
  animation: pageLoad 0.6s ease both;
}

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