<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@yield('title', 'SMART Academy – Learn Smarter. Achieve More.')</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
    @vite(['resources/css/app.css', 'resources/js/app.js'])
</head>
<body class="font-poppins antialiased bg-[#FAFAFA]">

@include('website.partials.navbar')

@yield('content')

@include('website.partials.footer')

<script>
document.addEventListener('DOMContentLoaded', () => {
    if (typeof Alpine === 'undefined') {
        const nav = document.querySelector('nav');
        window.addEventListener('scroll', () => {
            if (window.scrollY > 50) {
                nav.style.background = 'rgba(255,255,255,0.97)';
                nav.style.backdropFilter = 'blur(14px)';
                nav.style.boxShadow = '0 2px 20px rgba(0,0,0,0.08)';
            } else {
                nav.style.background = 'transparent';
                nav.style.backdropFilter = 'none';
                nav.style.boxShadow = 'none';
            }
        });
    }
});
</script>
</body>
</html>
