/* Dark Mode Toggle Button Fixed Positioning */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #fad02c;
  color: #000000;
  border: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  background-color: #e9b800;
}

.dark-mode-toggle i {
  font-size: 20px;
  transition: all 0.3s ease;
}

/* Animate the icon when toggled */
.dark-mode-toggle i.fa-sun {
  color: #ffeb3b;
}

/* Adjust for light mode */
body.light-mode .dark-mode-toggle {
  background-color: #f5f5f5;
  color: #333;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .dark-mode-toggle {
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
  }
}

/* Animation for toggle button */
.dark-mode-toggle.toggle-animate {
  animation: togglePress 0.3s ease;
}

.dark-mode-toggle i.rotate-icon {
  animation: rotateIcon 0.3s ease;
}

.dark-mode-toggle.pulse {
  animation: pulsate 1s ease-out;
}

@keyframes togglePress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotateIcon {
  0% {
    transform: rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg);
    opacity: 0.5;
  }
  100% {
    transform: rotate(360deg);
    opacity: 1;
  }
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(250, 208, 44, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  }
}
