/* Home Page Enhancements - Slideshow & Services Sync */

/* Smooth transition between slideshow and services */
.ui-slider.ui-main {
  position: relative;
  z-index: 1;
}

/* Enhanced slideshow animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slideshow overlay gradient for better transition */
.ui-slider.ui-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
  pointer-events: none;
  z-index: 2;
}

/* Navigation button hover effects */
.swiper-nav-ctrl:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 92, 0, 0.5) !important;
  transform: scale(1.1);
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  .ui-slider.ui-main::after {
    height: 100px;
  }
  
  .swiper-nav-ctrl {
    width: 50px !important;
    height: 50px !important;
    line-height: 50px !important;
  }
}

@media screen and (max-width: 767px) {
  .ui-slider.ui-main::after {
    height: 80px;
  }
  
  .swiper-nav-ctrl {
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
  }
  
  /* Adjust services margin on mobile */
  .services-wrapper-mobile {
    margin-top: -30px !important;
    padding-top: 80px !important;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced card animations */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Particle background optimization */
canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Section transition smoothing */
section {
  position: relative;
  z-index: 1;
}

/* Improved text readability on slideshow */
.ui-slider.ui-main .caption h1,
.ui-slider.ui-main .caption p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Button glow effect */
.btn-curve.btn-lit:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 92, 0, 0.3) !important;
}

/* Loading state optimization */
.swiper-container {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Accessibility improvements */
.swiper-nav-ctrl:focus {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* Performance optimization - reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
