/* Home page specific styles */

/* Hero Section */
.spr-hero {
  position: relative;
  padding: 0;
}

.hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

body[data-theme="dark"] .hero-subtitle {
  color: var(--text-muted-dark);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* About Section */
.spr-about {
  background: rgba(232, 236, 239, 0.3);
}

body[data-theme="dark"] .spr-about {
  background: rgba(232, 236, 239, 0.05);
}

.about-image img {
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-features {
  margin: 2rem 0;
  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    li {
      display: flex;
      align-items: center;
      justify-content: start;
      margin-bottom: 0.5rem;
      position: relative;
      padding-left: 2rem;
      &:before {
        content: "\f26b";
        font-family: "bootstrap-icons"; /* Essencial para carregar a fonte do Bootstrap Icons */
        font-size: 1.25rem;
        position: absolute;
        left: 0;
        top: 0;
        color: var(--primary-color);
      }
    }
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  color: var(--text-light);
}

body[data-theme="dark"] .feature-item {
  color: var(--text-dark);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

body[data-theme="dark"] .feature-item i {
  color: var(--secondary-color);
}

/* Video Section */
.spr-video {
  background: linear-gradient(
    135deg,
    rgba(163, 191, 250, 0.05),
    rgba(255, 232, 214, 0.05)
  );
}

.video-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(26, 28, 31, 0.15);
  padding: 0;
  video {
    border-radius: 20px;
    border: 3px solid var(--border-light);
    padding: 0;
    margin: 0;
  }
}

body[data-theme="dark"] .video-container {
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
  border-color: var(--border-dark);
}

.video-player {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid var(--secondary-color);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--secondary-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.video-play-btn:hover {
  transform: scale(1.15);
  background: var(--secondary-color);
  color: white;
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.video-play-btn:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

body[data-theme="dark"] .video-play-btn {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--secondary-dark);
  color: var(--secondary-dark);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

body[data-theme="dark"] .video-play-btn:hover {
  background: var(--secondary-dark);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

/* Services Section */
.service-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--border-light);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
  border-color: var(--secondary-color);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:focus-within {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

body[data-theme="dark"] .service-card {
  background: var(--bg-dark-secondary);
  border-color: var(--border-dark);
}

body[data-theme="dark"] .service-card:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
  border-color: var(--secondary-dark);
}

body[data-theme="dark"] .service-card::before {
  background: linear-gradient(
    135deg,
    var(--secondary-dark),
    var(--accent-dark)
  );
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  svg {
    width: 40px;
    height: 40px;
  }
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

body[data-theme="dark"] .service-icon {
  background: linear-gradient(
    135deg,
    var(--secondary-dark),
    var(--accent-dark)
  );
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

body[data-theme="dark"] .service-card:hover .service-icon {
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

body[data-theme="dark"] .service-title {
  color: var(--text-dark);
}

.service-text {
  color: var(--text-light-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

body[data-theme="dark"] .service-text {
  color: var(--text-dark-secondary);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid transparent;
}

.service-link:hover {
  color: var(--secondary-hover);
  transform: translateX(4px);
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.2);
}

.service-link:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

body[data-theme="dark"] .service-link {
  color: var(--secondary-dark);
}

body[data-theme="dark"] .service-link:hover {
  color: var(--secondary-dark-hover);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Products Section */
.spr-products {
  background: var(--bg-light);
  position: relative;
}

body[data-theme="dark"] .spr-products {
  background: var(--bg-dark);
}

.spr-products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.02),
    rgba(245, 158, 11, 0.02)
  );
  pointer-events: none;
}

/* Product Category Headers */
.product-category-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.category-icon:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

body[data-theme="dark"] .category-icon {
  background: linear-gradient(
    135deg,
    var(--secondary-dark),
    var(--accent-dark)
  );
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

body[data-theme="dark"] .category-icon:hover {
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  position: relative;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 2px;
}

body[data-theme="dark"] .category-title {
  color: var(--text-dark);
}

body[data-theme="dark"] .category-title::after {
  background: linear-gradient(
    135deg,
    var(--secondary-dark),
    var(--accent-dark)
  );
}

.category-description {
  font-size: 1.125rem;
  color: var(--text-light-secondary);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body[data-theme="dark"] .category-description {
  color: var(--text-dark-secondary);
}

/* Product Cards */
.product-card {
  background: var(--bg-light);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--border-light);
  height: 100%;
  position: relative;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
  border-color: var(--secondary-color);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:focus-within {
  outline: 0px solid transparent;
  outline-offset: 2px;
}

body[data-theme="dark"] .product-card {
  background: var(--bg-dark-secondary);
  border-color: var(--border-dark);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

body[data-theme="dark"] .product-card:hover {
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
  border-color: var(--secondary-dark);
}

body[data-theme="dark"] .product-card::before {
  background: linear-gradient(
    135deg,
    var(--secondary-dark),
    var(--accent-dark)
  );
}

/* Product Images */
.product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1),
    rgba(245, 158, 11, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  backdrop-filter: blur(10px);
}

body[data-theme="dark"] .product-badge {
  background: var(--secondary-dark);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Product Content */
.product-content {
  padding: 2rem;
  position: relative;
}

.product-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--accent-color)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.product-card:hover .product-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

body[data-theme="dark"] .product-icon {
  background: linear-gradient(
    135deg,
    var(--secondary-dark),
    var(--accent-dark)
  );
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

body[data-theme="dark"] .product-card:hover .product-icon {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.3;
}

body[data-theme="dark"] .product-title {
  color: var(--text-dark);
}

.product-description {
  color: var(--text-light-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

body[data-theme="dark"] .product-description {
  color: var(--text-dark-secondary);
}

/* Product Features */
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-tag {
  background: var(--bg-theme-alfa);
  color: var(--secondary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
}

.feature-tag:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-1px);
}

body[data-theme="dark"] .feature-tag {
  background: rgba(59, 130, 246, 0.15);
  color: var(--secondary-dark);
  border-color: rgba(59, 130, 246, 0.3);
}

body[data-theme="dark"] .feature-tag:hover {
  background: var(--secondary-dark);
  color: var(--text-light);
}

/* Product Links */
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  padding: 10px 16px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: rgba(37, 99, 235, 0.05);
}

.product-link:hover {
  color: var(--secondary-hover);
  transform: translateX(4px);
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

.product-link:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

body[data-theme="dark"] .product-link {
  color: var(--secondary-dark);
  background: rgba(59, 130, 246, 0.1);
}

body[data-theme="dark"] .product-link:hover {
  color: var(--secondary-dark-hover);
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Products CTA */
.products-cta {
  background: var(--bg-light-secondary);
  border: 2px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.products-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.03),
    rgba(245, 158, 11, 0.03)
  );
  pointer-events: none;
}

body[data-theme="dark"] .products-cta {
  background: var(--bg-dark-secondary);
  border-color: var(--border-dark);
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

body[data-theme="dark"] .cta-title {
  color: var(--text-dark);
}

.cta-text {
  font-size: 1.125rem;
  color: var(--text-light-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body[data-theme="dark"] .cta-text {
  color: var(--text-dark-secondary);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.75rem;
  }

  .product-content {
    padding: 1.5rem;
  }

  .product-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .product-title {
    font-size: 1.25rem;
  }

  .products-cta {
    padding: 2rem 1.5rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Animation for product cards */
.product-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.product-card.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for product categories */
.product-card[data-category="pigs"] {
  animation-delay: 0.1s;
}

.product-card[data-category="ruminants"] {
  animation-delay: 0.2s;
}

/* Loading state for product images */
.product-image img {
  background: var(--bg-light-secondary);
}

body[data-theme="dark"] .product-image img {
  background: var(--bg-dark-secondary);
}

/* Hover effects for better UX */
.product-card:hover .product-title {
  color: var(--secondary-color);
}

body[data-theme="dark"] .product-card:hover .product-title {
  color: var(--secondary-dark);
}

/* Focus states for accessibility */
.product-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.feature-tag:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Testimonials Section */
.spr-testimonials {
  background: rgba(232, 236, 239, 0.3);
}
body[data-theme="dark"] .spr-testimonials {
  background: var(--bg-dark);
}

.testimonial-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  /* width: calc(100% * 2); */ /* Double the width for infinite loop */
  animation: scroll 30s linear infinite;
  gap: 1.5rem;
}

.testimonial-carousel:hover .carousel-track {
  animation-play-state: paused;
}

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

.testimonial-card {
  flex: 0 0 calc(100% / 3); /* Default to 3 cards for LG screens */
  padding: 0 1rem;
  box-sizing: border-box;
  min-width: calc(100% / 3);
  background: var(--bg-light);
  border-radius: 20px;
  border: 1px solid rgba(163, 191, 250, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

body[data-theme="dark"] .testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 15px rgba(163, 191, 250, 0.2);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

body[data-theme="dark"] .testimonial-quote {
  color: var(--secondary-dark);
}

.testimonial-text {
  color: var(--text-muted-light);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

body[data-theme="dark"] .testimonial-text {
  color: var(--text-muted-dark);
}

.testimonial-author {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
}

body[data-theme="dark"] .author-name {
  color: var(--text-dark);
}

/* Blog Section */
.blog-card {
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
  height: 100%;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
  border-color: var(--secondary-color);
}

body[data-theme="dark"] .blog-card {
  background: var(--bg-dark-secondary);
  border-color: var(--border-dark);
}

body[data-theme="dark"] .blog-card:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
  border-color: var(--secondary-dark);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

body[data-theme="dark"] .blog-category {
  background: var(--secondary-dark);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.blog-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
}

body[data-theme="dark"] .blog-title {
  color: var(--text-dark);
}

.blog-excerpt {
  color: var(--text-light-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

body[data-theme="dark"] .blog-excerpt {
  color: var(--text-dark-secondary);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted-light);
  font-size: 0.875rem;
}

body[data-theme="dark"] .blog-date {
  color: var(--text-muted-dark);
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid transparent;
}

.blog-link:hover {
  color: var(--secondary-hover);
  transform: translateX(4px);
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.2);
}

.blog-link:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

body[data-theme="dark"] .blog-link {
  color: var(--secondary-dark);
}

body[data-theme="dark"] .blog-link:hover {
  color: var(--secondary-dark-hover);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Responsive Design for Testimonials */
@media (min-width: 992px) {
  .testimonial-card {
    flex: 0 0 calc(100% / 3); /* Show 3 cards on LG screens (≥992px) */
    min-width: calc(100% / 3);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .testimonial-card {
    flex: 0 0 calc(100% / 2); /* Show 2 cards on MD screens (768px–991px) */
    min-width: calc(100% / 2);
  }
}

@media (max-width: 767px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .spr-btn-primary,
  .spr-btn-outline {
    width: 100%;
    justify-content: center;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
    margin-top: 1rem;
  }

  .testimonial-card {
    flex: 0 0 100%; /* Show 1 card on mobile screens (≤767px) */
    min-width: 100%;
  }
}

/* Intersection Observer Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error states */
.error {
  border-color: var(--error-light) !important;
  background-color: var(--error-light-bg);
}

body[data-theme="dark"] .error {
  border-color: var(--error-dark) !important;
  background-color: var(--error-dark-bg);
}

/* Success states */
.success {
  border-color: var(--success-light) !important;
  background-color: var(--success-light-bg);
}

body[data-theme="dark"] .success {
  border-color: var(--success-dark) !important;
  background-color: var(--success-dark-bg);
}
