/* LLI Consulting Group Custom Styles */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Smooth transitions for all interactive elements */
button, a {
  transition: all 0.3s ease;
}

/* Video container styling */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Custom focus styles for accessibility */
button:focus,
a:focus {
  outline: 2px solid #0F766E;
  outline-offset: 2px;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #B91C1C, #0F766E);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card hover effects */
.hover-lift:hover {
  transform: translateY(-2px);
}

/* Animation for video placeholder */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hide scrollbar for case study slider */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth scroll snap for case studies */
.snap-x {
  scroll-snap-type: x mandatory;
}

.snap-center {
  scroll-snap-align: center;
}

/* Tab transition effects */
.expertise-tab {
  position: relative;
  overflow: hidden;
}

.expertise-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.expertise-tab:hover::after {
  transform: scaleX(1);
}

/* Image lazy loading animations */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

img[loading="lazy"].fade-in,
img.fade-in {
  opacity: 1;
}

/* Loading placeholder for images */
img[loading="lazy"]:not(.fade-in) {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Optimize video loading */
video {
  background-color: #000;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
  border-color: #14B8A6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  outline: none;
}

/* Calendly widget responsive container */
.calendly-inline-widget {
  position: relative;
  min-height: 630px;
}

@media (max-width: 768px) {
  .calendly-inline-widget {
    min-height: 500px;
  }
}