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 { ShieldCheck, ArrowRight, CheckCircle2, TrendingUp, Shield, Zap, RefreshCw, Activity, Clock, Users, BarChart3, Globe, Eye, AlertTriangle, Lock, Target, Server, Layers, ChevronRight, Award, Building2, TrendingDown, Ban } from 'lucide-react'

export const metadata = {
  title: 'Security Operations Center (SOC) - Drish Infra',
  description: '24/7 Security Operations Center with expert analysts, threat detection, incident response, and continuous monitoring. Enterprise-grade SOC-as-a-Service.',
}

export default function SOCPage() {
  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-blue-950 via-blue-950 to-slate-950 text-white pt-14 pb-20 lg:pt-16 lg:pb-28">
        <div className="absolute inset-0 opacity-[0.04]" style={{ backgroundImage: 'radial-gradient(circle at 1px 1px, #3b82f6 1px, transparent 0)', backgroundSize: '20px 20px' }} />
        <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="text-center lg:text-left">
              <div className="w-14 h-14 rounded-2xl bg-gradient-to-br from-blue-500 to-blue-600 flex items-center justify-center mb-6 shadow-lg shadow-blue-500/30">
                <ShieldCheck className="w-7 h-7 text-white" />
              </div>
              <h1 className="text-4xl lg:text-5xl xl:text-6xl font-extrabold leading-[1.1] mb-6">
                24/7 Security Operations <span className="bg-gradient-to-r from-blue-400 to-blue-500 bg-clip-text text-transparent">Center</span>
              </h1>
              <p className="text-lg text-slate-300 leading-relaxed mb-8 max-w-xl">
                Our SOC operates around the clock — detecting threats, investigating alerts, and responding to incidents before they impact your business. Expert analysts, not just algorithms.
              </p>
              <div className="flex justify-center lg:justify-start flex-wrap 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 text-sm px-6 py-3 rounded-xl shadow-lg shadow-blue-500/25 hover:shadow-blue-400/40 transition-all duration-300 hover:scale-105">
                  Get SOC Assessment <ArrowRight className="w-4 h-4" />
                </Link>
              </div>
            </div>
            <div className="block order-first lg:order-last">
              <ServiceHeroImage label="Soc" stats={[{ value: '50M+', label: 'Events/Day' }, { value: '<4 min', label: 'Detect Time' }, { value: '99.7%', label: 'Detection Rate' }]}>
              <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">
                <ShieldCheck 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: '50M+', label: 'Events Analyzed/Day', sub: 'Across all clients' },
              { number: '<4 min', label: 'Mean Time to Detect', sub: 'Threat detection speed' },
              { number: '99.7%', label: 'Threat Detection Rate', sub: 'Industry-leading accuracy' },
              { number: '24/7/365', label: 'SOC Coverage', sub: 'Follow-the-sun model' },
            ].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 SOC 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="SOC Operations Center" 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">Live Monitor</span>
                </div>
                <p className="text-2xl font-extrabold text-slate-900">2.4M</p>
                <p className="text-xs text-slate-500">Events processed this hour</p>
              </div>
            </div>
            <div>
              <p className="text-xs font-bold text-blue-600 uppercase tracking-wider mb-3">Why You Need a SOC</p>
              <h2 className="text-3xl lg:text-4xl font-extrabold mb-6">The Cost of Not Having 24/7 Monitoring</h2>
              <p className="text-slate-500 leading-relaxed mb-8">
                The average time to identify a data breach is <strong className="text-slate-900">204 days</strong>. Without continuous monitoring, attackers have months to roam your network undetected. A SOC reduces this to minutes.
              </p>
              <div className="space-y-4">
                {[
                  { stat: '204 days', label: 'Average time to identify a breach without SOC', icon: Clock },
                  { stat: '$4.45M', label: 'Average cost of a data breach in 2023', icon: TrendingDown },
                  { stat: '83%', label: 'Of breaches involve repeated attack patterns a SOC would catch', icon: Ban },
                ].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 · SOC Services 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">SOC Services</p>
            <h2 className="text-3xl lg:text-4xl font-extrabold mb-4">What Our SOC Does</h2>
            <p className="text-slate-500 max-w-2xl mx-auto">Full-spectrum security operations covering detection, investigation, response, and continuous improvement.</p>
          </div>
          <div className="grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
            {[
              { title: 'Threat Detection', desc: 'Real-time analysis of security events using SIEM, EDR, and threat intelligence feeds.', icon: Eye, highlight: 'AI-Powered' },
              { title: 'Incident Response', desc: 'Immediate investigation and containment of security incidents with expert analysts.', icon: AlertTriangle, highlight: '<15 min' },
              { title: 'Threat Hunting', desc: 'Proactive search for hidden threats that evade automated detection systems.', icon: Target, highlight: 'Proactive' },
              { title: 'Vulnerability Management', desc: 'Continuous scanning and prioritization of vulnerabilities across your environment.', icon: Shield, highlight: 'Continuous' },
              { title: 'Compliance Monitoring', desc: 'Continuous compliance checks against regulatory frameworks and standards.', icon: CheckCircle2, highlight: 'Automated' },
              { title: 'Security Reporting', desc: 'Daily, weekly, and monthly security reports with executive summaries.', icon: BarChart3, highlight: 'Real-Time' },
            ].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 · Comparison Table ──────────────── */}
      <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">Comparison</p>
            <h2 className="text-3xl lg:text-4xl font-extrabold mb-4">SOC vs No SOC — The Real Difference</h2>
            <p className="text-slate-500 max-w-2xl mx-auto">See what organizations without a SOC face versus those with continuous monitoring.</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 SOC</div>
              <div className="p-5 font-bold text-sm text-center text-blue-600 bg-blue-50/50">With Drish SOC</div>
            </div>
            {[
              { metric: 'Breach Detection Time', without: '204 days', with: '<4 minutes' },
              { metric: 'Mean Time to Respond', without: '73 days', with: '<15 minutes' },
              { metric: 'Cost per Breach', without: '$4.45M', with: '$180K' },
              { metric: 'Alert Triage', without: 'Manual / Delayed', with: 'Automated + Human' },
              { metric: 'Coverage Hours', without: 'Business hours only', with: '24/7/365' },
              { metric: 'Threat Intelligence', without: 'Reactive', with: '50+ live feeds' },
              { metric: 'Compliance Status', unknown: true, without: 'Unknown gaps', with: 'Continuous audit' },
              { metric: 'Incident Documentation', without: 'Ad-hoc', with: 'NIST-compliant' },
            ].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 6 · Market Growth + Stats ─────────── */}
      <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="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">The SOC Market Is Booming</h2>
              <p className="text-slate-500 leading-relaxed mb-8">
                The global SOC-as-a-Service market is projected to reach <strong className="text-slate-900">$9.2 billion by 2028</strong>, growing at 24.1% CAGR. Organizations are shifting from in-house SIEM to managed SOC services for better coverage and lower costs.
              </p>
              <div className="space-y-4">
                {[
                  { label: 'Managed SOC Adoption', value: '72%', width: '72%' },
                  { label: 'Cost Reduction vs In-House', value: '40-60%', width: '55%' },
                  { label: 'Client Retention Rate', value: '98%', width: '98%' },
                  { label: 'Fortune 500 Using SOC-as-a-Service', value: '85%', width: '85%' },
                ].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">$9.2B</p>
                <p className="text-xs text-slate-500">SOC Market 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">24.1%</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">3,400+</p>
                <p className="text-xs text-slate-500">SOC Providers Globally</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">1.2M</p>
                <p className="text-xs text-slate-500">SOC Analysts Needed</p>
              </div>
            </div>
          </div>
        </div>
      </section>
      </ScrollReveal>

      {/* ─── SECTION 7 · SOC Tiers / Pricing ───────────── */}
      <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">SOC Tiers</p>
            <h2 className="text-3xl lg:text-4xl font-extrabold mb-4">Choose Your SOC Level</h2>
            <p className="text-slate-500 max-w-2xl mx-auto">From business-hours monitoring to full 24/7 threat hunting — pick the SOC tier that matches your risk profile.</p>
          </div>
          <div className="grid md:grid-cols-3 gap-8">
            {[
              { tier: 'SOC Type I', desc: 'Dedicated SOC analyst monitoring your environment during business hours.', coverage: 'Business Hours', team: '1-2 analysts', price: 'From $5K/mo', features: ['SIEM monitoring', 'Alert triage', 'Daily reports', 'Email support', 'Monthly review'], popular: false },
              { tier: 'SOC Type II', desc: 'Extended coverage with after-hours on-call and automated response playbooks.', coverage: '16/7', team: '3-5 analysts', price: 'From $12K/mo', features: ['Everything in Type I', 'After-hours on-call', 'Auto-response playbooks', 'Weekly briefings', 'Threat intelligence'], popular: true },
              { tier: 'SOC Type III', desc: 'Full 24/7 SOC with threat hunting, incident response, and virtual CISO.', coverage: '24/7/365', team: '8-12 analysts', price: 'From $25K/mo', features: ['Everything in Type II', '24/7 threat hunting', 'Incident response', 'Virtual CISO', 'Board reporting'], 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-4">{t.desc}</p>
                <div className="flex gap-4 mb-6">
                  <span className="text-xs text-slate-500">Coverage: <strong className="text-slate-700">{t.coverage}</strong></span>
                  <span className="text-xs text-slate-500">Team: <strong className="text-slate-700">{t.team}</strong></span>
                </div>
                <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 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 SOC</h2>
          </div>
          <div className="grid md:grid-cols-3 gap-6">
            {[
              { company: 'FinServe Global', industry: 'Banking', result: 'Detected and contained ransomware in 8 minutes', metric: '8-Minute Response', roi: '$2.3M saved', detail: 'SOC analysts identified anomalous encryption activity, isolated the host, and initiated recovery before any data was encrypted. The automated playbooks contained the threat across 3 segments simultaneously.' },
              { company: 'MedTech Corp', industry: 'Healthcare', result: 'Achieved SOC 2 Type II with continuous monitoring', metric: '100% Compliance', roi: '$800K audit savings', detail: 'Our SOC provided continuous compliance monitoring and evidence collection for SOC 2 Type II certification. Automated evidence gathering reduced audit prep time by 70%.' },
              { company: 'RetailMax', industry: 'E-Commerce', result: 'Blocked 2M+ credential stuffing attacks in Q1', metric: '2M+ Attacks Blocked', roi: '$1.5M fraud prevented', detail: 'Real-time detection of distributed credential stuffing campaigns. AI-powered analysis identified patterns across 50K unique IPs and auto-blocked before account takeover.' },
            ].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">SOC Experts</span>
          </div>
          <h2 className="text-3xl lg:text-5xl font-extrabold text-white mb-6">
            Your Security Cannot Wait Until Morning
          </h2>
          <p className="text-lg text-slate-300 mb-10 max-w-2xl mx-auto">
            Get a free SOC readiness assessment — including gap analysis, threat landscape review, and a custom SOC proposal.
          </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 SOC Assessment <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 Security Analyst
            </Link>
          </div>
          <p className="text-xs text-slate-400 mt-8">No commitment · Assessment in 5 days · NDA available</p>
        </div>
      </section>
      </ScrollReveal>

      <Footer />
    </main>
  )
}
