/* ============================================================
   DARSI — Premium Enhancement Layer
   RULES: Zero color changes. Zero background changes.
   Only: motion, polish, transitions, accessibility.
   ============================================================ */

/* --- 1. SMOOTH SCROLL --- */
html {
  scroll-behavior: smooth;
}

/* --- 2. RESPECT REDUCED MOTION (Accessibility) --- */
@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;
  }
}

/* --- 3. FEATURE CARDS — smoother hover --- */
.appie-single-service-2 {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 4. SOCIAL ICONS — brand-color hover --- */
.footer-about-widget .social ul li a {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-about-widget .social ul li a:hover {
  transform: translateY(-3px);
  color: #fff;
}

/* Email — red */
.footer-about-widget .social ul li a[href^="mailto"]:hover {
  background: #EA4335;
}

/* WhatsApp — green */
.footer-about-widget .social ul li a[href*="wa.me"]:hover {
  background: #25D366;
}

/* Instagram — gradient */
.footer-about-widget .social ul li a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Facebook — blue */
.footer-about-widget .social ul li a[href*="facebook"]:hover {
  background: #1877F2;
}

/* Offcanvas (mobile menu) social — same brand colors */
.offcanvas-social ul li a {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.offcanvas-social ul li a:hover {
  color: #fff;
}

.offcanvas-social ul li a[href*="facebook"]:hover {
  background: #1877F2;
  border-color: #1877F2;
}

.offcanvas-social ul li a[href*="wa.me"]:hover {
  background: #25D366;
  border-color: #25D366;
}

.offcanvas-social ul li a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #dc2743;
}

.offcanvas-social ul li a[href^="mailto"]:hover {
  background: #EA4335;
  border-color: #EA4335;
}

/* --- 5. FAQ ACCORDION — smoother open/close --- */
.faq-accrodion .accrodion .accrodion-content {
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.faq-accrodion .accrodion {
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 6. BACK-TO-TOP — hover lift --- */
.back-to-top a {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- 7. STICKY NAVBAR — glass blur on scroll --- */
.appie-header-area.appie-sticky {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* --- 8. FOCUS-VISIBLE — keyboard accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3DC0C8;
  outline-offset: 2px;
}

/* --- 9. STATS NUMBERS — tabular alignment --- */
.appie-fun-fact-item .title {
  font-variant-numeric: tabular-nums;
}

/* --- 10. TEXT SELECTION — brand highlight --- */
::selection {
  background: rgba(21, 21, 67, 0.15);
}

::-moz-selection {
  background: rgba(21, 21, 67, 0.15);
}

/* --- 11. HERO IMAGE — subtle hover float --- */
.appie-hero-thumb img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.appie-hero-thumb:hover img {
  transform: translateY(-6px);
}

/* --- 12. FOOTER LINKS — animated underline on hover --- */
.footer-navigation ul li a {
  position: relative;
}

.footer-navigation ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-navigation ul li a:hover::after {
  width: 100%;
}

/* --- 13. TOUCH OPTIMIZATION (mobile) --- */
@media (pointer: coarse) {
  .main-btn,
  .appie-hero-content ul li a,
  .footer-about-widget .social ul li a,
  .back-to-top a {
    touch-action: manipulation;
  }
}

/* --- 14. DOWNLOAD BOXES — hover lift --- */
.appie-download-3-box {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.appie-download-3-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* --- 15. HERO BUTTONS — smoother hover transition --- */
.appie-hero-content ul li a {
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.appie-hero-content ul li a:hover {
  transform: translateY(-2px);
}

/* --- 16. FLOATING WHATSAPP BUTTON --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  color: #fff;
  text-decoration: none;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* Pulse animation to grab attention */
.whatsapp-float::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: whatsapp-pulse 2s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::after {
    animation: none;
  }
}

@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}
