:root {
  /* Primary shades */
  --primary-light: #33f9ff;
  --primary: #00f7ff;
  --primary-dark: #00c4cc;
  --accent: #ff00c8;
  --darkest: #020208;
  --transition: all 0.3s ease;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 25px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--darkest);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 247, 255, 0.3), 0 0 0 2px var(--primary-light);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 247, 255, 0.5), 0 0 0 3px var(--primary-light);
}

#backToTop:active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  z-index: 1001;
  transition: width 0.1s ease;
}

/* WhatsApp Button Styles */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 25px;
  width: 42px;
  height: 42px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  border: 2px solid #25d366;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background: #25d366;
  border-color: #25d366;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
  font-size: 3rem;
  transition: var(--transition);
}

.whatsapp-float:hover i {
  transform: scale(1.1);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float::before {
  content: "Discuss your project with us!";
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 22, 0.9);
  color: var(--light);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(123, 0, 255, 0.3);
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid rgba(10, 10, 22, 0.9);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  opacity: 1;
  visibility: visible;
}
