/* Additional custom styles beyond Tailwind */

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: #121212; 
}
 
::-webkit-scrollbar-thumb {
  background: #2979FF; 
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1565C0; 
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #2979FF;
  outline-offset: 2px;
}

/* Animation for the hero section */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Image hover effects */
.md\:w-1\/2 img, .max-w-6xl img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
}

.md\:w-1\/2 img:hover, .max-w-6xl img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* Button styles */
.btn-primary, .btn-secondary {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn-primary:active, .btn-secondary:active {
  transform: translateY(-1px);
}

/* Scroll animation for multiple sections - ensuring initial visibility */
@media (min-width: 768px) {
  .flex-col.md\:flex-row, .flex-col.md\:flex-row-reverse {
    opacity: 1; /* Always visible by default */
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .animate-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom animation for the down arrow */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Image border glow effect on hover */
.rounded-xl.shadow-2xl {
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.rounded-xl.shadow-2xl:hover {
  box-shadow: 0 0 25px rgba(0, 200, 83, 0.4);
  transform: scale(1.05);
}

/* Add a lightbox-like effect for all images */
.md\:w-1\/2 img:active, .max-w-6xl img:active {
  transform: scale(1.15);
  box-shadow: 0 0 40px rgba(41, 121, 255, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 100;
}

/* Animation for emphasis on collaboration features */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(41, 121, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(41, 121, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(41, 121, 255, 0);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Animation for hovering buttons */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.hover\:animate-bounce:hover {
  animation: bounce 1s infinite;
}

/* Subtle rotation animation */
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.hover\:rotate-1:hover {
  animation: rotate 2s ease-in-out infinite;
}

/* Shadow color variants */
.hover\:shadow-secondary:hover {
  box-shadow: 0 0 25px rgba(41, 121, 255, 0.6);
}