/* ============================================
   HOMEPAGE UX IMPROVEMENTS
   Professional & User-Friendly Enhancements
   ============================================ */

/* ============================================
   1. IMPROVED VISUAL HIERARCHY
   ============================================ */

/* Hero Section - Better Spacing & Clarity */
.animated-hero-section {
  padding: clamp(80px, 10vw, 120px) 0 !important;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.animated-hero-content {
  gap: clamp(3rem, 6vw, 5rem) !important;
  align-items: center;
}

/* Hero Left - Better Typography Hierarchy */
.animated-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.animated-hero-badge {
  margin-bottom: 0.75rem !important;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.animated-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  line-height: 1.1 !important;
  margin-bottom: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.animated-hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  line-height: 1.7 !important;
  margin-bottom: 2rem !important;
  color: #475569;
  max-width: 90%;
}

/* Stats Container - Better Layout */
.animated-stats-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.animated-stat-card {
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-width: 140px;
  transition: all 0.3s ease;
}

.animated-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.animated-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.animated-stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* CTA Buttons - More Prominent */
.animated-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: flex-start; /* Left align on desktop */
  align-items: center;
  width: 100%;
}

/* Desktop: Left align buttons */
@media (min-width: 769px) {
  .animated-cta-buttons {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
}

.animated-btn-primary {
  padding: 0.875rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2) !important;
}

.animated-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3) !important;
}

.animated-btn-secondary {
  padding: 0.875rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  border: 2px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  transition: all 0.3s ease !important;
}

.animated-btn-secondary:hover {
  border-color: #2563eb !important;
  color: #2563eb !important;
  transform: translateY(-2px) !important;
}

/* ============================================
   2. IMPROVED LOADING STATES
   ============================================ */

.hero-loading,
.slideshow-loading {
  background: transparent !important;
  backdrop-filter: none !important;
}

.hero-loading p,
.slideshow-loading p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border-width: 2px;
  border-color: rgba(37, 99, 235, 0.2);
  border-top-color: #2563eb;
}

/* ============================================
   3. IMPROVED SECTIONS
   ============================================ */

/* Section Headers - Better Spacing */
.section-header {
  margin-bottom: clamp(3rem, 5vw, 4rem) !important;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  margin-bottom: 1rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: clamp(1rem, 2vw, 1.125rem) !important;
  color: #64748b;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* Features Grid - Better Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: #2563eb;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.feature-metric {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  display: block;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* ============================================
   4. BETTER SPACING & LAYOUT
   ============================================ */

.features-section,
.process-section {
  padding: clamp(4rem, 8vw, 6rem) 0 !important;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ============================================
   5. MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 768px) {
  .animated-hero-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .animated-hero-left {
    order: 1;
    text-align: center;
  }

  .animated-hero-right {
    order: 2;
  }

  .animated-hero-description {
    max-width: 100%;
  }

  .animated-stats-container {
    justify-content: center;
    gap: 1rem;
  }

  .animated-stat-card {
    min-width: 120px;
    padding: 1rem 1.25rem;
  }

  .animated-cta-buttons {
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
  }

  .animated-btn-primary,
  .animated-btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }
}

@media (max-width: 480px) {
  .animated-hero-section {
    padding: 3rem 0 !important;
    min-height: auto;
  }

  .animated-hero-title {
    font-size: 2rem !important;
  }

  .animated-stat-card {
    min-width: 100px;
    padding: 0.875rem 1rem;
  }

  .animated-stat-number {
    font-size: 1.5rem;
  }
}

/* ============================================
   6. ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Better focus states */
.animated-btn-primary:focus-visible,
.animated-btn-secondary:focus-visible,
.slideshow-btn:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
  border-radius: 8px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .animated-btn-primary,
  .animated-btn-secondary,
  .animated-stat-card {
    transition: none !important;
  }

  .feature-card:hover {
    transform: none !important;
  }
}

/* ============================================
   7. PERFORMANCE OPTIMIZATIONS
   ============================================ */

.feature-card,
.animated-stat-card {
  will-change: transform;
  contain: layout style paint;
}

/* ============================================
   8. PRINT STYLES
   ============================================ */

@media print {
  .animated-hero-section,
  .features-section,
  .process-section {
    page-break-inside: avoid;
  }

  .feature-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
}

