/* ==========================================================================
   ANIMATIONS & MOTION SYSTEM - LASTIK SERVISI 724
   High Performance, Smooth 60fps GPU-Accelerated Animations
   100% Compositor Driven (Zero Layout Thrashing, Zero Continuous Repaints)
   ========================================================================== */

/* 1. Live LED Dot Pulsing (GPU Compositor Pseudo-Element Transform + Opacity) */
@keyframes dotPulseRingGPU {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  65% {
    transform: scale(2.6);
    opacity: 0;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.live-dot-green,
.live-dot-red,
.topbar-pulse-dot,
.hero-live-dot {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

.live-dot-green {
  background-color: #10B981;
}

.live-dot-red,
.hero-live-dot {
  background-color: #EF252B;
}

.topbar-pulse-dot {
  background-color: #10B981;
  width: 8px;
  height: 8px;
  margin-right: 4px;
}

.live-dot-green::after,
.live-dot-red::after,
.topbar-pulse-dot::after,
.hero-live-dot::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background-color: inherit;
  pointer-events: none;
  animation: dotPulseRingGPU 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  will-change: transform, opacity;
}

/* Backward compatibility aliases */
@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes pulseGreenDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* 2. Text Gradient Shimmer & Red Title Pulse Effect */
@keyframes textShimmer {
  0% { opacity: 0.92; }
  50% { opacity: 1; }
  100% { opacity: 0.92; }
}

@keyframes titleRedShimmer {
  0%, 100% {
    filter: drop-shadow(0 0 16px rgba(255, 59, 80, 0.6)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(255, 59, 80, 0.85)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.95));
  }
}

/* Eyebrow Line Glow (Transform ScaleX - Zero Reflow) */
.faq-eyebrow-line {
  display: inline-block;
  width: 44px;
  height: 2.5px;
  background: linear-gradient(90deg, #EF252B, rgba(239, 37, 43, 0.3));
  border-radius: 2px;
  margin-left: 6px;
  transform-origin: left center;
  animation: lineGlow 2.5s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes lineGlow {
  0% {
    transform: scaleX(0.72);
    opacity: 0.7;
  }
  100% {
    transform: scaleX(1.18);
    opacity: 1;
  }
}

/* 3. Hero Titles & Badges */
.page-hero-luxury .hero-title-shimmer,
.page-hero-luxury .page-hero-title span.text-red,
.home-hero-section .home-hero-title span.text-red,
.home-hero-section .hero-title-shimmer,
.page-hero-title span.text-red,
.page-hero-title .text-red-shimmer,
.hero-title-shimmer {
  background: linear-gradient(90deg, #FF3B50 0%, #FF6678 25%, #FFC15E 50%, #FF3B50 75%, #FF6678 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: titleRedShimmer 4.5s ease-in-out infinite;
  will-change: filter;
}

.section-title span.text-red,
.section-title .text-red,
.home-section-title span.text-red,
.home-section-title .text-red,
.areas-card-title span.text-red,
.areas-card-title .text-red,
.home-reviews-title span.text-red,
.home-reviews-title .text-red {
  color: #EF252B !important;
  -webkit-text-fill-color: #EF252B !important;
  background: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* 4. Laser Sweep Effect (GPU Transform translateX - Zero Layout Shift) */
.hero-laser-line {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(225, 29, 72, 0.25);
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.4);
}

.hero-laser-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #FFA834 50%, #FFFFFF 75%, transparent);
  animation: laserSweep 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
}

@keyframes laserSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}

/* 5. Handwritten Script Accent & Glowing Badge */
.hero-script-accent {
  position: absolute;
  top: -8px;
  left: calc(100% + 14px);
  transform: rotate(-5deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
  animation: scriptFloat 3.5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes scriptFloat {
  0% { transform: rotate(-5deg) translateY(0); }
  100% { transform: rotate(-3deg) translateY(-5px); }
}

.script-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Caveat', cursive;
  font-size: 1.85rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.4), rgba(15, 23, 42, 0.88));
  border: 1.5px solid rgba(251, 113, 133, 0.6);
  padding: 4px 16px;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  position: relative;
  will-change: transform, opacity;
}

.script-badge-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  border: 1.5px solid rgba(255, 168, 52, 0.7);
  animation: badgeGlow 2.5s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes badgeGlow {
  0% {
    transform: scale(0.98);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.03);
    opacity: 0.9;
  }
}

.script-badge-pulse .fa-bolt {
  color: #F59E0B;
  font-size: 1.2rem;
  filter: drop-shadow(0 0 4px #F59E0B);
  animation: boltFlicker 1.8s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes boltFlicker {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.18);
    opacity: 1;
  }
}

/* 6. Rating Icons & Bolt Glow Pulse */
.rating-bolt-icon i {
  display: inline-block;
  filter: drop-shadow(0 0 3px rgba(239, 37, 43, 0.6));
  animation: boltGlowPulse 2.2s infinite ease-in-out;
  will-change: transform, opacity;
}

@keyframes boltGlowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.22);
    opacity: 1;
  }
}

/* 7. Emergency Call Button Radar & WhatsApp Glow (GPU Pseudo-Elements) */
.btn-hero-call,
.mobile-sticky-call,
.btn-cta-red,
.btn-pulse,
.btn-emergency-call-luxury,
.float-circle-phone {
  position: relative;
  z-index: 1;
}

.btn-hero-call::before,
.mobile-sticky-call::before,
.btn-cta-red::before,
.btn-pulse::before,
.btn-emergency-call-luxury::before,
.float-circle-phone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(239, 37, 43, 0.5);
  z-index: -1;
  pointer-events: none;
  animation: emergencyPulse 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  will-change: transform, opacity;
}

@keyframes emergencyPulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  65% {
    transform: scale(1.14, 1.26);
    opacity: 0;
  }
  100% {
    transform: scale(1.14, 1.26);
    opacity: 0;
  }
}

.btn-whatsapp,
.mobile-sticky-wa,
.float-circle-whatsapp,
.btn-emergency-wa-luxury {
  position: relative;
  z-index: 1;
}

.btn-whatsapp::before,
.mobile-sticky-wa::before,
.float-circle-whatsapp::before,
.btn-emergency-wa-luxury::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.5);
  z-index: -1;
  pointer-events: none;
  animation: waGlow 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0.6s;
  will-change: transform, opacity;
}

@keyframes waGlow {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  65% {
    transform: scale(1.14, 1.24);
    opacity: 0;
  }
  100% {
    transform: scale(1.14, 1.24);
    opacity: 0;
  }
}

/* 8. Phone Text Subtle Glow (Composite Only) */
.phone-glow-digits {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.6px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 18px rgba(239, 37, 43, 0.6);
  animation: phoneTextGlow 2.5s infinite alternate ease-in-out;
  will-change: transform, opacity;
}

@keyframes phoneTextGlow {
  0% {
    opacity: 0.88;
    transform: scale(0.99);
  }
  100% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* 9. Phone Ring Vibration */
@keyframes phoneVibrate {
  0% { transform: rotate(0deg) scale(1); }
  6% { transform: rotate(14deg) scale(1.08); }
  12% { transform: rotate(-14deg) scale(1.08); }
  18% { transform: rotate(12deg) scale(1.08); }
  24% { transform: rotate(-10deg) scale(1.08); }
  30% { transform: rotate(8deg) scale(1.04); }
  36% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(0deg) scale(1); }
}

.btn-hero-call i,
.mobile-sticky-call i,
.header-cta .btn-phone i {
  display: inline-block;
  animation: phoneVibrate 3.2s ease-in-out infinite;
  will-change: transform;
}

/* 10. Button Shimmer Light Sweep Effect (GPU TranslateX) */
@keyframes btnSweep {
  0% { transform: translateX(-150%) rotate(25deg); }
  40%, 100% { transform: translateX(250%) rotate(25deg); }
}

.btn-primary,
.btn-hero-call,
.btn-cta-red {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-hero-call::after,
.btn-cta-red::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-150%) rotate(25deg);
  animation: btnSweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  will-change: transform;
}

/* 11. Live Map Pin Radar Wave */
@keyframes pinRadarWave {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.target-pin-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(239, 37, 43, 0.65);
  z-index: -1;
  animation: pinRadarWave 2s cubic-bezier(0.1, 0.7, 0.1, 1) infinite;
  will-change: transform, opacity;
}

.target-pin:nth-child(2n) .target-pin-dot::before { animation-delay: 0.35s; }
.target-pin:nth-child(3n) .target-pin-dot::before { animation-delay: 0.7s; }
.target-pin:nth-child(5n) .target-pin-dot::before { animation-delay: 1.1s; }

/* 12. Floating Smooth Float */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.floating-badge,
.hero-floating-card {
  animation: floatSlow 4s ease-in-out infinite;
  will-change: transform;
}

/* 13. Scroll Reveal Animations (Hardware Accelerated, 60fps) */
.reveal-on-scroll,
.luxury-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed,
.reveal-on-scroll.is-visible,
.luxury-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay calculations */
.luxury-reveal[data-stagger="0"], .delay-100 { transition-delay: 0ms; }
.luxury-reveal[data-stagger="1"], .delay-200 { transition-delay: 50ms; }
.luxury-reveal[data-stagger="2"], .delay-300 { transition-delay: 100ms; }
.luxury-reveal[data-stagger="3"], .delay-400 { transition-delay: 150ms; }
.luxury-reveal[data-stagger="4"] { transition-delay: 200ms; }
.luxury-reveal[data-stagger="5"] { transition-delay: 250ms; }

/* Directional Lateral reveals */
.luxury-reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.luxury-reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.luxury-reveal-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.luxury-reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Card Luxury Glow & Micro-Lift Hover Transitions */
.service-card-luxury,
.service-card,
.home-service-card,
.gallery-card-item,
.blog-card-item,
.contact-action-card,
.contact-step-card,
.about-pillar-card,
.about-milestone-card,
.why-pro-card,
.home-equip-card,
.district-card,
.trust-item,
.emp-trust-pill,
.home-faq-item,
.faq-item-luxury {
  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 cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.service-card-luxury:hover,
.service-card:hover,
.home-service-card:hover,
.gallery-card-item:hover,
.blog-card-item:hover,
.contact-action-card:hover,
.about-pillar-card:hover,
.why-pro-card:hover,
.home-equip-card:hover,
.district-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 0 20px -2px rgba(239, 37, 43, 0.15) !important;
  border-color: rgba(239, 37, 43, 0.4) !important;
}

/* Floating Elements Magnetic Glow */
.float-circle-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.float-circle-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 28px rgba(239, 37, 43, 0.45);
}

.counter-animated {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 14. Mobile Performance Optimization (Reduce CPU Pressure on 60Hz/120Hz Displays) */
@media (max-width: 768px) {
  .hero-beacon-flare,
  .hero-particles {
    display: none !important;
  }
  .btn-primary::after,
  .btn-hero-call::after,
  .btn-cta-red::after {
    animation-duration: 6s;
  }
  .script-badge-pulse {
    backdrop-filter: none;
    background: rgba(15, 23, 42, 0.95);
  }
}

/* 15. Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-bg-media,
  .btn-hero-call,
  .mobile-sticky-call,
  .target-pin-dot::before,
  .btn-primary::after,
  .hero-laser-line::after,
  .btn-hero-call::before,
  .btn-whatsapp::before {
    animation: none !important;
  }
  .reveal-on-scroll,
  .luxury-reveal,
  .luxury-reveal-left,
  .luxury-reveal-right {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* 16. Mobile Scroll Performance & Zero-Jank Visibility (Max-Width 991px) */
@media (max-width: 991px) {
  .reveal-on-scroll,
  .luxury-reveal,
  .luxury-reveal-left,
  .luxury-reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}
