"use client";

import { MessageCircle, Mail, Globe, Shield, ExternalLink } from "lucide-react";

export default function Footer() {
  return (
    <footer className="relative bg-[#04070D] border-t border-white/8 pt-16 pb-12 px-4 sm:px-6 overflow-hidden">
      <div className="max-w-7xl mx-auto">
        <div className="grid grid-cols-1 md:grid-cols-4 gap-10 mb-16">
          {/* Col 1: Identity & Brand */}
          <div className="md:col-span-2 space-y-4">
            <div className="flex items-center gap-3">
              <div className="w-9 h-9 rounded-full bg-gradient-to-tr from-[#9A7320] via-[#D4A343] to-[#F0CE80] p-[1.5px]">
                <div className="w-full h-full bg-[#070E1A] rounded-full flex items-center justify-center">
                  <span className="font-black text-xs text-[#F0CE80]">RV</span>
                </div>
              </div>
              <span className="text-xl font-black text-white">راویس ویزا</span>
              <span className="text-xs text-white/40 font-mono">RAVIS VISA</span>
            </div>

            <p className="text-sm text-white/60 leading-relaxed max-w-md">
              مجموعه تخصصی بررسی، هدایت و تنظیم پرونده‌های مهاجرتی نخبگان، کاری، استانی و تحصیلی منحصراً برای کشورهای ایالات متحده آمریکا 🇺🇸 و کانادا 🇨🇦 با استانداردهای حقوقی بین‌المللی.
            </p>

            <div className="flex items-center gap-3 pt-2">
              <a
                href="https://instagram.com/ravisvisa"
                target="_blank"
                rel="noopener noreferrer"
                className="w-10 h-10 rounded-full bg-white/5 hover:bg-[#D4A343]/20 border border-white/10 hover:border-[#D4A343]/50 flex items-center justify-center text-white/70 hover:text-[#F0CE80] transition-all"
                aria-label="اینستاگرام راویس ویزا"
              >
                <svg className="w-5 h-5 fill-current" viewBox="0 0 24 24">
                  <path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>
                </svg>
              </a>

              <a
                href="https://wa.me/16135122792"
                target="_blank"
                rel="noopener noreferrer"
                className="w-10 h-10 rounded-full bg-white/5 hover:bg-emerald-500/20 border border-white/10 hover:border-emerald-500/50 flex items-center justify-center text-white/70 hover:text-emerald-400 transition-all"
                aria-label="واتس‌اپ رسمی کانادا"
              >
                <MessageCircle className="w-5 h-5" />
              </a>

              <a
                href="mailto:ravisvisa@gmail.com"
                className="w-10 h-10 rounded-full bg-white/5 hover:bg-blue-500/20 border border-white/10 hover:border-blue-500/50 flex items-center justify-center text-white/70 hover:text-blue-400 transition-all"
                aria-label="ایمیل راویس ویزا"
              >
                <Mail className="w-5 h-5" />
              </a>
            </div>
          </div>

          {/* Col 2: USA Pathways */}
          <div>
            <h4 className="text-xs font-bold text-[#F0CE80] uppercase tracking-wider mb-4">
              مسیرهای آمریکا 🇺🇸
            </h4>
            <ul className="space-y-2.5 text-xs text-white/60">
              <li>
                <a href="#programs" className="hover:text-white transition-colors">
                  ویزای نخبگان EB-2 NIW
                </a>
              </li>
              <li>
                <a href="#programs" className="hover:text-white transition-colors">
                  ویزای کاری مهارتی EB-3
                </a>
              </li>
              <li>
                <a href="#programs" className="hover:text-white transition-colors">
                  ویزای کار تخصصی H-1B
                </a>
              </li>
              <li>
                <a href="#programs" className="hover:text-white transition-colors">
                  ویزای تحصیلی F-1 و فرصت‌های تحقیقاتی
                </a>
              </li>
              <li>
                <a href="#programs" className="hover:text-white transition-colors">
                  ویزای توریستی B1/B2
                </a>
              </li>
            </ul>
          </div>

          {/* Col 3: Canada Pathways */}
          <div>
            <h4 className="text-xs font-bold text-red-300 uppercase tracking-wider mb-4">
              مسیرهای کانادا 🇨🇦
            </h4>
            <ul className="space-y-2.5 text-xs text-white/60">
              <li>
                <a href="#programs" className="hover:text-white transition-colors">
                  اکسپرس انتری فدرال (FSW / CEC)
                </a>
              </li>
              <li>
                <a href="#programs" className="hover:text-white transition-colors">
                  برنامه‌های نامزدی استانی (PNP)
                </a>
              </li>
              <li>
                <a href="#programs" className="hover:text-white transition-colors">
                  جاب‌آفر رسمی کارفرما با LMIA
                </a>
              </li>
              <li>
                <a href="#programs" className="hover:text-white transition-colors">
                  ویزای تحصیلی (Study Permit) و PGWP
                </a>
              </li>
              <li>
                <a href="#programs" className="hover:text-white transition-colors">
                  ویزای اقامت موقت توریستی (Visitor)
                </a>
              </li>
            </ul>
          </div>
        </div>

        {/* Large Brand Wordmark at Full Width (Taste-skill Signature Close) */}
        <div className="py-8 border-y border-white/5 text-center select-none overflow-hidden">
          <span className="text-4xl sm:text-7xl md:text-9xl font-black tracking-widest text-white/[0.04] uppercase block">
            RAVIS VISA
          </span>
        </div>

        {/* Bottom Legal Copyright */}
        <div className="pt-8 flex flex-col sm:flex-row items-center justify-between gap-4 text-xs text-white/40">
          <p>© {new Date().getFullYear()} راویس ویزا (Ravis Visa). تمامی حقوق برای این مجموعه محفوظ است.</p>
          <p className="text-[11px] text-white/30">
            توسعه و معماری اختصاصی هوش مصنوعی • بدون واسطه و با نظارت مستقیم دفتر کانادا
          </p>
        </div>
      </div>
    </footer>
  );
}
