---
import Layout from '../layouts/Layout.astro';

interface Props {
    title: string;
    description: string;
    canonicalLink: string;
}

const { title, description, canonicalLink } = Astro.props;
---

<Layout {title} {description} {canonicalLink}>
    <h1 class="sr-only">Entdecken Sie unsere Premium-Flotte in Berlin</h1>

    <!-- Hero Section -->
    <section class="relative h-[80vh] min-h-[700px] w-full flex items-center justify-center overflow-hidden">
        <!-- Background Image with Parallax Effect -->
        <div class="absolute inset-0 scale-110 animate-scaleIn">
            <img
                    src="/images/services/vip_hero.avif"
                    alt="VIP Chauffeur Service"
                    width="1920"
                    height="1080"
                    sizes="100vw"
                    class="absolute inset-0 w-full h-full object-cover brightness-40"
                    loading="eager"
            />
        </div>

        <div class="absolute inset-0 bg-gradient-to-b from-black/90 via-black/60 to-black/0" />
        <div class="absolute bottom-0 left-0 right-0 h-32 bg-gradient-to-t from-gray-50 to-transparent" />

        <!-- Content -->
        <div class="relative z-10 text-center p-6 max-w-4xl opacity-0 animate-fadeInUp delay-300">
            <div class="opacity-0 animate-fadeIn delay-500">
                <h1 class="text-5xl md:text-7xl font-extrabold tracking-tight mb-6">
                    <span class="block text-white">Exklusiver</span>
                    <span class="block text-transparent bg-clip-text bg-gradient-to-r from-amber-300 to-amber-500 scale-x-0 animate-scaleXIn delay-700">
                        VIP-Fahrservice
                    </span>
                </h1>
            </div>
            <p class="mt-6 text-xl md:text-2xl text-gray-200 max-w-2xl mx-auto font-light opacity-0 animate-fadeIn delay-900">
                Ihr Partner für erstklassige Mobilität, Diskretion und perfekten
                Service in Berlin.
            </p>
        </div>
    </section>

    <style is:global>
        @keyframes scaleIn {
            from {
                transform: scale(1.1);
            }
            to {
                transform: scale(1);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        @keyframes scaleXIn {
            from {
                transform: scaleX(0);
            }
            to {
                transform: scaleX(1);
            }
        }

        .animate-scaleIn {
            animation: scaleIn 1.5s ease-out forwards;
        }

        .animate-fadeInUp {
            animation: fadeInUp 1s ease-out forwards;
        }

        .animate-fadeIn {
            animation: fadeIn 1s ease-out forwards;
        }

        .animate-scaleXIn {
            animation: scaleXIn 0.8s ease-out forwards;
            transform-origin: left;
        }

        .delay-300 {
            animation-delay: 0.3s;
        }

        .delay-500 {
            animation-delay: 0.5s;
        }

        .delay-700 {
            animation-delay: 0.7s;
        }

        .delay-900 {
            animation-delay: 0.9s;
        }
    </style>
</Layout>
