/* ========================================
   RESPONSIVE ANIMATION FIXES
   ======================================== */

/* Reduce animation intensity on mobile */
@media (max-width: 767px) {
  /* Faster animations on mobile */
  [data-animation] {
    animation-duration: 0.4s !important;
  }

  /* Reduce delays on mobile */
  [data-delay="0.2s"],
  [data-delay=".2s"] {
    animation-delay: 0.1s !important;
  }

  [data-delay="0.4s"],
  [data-delay=".4s"] {
    animation-delay: 0.2s !important;
  }

  [data-delay="0.6s"],
  [data-delay=".6s"] {
    animation-delay: 0.3s !important;
  }

  [data-delay="0.8s"],
  [data-delay=".8s"] {
    animation-delay: 0.4s !important;
  }

  /* Slider content mobile fixes */
  .slider-content h1 {
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
  }

  .slider-content p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }

  .slider-btn {
    margin-top: 10px !important;
    margin-bottom: 40px !important;
  }

  .slider-btn .btn {
    padding: 12px 25px !important;
    font-size: 14px !important;
  }

  /* Hero section mobile */
  .single-slider {
    min-height: 500px !important;
    padding: 60px 0 40px !important;
  }

  .overlay-bg {
    display: none !important; /* Hide overlay on mobile for better performance */
  }

  .img-main {
    margin-bottom: 30px !important;
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Features mobile */
  .features-box {
    margin-bottom: 10px !important;
    padding: 15px 15px !important;
  }

  .features-icon h4 {
    font-size: 18px !important;
    margin-top: 15px !important;
  }

  .features-content p {
    font-size: 13px !important;
  }

  /* Services mobile */
  .s-single-services {
    padding: 25px 15px !important;
    min-height: auto !important;
  }

  .services-icon {
    margin-bottom: 15px !important;
  }

  .services-icon img {
    width: 40px !important;
    height: 40px !important;
  }

  .second-services-content h5 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .second-services-content p {
    font-size: 13px !important;
  }

  /* Counter mobile */

  .single-counter .count {
    font-size: 32px !important;
  }

  .single-counter p {
    font-size: 14px !important;
  }

  /* About section mobile */
  .about-area .s-about-img {
    margin-bottom: 30px !important;
  }

  .about-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .about-title h3 {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  .about-title h2 {
    font-size: 14px !important;
  }

  .about-content p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* Team mobile */
  .single-team {
    margin-bottom: 40px !important;
  }

  .team-info h4 {
    font-size: 18px !important;
  }

  /* Blog mobile */
  .single-post2 {
    margin-bottom: 30px !important;
  }

  .blog-content2 h4 {
    font-size: 18px !important;
  }

  /* Section titles mobile */
  .section-title h5 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  .section-title h2 {
    font-size: 14px !important;
  }

  /* CTA section mobile */
  .cat-area .section-title h5 {
    font-size: 22px !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
  }

  .cat-area .btn {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    text-align: center !important;
  }

  /* Reduce motion for performance */
  .single-slider .image-layer {
    background-attachment: scroll !important;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  [data-animation] {
    animation-duration: 0.5s !important;
  }

  .slider-content h1 {
    font-size: 36px !important;
  }

  .slider-content p {
    font-size: 15px !important;
  }

  .section-title h5 {
    font-size: 32px !important;
  }
}

/* Respect user's motion preferences */
@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;
  }

  [data-animation] {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover animations on touch devices */
  .s-single-services:hover,
  .features-box:hover,
  .single-team:hover,
  .single-post2:hover {
    transform: none !important;
  }

  /* Make tap areas larger */
  .btn,
  a {
    min-height: 44px !important;
    min-width: 44px !important;
  }
}

/* Landscape mobile fixes */
@media (max-width: 767px) and (orientation: landscape) {
  .single-slider {
    min-height: 400px !important;
    padding: 40px 0 30px !important;
  }

  .slider-content h1 {
    font-size: 24px !important;
  }

  .img-main {
    max-width: 200px !important;
  }
}

/* Small mobile devices */
@media (max-width: 375px) {
  .slider-content h1 {
    font-size: 24px !important;
  }

  .slider-content p {
    font-size: 13px !important;
  }

  .slider-btn .btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }

  .section-title h5 {
    font-size: 22px !important;
  }

  .features-icon h4 {
    font-size: 16px !important;
  }

  .s-single-services h5 {
    font-size: 15px !important;
  }
}


