/* Category Hero - Additional Enhancements */

/* Decorative Lines */
.category-hero h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .category-hero {
    min-height: 40vh;
    max-height: 40vh;
    height: 40vh;
    padding: 32px 16px;
  }

  .hero-content {
    max-height: calc(40vh - 64px);
    gap: 12px;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  .category-stats {
    gap: 10px;
  }

  .stat-item {
    padding: 8px 12px;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .category-hero {
    min-height: 35vh;
    max-height: 35vh;
    height: 35vh;
    padding: 24px 12px;
  }

  .hero-content {
    max-height: calc(35vh - 48px);
    gap: 10px;
  }

  .category-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .category-hero h1 {
    font-size: 20px !important;
  }

  .category-stats {
    gap: 6px;
  }

  .stat-item {
    padding: 6px 10px;
    min-width: 65px;
  }

  .stat-item strong {
    font-size: 16px !important;
  }

  .stat-item span {
    font-size: 10px !important;
  }
}

/* Add parallax effect on scroll */
.category-hero.scrolled {
  transform: translateY(-20px);
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* Glass morphism effect for better depth */
.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 16px;
  z-index: -1;
}

.stat-item {
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on hover */
.stat-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.stat-item:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

/* Hero title/subtitle: enforce line-height and add a simple fade-up entrance animation */
.hero-section .hero-title,
.hero-section .hero-subtitle {
  line-height: 2; /* enforce readable multi-line spacing */
  word-break: break-word;
  will-change: transform, opacity;
  opacity: 0; /* start hidden, animation will reveal */
  animation: heroFadeUp 700ms cubic-bezier(.2,.8,.2,1) both;
}

.hero-section .hero-title[data-aos] {
  /* small stagger if AOS attributes are present */
  animation-delay: 120ms;
}

.hero-section .hero-subtitle[data-aos] {
  animation-delay: 220ms;
  opacity: 0.95; /* slightly less heavy than title */
  font-size: 1.05rem;
  margin-top: 6px;
}

/* Use the site's secondary primary color for a subtle accent that matches the design */
.hero-section .hero-subtitle {
  color: #ffffff;
  text-shadow: none;
}

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

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-section .hero-title,
  .hero-section .hero-subtitle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

