/* Client logos scrolling animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

/* Pause animation on hover */
.animate-scroll:hover {
  animation-play-state: paused;
}

/* Mobile responsiveness for client slider */
@media (max-width: 768px) {
  .animate-scroll {
    animation: scroll 20s linear infinite;
  }
}

.gradient-bg {
  background: #dbdbdb;
}

.hero-bg {
  background-color: #dbdbdb;
}

.text-hover:hover {
  color: #11f2fa;
}

.main-color {
  color: #11f2fa;
}

.bg-color {
  background-color: #11f2fa;
}

.bg-color:hover {
  background-color: #403e3c;
  color: #fff;
}

.bg-sub-color {
  background-color: #403e3c;
}

.sub-color {
  color: #403e3c;
}

/* PDF Container Responsive Styles */
.pdf-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.pdf-container iframe {
  border: none;
  width: 100%;
  display: block;
}

/* Mobile PDF optimizations */
@media (max-width: 768px) {
  .pdf-container iframe {
    height: 400px !important;
    min-height: 400px;
  }

  .pdf-container {
    background: #f3f4f6;
    border-radius: 1rem;
    padding: 1rem;
  }
}

/* Tablet PDF optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .pdf-container iframe {
    height: 500px !important;
    min-height: 500px;
  }
}

/* Desktop PDF optimizations */
@media (min-width: 1025px) {
  .pdf-container iframe {
    height: 700px !important;
    min-height: 700px;
  }
}

/* Basic mobile optimizations - Allow normal scroll */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Modal styles for image zoom */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  user-select: none;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-nav.prev {
  left: 20px;
}

.modal-nav.next {
  right: 20px;
}

.modal-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 8px;
}

.modal-download {
  background: #3b82f6;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.modal-download:hover {
  background: #2563eb;
}

/* Image hover effects */
.terms-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.terms-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: 10px;
    right: 10px;
  }

  .modal-nav {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }

  .modal-nav.prev {
    left: 10px;
  }

  .modal-nav.next {
    right: 10px;
  }

  .modal-info {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 16px;
  }

  .modal-download {
    padding: 6px 12px;
    font-size: 14px;
  }
}

body {
  overflow-x: hidden;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Force enable scroll for all elements */
* {
  box-sizing: border-box;
}

.hover-scale {
  transition: all 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.car-float {
  filter: drop-shadow(0 8px 32px #11f2fa88);
}

.pulse-border {
  box-shadow: 0 0 0 4px #11f2fa33, 0 0 0 8px #11f2fa22;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 4px #11f2fa33, 0 0 0 8px #11f2fa22;
  }

  50% {
    box-shadow: 0 0 0 8px #11f2fa66, 0 0 0 16px #11f2fa44;
  }

  100% {
    box-shadow: 0 0 0 4px #11f2fa33, 0 0 0 8px #11f2fa22;
  }
}

.parallax {
  transform: translateY(0);
  transition: transform 0.1s ease-out;
}

.custom-shape-divider-bottom-1754272106 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom-1754272106 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 90px;
}

.custom-shape-divider-bottom-1754272106 .shape-fill {
  fill: #f9fafb;
}

/* Mobile optimization for shape divider */
@media (max-width: 768px) {
  .custom-shape-divider-bottom-1753753411 {
    height: 60px;
  }

  .custom-shape-divider-bottom-1753753411 svg {
    width: calc(150% + 1.3px);
    height: 60px;
  }
}

/* Mobile Menu Improvements */
#mobile-menu {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
}

/* Prevent body scroll when mobile menu is open */
.mobile-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

#mobile-menu .flex {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 100vh;
}

.mobile-menu-link {
  position: relative;
  overflow: hidden;
}

.mobile-menu-link::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.mobile-menu-link:active::before {
  left: 100%;
}

@media (max-width: 768px) {
  #mobile-menu .text-lg {
    font-size: 1rem;
  }

  #mobile-menu .text-xl {
    font-size: 1.125rem;
  }

  .mobile-menu-link {
    padding: 1rem 0;
    border-radius: 8px;
    margin: 4px 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
  }
}

/* Enhanced gradient for better blend */

/* Booking Modal Styles */
#bookingModal {
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

#bookingModal .bg-white {
  animation: slideInUp 0.3s ease-out;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Form input focus styles */
.booking-form input:focus,
.booking-form textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Modal responsive design */
@media (max-width: 640px) {
  #bookingModal .bg-white {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
}

/* Button loading state */
.booking-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.booking-btn.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
