/* Homepage Animations & Modern Effects - Brand Aligned */

/* ===== Keyframe Animations ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-25px) rotate(3deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse-subtle {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
}

@keyframes gradient-x {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes blob-bounce {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* ===== Hero Section - Brand Aligned ===== */
.hero-modern {
  position: relative;
  overflow: hidden;
  /* Clean light background matching the site theme */
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.5);
  /* gray-200 */
  border-radius: 24px;
  padding: 4rem 2rem;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

/* Subtle animated background blobs */
.hero-modern::before,
.hero-modern::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 1;
  animation: blob-bounce 20s infinite ease-in-out alternate;
}

.hero-modern::before {
  background: #6366f1;
  /* Indigo-500 */
  top: -200px;
  left: -200px;
}

.hero-modern::after {
  background: #8b5cf6;
  /* Violet-500 */
  bottom: -200px;
  right: -200px;
  animation-delay: -10s;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111827;
  /* Gray-900 */
  animation: fadeInUp 0.8s ease-out;
}

.hero-highlight {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: #4b5563;
  /* Gray-600 */
  margin-bottom: 2.5rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Feature badges in Hero */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  /* Indigo-500 @ 10% */
  color: #4f46e5;
  /* Indigo-600 */
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s ease-out 0.4s backwards, pulse-subtle 3s infinite;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.5);
}

/* ===== Statistics Section - Clean ===== */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out backwards;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: #c7d2fe;
  /* Indigo-200 */
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: #eef2ff;
  /* Indigo-50 */
  color: #6366f1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== Featured Tools - Grid ===== */
.featured-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.featured-tool-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out backward;
}

.featured-tool-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.tool-icon-wrapper {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
  color: #4f46e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-info {
  flex: 1;
}

.tool-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.tool-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ===== Benefits - Glassy/Clean ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: #fdf2f8;
  /* Pink-50 (or any soft accent) - let's stick to theme */
  background: #f5f3ff;
  /* Violet-50 */
  color: #7c3aed;
  /* Violet-600 */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

/* ===== Categories - Minimal ===== */
.category-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

@media (min-width: 1280px) {
  .category-preview-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.category-preview-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-preview-card:hover {
  border-color: #6366f1;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.15);
}

.category-icon {
  font-size: 2.5rem;
}

.category-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.category-count {
  font-size: 0.875rem;
  color: #9ca3af;
  background: #f9fafb;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  align-self: center;
}

/* ===== CTA - Brand Gradient ===== */
.cta-section {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  /* Indigo-600 to Violet-600 */
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  margin: 4rem 0 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
}

/* Abstract shapes in CTA */
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  color: white !important;
}

.cta-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: #4f46e5;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-title span {
  color: #6366f1;
}

.section-subtitle {
  color: #6b7280;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== DARK MODE OVERRIDES ===== */
[data-theme="dark"] .hero-modern {
  background: #0b1220 !important;
  border-color: #1f2937 !important;
}

[data-theme="dark"] .hero-title {
  color: #ffffff !important;
}

[data-theme="dark"] .hero-subtitle {
  color: #d1d5db !important;
}

[data-theme="dark"] .hero-badge {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

/* Stats Section Dark Mode */
[data-theme="dark"] .stat-card {
  background: #0b1220 !important;
  border-color: #1f2937 !important;
}

[data-theme="dark"] .stat-icon {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #818cf8 !important;
}

[data-theme="dark"] .stat-number {
  color: #ffffff !important;
}

[data-theme="dark"] .stat-label {
  color: #d1d5db !important;
}

/* Featured Tools Dark Mode */
[data-theme="dark"] .featured-tool-card {
  background: #0b1220 !important;
  border-color: #1f2937 !important;
}

[data-theme="dark"] .tool-icon-wrapper {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #818cf8 !important;
}

[data-theme="dark"] .tool-name {
  color: #ffffff !important;
}

[data-theme="dark"] .tool-description {
  color: #d1d5db !important;
}

/* Benefits Dark Mode */
[data-theme="dark"] .benefit-card {
  background: #0b1220 !important;
  border-color: #1f2937 !important;
}

[data-theme="dark"] .benefit-icon {
  background: rgba(124, 58, 237, 0.15) !important;
  color: #a78bfa !important;
}

[data-theme="dark"] .benefit-title {
  color: #ffffff !important;
}

[data-theme="dark"] .benefit-description {
  color: #d1d5db !important;
}

/* Categories Dark Mode */
[data-theme="dark"] .category-preview-card {
  background: #0b1220 !important;
  border-color: #1f2937 !important;
}

[data-theme="dark"] .category-name {
  color: #ffffff !important;
}

[data-theme="dark"] .category-count {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #d1d5db !important;
}

/* CTA Button Dark Mode - Make it visible */
[data-theme="dark"] .cta-button {
  background: #0b1220 !important;
  color: #a5b4fc !important;
  border: 2px solid #4f46e5 !important;
}

[data-theme="dark"] .cta-button:hover {
  background: #1f2937 !important;
  color: #c7d2fe !important;
}

/* Section Headers Dark Mode */
[data-theme="dark"] .section-title {
  color: #ffffff !important;
}

[data-theme="dark"] .section-subtitle {
  color: #d1d5db !important;
}