import { ServiceHeroImage } from '@/components/ui/service-hero-image'
import { Header } from '@/components/layout/header'
import { Footer } from '@/components/layout/footer'
import { ScrollReveal } from '@/components/ui/scroll-reveal'
import Link from 'next/link'
import { Shield, ArrowRight, CheckCircle2, Target, Globe, Layers, Users, BarChart3, Lock, Zap, Activity, Server, RefreshCw, Clock, AlertTriangle, TrendingUp, ChevronRight, Award, Building2, TrendingDown, ShieldCheck, Eye } from 'lucide-react'

export const metadata = {
  title: 'Security Consulting - Drish Infra',
  description: 'Expert security consulting for strategy, architecture, and transformation. Virtual CISO, security strategy, and technology advisory services.',
}

export default function SecurityConsultingPage() {
  return (
    <main className="min-h-screen bg-[#f8fafc] text-slate-900">
      <Header />

      {/* ─── SECTION 1 · Hero ──────────────────────────── */}
      <section className="relative overflow-hidden bg-gradient-to-br from-slate-900 via-blue-900 to-blue-900 text-white pt-14 pb-20 lg:pt-16 lg:pb-28">
        <div className="absolute inset-0 opacity-[0.04]" style={{ backgroundImage: 'linear-gradient(45deg, #94a3b8 1px, transparent 1px), linear-gradient(-45deg, #94a3b8 1px, transparent 1px)', backgroundSize: '40px 40px' }} />
        <div className="relative max-w-7xl mx-auto px-6 lg:px-8">
          <div className="grid lg:grid-cols-2 gap-12 items-center">
            <div className="max-w-3xl mx-auto text-center lg:max-w-none">
            <div className="w-16 h-16 rounded-2xl bg-gradient-to-br from-slate-400 to-blue-500 flex items-center justify-center mx-auto mb-6 shadow-lg shadow-slate-500/30"><Shield className="w-8 h-8 text-white" /></div>
            <h1 className="text-4xl lg:text-5xl xl:text-6xl font-extrabold leading-[1.1] mb-6">Security Consulting <span className="bg-gradient-to-r from-slate-300 to-blue-400 bg-clip-text text-transparent">That Drives Strategy</span></h1>
            <p className="text-lg text-slate-300 leading-relaxed mb-8 max-w-2xl mx-auto">Strategic security guidance from seasoned experts. From virtual CISO services to security architecture — we help you build a security program that scales with your business.</p>
            <div className="flex flex-wrap justify-center gap-4">
              <Link href="/contact" className="inline-flex items-center gap-2 bg-gradient-to-r from-slate-500 to-blue-600 hover:from-slate-400 hover:to-blue-500 text-white font-bold text-sm px-6 py-3 rounded-xl shadow-lg shadow-slate-500/25 transition-all duration-300 hover:scale-105">Schedule Consultation <ArrowRight className="w-4 h-4" /></Link>
            </div>
            </div>
            <div className="block order-first lg:order-last">
              <ServiceHeroImage label="Security Consulting" stats={[{ value: '15+', label: 'Years Exp' }, { value: '100+', label: 'Clients' }, { value: 'CISSP', label: 'Team' }]}>
              <div className="w-16 h-16 rounded-2xl bg-gradient-to-br from-blue-500 to-blue-600 flex items-center justify-center shadow-lg shadow-blue-500/20">
                <Shield className="w-8 h-8 text-white" />
              </div>
            </ServiceHeroImage>
            </div>
          </div>
        </div>
      </section>

      {/* ─── SECTION 2 · Stats Bar ─────────────────────── */}
      <ScrollReveal>
      <section className="py-16 bg-gradient-to-r from-blue-950 via-blue-950 to-slate-950">
        <div className="max-w-7xl mx-auto px-6 lg:px-8">
          <div className="grid grid-cols-2 md:grid-cols-4 gap-8">
            {[
              { number: '200+', label: 'Consulting Engagements', sub: 'Across all industries' },
              { number: 'vCISO', label: 'Fractional CISO', sub: 'Leadership services' },
              { number: '50+', label: 'Security Architects', sub: 'Certified professionals' },
              { number: '95%', label: 'Client Satisfaction', sub: 'NPS score of 72' },
            ].map((m, i) => (
              <div key={i} className="text-center">
                <p className="text-3xl lg:text-4xl font-extrabold text-white mb-1">{m.number}</p>
                <p className="text-sm font-semibold text-blue-300">{m.label}</p>
                <p className="text-xs text-slate-400 mt-1">{m.sub}</p>
              </div>
            ))}
          </div>
        </div>
      </section>
      </ScrollReveal>

      {/* ─── SECTION 3 · Why Security Consulting Matters — Split Image ─── */}
      <ScrollReveal delay={100}>
      <section className="py-12 lg:py-16">
        <div className="max-w-7xl mx-auto px-6 lg:px-8">
          <div className="grid lg:grid-cols-2 gap-16 items-center">
            <div className="relative">
              <div className="aspect-[4/3] rounded-3xl overflow-hidden bg-gradient-to-br from-blue-100 to-blue-50 border border-blue-100">
                <img src="/placeholder.jpg" alt="Security Consulting Strategy" className="w-full h-full object-cover" />
              </div>
              <div className="absolute -bottom-6 -right-6 bg-white rounded-2xl border border-slate-200 shadow-xl p-5 max-w-[220px]">
                <div className="flex items-center gap-2 mb-2">
                  <div className="w-2 h-2 rounded-full bg-green-500 animate-pulse" />
                  <span className="text-xs font-bold text-green-600 uppercase">Client Win</span>
                </div>
                <p className="text-2xl font-extrabold text-slate-900">SOC 2</p>
                <p className="text-xs text-slate-500">Enabled $20M Fundraise</p>
              </div>
            </div>
            <div>
              <p className="text-xs font-bold text-blue-600 uppercase tracking-wider mb-3">Why Security Consulting Matters</p>
              <h2 className="text-3xl lg:text-4xl font-extrabold mb-6">The Cost of Going It Alone</h2>
              <p className="text-slate-500 leading-relaxed mb-8">
                Most organizations underestimate the complexity of building a mature security program. Without expert guidance, teams waste <strong className="text-slate-900">months on misaligned strategies</strong> that fail audits and leave critical gaps. A security consultant accelerates your journey by years.
              </p>
              <div className="space-y-4">
                {[
                  { stat: '70%', label: 'Of organizations lack a documented security strategy', icon: Target },
                  { stat: '3x ROI', label: 'Return on investment from professional security consulting', icon: TrendingUp },
                  { stat: '60% Faster', label: 'Certification timeline with expert advisory support', icon: Clock },
                ].map((item, i) => {
                  const Icon = item.icon
                  return (
                    <div key={i} className="flex items-start gap-4 bg-slate-50 rounded-xl p-4">
                      <div className="w-10 h-10 rounded-lg bg-blue-50 flex items-center justify-center flex-shrink-0">
                        <Icon className="w-5 h-5 text-blue-600" />
                      </div>
                      <div>
                        <p className="font-bold text-slate-900">{item.stat}</p>
                        <p className="text-sm text-slate-500">{item.label}</p>
                      </div>
                    </div>
                  )
                })}
              </div>
            </div>
          </div>
        </div>
      </section>
      </ScrollReveal>

      {/* ─── SECTION 4 · Service Grid ──────────────────── */}
      <ScrollReveal delay={100}>
      <section className="py-12 lg:py-16 bg-gradient-to-b from-white to-slate-50">
        <div className="max-w-7xl mx-auto px-6 lg:px-8">
          <div className="text-center mb-16">
            <p className="text-xs font-bold text-blue-600 uppercase tracking-wider mb-3">Our Services</p>
            <h2 className="text-3xl lg:text-4xl font-extrabold mb-4">Strategic Security Services</h2>
            <p className="text-slate-500 max-w-2xl mx-auto">Full-spectrum security consulting covering strategy, architecture, technology selection, and program transformation.</p>
          </div>
          <div className="grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
            {[
              { title: 'Virtual CISO', desc: 'Fractional CISO leadership — strategy, reporting, and board engagement without full-time cost.', icon: Users, highlight: 'On-Demand' },
              { title: 'Security Strategy', desc: 'Develop multi-year security roadmaps aligned with business objectives and risk tolerance.', icon: Target, highlight: 'Roadmap' },
              { title: 'Security Architecture', desc: 'Design secure-by-default architectures for cloud, hybrid, and on-premises environments.', icon: Layers, highlight: 'Design' },
              { title: 'Technology Advisory', desc: 'Evaluate and select security technologies that fit your needs and budget.', icon: Server, highlight: 'Vendor-Agnostic' },
              { title: 'Security Transformation', desc: 'End-to-end security program transformation from maturity assessment to implementation.', icon: RefreshCw, highlight: 'End-to-End' },
              { title: 'M&A Due Diligence', desc: 'Security assessment for mergers, acquisitions, and divestitures to reduce deal risk.', icon: BarChart3, highlight: 'Deal-Ready' },
            ].map((item, i) => {
              const Icon = item.icon
              return (
                <div key={i} className="group bg-white rounded-2xl border border-slate-200 p-6 hover:shadow-xl hover:border-blue-200 transition-all duration-300 hover:-translate-y-1">
                  <div className="flex items-center justify-between mb-4">
                    <div className="w-11 h-11 rounded-xl bg-blue-50 flex items-center justify-center group-hover:bg-blue-100 transition-colors">
                      <Icon className="w-5 h-5 text-blue-600" />
                    </div>
                    <span className="text-[10px] font-bold text-blue-600 bg-blue-50 px-2.5 py-1 rounded-full">{item.highlight}</span>
                  </div>
                  <h3 className="font-bold text-lg mb-2">{item.title}</h3>
                  <p className="text-sm text-slate-500 leading-relaxed">{item.desc}</p>
                  <div className="mt-4 pt-4 border-t border-slate-100">
                    <Link href="/contact" className="text-sm font-semibold text-blue-600 hover:text-blue-700 flex items-center gap-1 transition-colors">
                      Learn more <ChevronRight className="w-3.5 h-3.5" />
                    </Link>
                  </div>
                </div>
              )
            })}
          </div>
        </div>
      </section>
      </ScrollReveal>

      {/* ─── SECTION 5 · vCISO Pricing Tiers ───────────── */}
      <ScrollReveal delay={100}>
      <section className="py-12 lg:py-16">
        <div className="max-w-7xl mx-auto px-6 lg:px-8">
          <div className="text-center mb-16">
            <p className="text-xs font-bold text-blue-600 uppercase tracking-wider mb-3">vCISO Pricing</p>
            <h2 className="text-3xl lg:text-4xl font-extrabold mb-4">Choose Your Advisory Level</h2>
            <p className="text-slate-500 max-w-2xl mx-auto">From monthly strategic reviews to full-time embedded security leadership — pick the vCISO tier that matches your needs.</p>
          </div>
          <div className="grid md:grid-cols-3 gap-8">
            {[
              { tier: 'Advisor', desc: 'Monthly security review and strategic guidance for growing organizations.', price: '$5K/mo', features: ['Monthly check-in', 'Risk review', 'Vendor assessment', 'Board reporting', 'Email support'], popular: false },
              { tier: 'Part-Time CISO', desc: 'Hands-on security leadership and program management with dedicated hours.', price: '$12K/mo', features: ['Everything in Advisor', 'Security roadmap', 'Policy development', 'Team mentoring', 'Incident oversight', 'Compliance tracking'], popular: true },
              { tier: 'Full-Time vCISO', desc: 'Full-time embedded security leadership with complete program ownership.', price: '$25K/mo', features: ['Everything in Part-Time', 'Board presentations', 'Budget management', 'Vendor management', 'Audit coordination', 'Executive coaching'], popular: false },
            ].map((t, i) => (
              <div key={i} className={`relative rounded-2xl border-2 p-8 transition-all duration-300 hover:-translate-y-1 ${t.popular ? 'border-blue-500 bg-gradient-to-b from-blue-50/50 to-white shadow-xl shadow-blue-500/10' : 'border-slate-200 bg-white hover:shadow-xl'}`}>
                {t.popular && <div className="absolute -top-3.5 left-1/2 -translate-x-1/2 bg-gradient-to-r from-blue-500 to-blue-600 text-white text-[10px] font-bold uppercase tracking-wider px-4 py-1 rounded-full whitespace-nowrap">Most Popular</div>}
                <p className="text-xs font-bold text-blue-600 uppercase tracking-wider mb-2">{t.tier}</p>
                <p className="text-2xl font-extrabold text-slate-900 mb-1">{t.price}</p>
                <p className="text-sm text-slate-500 mb-6">{t.desc}</p>
                <ul className="space-y-2.5 mb-8">
                  {t.features.map((f, j) => (
                    <li key={j} className="flex items-start gap-2 text-sm text-slate-600">
                      <CheckCircle2 className="w-4 h-4 text-blue-500 mt-0.5 flex-shrink-0" />{f}
                    </li>
                  ))}
                </ul>
                <Link href="/contact" className={`block text-center font-bold text-sm py-3 rounded-xl transition-all duration-300 ${t.popular ? 'bg-gradient-to-r from-blue-500 to-blue-600 text-white shadow-lg' : 'bg-slate-100 text-slate-700 hover:bg-slate-200'}`}>
                  Get Started
                </Link>
              </div>
            ))}
          </div>
        </div>
      </section>
      </ScrollReveal>

      {/* ─── SECTION 6 · Comparison Table ──────────────── */}
      <ScrollReveal delay={100}>
      <section className="py-12 lg:py-16 bg-gradient-to-b from-white to-slate-50">
        <div className="max-w-7xl mx-auto px-6 lg:px-8">
          <div className="text-center mb-16">
            <p className="text-xs font-bold text-blue-600 uppercase tracking-wider mb-3">Comparison</p>
            <h2 className="text-3xl lg:text-4xl font-extrabold mb-4">With vs Without Security Consulting</h2>
            <p className="text-slate-500 max-w-2xl mx-auto">See what organizations without expert security guidance face versus those with a strategic consulting partner.</p>
          </div>
          <div className="bg-white rounded-3xl border border-slate-200 overflow-hidden shadow-xl">
            <div className="grid grid-cols-3 bg-slate-50 border-b border-slate-200">
              <div className="p-5 font-bold text-sm text-slate-600">Metric</div>
              <div className="p-5 font-bold text-sm text-center text-red-600 bg-red-50/50">Without Consulting</div>
              <div className="p-5 font-bold text-sm text-center text-blue-600 bg-blue-50/50">With Drish Consulting</div>
            </div>
            {[
              { metric: 'Strategy Clarity', without: 'Ad-hoc, reactive', with: 'Documented roadmap' },
              { metric: 'Budget Efficiency', without: 'Overspend by 40%', with: 'Optimized spend' },
              { metric: 'Board Confidence', without: 'Unsure of posture', with: 'Data-driven reports' },
              { metric: 'Vendor Selection', without: 'Trial and error', with: 'Proven shortlists' },
              { metric: 'Compliance Speed', without: '12-18 months', with: '3-6 months' },
              { metric: 'Incident Readiness', without: 'No playbook', with: 'Tested response plans' },
              { metric: 'Talent Gap', without: 'Critical roles empty', with: 'Mentored team' },
              { metric: 'ROI', without: 'Unclear value', with: '3x measurable return' },
            ].map((row, i) => (
              <div key={i} className={`grid grid-cols-3 border-b border-slate-100 last:border-0 ${i % 2 === 0 ? 'bg-white' : 'bg-slate-50/50'}`}>
                <div className="p-5 font-semibold text-sm text-slate-700">{row.metric}</div>
                <div className="p-5 text-sm text-center text-red-500 font-medium">{row.without}</div>
                <div className="p-5 text-sm text-center text-blue-600 font-bold">{row.with}</div>
              </div>
            ))}
          </div>
        </div>
      </section>
      </ScrollReveal>

      {/* ─── SECTION 7 · Market Growth + Stats ─────────── */}
      <ScrollReveal delay={100}>
      <section className="py-12 lg:py-16">
        <div className="max-w-7xl mx-auto px-6 lg:px-8">
          <div className="grid lg:grid-cols-2 gap-16 items-center">
            <div>
              <p className="text-xs font-bold text-blue-600 uppercase tracking-wider mb-3">Market Insights</p>
              <h2 className="text-3xl lg:text-4xl font-extrabold mb-6">Security Consulting Is Booming</h2>
              <p className="text-slate-500 leading-relaxed mb-8">
                The global security consulting market is projected to reach <strong className="text-slate-900">$18.9 billion by 2028</strong>, growing at 12.5% CAGR. Organizations are increasingly turning to fractional CISO and advisory models for strategic security leadership.
              </p>
              <div className="space-y-4">
                {[
                  { label: 'vCISO Adoption', value: '78%', width: '78%' },
                  { label: 'Security Consulting Growth', value: '12.5% CAGR', width: '65%' },
                  { label: 'Fractional CISO Demand', value: '85%', width: '85%' },
                  { label: 'M&A Security Engagements', value: '62%', width: '62%' },
                ].map((bar, i) => (
                  <div key={i}>
                    <div className="flex justify-between mb-1">
                      <span className="text-sm font-semibold text-slate-700">{bar.label}</span>
                      <span className="text-sm font-bold text-blue-600">{bar.value}</span>
                    </div>
                    <div className="h-2.5 bg-slate-100 rounded-full overflow-hidden">
                      <div className="h-full bg-gradient-to-r from-blue-500 to-blue-600 rounded-full" style={{ width: bar.width }} />
                    </div>
                  </div>
                ))}
              </div>
            </div>
            <div className="grid grid-cols-2 gap-4">
              <div className="bg-white rounded-2xl border border-slate-200 p-6 text-center hover:shadow-lg transition-all duration-300">
                <div className="w-12 h-12 rounded-xl bg-blue-50 flex items-center justify-center mx-auto mb-3"><TrendingUp className="w-6 h-6 text-blue-600" /></div>
                <p className="text-3xl font-extrabold text-slate-900 mb-1">$18.9B</p>
                <p className="text-xs text-slate-500">Market Size by 2028</p>
              </div>
              <div className="bg-white rounded-2xl border border-slate-200 p-6 text-center hover:shadow-lg transition-all duration-300">
                <div className="w-12 h-12 rounded-xl bg-blue-50 flex items-center justify-center mx-auto mb-3"><Activity className="w-6 h-6 text-blue-600" /></div>
                <p className="text-3xl font-extrabold text-slate-900 mb-1">12.5%</p>
                <p className="text-xs text-slate-500">Annual Growth Rate</p>
              </div>
              <div className="bg-white rounded-2xl border border-slate-200 p-6 text-center hover:shadow-lg transition-all duration-300">
                <div className="w-12 h-12 rounded-xl bg-blue-50 flex items-center justify-center mx-auto mb-3"><Building2 className="w-6 h-6 text-blue-600" /></div>
                <p className="text-3xl font-extrabold text-slate-900 mb-1">200+</p>
                <p className="text-xs text-slate-500">Engagements Delivered</p>
              </div>
              <div className="bg-white rounded-2xl border border-slate-200 p-6 text-center hover:shadow-lg transition-all duration-300">
                <div className="w-12 h-12 rounded-xl bg-blue-50 flex items-center justify-center mx-auto mb-3"><Users className="w-6 h-6 text-blue-600" /></div>
                <p className="text-3xl font-extrabold text-slate-900 mb-1">95%</p>
                <p className="text-xs text-slate-500">Client Satisfaction</p>
              </div>
            </div>
          </div>
        </div>
      </section>
      </ScrollReveal>

      {/* ─── SECTION 8 · Client Results ────────────────── */}
      <ScrollReveal delay={100}>
      <section className="py-12 lg:py-16 bg-gradient-to-b from-white to-slate-50">
        <div className="max-w-7xl mx-auto px-6 lg:px-8">
          <div className="text-center mb-16">
            <p className="text-xs font-bold text-blue-600 uppercase tracking-wider mb-3">Client Success</p>
            <h2 className="text-3xl lg:text-4xl font-extrabold mb-4">Real Results from Our Consulting</h2>
          </div>
          <div className="grid md:grid-cols-3 gap-6">
            {[
              { company: 'FinServe Corp', industry: 'Banking', result: 'Built enterprise security program from scratch in 6 months', detail: 'vCISO engagement designed and implemented a complete security program — policies, tools, team, and governance — achieving full compliance ahead of regulatory deadlines.', metric: 'Security Program Built', roi: '$1.2M saved' },
              { company: 'CloudScale SaaS', industry: 'Technology', result: 'Achieved SOC 2 and closed $20M Series B funding round', detail: 'Security consulting helped achieve SOC 2 compliance in 4 months instead of 12, which was a prerequisite for their $20M Series B investment from a tier-1 VC firm.', metric: 'SOC 2 Enabled Fundraise', roi: '$20M raised' },
              { company: 'MedTech Holdings', industry: 'Healthcare', result: 'Reduced M&A security risk by 85% across 3 acquisitions', detail: 'Due diligence security assessments identified critical vulnerabilities in acquisition targets, saving an estimated $3.5M in post-acquisition remediation costs.', metric: '85% Risk Reduction', roi: '$3.5M saved' },
            ].map((story, i) => (
              <div key={i} className="bg-white rounded-2xl border border-slate-200 p-8 hover:shadow-xl transition-all duration-300">
                <div className="flex items-center justify-between mb-4">
                  <h3 className="font-bold text-lg">{story.company}</h3>
                  <span className="text-[10px] font-bold text-blue-600 bg-blue-50 px-2.5 py-1 rounded-full">{story.industry}</span>
                </div>
                <p className="text-sm font-semibold text-blue-600 mb-2">{story.result}</p>
                <p className="text-sm text-slate-500 mb-4 leading-relaxed">{story.detail}</p>
                <div className="flex items-center justify-between pt-4 border-t border-slate-100">
                  <p className="text-sm font-extrabold text-blue-600">{story.metric}</p>
                  <span className="text-xs font-bold text-green-600 bg-green-50 px-2.5 py-1 rounded-full">{story.roi}</span>
                </div>
              </div>
            ))}
          </div>
        </div>
      </section>
      </ScrollReveal>

      {/* ─── SECTION 9 · CTA ───────────────────────────── */}
      <ScrollReveal>
      <section className="py-12 lg:py-16 bg-gradient-to-br from-blue-950 via-blue-950 to-slate-950">
        <div className="max-w-4xl mx-auto px-6 lg:px-8 text-center">
          <div className="inline-flex items-center gap-2 bg-blue-500/10 border border-blue-500/20 rounded-full px-4 py-1.5 mb-6">
            <ShieldCheck className="w-3.5 h-3.5 text-blue-400" />
            <span className="text-xs font-semibold text-blue-300 uppercase tracking-wider">Security Advisors</span>
          </div>
          <h2 className="text-3xl lg:text-5xl font-extrabold text-white mb-6">
            Your Security Strategy Starts Here
          </h2>
          <p className="text-lg text-slate-300 mb-10 max-w-2xl mx-auto">
            Get a free 30-minute consultation with a senior security advisor — no strings attached. We'll assess your current posture and outline a path forward.
          </p>
          <div className="flex flex-wrap justify-center gap-4">
            <Link href="/contact" className="inline-flex items-center gap-2 bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-400 hover:to-blue-500 text-white font-bold px-8 py-4 rounded-xl shadow-lg shadow-blue-500/25 hover:shadow-blue-400/40 transition-all duration-300 hover:scale-105">
              Free Consultation <ArrowRight className="w-4 h-4" />
            </Link>
            <Link href="/contact" className="inline-flex items-center gap-2 border border-white/20 hover:border-blue-400/40 text-white/80 hover:text-white font-semibold px-8 py-4 rounded-xl transition-all duration-300">
              Talk to a vCISO
            </Link>
          </div>
          <p className="text-xs text-slate-400 mt-8">No commitment · 30-minute free consultation · NDA available</p>
        </div>
      </section>
      </ScrollReveal>

      <Footer />
    </main>
  )
}
