"use client"; import { useState, useEffect, useRef } from "react"; import { FloatingHouse, RotatingKey, GrowingBuilding } from "./PropertyAnimations"; export default function WhyChooseUs() { const [visibleCards, setVisibleCards] = useState([false, false, false, false]); const sectionRef = useRef(null); const features = [ { title: "Prime Locations", description: "Strategically located in the heart of North Bengaluru's growth corridor.", icon: ( ), }, { title: "Smart Homes", description: "Future-ready infrastructure with integrated smart home automation.", icon: ( ), }, { title: "Transparent Deals", description: "100% clear documentation and legal compliance for peace of mind.", icon: ( ), }, { title: "Customer First", description: "Dedicated support team to guide you through every step of the journey.", icon: ( ), }, ]; useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { // Trigger cards to appear one by one with delay features.forEach((_, index) => { setTimeout(() => { setVisibleCards((prev) => { const newVisible = [...prev]; newVisible[index] = true; return newVisible; }); }, index * 150); // 150ms delay between each card }); } }); }, { threshold: 0.2 } ); if (sectionRef.current) { observer.observe(sectionRef.current); } return () => { if (sectionRef.current) { observer.unobserve(sectionRef.current); } }; }, []); return (
{/* Decorative Animations */}

Why Sky and Soil?

We bridge the gap between your dreams and reality with premium properties and unmatched service.

{features.map((feature, index) => (
{feature.icon}

{feature.title}

{feature.description}

))}
); }