/* Custom animations for SubtleContextVector */

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

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Intersection Observer animations */
.fade-in-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.slide-in-right-on-scroll {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.slide-in-left-on-scroll {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Burger menu animation */
.burger-menu {
  transition: transform 0.3s ease;
}

.burger-menu.active {
  transform: rotate(90deg);
}

.burger-line {
  transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu slide animation */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Cookie consent banner animation */
.cookie-banner {
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Swiper navigation buttons */
.swiper-button-prev,
.swiper-button-next {
  color: #65a30d !important;
  width: 48px !important;
  height: 48px !important;
  margin-top: 0 !important;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #f9fbf7;
  box-shadow: 0 4px 12px rgba(101, 163, 13, 0.2);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px !important;
  font-weight: bold;
}

.swiper-button-prev {
  left: 10px !important;
}

.swiper-button-next {
  right: 10px !important;
}

@media (min-width: 1024px) {
  .swiper-button-prev {
    left: -20px !important;
  }
  
  .swiper-button-next {
    right: -20px !important;
  }
}

/* Success notification styles */
#success-notification {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ accordion styles */
.faq-question {
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer:not(.hidden) {
  max-height: 1000px;
}

.faq-question .fa-chevron-down {
  transition: transform 0.3s ease;
}

/* Modal styles */
#auth-modal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#auth-modal .relative {
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #65a30d;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4d7c0f;
}
