/* Additional styles for vanilla JS transitions */

/* Form Submit Button Fix */
.button {
  display: inline-block;
}

/* Mobile Navigation */
.nav-menu {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-menu.w--open {
  display: block;
}

.w-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: opacity 0.3s ease;
}

.w-nav-overlay.w--open {
  display: block;
}

.nav-button-animated {
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-button-animated .top-line,
.nav-button-animated .bottom-line {
  transition: all 0.3s ease;
}

/* Testimonial Slider */
.testimonial-slider {
  text-align: center;
  background-color: transparent;
  align-items: center;
  height: auto;
  padding-left: 120px;
  padding-right: 120px;
  display: flex;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.testimonial-slider-mask {
  position: relative;
  min-height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-slide {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  right: 0;
  transform: translate(0, -50%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease,
    transform 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  overflow: visible;
}

.testimonial-slide.w-slide--active {
  position: absolute;
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transform: translate(0, -50%);
}

.testimonial-slide.slide-from-right {
  transform: translate(50px, -50%);
}

.testimonial-slide.slide-from-left {
  transform: translate(-50px, -50%);
}

.testimonial-slide-text-box {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: 100%;
  padding: 0 20px;
}

.testimonial-slide-text-box .heading,
.testimonial-slide-text-box .paragraph,
.testimonial-slide-text-box h3,
.testimonial-slide-text-box p,
.testimonial-slide-text-box img {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 991px) {
  .testimonial-slider {
    padding-left: 80px;
    padding-right: 80px;
  }
}

@media screen and (max-width: 767px) {
  .testimonial-slider {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media screen and (max-width: 479px) {
  .testimonial-slider {
    padding-left: 20px;
    padding-right: 20px;
    min-height: 350px;
  }
}

.slider-left-arrow,
.slider-right-arrow {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.slider-left-arrow:hover,
.slider-right-arrow:hover {
  opacity: 0.7;
}

.w-slider-dot {
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.w-slider-dot:hover {
  transform: scale(1.1);
}

/* Spinning Circle Animation */
.spinning-circle-text {
  transform-origin: center;
  will-change: transform;
}

/* Scroll Animations */
.container,
.text-box,
.logos-div {
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* Form Animations */
.form-success,
.form-error {
  display: none;
  animation: slideIn 0.3s ease;
}

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

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

/* Loading state */
body {
  opacity: 0;
  animation: fadeInBody 0.3s ease forwards;
}

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

/* Hero section animations */
.section.soft-gradient .container {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.section.soft-gradient .heading._2xl {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.section.soft-gradient .paragraph.xl {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.section.soft-gradient .circle-badge {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.8s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
