/* ===================================
   Banner/Hero Section Mobile Enhancements
   =================================== */

/* Hero4 Section - Mobile Optimizations */
@media (max-width: 991px) {
  .hero4-section-area {
    padding: 120px 0 40px !important;
    min-height: auto !important;
  }
  
  .hero4-section-area .container {
    max-width: 100%;
  }
  
  .hero4-section-area .row {
    margin: 0;
  }
}

@media (max-width: 767px) {
  .hero4-section-area {
    padding: 100px 0 30px !important;
  }
}

@media (max-width: 576px) {
  .hero4-section-area {
    padding: 90px 0 20px !important;
  }
}

/* Hero Header Content - Mobile Typography & Spacing */
@media (max-width: 991px) {
  .hero4-section-area .hero-header {
    padding: 0 20px !important;
    top: 0 !important;
    margin-bottom: 40px !important;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .hero4-section-area .hero-header {
    padding: 0 20px !important;
    margin-bottom: 30px !important;
  }
}

@media (max-width: 576px) {
  .hero4-section-area .hero-header {
    padding: 0 15px !important;
    margin-bottom: 25px !important;
  }
}

/* Hero Heading - Responsive Typography */
@media (max-width: 991px) {
  .hero4-section-area .hero-header h2 {
    font-size: 28px !important;
    line-height: 38px !important;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 767px) {
  .hero4-section-area .hero-header h2 {
    font-size: 24px !important;
    line-height: 34px !important;
    margin-bottom: 14px !important;
  }
}

@media (max-width: 576px) {
  .hero4-section-area .hero-header h2 {
    font-size: 20px !important;
    line-height: 30px !important;
    margin-bottom: 12px !important;
  }
}

/* Hero Paragraph - Mobile Readability */
@media (max-width: 991px) {
  .hero4-section-area .hero-header p {
    font-size: 14px !important;
    line-height: 24px !important;
    margin-bottom: 20px !important;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .hero4-section-area .hero-header p {
    font-size: 13px !important;
    line-height: 22px !important;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 576px) {
  .hero4-section-area .hero-header p {
    font-size: 13px !important;
    line-height: 21px !important;
    margin-bottom: 14px !important;
  }
}

/* Button Area - Touch-Friendly */
@media (max-width: 991px) {
  .hero4-section-area .hero-header .btn-area1 {
    text-align: left;
    margin-top: 20px;
  }

  .hero4-section-area .hero-header .btn-area1 .vl-btn4 {
    padding: 14px 28px !important;
    font-size: 14px !important;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .hero4-section-area .hero-header .btn-area1 .vl-btn4 {
    padding: 12px 24px !important;
    font-size: 13px !important;
    min-height: 44px;
  }
}

/* Background Element - Mobile Optimization */
@media (max-width: 991px) {
  .hero4-section-area .hero-header .elements12 {
    height: 350px !important;
    width: 350px !important;
    max-width: 350px !important;
    max-height: 350px !important;
    top: -50px !important;
    left: -30px !important;
    transform: none;
    opacity: 0.4;
  }
}

@media (max-width: 767px) {
  .hero4-section-area .hero-header .elements12 {
    height: 300px !important;
    width: 300px !important;
    max-width: 300px !important;
    max-height: 300px !important;
    top: -40px !important;
    left: -40px !important;
    opacity: 0.35;
  }
}

@media (max-width: 576px) {
  .hero4-section-area .hero-header .elements12 {
    height: 250px !important;
    width: 250px !important;
    max-width: 250px !important;
    max-height: 250px !important;
    top: -30px !important;
    left: -50px !important;
    opacity: 0.3;
  }
}

/* Hero Images Area - Mobile Layout */
@media (max-width: 991px) {
  .hero4-section-area .hero4-images-area {
    position: relative !important;
    left: 0 !important;
    margin-top: 0;
    margin-bottom: -60px;
    padding: 0 20px 0 20px;
    width: 100% !important;
    height: auto;
  }

  .hero4-section-area .hero4-images-area .bg-area {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
  
  .hero4-section-area .hero4-images-area .bg-area .hero-bg2 {
    width: 500px;
    height: 500px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.85;
  }

  .hero4-section-area .hero4-images-area .img1 {
    position: relative !important;
    left: 0 !important;
    height: 380px !important;
    width: 100% !important;
    max-width: 380px;
    margin: 0 auto;
    display: block;
    text-align: center;
    z-index: 2;
  }

  .hero4-section-area .hero4-images-area .img1 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
  }
  
  .hero4-section-area .hero4-images-area .icons-area {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hero4-section-area .hero4-images-area {
    padding: 0 20px;
    margin-bottom: -50px;
  }

  .hero4-section-area .hero4-images-area .img1 {
    height: 320px !important;
    max-width: 320px;
  }

  .hero4-section-area .hero4-images-area .bg-area .hero-bg2 {
    width: 450px;
    height: 450px;
  }
  
  .hero4-section-area .hero4-images-area .icons-area > div {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 576px) {
  .hero4-section-area .hero4-images-area {
    padding: 0 15px;
    margin-bottom: -40px;
  }

  .hero4-section-area .hero4-images-area .img1 {
    height: 280px !important;
    max-width: 280px;
  }

  .hero4-section-area .hero4-images-area .bg-area .hero-bg2 {
    width: 400px;
    height: 400px;
  }
  
  .hero4-section-area .hero4-images-area .icons-area > div {
    width: 48px;
    height: 48px;
  }

  .hero4-section-area .hero4-images-area .icons-area > div img {
    width: 22px;
    height: 22px;
  }
}

/* Floating Icons - Mobile Repositioning */
@media (max-width: 991px) {
  .hero4-section-area .hero4-images-area .icons-area .icons1,
  .hero4-section-area .hero4-images-area .icons-area .icons2,
  .hero4-section-area .hero4-images-area .icons-area .icons3,
  .hero4-section-area .hero4-images-area .icons-area .icons4,
  .hero4-section-area .hero4-images-area .icons-area .icons5,
  .hero4-section-area .hero4-images-area .icons-area .icons6 {
    height: 60px !important;
    width: 60px !important;
    line-height: 60px !important;
    box-shadow: 0px 3px 8px 0px rgba(180, 170, 251, 0.3) !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons1 img,
  .hero4-section-area .hero4-images-area .icons-area .icons2 img,
  .hero4-section-area .hero4-images-area .icons-area .icons3 img,
  .hero4-section-area .hero4-images-area .icons-area .icons4 img,
  .hero4-section-area .hero4-images-area .icons-area .icons5 img,
  .hero4-section-area .hero4-images-area .icons-area .icons6 img {
    max-width: 28px;
    max-height: 28px;
  }
}

@media (max-width: 767px) {
  .hero4-section-area .hero4-images-area .icons-area .icons1,
  .hero4-section-area .hero4-images-area .icons-area .icons2,
  .hero4-section-area .hero4-images-area .icons-area .icons-area .icons3,
  .hero4-section-area .hero4-images-area .icons-area .icons4,
  .hero4-section-area .hero4-images-area .icons-area .icons5,
  .hero4-section-area .hero4-images-area .icons-area .icons6 {
    height: 55px !important;
    width: 55px !important;
    line-height: 55px !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons1 img,
  .hero4-section-area .hero4-images-area .icons-area .icons2 img,
  .hero4-section-area .hero4-images-area .icons-area .icons3 img,
  .hero4-section-area .hero4-images-area .icons-area .icons4 img,
  .hero4-section-area .hero4-images-area .icons-area .icons5 img,
  .hero4-section-area .hero4-images-area .icons-area .icons6 img {
    max-width: 26px;
    max-height: 26px;
  }
}

@media (max-width: 576px) {
  .hero4-section-area .hero4-images-area .icons-area .icons1,
  .hero4-section-area .hero4-images-area .icons-area .icons2,
  .hero4-section-area .hero4-images-area .icons-area .icons3,
  .hero4-section-area .hero4-images-area .icons-area .icons4,
  .hero4-section-area .hero4-images-area .icons-area .icons5,
  .hero4-section-area .hero4-images-area .icons-area .icons6 {
    height: 48px !important;
    width: 48px !important;
    line-height: 48px !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons1 img,
  .hero4-section-area .hero4-images-area .icons-area .icons2 img,
  .hero4-section-area .hero4-images-area .icons-area .icons3 img,
  .hero4-section-area .hero4-images-area .icons-area .icons4 img,
  .hero4-section-area .hero4-images-area .icons-area .icons5 img,
  .hero4-section-area .hero4-images-area .icons-area .icons6 img {
    max-width: 22px;
    max-height: 22px;
  }
}

/* Individual Icon Positioning for Mobile */
@media (max-width: 991px) {
  .hero4-section-area .hero4-images-area .icons-area .icons1 {
    top: -30px !important;
    left: 10% !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons2 {
    left: 5% !important;
    bottom: 35% !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons3 {
    top: 30px !important;
    left: 40% !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons4 {
    top: 30px !important;
    right: 10% !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons5 {
    bottom: 40% !important;
    right: 5% !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons6 {
    bottom: 20px !important;
    right: 15% !important;
  }
}

@media (max-width: 576px) {
  .hero4-section-area .hero4-images-area .icons-area .icons1 {
    top: -20px !important;
    left: 5% !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons2 {
    left: 0 !important;
    bottom: 40% !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons3 {
    top: 20px !important;
    left: 35% !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons4 {
    top: 20px !important;
    right: 5% !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons5 {
    bottom: 35% !important;
    right: 0 !important;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons6 {
    bottom: 10px !important;
    right: 10% !important;
  }
}

/* Spacing Utilities for Mobile */
@media (max-width: 767px) {
  .hero4-section-area .space16 {
    height: 10px !important;
  }

  .hero4-section-area .space20 {
    height: 12px !important;
  }

  .hero4-section-area .space40 {
    height: 20px !important;
  }
}

@media (max-width: 576px) {
  .hero4-section-area .space16 {
    height: 8px !important;
  }

  .hero4-section-area .space20 {
    height: 10px !important;
  }

  .hero4-section-area .space40 {
    height: 16px !important;
  }
}

/* Row Alignment - Mobile Stack */
@media (max-width: 991px) {
  .hero4-section-area .row {
    flex-direction: column;
  }

  .hero4-section-area .row .col-lg-6,
  .hero4-section-area .row .col-lg-5 {
    width: 100%;
    max-width: 100%;
  }
}

/* Animation Enhancement for Mobile */
@media (max-width: 767px) {
  .hero4-section-area .hero-header h2,
  .hero4-section-area .hero-header p,
  .hero4-section-area .hero-header .btn-area1 {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
  }

  .hero4-section-area .hero-header h2 {
    animation-delay: 0.2s;
  }

  .hero4-section-area .hero-header p {
    animation-delay: 0.4s;
  }

  .hero4-section-area .hero-header .btn-area1 {
    animation-delay: 0.6s;
  }

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

/* Icon Float Animation for Mobile */
@media (max-width: 991px) {
  .hero4-section-area .hero4-images-area .icons-area .icons1,
  .hero4-section-area .hero4-images-area .icons-area .icons2,
  .hero4-section-area .hero4-images-area .icons-area .icons3,
  .hero4-section-area .hero4-images-area .icons-area .icons4,
  .hero4-section-area .hero4-images-area .icons-area .icons5,
  .hero4-section-area .hero4-images-area .icons-area .icons6 {
    animation: floatIcon 3s ease-in-out infinite;
  }

  .hero4-section-area .hero4-images-area .icons-area .icons2,
  .hero4-section-area .hero4-images-area .icons-area .icons4,
  .hero4-section-area .hero4-images-area .icons-area .icons6 {
    animation-delay: 1.5s;
  }

  @keyframes floatIcon {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }
}

/* Container Padding Override for Mobile */
@media (max-width: 767px) {
  .hero4-section-area .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 576px) {
  .hero4-section-area .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Touch Feedback Enhancement */
@media (max-width: 991px) and (hover: none) {
  .hero4-section-area .hero-header .btn-area1 .vl-btn4:active {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(0.98);
    transition: all 0.1s ease;
  }
}

/* Prevent Text Selection on Touch */
@media (max-width: 767px) {
  .hero4-section-area .hero-header h2 {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}

/* High DPI Screen Optimization */
@media (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2),
       (max-width: 767px) and (min-resolution: 192dpi) {
  .hero4-section-area .hero4-images-area .img1 img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== HIDE ANIMATED ELEMENTS/ICONS ON MOBILE ===== */
@media (max-width: 991px) {
  /* Hide floating animated elements */
  .elements12.keyframe5 {
    display: none !important;
  }
  
  /* Hide counter box animation */
  .counter-boxarea {
    display: none !important;
  }
  
  /* Hide benefit box icons on mobile */
  .benefites-widget-boxarea .icons {
    display: none !important;
  }
  
  /* Hide floating icons in hero section */
  .hero4-images-area .icons-area {
    display: none !important;
  }
  
  /* ===== SLOW DOWN ANIMATIONS ON MOBILE ONLY ===== */
  /* Slow down keyframe animations */
  .keyframe5 {
    animation-duration: 8s !important;
  }

  /* Slow down floating icon animations */
  .hero4-images-area .icons-area .icons1,
  .hero4-images-area .icons-area .icons2,
  .hero4-images-area .icons-area .icons3,
  .hero4-images-area .icons-area .icons4,
  .hero4-images-area .icons-area .icons5,
  .hero4-images-area .icons-area .icons6 {
    animation: floatIcon 6s ease-in-out infinite !important;
  }

  /* Slow down AOS animations */
  [data-aos] {
    transition-duration: 1200ms !important;
  }

  [data-aos][data-aos-duration="800"] {
    transition-duration: 1400ms !important;
  }

  [data-aos][data-aos-duration="900"] {
    transition-duration: 1500ms !important;
  }

  [data-aos][data-aos-duration="1000"] {
    transition-duration: 1600ms !important;
  }

  /* Slow down text anime style */
  .text-anime-style-3 {
    animation-duration: 2s !important;
  }

  /* Slow down image animations */
  .image-anime {
    animation-duration: 2s !important;
  }
  
  /* Slow down marquee animation on mobile */
  .slider4-section-area .marquee-wrap .marquee-text {
    animation: marquee 40s linear infinite !important;
  }
}
