/* Toggle Animation (Hamburger to X) */
.navbar-toggler.collapsed .navbar-toggler-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggler.collapsed .navbar-toggler-icon span {
  opacity: 0;
}

.navbar-toggler.collapsed .navbar-toggler-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown Animation */
.navbar-collapse {
  transition: all 0.2s ease;
}

.navbar-collapse.collapsing {
  height: 0 !important;
}

.navbar-collapse.show {
  animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}



/* about badge */
@keyframes badgeGlow {
    0% {
        box-shadow: 0 0 18px rgba(62, 166, 255, 0.15);
    }
    50% {
        box-shadow: 0 0 30px rgba(62, 166, 255, 0.35);
    }
    100% {
        box-shadow: 0 0 18px rgba(62, 166, 255, 0.15);
    }
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Apply animation to badges */
.skill {
    animation: float 4s ease-in-out infinite;
}

/* Different delays for natural movement */
.skill:nth-child(1)  { animation-delay: 0s; }
.skill:nth-child(2)  { animation-delay: 0.3s; }
.skill:nth-child(3)  { animation-delay: 0.6s; }
.skill:nth-child(4)  { animation-delay: 0.9s; }
.skill:nth-child(5)  { animation-delay: 1.2s; }
.skill:nth-child(6)  { animation-delay: 1.5s; }
.skill:nth-child(7)  { animation-delay: 1.8s; }
.skill:nth-child(8)  { animation-delay: 2.1s; }
.skill:nth-child(9)  { animation-delay: 2.4s; }
.skill:nth-child(10) { animation-delay: 2.7s; }
.skill:nth-child(11) { animation-delay: 3s; }
.skill:nth-child(12) { animation-delay: 3.3s; }
.skill:nth-child(13) { animation-delay: 3.6s; }
.skill:nth-child(14) { animation-delay: 3.9s; }
.skill:nth-child(15) { animation-delay: 4.2s; }

