/* 
 * Hero Section Enhancement - v2
 * Beautiful animated hero with glassmorphism, floating elements, gradient shifts
 * Loaded after main app to enhance the existing hero section
 */

/* ─── Keyframe Animations ──────────────────────────────────────────────── */

@keyframes heroGradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

@keyframes heroFloat2 {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-30px) rotate(180deg) scale(1.1); }
}

@keyframes heroFloat3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -20px); }
  50% { transform: translate(10px, -40px); }
  75% { transform: translate(-10px, -20px); }
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes heroGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 60px rgba(16, 185, 129, 0.3); }
}

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

@keyframes heroShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes heroHeartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  56% { transform: scale(1); }
}

/* ─── Enhanced Hero Overrides ──────────────────────────────────────────── */

[data-ocid="landing.hero.section"] {
  background: linear-gradient(-45deg, #0c4a6e, #0f766e, #065f46, #1e40af, #7c3aed) !important;
  background-size: 400% 400% !important;
  animation: heroGradientShift 15s ease infinite !important;
  position: relative !important;
  min-height: 90vh !important;
  display: flex !important;
  align-items: center !important;
}

/* Subtle pattern overlay */
[data-ocid="landing.hero.section"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

/* Decorative gradient orbs */
[data-ocid="landing.hero.section"]::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite;
}

/* Floating decorative elements container */
.hero-floating-elements {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-floating-item {
  position: absolute;
  opacity: 0.08;
  color: white;
  animation: heroFloat 12s ease-in-out infinite;
}

.hero-floating-item:nth-child(1) { top: 10%; left: 5%; font-size: 3rem; }
.hero-floating-item:nth-child(2) { top: 20%; right: 10%; font-size: 2.5rem; animation-delay: -3s; animation-name: heroFloat2; animation-duration: 20s; }
.hero-floating-item:nth-child(3) { bottom: 25%; left: 8%; font-size: 2rem; animation-delay: -5s; animation-name: heroFloat3; animation-duration: 18s; }
.hero-floating-item:nth-child(4) { top: 60%; right: 5%; font-size: 3.5rem; animation-delay: -2s; }
.hero-floating-item:nth-child(5) { bottom: 10%; right: 20%; font-size: 2rem; animation-delay: -7s; animation-name: heroFloat2; animation-duration: 15s; }
.hero-floating-item:nth-child(6) { top: 5%; left: 40%; font-size: 1.8rem; animation-delay: -4s; animation-name: heroFloat3; }
.hero-floating-item:nth-child(7) { bottom: 30%; left: 50%; font-size: 2.2rem; animation-delay: -6s; }
.hero-floating-item:nth-child(8) { top: 40%; left: 2%; font-size: 1.5rem; animation-delay: -8s; animation-name: heroFloat2; }

/* Main heading with gradient shimmer */
.hero-main-heading {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #a7f3d0 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: heroShimmer 4s linear infinite !important;
  text-shadow: none !important;
}

/* Animated tagline */
.hero-tagline {
  display: inline-block;
  background: linear-gradient(90deg, #bae6fd, #e0f2fe, #bae6fd) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: heroShimmer 5s linear infinite !important;
}

/* Glassmorphism CTA buttons */
.hero-cta-primary {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #1e40af !important;
  transition: all 0.3s ease !important;
  animation: heroGlow 3s ease-in-out infinite !important;
  position: relative !important;
  overflow: hidden !important;
}

.hero-cta-primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  background: white !important;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4) !important;
}

.hero-cta-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  animation: heroShimmer 3s linear infinite;
}

.hero-cta-emergency {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.95)) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
  animation: heroPulse 4s ease-in-out infinite !important;
}

.hero-cta-emergency:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.5) !important;
  animation: none !important;
}

/* Glassmorphism trust badges */
.hero-trust-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: all 0.4s ease !important;
}

.hero-trust-badge:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Animated accent line */
.hero-accent-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #60a5fa, #34d399, #60a5fa);
  background-size: 200% auto;
  border-radius: 2px;
  margin: 0 auto;
  animation: heroShimmer 3s linear infinite;
}

/* Responsive enhancements */
@media (max-width: 640px) {
  [data-ocid="landing.hero.section"] {
    min-height: 80vh !important;
  }
  .hero-floating-item {
    opacity: 0.05;
    font-size: 2rem !important;
  }
}
