/* ==========================================================
   7. ADVANCED HERO SECTION (With Auto Slider)
   ========================================================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes floatX { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); } 100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); } }

.hero-section {
  position: relative; 
  background: linear-gradient(145deg, var(--clr-bg-main) 0%, #F0F9FF 100%);
  padding: var(--sp-12) 0 calc(var(--sp-16) + 50px) 0;
  overflow: hidden;
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; z-index: 0; }
.hero-glow-1 { top: -10%; right: -10%; width: 500px; height: 500px; background: var(--clr-primary-100); }
.hero-glow-2 { bottom: 10%; left: -5%; width: 400px; height: 400px; background: #DBEAFE; }

.hero-content, .hero-visual { position: relative; z-index: 2; }

/* Status Badge & Text */
.status-badge { display: inline-flex; align-items: center; gap: 8px; background: white; padding: 6px 16px; border-radius: var(--rad-pill); box-shadow: var(--shadow-sm); font-size: 0.85rem; font-weight: 700; margin-bottom: var(--sp-6); border: 1px solid var(--clr-border); }
.status-dot { width: 10px; height: 10px; background: #10B981; border-radius: 50%; animation: pulseGlow 2s infinite; }
.hero-title { font-size: clamp(2.2rem, 4.5vw, 4rem); color: var(--clr-text-main); line-height: 1.15; margin-bottom: var(--sp-6); letter-spacing: -1px;}
.hero-title .highlight { color: var(--clr-primary-500); position: relative; }
.hero-desc { font-size: 1.15rem; color: var(--clr-text-muted); margin-bottom: var(--sp-8); max-width: 90%; }
.hero-features-list { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-8); }
.hero-features-list li { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 700; color: var(--clr-primary-900); }
.hero-features-list svg { width: 18px; height: 18px; color: var(--clr-primary-500); }

/* Visual Side & AUTO SLIDER */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-img-box { position: relative; width: 100%; max-width: 500px; }

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* ابعاد استاندارد برای جلوگیری از به هم ریختگی */
  animation: floatY 8s ease-in-out infinite;
}

.hero-slider-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 20px 140px 20px 140px;
  border: 6px solid white;
  box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

.hero-slider-img.active {
  opacity: 1;
  visibility: visible;
}

/* Glass Cards */
.glass-card {
  position: absolute; background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 16px 24px; border-radius: var(--rad-md);
  border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  display: flex; align-items: center; gap: 15px; z-index: 10;
}
.glass-review { bottom: 5%; right: -10%; animation: floatX 6s ease-in-out infinite reverse; }
.glass-doctors { top: 10%; left: -15%; animation: floatY 7s ease-in-out infinite; padding: 12px 20px; }
.stars { color: #F59E0B; display: flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.avatar-stack { display: flex; }
.avatar-stack img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid white; margin-left: -12px; }
.avatar-stack img:first-child { margin-left: 0; }

/* Trust Bar */
.trust-bar { position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1000px; background: white; border-radius: var(--rad-lg); box-shadow: var(--shadow-md); display: flex; justify-content: space-between; padding: var(--sp-6) var(--sp-8); z-index: 10; border: 1px solid var(--clr-primary-100); }
.trust-item { display: flex; align-items: center; gap: 15px; }
.trust-icon { width: 48px; height: 48px; background: var(--clr-primary-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--clr-primary-500); }
.trust-icon svg { width: 24px; height: 24px; }
.trust-text h4 { font-size: 1rem; margin-bottom: 2px; color: var(--clr-text-main); }
.trust-text p { font-size: 0.8rem; color: var(--clr-text-muted); margin: 0; }

.anim-1 { animation: fadeInUp 0.8s forwards; opacity: 0; } .anim-2 { animation: fadeInUp 0.8s 0.15s forwards; opacity: 0; } .anim-3 { animation: fadeInUp 0.8s 0.3s forwards; opacity: 0; } .anim-4 { animation: fadeInUp 0.8s 0.45s forwards; opacity: 0; } .anim-5 { animation: fadeInUp 0.8s 0.6s forwards; opacity: 0; }

@media (max-width: 992px) {
  .trust-bar { flex-direction: column; gap: 20px; bottom: auto; position: relative; transform: none; left: 0; width: 100%; margin-top: var(--sp-8); }
  .hero-section { padding-bottom: var(--sp-8); }
  .glass-doctors { left: 0; top: -10px; }
  .glass-review { right: 0; bottom: -10px; }
}