1010
1111/* ========== Root Variables ========== */
1212
13+ /* Default: Light Mode */
1314: root {
15+ --primary-color : # 4169e1 ; /* Royal Blue */
1416 --black : # 0c0c0c ;
1517 --white : # f0f8ff ;
16- --royal-blue : # 4169e1 ;
18+ --bg-color : # 0c0c0c ;
19+ --text-color : # 0c0c0c ;
20+ --card-bg : # f0f8ff ;
21+ --box-shadow : # 0003 ;
22+ --border-color : # f0f8ff ;
23+ --skeleton-bg1 : # e0e0e0 ;
24+ --skeleton-bg2 : # cecece ;
25+ }
26+
27+ /* Dark Mode Overrides */
28+ @media (prefers-color-scheme : dark) {
29+ : root {
30+ --text-color : # f0f8ff ;
31+ --card-bg : # 0c0c0c ;
32+ --box-shadow : # fffa ;
33+ }
1734}
1835
1936/* ========== Global Styles ========== */
2340 padding : 0 ;
2441 box-sizing : border-box;
2542 font-family : 'Merriweather' , serif;
43+ /* outline: 1px solid red; */
2644}
2745
2846/* ========== Scrollbar Styling ========== */
2947
3048::-webkit-scrollbar {
31- display : none;
3249 width : 0 ;
50+ height : 0 ;
3351}
3452
3553/* ========== Body Styles ========== */
3654
3755body {
38- background-color : var (--black );
39- display : flex;
40- justify-content : center;
41- align-items : center;
42- height : 99vh ;
43- text-align : center;
56+ background-color : var (--bg-color );
57+ color : var (--text-color );
58+ min-height : 100vh ;
59+ align-content : center;
4460}
4561
4662/* ========== Main Container Styles ========== */
4763
4864main {
49- background-color : var ( --white ) ;
65+ margin : auto ;
5066 width : 300px ;
5167 height : auto;
52- min-height : 480 px ;
68+ min-height : 500 px ;
5369 max-height : 90vh ;
54- border-radius : 10 px ;
70+ border-radius : 8 px ;
5571 font-size : 16px ;
56- line-height : 1.5 em ;
72+ text-align : center ;
5773 position : relative;
74+ color : var (--text-color );
75+ background-color : var (--card-bg );
76+ box-shadow : 0 0 8px 0 var (--box-shadow );
5877}
5978
6079/* ========== Gradient Animation with Spinning Effect ========== */
6180
6281main ::after ,
6382main ::before {
6483 content : '' ;
65- position : absolute;
66- height : calc (100% + 5px );
6784 width : calc (100% + 5px );
85+ height : calc (100% + 5px );
86+ position : absolute;
6887 top : 50% ;
6988 left : 50% ;
7089 translate : -50% -50% ;
@@ -75,7 +94,7 @@ main::before {
7594main .active-gradient ::after ,
7695main .active-gradient ::before {
7796 animation : 3s spin linear infinite;
78- background-image : conic-gradient (from var (--angle ), var (--black ), var (--white ), var (--royal-blue ));
97+ background-image : conic-gradient (from var (--angle ), var (--black ), var (--white ), var (--primary-color ));
7998}
8099
81100main .active-gradient ::before {
@@ -104,25 +123,25 @@ main.active-gradient::before {
104123.cover-pic {
105124 width : 100% ;
106125 height : 150px ;
107- border-radius : 10 px 10 px 0 0 ;
126+ border-radius : 8 px 8 px 0 0 ;
108127 background-color : var (--black );
109128}
110129
111130.cover-pic img {
112131 width : 100% ;
113132 height : 100% ;
114133 object-fit : cover;
115- border-radius : 10 px 10 px 0 0 ;
134+ border-radius : 8 px 8 px 0 0 ;
116135}
117136
118137.profile-pic {
119138 width : 150px ;
120139 height : 150px ;
140+ position : relative;
121141 border-radius : 50% ;
122142 margin : -75px auto 20px auto;
123- border : 3px solid var (--white );
124- box-shadow : 0px 0px 8px 0px # 00000040 ;
125- position : relative;
143+ border : 3px solid var (--border-color );
144+ box-shadow : 0 0 8px 0 var (--box-shadow );
126145}
127146
128147.profile-pic img {
@@ -140,7 +159,7 @@ main.active-gradient::before {
140159 width : 90% ;
141160 height : 1.2em ;
142161 margin : 10px auto;
143- color : var (--royal-blue );
162+ color : var (--primary-color );
144163}
145164
146165.title {
@@ -149,7 +168,6 @@ main.active-gradient::before {
149168 width : 90% ;
150169 height : 1.28em ;
151170 margin : 10px auto;
152- color : var (--black );
153171}
154172
155173/* ========== Blinking Cursor Animation ========== */
@@ -179,44 +197,45 @@ main.active-gradient::before {
179197 width : 60% ;
180198 height : 1px ;
181199 margin : auto;
182- background : linear-gradient (273deg , var (--white ), var (--royal-blue ), var (--white ));
200+ background : linear-gradient (273deg , var (--card-bg ), var (--primary-color ), var (--card-bg ));
183201}
184202
185203/* ========== Bio Section Styles ========== */
186204
187205.bio {
188206 font-size : 0.9em ;
189207 width : 90% ;
190- height : 6.8em ;
208+ height : 80px ;
209+ line-height : 1.28em ;
191210 margin : 10px auto;
192211}
193212
194213/* ========== Social Icons Section Styles ========== */
195214
196215.social {
197216 width : 75% ;
198- height : 4.2 em ;
199- margin : 10 px auto 20 px auto;
217+ height : auto ;
218+ margin : auto;
200219 display : flex;
201220 gap : 10px ;
202- justify-content : center;
203221 flex-wrap : wrap;
222+ justify-content : center;
204223}
205224
206225/* ========== Icon Styles ========== */
207226
208227.icon {
209- color : var (--white );
228+ width : 28px ;
229+ height : 28px ;
210230 line-height : 0 ;
211- width : 1.75em ;
212- height : 1.75em ;
231+ border-radius : 4px ;
213232 text-align : center;
214233 align-content : center;
215- border-radius : 5 px ;
234+ box-shadow : 0 px 0 px 2 px 0 px var ( --box-shadow ) ;
216235}
217236
218237.icon : hover {
219- filter : brightness (0.9 );
238+ filter : brightness (0.8 );
220239}
221240
222241.icon ::before {
@@ -233,15 +252,15 @@ main.active-gradient::before {
233252/* ========== Icon Image Styles ========== */
234253
235254.icon img {
236- max-width : 60 % ;
237- max-height : 60 % ;
255+ max-width : 64 % ;
256+ max-height : 64 % ;
238257}
239258
240259/* ========== Skeleton Animation Styles ========== */
241260
242261.skeleton {
243- background-color : # e0e0e0 ;
244- background-image : linear-gradient (90deg , # e0e0e0 0% , # cecece 50% , # e0e0e0 100% );
262+ background-color : var ( --skeleton-bg1 ) ;
263+ background-image : linear-gradient (90deg , var ( --skeleton-bg1 ) 0% , var ( --skeleton-bg2 ) 50% , var ( --skeleton-bg1 ) 100% );
245264 background-size : 200% 100% ;
246265 animation : shimmer 1s infinite;
247266}
0 commit comments