/* ==========================================================================
   LearnSphere - Section Hero Styles
   ========================================================================== */

.section-hero {
  position: relative;
  padding: 80px 0 90px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.shape-1 {
  width: 450px;
  height: 450px;
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.35) 0%, rgba(6, 182, 212, 0.1) 70%);
}

.shape-2 {
  width: 350px;
  height: 350px;
  bottom: -50px;
  left: -80px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(79, 70, 229, 0.05) 70%);
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 30px;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 24px;
  align-self: flex-start;
}

.hero-badge i {
  color: #f59e0b;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-btn {
  padding: 14px 30px;
  font-size: 1rem;
}

/* Trust Stats */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.trust-number .text-warning {
  color: #f59e0b;
  font-size: 1.1rem;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
  border: 4px solid var(--white);
}

.hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-img-wrap:hover .hero-img {
  transform: scale(1.03);
}

/* Floating Cards */
.hero-float-card {
  position: absolute;
  background: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  border: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(10px);
}

.card-top {
  top: -20px;
  left: -25px;
}

.card-bottom {
  bottom: -25px;
  right: -20px;
}

.float-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.float-icon-code {
  background: rgba(79, 70, 229, 0.12);
  color: var(--brand);
}

.float-info {
  display: flex;
  flex-direction: column;
}

.float-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.float-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.badge-tag {
  background: #fef3c7;
  color: #d97706;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 6px;
}

.float-avatar-stack {
  display: flex;
  align-items: center;
}

.float-avatar-stack img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
  margin-left: -10px;
}

.float-avatar-stack img:first-child {
  margin-left: 0;
}

.text-success {
  color: #10b981;
}

.pulse-dot {
  font-size: 0.55rem;
  animation: pulseAnimation 1.5s infinite;
}

@keyframes pulseAnimation {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-img {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .section-hero {
    padding: 50px 0 70px;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn {
    width: 100%;
  }

  .hero-trust {
    flex-wrap: wrap;
    gap: 16px;
  }

  .trust-divider {
    display: none;
  }

  .card-top {
    left: 10px;
    top: -15px;
  }

  .card-bottom {
    right: 10px;
    bottom: -15px;
  }
}


.hero-img-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 40px rgba(79, 70, 229, 0.15);
  pointer-events: none;
}
