6060* {
6161 scrollbar-width : auto;
6262 scrollbar-color : var (--scrollbar-thumb ) var (--scrollbar-track );
63+ }
6364
64- & ::-webkit-scrollbar {
65- width : 8px ;
66- }
65+ * ::-webkit-scrollbar {
66+ width : 8px ;
67+ }
6768
68- & ::-webkit-scrollbar-track {
69- background : var (--scrollbar-track );
70- }
69+ * ::-webkit-scrollbar-track {
70+ background : var (--scrollbar-track );
71+ }
7172
72- & ::-webkit-scrollbar-thumb {
73- background : var (--scrollbar-thumb );
74- border-radius : 4px ;
75- }
73+ * ::-webkit-scrollbar-thumb {
74+ background : var (--scrollbar-thumb );
75+ border-radius : 4px ;
7676}
7777
7878/* Base styles */
@@ -82,10 +82,10 @@ html {
8282 width : 100% ;
8383 min-height : 100% ;
8484 scroll-behavior : smooth;
85+ }
8586
86- & .scroll-smooth {
87- scroll-behavior : smooth;
88- }
87+ html .scroll-smooth {
88+ scroll-behavior : smooth;
8989}
9090
9191body {
@@ -115,13 +115,28 @@ button:focus-visible {
115115 var (--bg-canvas );
116116 background-attachment : fixed;
117117 color : var (--text-strong );
118- transition : color 0.25s ease;
118+ }
119+
120+ .site-bg {
121+ position : fixed;
122+ top : 0 ;
123+ left : 0 ;
124+ width : 100% ;
125+ height : 100% ;
126+ z-index : -1 ;
127+ background :
128+ radial-gradient (circle at 12% 15% , var (--bg-mesh-a ), transparent 40% ),
129+ radial-gradient (circle at 86% 28% , var (--bg-mesh-b ), transparent 42% ),
130+ var (--bg-canvas );
131+ background-attachment : fixed;
132+ pointer-events : none;
119133}
120134
121135# main-content {
122136 height : 100vh ;
123137 overflow-y : auto;
124138 scroll-snap-type : y mandatory;
139+ scroll-behavior : smooth;
125140}
126141
127142.slide-section {
@@ -130,10 +145,10 @@ button:focus-visible {
130145 scroll-snap-stop : always;
131146 display : flex;
132147 align-items : center;
148+ }
133149
134- > * {
135- width : 100% ;
136- }
150+ .slide-section > * {
151+ width : 100% ;
137152}
138153
139154.home-slide {
@@ -158,6 +173,11 @@ button:focus-visible {
158173 padding-bottom : clamp (3rem , 7vh , 5.5rem );
159174}
160175
176+ .section-size-blog {
177+ padding-top : clamp (4.2rem , 7.5vh , 6rem );
178+ padding-bottom : clamp (3rem , 7vh , 5.2rem );
179+ }
180+
161181/* Typography animation */
162182.typing-live {
163183 display : none;
@@ -171,30 +191,57 @@ button:focus-visible {
171191 display : none;
172192}
173193
174- /* Reveal animations */
175- [data-reveal ] {
176- opacity : 0 ;
177- transform : translateY (18px );
178- transition :
179- opacity 0.35s ease,
180- transform 0.35s ease;
181-
182- & .is-visible {
183- opacity : 1 ;
184- transform : translateY (0 );
194+ /* Animation keyframes */
195+ @keyframes blink {
196+ to {
197+ visibility : hidden;
185198 }
186199}
187200
201+ /* Reveal animations removed */
202+ [data-reveal ] {
203+ opacity : 1 ;
204+ transform : translateY (0 );
205+ }
206+
207+ [data-reveal ].is-visible {
208+ opacity : 1 ;
209+ transform : translateY (0 );
210+ }
211+
212+ /* Staggered reveal animations removed */
213+ [data-reveal-list ] > * {
214+ opacity : 1 ;
215+ transform : translateY (0 );
216+ }
217+
218+ [data-reveal-list ].is-visible > * {
219+ opacity : 1 ;
220+ transform : translateY (0 );
221+ }
222+
223+ /* Section entrance animations removed */
224+
188225.cursor {
189226 animation : blink 1.1s steps (2 , start) infinite;
190227}
191228
192- @keyframes blink {
193- to {
194- visibility : hidden;
195- }
229+ /* Button transitions and animations */
230+ button {
231+ transition : all 0.3s cubic-bezier (0.23 , 1 , 0.320 , 1 );
232+ }
233+
234+ button : active {
235+ transform : scale (0.95 );
196236}
197237
238+ /* Enhance scroll snap with smooth behavior */
239+ html {
240+ scroll-behavior : smooth;
241+ }
242+
243+ /* Smooth color and theme transitions removed */
244+
198245/* Responsive design */
199246@media (max-width : 768px ) {
200247 .slide-section {
@@ -208,26 +255,14 @@ button:focus-visible {
208255 }
209256
210257 .section-size-home ,
211- .section-size-work {
258+ .section-size-work ,
259+ .section-size-blog {
212260 padding-top : 6.2rem ;
213261 padding-bottom : 2.5rem ;
214262 }
215263}
216264
217- /* Accessibility: Reduced motion */
218- @media (prefers-reduced-motion : reduce) {
219- html {
220- scroll-behavior : auto;
221- }
222-
223- html ,
224- html * ,
225- html * ::before ,
226- html * ::after {
227- animation : none;
228- transition : none;
229- }
230- }
265+ /* Accessibility: Animations removed globally */
231266
232267* ::-webkit-scrollbar-track {
233268 background : var (--scrollbar-track );
0 commit comments