/* Custom styles for 3 ACE INFOTECH website */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* WhatsApp floating button */
.whatsapp-widget {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 1000;
}

/* Call button widget */
.call-widget {
  position: fixed;
  bottom: 120px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-button {
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.call-button {
  background-color: #0088cc;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: pulse-blue 2s infinite;
}

.whatsapp-button:hover, .call-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-tooltip, .call-tooltip {
  position: absolute;
  right: 75px;
  bottom: 12px;
  background-color: white;
  color: #333;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.whatsapp-widget:hover .whatsapp-tooltip,
.call-widget:hover .call-tooltip {
  opacity: 1;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 136, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
  }
}

/* Navigation links styling */
.nav-link {
  position: relative;
  color: #4B5563;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2563EB;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #2563EB;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

/* Service card hover effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button hover effects */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Form input focus styles */
input:focus, textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2563EB;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1D4ED8;
}

/* Client Logo Slider */
.client-logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: fit-content;
  animation: marquee 30s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.logo-item:hover {
  transform: scale(1.1);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .logo-track {
    animation: marquee 20s linear infinite;
  }
}
