<!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 Graphic Design Services by OA MediaKraft' }}">
    <title>{{ $title ?? config('app.name', 'OA MediaKraft') }} - Design</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=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@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: 'Space Grotesk', sans-serif;
        }

        /* Gradient text */
        .text-gradient {
            background: linear-gradient(135deg, #22d3ee 0%, #e879f9 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

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

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

        @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .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);
        }

        .animate-float {
            animation: float 3s ease-in-out infinite;
        }

        /* Before/After slider */
        .before-after-container {
            position: relative;
            overflow: hidden;
        }

        .before-after-slider {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            overflow: hidden;
        }

        .slider-handle {
            position: absolute;
            top: 50%;
            right: -15px;
            width: 30px;
            height: 30px;
            background: linear-gradient(135deg, #22d3ee, #e879f9);
            border-radius: 50%;
            transform: translateY(-50%);
            cursor: ew-resize;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Color swatch */
        .color-swatch {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        /* Card hover effect */
        .design-card {
            transition: all 0.3s ease;
        }

        .design-card:hover {
            transform: translateY(-8px);
        }

        .design-card:hover .card-glow {
            opacity: 1;
        }
    </style>
</head>

<body class="min-h-screen antialiased bg-slate-900 text-white">
    <!-- Navigation -->
    <nav class="fixed top-0 w-full z-50 bg-slate-900/95 backdrop-blur-sm border-b border-slate-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-cyan-400">
                        OA<span class="text-white">MediaKraft</span>
                    </span>
                </a>

                <!-- Desktop Nav -->
                <div class="hidden md:flex items-center space-x-8">
                    <a href="/design" class="text-white hover:text-cyan-400 transition">Home</a>
                    <a href="/design/portfolio" class="text-slate-300 hover:text-cyan-400 transition">Portfolio</a>
                    <a href="/design/pricing" class="text-slate-300 hover:text-cyan-400 transition">Pricing</a>
                    <a href="/design/process" class="text-slate-300 hover:text-cyan-400 transition">Process</a>
                    <a href="/" class="text-slate-400 hover:text-white transition text-sm">← Back to Main</a>
                </div>

                <!-- CTA Button -->
                <a href="/design/portfolio"
                    class="hidden md:inline-flex items-center px-5 py-2 bg-gradient-to-r from-cyan-500 to-fuchsia-500 text-white font-semibold rounded-full text-sm hover:shadow-lg hover:shadow-cyan-500/25 transition">
                    View Work
                </a>

                <!-- Mobile menu button -->
                <button id="mobile-menu-btn" class="md:hidden text-slate-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-slate-800 border-t border-slate-700">
            <div class="px-4 py-3 space-y-2">
                <a href="/design" class="block px-3 py-2 text-white hover:bg-slate-700 rounded-lg">Home</a>
                <a href="/design/portfolio"
                    class="block px-3 py-2 text-slate-300 hover:bg-slate-700 rounded-lg">Portfolio</a>
                <a href="/design/pricing"
                    class="block px-3 py-2 text-slate-300 hover:bg-slate-700 rounded-lg">Pricing</a>
                <a href="/design/process"
                    class="block px-3 py-2 text-slate-300 hover:bg-slate-700 rounded-lg">Process</a>
                <a href="/" class="block px-3 py-2 text-slate-400 hover:bg-slate-700 rounded-lg">← Back to
                    Main</a>
            </div>
        </div>
    </nav>

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

    <!-- Footer -->
    <footer class="bg-slate-950 border-t border-slate-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-cyan-400 mb-4">
                OA<span class="text-white">MediaKraft</span> Design
            </div>
            <p class="text-slate-400 text-sm mb-6">Professional graphic design and brand identity services</p>
            <div class="flex justify-center space-x-6 text-sm text-slate-400">
                <a href="#" class="hover:text-cyan-400 transition">Terms</a>
                <a href="#" class="hover:text-cyan-400 transition">Privacy</a>
                <a href="mailto:design@oamediakraft.co.uk" class="hover:text-cyan-400 transition">Contact</a>
            </div>
            <p class="text-slate-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>
