/* ============================================================
   SAFE ZONE PEST CONTROL — animations.css
   ============================================================ */

/* ---- Keyframe Definitions ---- */

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,98,26,0.7); }
  50%       { box-shadow: 0 0 0 8px rgba(232,98,26,0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

@keyframes glow-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62,201,110,0.4); }
  50%      { box-shadow: 0 0 0 16px rgba(62,201,110,0); }
}

@keyframes typing-cursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

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

/* ---- GSAP Initial Hidden States ---- */
.gsap-hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* ---- will-change declarations ---- */
.hero-h1-line1,
.hero-h1-line2,
.hero-sub,
.hero-cta-primary,
.hero-cta-secondary,
.hero-label,
.hero-shield,
.service-card,
.stat-block,
.step,
.testimonial-card,
.footer-col {
  will-change: transform, opacity;
}

/* ---- CSS Hover Transitions ---- */

/* Service cards */
.service-card {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}

/* CTA buttons */
.btn-primary {
  transition: background 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

/* About image */
.about-img-placeholder {
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.about-img:hover .about-img-placeholder {
  transform: scale(1.03);
}

/* Map container */
.map-frame-wrap {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.map-frame-wrap:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 80px rgba(62,201,110,0.22);
}

/* Footer social icons */
.social-icon {
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

/* Stats blocks */
.stat-block {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-block:hover {
  box-shadow: 0 8px 32px rgba(62,201,110,0.15);
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Industry cards */
.industry-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Nav links underline */
.nav-link::after {
  transition: transform 0.25s ease;
}

/* Value cards */
.value-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

/* Team cards */
.team-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Pricing cards */
.pricing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Service detail cards */
.service-detail-card {
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}

/* ---- Float animations for decorative elements ---- */

.shield-float .shield-big {
  animation: float-shield 4s ease-in-out infinite;
}

.hero-shield .shield-main {
  animation: float-shield 4.5s ease-in-out infinite;
}

/* ---- Typing cursor for chatbot ---- */

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--sz-accent);
  margin-left: 2px;
  animation: typing-cursor 0.8s ease-in-out infinite;
  vertical-align: text-bottom;
}

/* ---- Loading dots ---- */

.loading-dots::after {
  content: '';
  display: inline-block;
  animation: loading-dots-anim 1.2s steps(4, end) infinite;
}

@keyframes loading-dots-anim {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* ---- Chatbot panel transition ---- */

.chatbot-panel {
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot-panel:not(.open) {
  opacity: 0;
  transform: scale(0.95) translateY(16px);
  pointer-events: none;
}

.chatbot-panel.open {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Override display:none with visibility for animation */
.chatbot-panel {
  display: flex !important;
  visibility: hidden;
}

.chatbot-panel.open {
  visibility: visible;
}

/* ---- Mobile sticky bar ---- */

.mobile-bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---- WhatsApp float animation ---- */

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.whatsapp-float {
  animation: wa-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  animation: none;
  transform: translateY(-4px);
}

/* ---- Page load bar ---- */

.page-load-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--sz-accent);
  z-index: 9999;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--sz-accent);
}

/* ---- Scroll indicator ---- */

.hero-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  opacity: 0.5;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

.hero-scroll-hint svg {
  animation: bounce-down 1.5s ease-in-out infinite;
}

/* ---- Process line draw helper ---- */

.process-line {
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ---- Section underline draw helper ---- */

.section-underline {
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ---- Star fill helpers ---- */

.star {
  transform: scale(0);
  transform-origin: center;
  will-change: transform;
}

/* ---- Reduced motion override ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .gsap-hidden {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-h1-line1,
  .hero-h1-line2,
  .hero-sub,
  .hero-cta-primary,
  .hero-cta-secondary,
  .hero-label,
  .hero-shield,
  .service-card,
  .stat-block,
  .step,
  .testimonial-card,
  .footer-col,
  .section-underline,
  .process-line,
  .star {
    opacity: 1 !important;
    transform: none !important;
  }
}
