/* Custom styles beyond Tailwind */

/* Custom height class for taller carousel */
.h-120 {
  height: 30rem; /* 480px */
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delay for multiple elements */
.animate-on-scroll:nth-child(2) {
  transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
  transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(4) {
  transition-delay: 0.6s;
}

/* Custom gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.gradient-secondary {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Custom button shine effect on hover */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.5s ease-out;
  opacity: 0;
}

.btn-shine:hover::after {
  transform: rotate(30deg) translate(100%, 100%);
  opacity: 1;
}

/* Timeline connector for process section on mobile */
@media (max-width: 768px) {
  #process .timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #3b82f6;
  }
}

/* Custom text shadow for headings */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Gradient text for special emphasis */
.text-gradient {
  background: linear-gradient(90deg, #3b82f6, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Custom testimonial card styles */
.testimonial-card {
  position: relative;
}

/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
  width: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Make background images more accessible */
.bg-image {
  position: relative;
}

.bg-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.bg-image > * {
  position: relative;
  z-index: 2;
}

/* Fancy underline for navigation items */
.fancy-underline {
  position: relative;
}

.fancy-underline::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.fancy-underline:hover::after {
  width: 100%;
}

/* Custom animation for the CTA button */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

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

/* Form success message animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out forwards;
}

.animate-fade-out {
  animation: fadeOut 0.5s ease-in-out forwards;
}

/* Responsive adjustments for the carousel */
@media (max-width: 768px) {
  #scorecard-carousel {
    height: auto !important;
    min-height: 350px;
  }

  .carousel-slide img {
    max-height: 350px;
  }
}

/* About Section Styles */

/* Responsive Adjustments */

@media (max-width: 768px) {
  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-info h3 {
    font-size: 1rem;
  }

  .testimonial-text {
    font-size: 0.875rem;
  }
}

/* Carousel Caption Styles */
.carousel-caption {
  /* Captions are always visible */
}

/* Zoom out the first carousel image (Mike) */
.carousel-img-0 {
  object-fit: contain !important;
  object-position: top center !important;
  background: #1e293b;
}

/* FAQ Info Icon and Tooltip */
.faq-info-icon {
  cursor: pointer;
  display: inline-block;
  position: relative;
}
.faq-info-icon .faq-info-tooltip {
  min-width: 200px;
  max-width: 320px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 50;
}
.faq-info-icon:hover .faq-info-tooltip,
.faq-info-icon:focus .faq-info-tooltip,
.faq-info-icon .faq-info-tooltip.opacity-100 {
  opacity: 1;
  pointer-events: auto;
}

/* Ensure contact form fields have dark text on light backgrounds */
#contactForm input,
#contactForm textarea {
  color: #1E293B !important; /* dark text */
  background-color: #F8FAFC !important; /* light background */
}
