html {
  scroll-behavior: smooth;
}

.display,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.hero-lines {
  background-image:
    linear-gradient(rgba(7, 105, 223, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 105, 223, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.image-shade {
  background: linear-gradient(
    180deg,
    rgba(16, 35, 63, 0) 38%,
    rgba(16, 35, 63, 0.84) 100%
  );
}

.hero-slider {
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.8s ease,
    transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dot {
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.hero-dot.active {
  transform: scale(1.25);
}

details summary {
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content {
  animation: hero-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-image {
  animation: hero-enter 0.8s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.float-slow {
  animation: float-slow 5s ease-in-out infinite;
}

.service-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 55px rgba(16, 35, 63, 0.12);
  border-color: rgba(7, 105, 223, 0.18);
}

/* Testimonial Scrolling Animations */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-33.333%);
  }
  100% {
    transform: translateX(0);
  }
}

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

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

/* Ensure the hover pause works smoothly */
.animate-scroll-left:hover,
.animate-scroll-right:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .animate-scroll-left,
  .animate-scroll-right {
    animation: none;
  }
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero-content,
  .hero-image,
  .float-slow {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
