diff --git a/src/app/globals.css b/src/app/globals.css index 4b60c43..03c09d7 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -26,6 +26,29 @@ scroll-behavior: smooth; } + /* Lenis Ultra-Smooth Scrolling Performance Integration */ + html.lenis, + html.lenis body { + height: auto; + scroll-behavior: auto !important; + } + + .lenis.lenis-smooth { + scroll-behavior: auto !important; + } + + .lenis.lenis-smooth [data-lenis-prevent] { + overscroll-behavior: contain; + } + + .lenis.lenis-stopped { + overflow: clip; + } + + .lenis.lenis-smooth iframe { + pointer-events: none; + } + body { color: #0F172A; background-color: #FAF8F5; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 8a3eaaf..45a3e06 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,6 +5,7 @@ import { getSiteConfig } from '@/lib/config/loader'; import { Navbar } from '@/components/ui/Navbar'; import { Footer } from '@/components/ui/Footer'; import { SmoothCursor } from '@/components/magicui/smooth-cursor'; +import { SmoothScrollProvider } from '@/components/ui/SmoothScrollProvider'; const poppinsFont = Poppins({ subsets: ['latin'], @@ -94,11 +95,13 @@ export default function RootLayout({ /> - - Skip to main content - -
{children}
-