/* Custom styles for Tax Rails website */

/* Font family utility classes */
.font-poppins {
  font-family: 'Poppins', sans-serif;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Apply animations to sections when they come into view */
.animate-fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-in-out;
}

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

.btn-hover-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease-out;
}

.btn-hover-effect:active::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0;
}

/* Custom gradient backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, #091242 0%, #205ea3 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, #205ea3 0%, #22CCDE 100%);
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(90deg, #205ea3, #22CCDE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

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

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

::-webkit-scrollbar-thumb {
  background: #205ea3;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #091242;
}

/* Custom styles for testimonial slider */
.testimonial-slide {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-slide.prev {
  opacity: 0;
  transform: translateX(-100%);
}

.testimonial-slide.next {
  opacity: 0;
  transform: translateX(100%);
}

/* Section divider gradient */
.section-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(32, 94, 163, 0.3), transparent);
}

/* FAQ Collapsible Styles */
.faq-container {
  width: 100%;
}

.faq-item {
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-toggle + label {
  position: relative;
  cursor: pointer;
  font-weight: bold;
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: #205ea3;
  transition: transform 0.3s ease;
}

.faq-icon::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease, opacity 0.5s ease;
  padding: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
}

.faq-toggle:checked + label .faq-icon::after {
  transform: rotate(90deg);
}

.faq-toggle:checked ~ .faq-content {
  max-height: 1000px;
  padding: 0 8px 24px 8px;
  margin: 0;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.5s ease, padding 0.3s ease, opacity 0.5s ease, visibility 0s;
}
