<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="{{ $description ?? 'Professional Photography Services by OA MediaKraft' }}">
    <title>{{ $title ?? config('app.name', 'OA MediaKraft') }} - Photography</title>

    <!-- Load Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>

    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link
        href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap"
        rel="stylesheet">

    <!-- Custom Styles -->
    <style>
        html {
            font-size: 60%;
            scroll-padding-top: 5rem;
        }

        body {
            font-family: 'Inter', sans-serif;
            scroll-behavior: smooth;
        }

        .font-display {
            font-family: 'Playfair Display', serif;
        }

        /* Animation styles */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-on-scroll {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        .animate-on-scroll.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Gallery grid */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 0.75rem;
        }

        .gallery-item img {
            transition: transform 0.5s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.05);
        }

        /* Lightbox */
        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox img {
            max-width: 90vw;
            max-height: 90vh;
            object-fit: contain;
        }

        .lightbox-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            color: white;
            font-size: 2rem;
            cursor: pointer;
        }
    </style>
</head>

<body class="min-h-screen antialiased bg-gray-900 text-white">
    <!-- Navigation -->
    <nav class="fixed top-0 w-full z-50 bg-gray-900/95 backdrop-blur-sm border-b border-gray-800">
        <div class="max-w-7xl mx-auto px-6 lg:px-8">
            <div class="flex items-center justify-between h-16">
                <!-- Logo -->
                <a href="/" class="flex items-center space-x-2">
                    <span class="text-2xl font-extrabold tracking-tight text-amber-400">
                        OA<span class="text-white">MediaKraft</span>
                    </span>
                </a>

                <!-- Desktop Nav -->
                <div class="hidden md:flex items-center space-x-8">
                    <a href="/photography" class="text-white hover:text-amber-400 transition">Home</a>
                    <a href="/photography/portfolio" class="text-gray-300 hover:text-amber-400 transition">Portfolio</a>
                    <a href="/photography/services" class="text-gray-300 hover:text-amber-400 transition">Services</a>
                    <a href="/photography/booking" class="text-gray-300 hover:text-amber-400 transition">Book Now</a>
                    <a href="/" class="text-gray-400 hover:text-white transition text-sm">← Back to Main</a>
                </div>

                <!-- Mobile menu button -->
                <button id="mobile-menu-btn" class="md:hidden text-gray-300 hover:text-white">
                    <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                            d="M4 6h16M4 12h16M4 18h16" />
                    </svg>
                </button>
            </div>
        </div>

        <!-- Mobile menu -->
        <div id="mobile-menu" class="hidden md:hidden bg-gray-800 border-t border-gray-700">
            <div class="px-4 py-3 space-y-2">
                <a href="/photography" class="block px-3 py-2 text-white hover:bg-gray-700 rounded-lg">Home</a>
                <a href="/photography/portfolio"
                    class="block px-3 py-2 text-gray-300 hover:bg-gray-700 rounded-lg">Portfolio</a>
                <a href="/photography/services"
                    class="block px-3 py-2 text-gray-300 hover:bg-gray-700 rounded-lg">Services</a>
                <a href="/photography/booking" class="block px-3 py-2 text-gray-300 hover:bg-gray-700 rounded-lg">Book
                    Now</a>
                <a href="/" class="block px-3 py-2 text-gray-400 hover:bg-gray-700 rounded-lg">← Back to Main</a>
            </div>
        </div>
    </nav>

    <!-- Content -->
    <main class="pt-16">
        @yield('content')
    </main>

    <!-- Footer -->
    <footer class="bg-gray-950 border-t border-gray-800 py-12">
        <div class="max-w-7xl mx-auto px-6 lg:px-8 text-center">
            <div class="text-lg font-extrabold tracking-tight text-amber-400 mb-4">
                OA<span class="text-white">MediaKraft</span> Photography
            </div>
            <p class="text-gray-400 text-sm mb-6">Professional photography services for businesses and individuals</p>
            <div class="flex justify-center space-x-6 text-sm text-gray-400">
                <a href="#" class="hover:text-amber-400 transition">Terms</a>
                <a href="#" class="hover:text-amber-400 transition">Privacy</a>
                <a href="mailto:photo@oamediakraft.co.uk" class="hover:text-amber-400 transition">Contact</a>
            </div>
            <p class="text-gray-500 text-xs mt-6">&copy; {{ date('Y') }} OA MediaKraft. All rights reserved.</p>
        </div>
    </footer>

    <!-- Scripts -->
    <script>
        // Mobile menu toggle
        document.getElementById('mobile-menu-btn')?.addEventListener('click', function() {
            document.getElementById('mobile-menu').classList.toggle('hidden');
        });

        // Scroll animations
        document.addEventListener('DOMContentLoaded', () => {
            const observer = new IntersectionObserver((entries) => {
                entries.forEach(entry => {
                    if (entry.isIntersecting) {
                        entry.target.classList.add('is-visible');
                        observer.unobserve(entry.target);
                    }
                });
            }, {
                threshold: 0.1
            });

            document.querySelectorAll('.animate-on-scroll').forEach(el => observer.observe(el));
        });
    </script>

    @stack('scripts')
</body>

</html>
