/* animations.css */

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideInLeft {
    from { 
      transform: translateX(-50px);
      opacity: 0;
    }
    to { 
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slideInRight {
    from { 
      transform: translateX(50px);
      opacity: 0;
    }
    to { 
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slideInUp {
    from { 
      transform: translateY(50px);
      opacity: 0;
    }
    to { 
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  body {
    overflow-x: hidden;
  }


  /* Animation Classes */
  .animate-fadeIn {
    animation: fadeIn 1s ease-in-out;
  }
  
  .animate-slideInLeft {
    animation: slideInLeft 1s ease-out;
  }
  
  .animate-slideInRight {
    animation: slideInRight 1s ease-out;
  }
  
  .animate-slideInUp {
    animation: slideInUp 1s ease-out;
  }
  
  .animate-pulse {
    animation: pulse 2s infinite;
  }
  
  /* Delays */
  .delay-1 { animation-delay: 0.5s; }
  .delay-2 { animation-delay: 1s; }
  .delay-3 { animation-delay: 1.5s; }
  
  /* Section Animations */
  .main-slider .item {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  
  .main-slider .item.active {
    opacity: 1;
  }
  
  /* Hover Effects */
  .img-hover-effect:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease-in-out;
  }
  
  .btn-hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
    background-color: #000;
    color: #fff;
  }
  
  /* Scroll Animations */
  /* [data-animate-on-scroll] {
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  }
  
  [data-animate-on-scroll].animated {
    opacity: 1;
    transform: translateY(0) !important;
  } */

  [data-animate-on-scroll] {
    opacity: 0;
    /* transform: translateX(300px)rotate(10deg); */
    transition: all 1s ease-out;
    will-change: transform, opacity;
  }
  
  [data-animate-on-scroll].animate-left.out-of-view {
    transform: translateX(-300px)rotate(-90deg);
  }
  [data-animate-on-scroll].animate-right.out-of-view {
    transform: translateX(300px)rotate(90deg);
  }
  
  [data-animate-on-scroll].in-view {
    opacity: 1;
    transform: translateX(0)rotate(0deg);
  }

  [data-animate-on-scroll] {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s ease-out;
  }
  
  [data-animate-on-scroll].in-view {
    opacity: 1;
    transform: translateY(0);
  }
  
  .animate-drop {
    transform: translateY(-40px);
  }
  
  .animate-slide {
    transform: translateX(100px);
  }
  
  .animate-slide.in-view {
    transform: translateX(0);
    opacity: 1;
  }

  @media (max-width: 768px) {
  [data-animate-on-scroll].animate-left.out-of-view {
    transform: translateX(-100px) rotate(-90deg);
  }

  [data-animate-on-scroll].animate-right.out-of-view {
    transform: translateX(100px) rotate(90deg);
  }
}
  
  /* Optional: staggered delay */
  .animate-slide:nth-child(1) { transition-delay: 0.2s; }
  .animate-slide:nth-child(2) { transition-delay: 0.4s; }
  .animate-slide:nth-child(3) { transition-delay: 0.6s; }
  .animate-slide:nth-child(4) { transition-delay: 0.8s; }
  .animate-slide:nth-child(5) { transition-delay: 1s; }
  .animate-slide:nth-child(6) { transition-delay: 1.2s; }
  

  
  /* In animations.css */
#owl-demo1 .item {
  opacity: 0.5;
  transition: opacity 0.5s ease-in-out;
}
#owl-demo1 .item.active {
  opacity: 1;
}

.livestock-img:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-in-out;
}

img:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-in-out;
}

.hnys-titler{
  color: gray;
}
.hnys-titler:hover{
  color: gray;
  cursor:auto !important;
}
/* .bg-pic{
  position: absolute;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: url("/assets/images/abis-bg.png");
  background-attachment: fixed;
  background-size: cover;
  z-index: 0;
} */

.view-link {
  color: #1fa12e;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

.view-link .arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.view-link:hover .arrow {
  transform: translateX(5px);
}

.view-link:hover {
  color: darkgreen;
}
