2025-11-12 19:38:14 +00:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
import { motion } from "framer-motion";
|
|
|
|
|
import { useInView } from "framer-motion";
|
2025-11-13 11:10:00 +00:00
|
|
|
import { useRef } from "react";
|
2025-11-12 19:38:14 +00:00
|
|
|
import { MapPin, Phone, Building2 } from "lucide-react";
|
2025-11-13 11:10:00 +00:00
|
|
|
import { useAppTheme } from "@/components/ThemeProvider";
|
2025-11-12 19:38:14 +00:00
|
|
|
|
|
|
|
|
export function Location() {
|
|
|
|
|
const ref = useRef(null);
|
|
|
|
|
const isInView = useInView(ref, { once: true, margin: "-100px" });
|
2025-11-13 11:10:00 +00:00
|
|
|
const { theme } = useAppTheme();
|
|
|
|
|
const isDark = theme === "dark";
|
2025-11-12 19:38:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<section
|
|
|
|
|
id="location"
|
|
|
|
|
ref={ref}
|
|
|
|
|
className="relative py-20 px-4 overflow-hidden"
|
|
|
|
|
>
|
|
|
|
|
{/* Background Image */}
|
|
|
|
|
<div
|
|
|
|
|
className="absolute inset-0 z-0"
|
|
|
|
|
style={{
|
|
|
|
|
backgroundSize: 'cover',
|
|
|
|
|
backgroundPosition: 'center',
|
|
|
|
|
backgroundRepeat: 'no-repeat',
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{/* Minimal overlay - allowing background image to show at near original opaqueness */}
|
|
|
|
|
<div
|
|
|
|
|
className="absolute inset-0 z-[1]"
|
|
|
|
|
style={{
|
|
|
|
|
backgroundColor: isDark ? 'rgba(0, 0, 0, 0.15)' : 'rgba(255, 255, 255, 0.10)'
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{/* Very subtle gradient overlay */}
|
|
|
|
|
{!isDark && (
|
|
|
|
|
<div className="absolute inset-0 z-[2] bg-gradient-to-br from-rose-50/10 via-pink-50/8 to-orange-50/10" />
|
|
|
|
|
)}
|
|
|
|
|
{isDark && (
|
|
|
|
|
<div className="absolute inset-0 z-[2] bg-gradient-to-br from-gray-900/10 via-gray-800/8 to-gray-900/10" />
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/* Subtle animated blobs */}
|
|
|
|
|
<div className="absolute inset-0 overflow-hidden z-[3]">
|
|
|
|
|
<motion.div
|
|
|
|
|
className="absolute top-20 left-20 w-72 h-72 bg-cyan-100 dark:bg-cyan-900/20 rounded-full mix-blend-multiply dark:mix-blend-lighten filter blur-xl opacity-30 dark:opacity-50"
|
|
|
|
|
animate={{
|
|
|
|
|
x: [0, 80, 0],
|
|
|
|
|
y: [0, 40, 0],
|
|
|
|
|
scale: [1, 1.1, 1],
|
|
|
|
|
}}
|
|
|
|
|
transition={{
|
|
|
|
|
duration: 18,
|
|
|
|
|
repeat: Infinity,
|
|
|
|
|
ease: 'easeInOut',
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<motion.div
|
|
|
|
|
className="absolute bottom-20 right-20 w-96 h-96 bg-emerald-100 dark:bg-emerald-900/20 rounded-full mix-blend-multiply dark:mix-blend-lighten filter blur-xl opacity-30 dark:opacity-50"
|
|
|
|
|
animate={{
|
|
|
|
|
x: [0, -80, 0],
|
|
|
|
|
y: [0, 60, 0],
|
|
|
|
|
scale: [1, 1.15, 1],
|
|
|
|
|
}}
|
|
|
|
|
transition={{
|
|
|
|
|
duration: 22,
|
|
|
|
|
repeat: Infinity,
|
|
|
|
|
ease: 'easeInOut',
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="container max-w-6xl mx-auto relative z-10">
|
|
|
|
|
<motion.div
|
|
|
|
|
initial={{ opacity: 0, y: 30 }}
|
|
|
|
|
animate={isInView ? { opacity: 1, y: 0 } : {}}
|
|
|
|
|
transition={{ duration: 0.8 }}
|
|
|
|
|
className="text-center mb-16"
|
|
|
|
|
>
|
|
|
|
|
<motion.h2
|
|
|
|
|
className="text-4xl md:text-5xl font-bold mb-6 bg-gradient-to-r from-rose-600 via-pink-600 to-orange-600 bg-clip-text text-transparent"
|
|
|
|
|
initial={{ opacity: 0, y: 20 }}
|
|
|
|
|
animate={isInView ? { opacity: 1, y: 0 } : {}}
|
|
|
|
|
transition={{ duration: 0.8, delay: 0.2 }}
|
|
|
|
|
>
|
|
|
|
|
Location
|
|
|
|
|
</motion.h2>
|
|
|
|
|
</motion.div>
|
|
|
|
|
|
|
|
|
|
<div className="grid md:grid-cols-2 gap-6 mb-8">
|
|
|
|
|
{/* Primary Location */}
|
|
|
|
|
<motion.div
|
|
|
|
|
initial={{ opacity: 0, x: -50 }}
|
|
|
|
|
animate={isInView ? { opacity: 1, x: 0 } : {}}
|
|
|
|
|
transition={{ duration: 0.8, delay: 0.2 }}
|
|
|
|
|
className="bg-card/50 backdrop-blur-sm rounded-2xl p-6 border border-border/50 hover:border-rose-500/50 hover:shadow-lg hover:shadow-rose-500/10 transition-all duration-300"
|
|
|
|
|
>
|
|
|
|
|
<div className="flex items-center gap-3 mb-4">
|
|
|
|
|
<div className="bg-gradient-to-br from-rose-500/20 via-pink-500/20 to-orange-500/20 dark:from-rose-500/30 dark:via-pink-500/30 dark:to-orange-500/30 p-3 rounded-xl">
|
|
|
|
|
<MapPin className="h-6 w-6 text-rose-600 dark:text-rose-400" />
|
|
|
|
|
</div>
|
|
|
|
|
<h3 className="text-xl font-semibold text-foreground">Primary Location</h3>
|
|
|
|
|
</div>
|
2025-11-23 13:46:33 +00:00
|
|
|
<p className="text-muted-foreground mb-2">Hollywood, FL</p>
|
2025-11-12 19:38:14 +00:00
|
|
|
<div className="flex items-center gap-2 text-muted-foreground">
|
|
|
|
|
<Phone className="h-4 w-4" />
|
2025-11-23 13:46:33 +00:00
|
|
|
<span>(754) 816-2311</span>
|
2025-11-12 19:38:14 +00:00
|
|
|
</div>
|
|
|
|
|
</motion.div>
|
|
|
|
|
|
|
|
|
|
{/* Additional Location */}
|
|
|
|
|
<motion.div
|
|
|
|
|
initial={{ opacity: 0, x: 50 }}
|
|
|
|
|
animate={isInView ? { opacity: 1, x: 0 } : {}}
|
|
|
|
|
transition={{ duration: 0.8, delay: 0.3 }}
|
|
|
|
|
className="bg-card/50 backdrop-blur-sm rounded-2xl p-6 border border-border/50 hover:border-rose-500/50 hover:shadow-lg hover:shadow-rose-500/10 transition-all duration-300"
|
|
|
|
|
>
|
|
|
|
|
<div className="flex items-center gap-3 mb-4">
|
|
|
|
|
<div className="bg-gradient-to-br from-rose-500/20 via-pink-500/20 to-orange-500/20 dark:from-rose-500/30 dark:via-pink-500/30 dark:to-orange-500/30 p-3 rounded-xl">
|
|
|
|
|
<Building2 className="h-6 w-6 text-rose-600 dark:text-rose-400" />
|
|
|
|
|
</div>
|
|
|
|
|
<h3 className="text-xl font-semibold text-foreground">Additional Location</h3>
|
|
|
|
|
</div>
|
2025-11-23 13:46:33 +00:00
|
|
|
<p className="text-muted-foreground mb-2">South Miami, FL</p>
|
2025-11-12 19:38:14 +00:00
|
|
|
<div className="flex items-center gap-2 text-muted-foreground">
|
|
|
|
|
<Phone className="h-4 w-4" />
|
2025-11-23 13:46:33 +00:00
|
|
|
<span>(754) 816-2311</span>
|
2025-11-12 19:38:14 +00:00
|
|
|
</div>
|
|
|
|
|
</motion.div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|