/* Hero Headline Mobile Compatibility Styles */
.hero-headline-text {
  /* Desktop: Enhanced gradient text effect */
  background: linear-gradient(135deg, #1e293b 0%, #3b82f6 25%, #06b6d4 50%, #8b5cf6 75%, #ec4899 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  
  /* Fallback for browsers that don't support background-clip: text */
  color: #1e293b;
  
  /* Dark mode enhanced gradient */
  filter: brightness(1.1) contrast(1.2);
}

/* Dark mode specific gradient */
.dark .hero-headline-text {
  background: linear-gradient(135deg, #f8fafc 0%, #60a5fa 25%, #22d3ee 50%, #a78bfa 75%, #f472b6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  
  /* Enhanced brightness for dark mode */
  filter: brightness(1.2) contrast(1.3);
  
  /* Fallback for dark mode */
  color: #f8fafc;
}

/* Mobile device specific styles */
@media (max-width: 768px) {
  .hero-headline-text {
    /* Enhanced mobile gradient with better compatibility */
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    
    /* Stronger fallback color */
    color: #1e40af;
    
    /* Enhanced text shadow for better readability */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    
    /* Animation for visual appeal */
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
  }
  
  /* Dark mode mobile styles */
  .dark .hero-headline-text {
    background: linear-gradient(90deg, #60a5fa 0%, #22d3ee 50%, #a78bfa 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    
    /* Stronger fallback for dark mode */
    color: #60a5fa;
    
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }
}

/* Gradient animation */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .hero-headline-text {
      /* Try gradient first, fallback to solid color */
      background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%) !important;
      background-clip: text !important;
      -webkit-background-clip: text !important;
      color: transparent !important;
      -webkit-text-fill-color: transparent !important;
      
      /* Strong fallback */
      color: #2563eb;
      font-weight: 900 !important;
      text-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    }
    
    .dark .hero-headline-text {
      background: linear-gradient(90deg, #60a5fa 0%, #22d3ee 100%) !important;
      background-clip: text !important;
      -webkit-background-clip: text !important;
      color: transparent !important;
      -webkit-text-fill-color: transparent !important;
      
      /* Strong fallback for dark mode */
      color: #60a5fa;
      text-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
    }
  }
}

/* Additional fallback for very old mobile browsers */
@media (max-width: 480px) {
  .hero-headline-text {
    /* Vibrant solid colors for maximum compatibility */
    background: none !important;
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    font-weight: 900 !important;
    text-shadow: 0 3px 6px rgba(37, 99, 235, 0.4) !important;
  }
  
  .dark .hero-headline-text {
    color: #60a5fa !important;
    -webkit-text-fill-color: #60a5fa !important;
    text-shadow: 0 3px 6px rgba(96, 165, 250, 0.5) !important;
  }
}

/* Additional enhancement for better visibility */
.hero-headline-text {
  /* Add subtle glow effect */
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.dark .hero-headline-text {
  filter: drop-shadow(0 0 15px rgba(96, 165, 250, 0.4));
}