@keyframes slideRightToLeft {
    0% {
      transform: translateX(100%);
      opacity: 0;
    }
    10% {
      opacity: 1;
      transform: translateX(0);
    }
    20% {
      opacity: 1;
      transform: translateX(0);
    }
    30% {
      opacity: 0;
      transform: translateX(-100%);
    }
    100% {
      opacity: 0;
      transform: translateX(-100%);
    }
  }
  
  /* Slower transitions with reduced gap between images */
  .animate-slideRightToLeft1 {
    animation: slideRightToLeft 15s ease-in-out infinite 0s;
  }
  .animate-slideRightToLeft2 {
    animation: slideRightToLeft 15s ease-in-out infinite 3s;
  }
  .animate-slideRightToLeft3 {
    animation: slideRightToLeft 15s ease-in-out infinite 6s;
  }
  .animate-slideRightToLeft4 {
    animation: slideRightToLeft 15s ease-in-out infinite 9s;
  }
  .animate-slideRightToLeft5 {
    animation: slideRightToLeft 15s ease-in-out infinite 12s;
  }
  
    .relative:hover .animate-slideRightToLeft1,
    .relative:hover .animate-slideRightToLeft2,
    .relative:hover .animate-slideRightToLeft3,
    .relative:hover .animate-slideRightToLeft4,
    .relative:hover .animate-slideRightToLeft5 {
      animation-play-state: paused;
    }
  
    .slide {
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1); /* Custom easing */
    z-index: 1; /* Ensure proper stacking */
  }
  
  .slide:hover {
    animation-play-state: paused;
    z-index: 2; /* Bring hovered slide to front */
  }
  
    /*glass effect styles for services section*/
  
    /* Glassmorphism styles */
  .glass-card {
    background: rgba(255, 255, 255, 0.1); /* Light transparent background */
    backdrop-filter: blur(10px); /* Blur the background */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Soft shadow */
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .glass-card:hover {
    background: rgba(255, 255, 255, 0.2); /* Slightly more opaque on hover */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
  }
  
  /* Ensure text is bold and readable */
  .glass-card h3 {
    font-weight: bold;
    color: #171616; /* Fully white for titles */
  }
  
  .glass-card p {
    color: rgba(79, 76, 76, 0.875); /* Slightly dimmed white for descriptions */
  }
  
  /* Icon styling */
  .glass-icon {
    width: 3.5rem;        /* Fixed container size */
    height: 3.5rem;
    display: flex !important;       /* Force flex display */
    align-items: center !important; /* Vertical center */
    justify-content: center !important; /* Horizontal center */
    margin: 0 auto 1rem auto;      /* Center in parent and add bottom margin */
    background-color: rgba(59, 130, 246, 0.7);
    border-radius: 9999px;
  }
  
  .glass-icon svg {
    color: white; /* White icon color */
    width: 1.5rem;
    height: 1.5rem;
  }

  .svg-external {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: 
      brightness(0)    /* Blacken all colors */
      invert(1)        /* Convert black to white */
      drop-shadow(0 0 0 transparent); /* Fix for Safari */
  }

  .glass-icon .svg-external {
    width: 1.8rem !important;  /* Slightly reduced from 2rem */
    height: 1.8rem !important;
    object-fit: contain;
    /* Remove color filters to keep black icons */
    filter: none !important; 
  }
  
  /* Override SVG internal colors (if filter doesn't work) */
  
  
  .glass-icon .svg-external path,
.glass-icon .svg-external rect,
.glass-icon .svg-external circle {
  fill: currentColor !important;
  stroke: currentColor !important;
}


  /*new addition for mobile friendly version*/
/* for why choose us section*/
/* Alternative more compatible version */
@media (max-width: 767px) {
  /* Add a specific class to your Why Choose Us section in HTML */
  .why-choose-us-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .why-choose-us-section .grid.grid-cols-1.md\:grid-cols-2 {
    gap: 2rem;
  }

  .why-choose-us-section .flex-col.justify-between {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .why-choose-us-section .bg-gray-800 {
    margin: 0;
    padding: 1.5rem;
  }

  .why-choose-us-section .flex.items-center {
    min-height: 250px;
    order: -1;
  }
}


/* smaller header*/
@media (max-width: 767px) {
  /* Header container */
  header.bg-white {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    position: sticky;
    top: 0;
  }

  /* Logo sizing */
  .flex-shrink-0 img {
    height: 1.75rem !important;
    width: auto;
  }

  /* Text sizing */
  .text-2xl.font-bold.text-blue-700 {
    font-size: 1rem !important;
    line-height: 1.1rem;
  }

  /* Hide slogan completely on mobile */
  .text-xs.font-medium.text-gray-500 {
    display: block !important; /* Change from none to block */
    font-size: 0.5rem !important; /* Make it extra small */
    line-height: 0.75rem;
    margin-top: 0.1rem; /* Reduce spacing */
    white-space: nowrap; /* Prevent line breaks */
  }
  /* Hamburger menu icon */
  #menu-toggle svg {
    height: 1.1rem;
    width: 1.1rem;
  }

  /* Header inner spacing */
  .container.mx-auto.px-6.py-3 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }
}

/* resources section and why choose us overlap fix*/

@media (max-width: 767px) {
  /* Fix for Why Choose Us section */
  .why-choose-us-section {
    padding-bottom: 2rem !important; /* Reduced from 3rem */
  }

  /* Fix for Resources section */
  #resources {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Ensure proper spacing between sections */
  section.bg-gray-100 + section.bg-gray-100 {
    padding-top: 0 !important;
  }

  /* Adjust grid layout */
  .why-choose-us-section .grid {
    height: auto !important; /* Override any fixed height */
    grid-template-rows: auto auto; /* Keep your existing row definition */
    gap: 1.5rem;
  }
  /* Content boxes sizing */
  .why-choose-us-section .flex-col {
    gap: 1rem;
  }

  /* Image container adjustment */
  .why-choose-us-section .flex.items-center {
    min-height: 200px; /* Reduced from 250px */
  }
  #resources {
    padding-top: 1rem !important;
  }
}
/* Text wrapping on mobile view resolved*/
@media (max-width: 767px) {
  /* Target all paragraph elements in these sections */
  #why-choose-us p,
  #industries p,
  #contact p {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    width: 100% !important;
    display: block !important;
  }

  /* Fix for industry boxes text */
  #industries .grid > div {
    white-space: normal !important;
    overflow: visible !important;
    padding: 1rem !important;
  }
}

/* WhatsApp Button Animation */
.whatsapp-float {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}