/* Flying Birds and Natural Elements Animations */

/* Flying Birds Animations */
.trv-inr-bnr-birds {
  position: absolute;
  top: 20%;
  left: -10%;
  z-index: 2;
  animation: flyBirdAcross1 25s linear infinite;
}

.trv-inr-bnr-bird-1 {
  animation: flapWings 0.5s steps(3) infinite;
  transform-origin: center;
}

.trv-inr-bnr-birds-group {
  position: absolute;
  top: 35%;
  left: -15%;
  z-index: 2;
}

.trv-inr-bnr-bird-2 {
  position: absolute;
  animation: flyBirdAcross2 30s linear infinite;
  animation-delay: 5s;
}

.trv-inr-bnr-bird-2 svg {
  animation: flapWings 0.6s steps(3) infinite;
}

.trv-inr-bnr-bird-3 {
  position: absolute;
  left: 60px;
  top: 30px;
  animation: flyBirdAcross3 28s linear infinite;
  animation-delay: 8s;
}

.trv-inr-bnr-bird-3 svg {
  animation: flapWings 0.55s steps(3) infinite;
  animation-delay: 0.2s;
}

/* Floating Leaves */
.trv-inr-bnr-leaves {
  position: absolute;
  top: 15%;
  left: 5%;
  z-index: 1;
  animation: floatLeaf 12s ease-in-out infinite;
}

.trv-inr-bnr-leaf-1 {
  animation: rotateLeaf 8s ease-in-out infinite;
}

/* Mountain Silhouette */
.trv-inr-bnr-mountain {
  position: absolute;
  bottom: 0;
  right: 5%;
  z-index: 1;
  opacity: 0.4;
  animation: fadeInOut 10s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes flyBirdAcross1 {
  0% {
    transform: translateX(-10vw) translateY(0px);
  }
  25% {
    transform: translateX(25vw) translateY(-20px);
  }
  50% {
    transform: translateX(50vw) translateY(10px);
  }
  75% {
    transform: translateX(75vw) translateY(-15px);
  }
  100% {
    transform: translateX(110vw) translateY(5px);
  }
}

@keyframes flyBirdAcross2 {
  0% {
    transform: translateX(-15vw) translateY(0px);
  }
  30% {
    transform: translateX(30vw) translateY(-30px);
  }
  60% {
    transform: translateX(60vw) translateY(20px);
  }
  100% {
    transform: translateX(115vw) translateY(-10px);
  }
}

@keyframes flyBirdAcross3 {
  0% {
    transform: translateX(-20vw) translateY(0px);
  }
  35% {
    transform: translateX(35vw) translateY(-25px);
  }
  70% {
    transform: translateX(70vw) translateY(15px);
  }
  100% {
    transform: translateX(120vw) translateY(-5px);
  }
}

@keyframes flapWings {
  0% {
    transform: scaleY(1) scaleX(1);
  }
  33% {
    transform: scaleY(0.7) scaleX(1.1);
  }
  66% {
    transform: scaleY(1.1) scaleX(0.9);
  }
  100% {
    transform: scaleY(1) scaleX(1);
  }
}

@keyframes floatLeaf {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(5deg);
  }
  50% {
    transform: translateY(-50px) rotate(-5deg);
  }
  75% {
    transform: translateY(-30px) rotate(3deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes rotateLeaf {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .trv-inr-bnr-birds,
  .trv-inr-bnr-birds-group,
  .trv-inr-bnr-leaves,
  .trv-inr-bnr-mountain {
    display: none;
  }
}

@media (max-width: 767px) {
  .trv-inr-bnr-birds svg,
  .trv-inr-bnr-bird-2 svg,
  .trv-inr-bnr-bird-3 svg {
    width: 25px;
    height: 18px;
  }
  
  .trv-inr-bnr-leaf-1 svg {
    width: 18px;
    height: 25px;
  }
}
