export default function Hero() {
  return (
    <section className="relative overflow-hidden bg-gradient-to-br from-primary via-primary-dark to-primary-dark py-24 md:py-32">
      {/* Animated background elements */}
      <div className="absolute inset-0 opacity-15">
        <div className="absolute top-20 left-10 w-72 h-72 bg-white rounded-full blur-3xl animate-float"></div>
        <div className="absolute bottom-10 right-20 w-96 h-96 bg-white rounded-full blur-3xl animate-float" style={{ animationDelay: "1s" }}></div>
        <div className="absolute top-1/2 left-1/2 w-80 h-80 bg-white rounded-full blur-3xl animate-float" style={{ animationDelay: "2s" }}></div>
      </div>

      <div className="max-w-7xl mx-auto grid lg:grid-cols-2 gap-12 px-6 items-center relative z-10">
        <div className="space-y-8 animate-slideDown">
          <div className="inline-flex items-center gap-2 bg-white/10 backdrop-blur-sm px-4 py-2 rounded-full text-sm font-semibold text-white border border-white/20 hover:bg-white/15 transition-all duration-300">
            <span className="inline-block w-2 h-2 bg-green-400 rounded-full animate-pulse"></span>
            <span>Free & Premium Webinars</span>
          </div>

          <div className="space-y-4">
            <h1 className="text-5xl md:text-6xl lg:text-7xl font-black leading-tight text-white">
              Learn Estate <br />
              <span className="bg-gradient-to-r from-yellow-200 to-pink-200 bg-clip-text text-transparent">
                Planning Smart
              </span>
            </h1>

            <p className="text-lg md:text-xl text-white/85 max-w-xl leading-relaxed font-medium">
              Master wills, trusts, and asset protection with our expert-led webinars. Build confidence in financial planning for your family's future.
            </p>
          </div>

          <div className="flex flex-col sm:flex-row gap-4 pt-4">
            <a
              href="/webinars"
              className="inline-flex items-center justify-center gap-2 rounded-xl px-8 py-4 text-lg font-bold bg-white text-primary shadow-lg shadow-black/10 transition-all duration-300 hover:-translate-y-1 hover:bg-white/90"
            >
              Browse Webinars
            </a>
            <a
              href="/about"
              className="inline-flex items-center justify-center gap-2 rounded-xl px-8 py-4 text-lg font-bold border border-white/50 text-white bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 hover:-translate-y-1"
            >
              Learn More
            </a>
          </div>

          <div className="grid grid-cols-3 gap-6 pt-8 border-t border-white/20">
            <div className="group hover-lift">
              <div className="text-4xl md:text-5xl font-black text-white group-hover:text-yellow-200 transition-colors duration-300">500+</div>
              <div className="text-xs text-white/70 mt-2 font-semibold uppercase tracking-wider">Webinars</div>
            </div>
            <div className="group hover-lift">
              <div className="text-4xl md:text-5xl font-black text-white group-hover:text-pink-200 transition-colors duration-300">15K+</div>
              <div className="text-xs text-white/70 mt-2 font-semibold uppercase tracking-wider">Students</div>
            </div>
            <div className="group hover-lift">
              <div className="text-4xl md:text-5xl font-black text-white group-hover:text-blue-200 transition-colors duration-300">4.9</div>
              <div className="text-xs text-white/70 mt-2 font-semibold uppercase tracking-wider">Rating</div>
            </div>
          </div>
        </div>

        <div className="relative group animate-slideUp">
            <div className="absolute -inset-0.5 bg-gradient-to-br from-yellow-400 to-pink-400 rounded-2xl opacity-10 group-hover:opacity-20 blur transition duration-500 group-hover:blur-lg"></div>
          <div className="relative bg-white/10 backdrop-blur-xl rounded-2xl p-8 border border-white/20 shadow-xl group-hover:shadow-2xl transition-all duration-300 group-hover:-translate-y-2">
            <div className="flex items-center justify-between mb-6">
              <h3 className="text-base font-bold text-white">🔴 Next Live Session</h3>
              <span className="flex items-center gap-2 text-xs bg-danger/90 px-3 py-1.5 rounded-full text-white font-semibold shadow-lg">
                <span className="w-2.5 h-2.5 bg-white rounded-full animate-pulse"></span>
                LIVE NOW
              </span>
            </div>

            <div className="space-y-4">
              <div>
                <h4 className="text-xl font-bold text-white leading-snug">Understanding Revocable Living Trusts</h4>
              </div>

              <div className="space-y-3 text-white/90 font-medium">
                <div className="flex items-center gap-3 hover:text-white transition-colors">
                  <span className="text-xl">📅</span>
                  <span>March 15, 2024</span>
                </div>
                <div className="flex items-center gap-3 hover:text-white transition-colors">
                  <span className="text-xl">🕑</span>
                  <span>2:00 PM – 3:30 PM EST</span>
                </div>
                <div className="flex items-center gap-3 hover:text-white transition-colors">
                  <span className="text-xl">👩‍⚖️</span>
                  <span>Sarah Mitchell, Estate Attorney</span>
                </div>
                <div className="flex items-center gap-3 hover:text-white transition-colors">
                  <span className="text-xl">👥</span>
                  <span>12 spots remaining</span>
                </div>
              </div>

              <div className="flex items-center justify-between pt-6 mt-6 border-t border-white/20">
                <div className="text-2xl font-black text-green-300">FREE</div>
                <button className="btn-primary !bg-gradient-to-r from-primary to-secondary !px-6 !py-3 text-white font-bold hover:shadow-glow hover:-translate-y-1">
                  ✨ Reserve Seat
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}
