Skip to content

Commit 100fecf

Browse files
authored
Update style.css
1 parent 61991d1 commit 100fecf

File tree

1 file changed

+97
-4
lines changed

1 file changed

+97
-4
lines changed

style.css

Lines changed: 97 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
box-sizing: border-box;
1919
}
2020

21+
html {
22+
scroll-behavior: smooth;
23+
}
24+
2125
body {
2226
font-family: 'Poppins', system-ui, sans-serif;
2327
background: var(--dark-bg);
@@ -26,8 +30,8 @@ body {
2630
line-height: 1.6;
2731
}
2832

29-
/* Optional light mode */
30-
body.light {
33+
/* Light mode */
34+
body.light-theme {
3135
background: #f5f6fa;
3236
color: #202124;
3337
}
@@ -56,13 +60,14 @@ body.light {
5660
cursor: pointer;
5761
z-index: 1000;
5862
box-shadow: 0 0 15px var(--neon-green);
63+
transition: all 0.3s ease;
5964
}
6065
.theme-toggle:hover {
6166
background: var(--accent-blue);
6267
color: var(--white);
6368
}
6469

65-
/* Hero */
70+
/* Hero Section */
6671
.hero-outer {
6772
background: radial-gradient(circle at center, #001a12, #000);
6873
color: var(--neon-green);
@@ -76,6 +81,8 @@ body.light {
7681
flex-direction: column;
7782
align-items: center;
7883
gap: 18px;
84+
position: relative;
85+
z-index: 1;
7986
}
8087
.hero-logo {
8188
width: 130px;
@@ -97,6 +104,22 @@ body.light {
97104
margin-bottom: 1rem;
98105
}
99106

107+
/* Hero watermark */
108+
.hero-watermark {
109+
position: absolute;
110+
top: 50%;
111+
left: 50%;
112+
transform: translate(-50%, -50%);
113+
opacity: 0.05;
114+
width: 300px;
115+
pointer-events: none;
116+
z-index: 0;
117+
}
118+
body.light-theme .hero-outer {
119+
background: #e5f2f1;
120+
color: #202124;
121+
}
122+
100123
/* Buttons */
101124
.btn {
102125
display: inline-flex;
@@ -129,6 +152,15 @@ body.light {
129152
background: rgba(0, 255, 159, 0.1);
130153
box-shadow: 0 0 15px var(--neon-green);
131154
}
155+
body.light-theme .btn.primary {
156+
background: var(--accent-blue);
157+
color: #fff;
158+
box-shadow: 0 0 10px var(--accent-blue);
159+
}
160+
body.light-theme .btn.ghost {
161+
border-color: #00bcd4;
162+
color: #00bcd4;
163+
}
132164

133165
/* Sections */
134166
.section {
@@ -141,12 +173,19 @@ body.light {
141173
text-align: center;
142174
text-shadow: 0 0 12px var(--neon-green);
143175
}
176+
body.light-theme .section h2 {
177+
color: var(--accent-blue);
178+
text-shadow: none;
179+
}
144180
.section p {
145181
text-align: center;
146182
max-width: 800px;
147183
margin: 0 auto;
148184
color: var(--text-dark);
149185
}
186+
body.light-theme .section p {
187+
color: #202124;
188+
}
150189

151190
/* Project Cards */
152191
.projects-grid {
@@ -168,6 +207,11 @@ body.light {
168207
transform: translateY(-6px);
169208
box-shadow: 0 0 20px var(--neon-green);
170209
}
210+
body.light-theme .project-card {
211+
background: #fff;
212+
color: #202124;
213+
box-shadow: 0 0 10px rgba(0,0,0,0.1);
214+
}
171215
.project-card img {
172216
width: 100%;
173217
height: 160px;
@@ -180,6 +224,9 @@ body.light {
180224
margin-bottom: 8px;
181225
color: var(--neon-green);
182226
}
227+
body.light-theme .project-body h3 {
228+
color: var(--accent-blue);
229+
}
183230

184231
/* Contact */
185232
.contact-grid {
@@ -194,13 +241,24 @@ body.light {
194241
padding: 20px;
195242
box-shadow: 0 0 10px rgba(0,255,159,0.1);
196243
}
244+
body.light-theme .contact-card {
245+
background: #fff;
246+
color: #202124;
247+
box-shadow: 0 0 8px rgba(0,0,0,0.1);
248+
}
197249
.contact-card h3 {
198250
color: var(--accent-blue);
199251
}
252+
body.light-theme .contact-card h3 {
253+
color: var(--accent-blue);
254+
}
200255
.contact-card a {
201256
color: var(--neon-green);
202257
text-decoration: none;
203258
}
259+
body.light-theme .contact-card a {
260+
color: var(--accent-blue);
261+
}
204262
.contact-card a:hover {
205263
text-decoration: underline;
206264
}
@@ -215,6 +273,13 @@ input, textarea {
215273
font-family: inherit;
216274
background: #0f1a1a;
217275
color: var(--neon-green);
276+
transition: all 0.3s ease;
277+
}
278+
body.light-theme input,
279+
body.light-theme textarea {
280+
background: #fff;
281+
color: #202124;
282+
border: 1px solid #ccc;
218283
}
219284

220285
/* Footer */
@@ -225,6 +290,11 @@ input, textarea {
225290
margin-top: 40px;
226291
border-top: 1px solid var(--neon-green);
227292
}
293+
body.light-theme .footer {
294+
background: #f5f6fa;
295+
color: #202124;
296+
border-top: 1px solid #ccc;
297+
}
228298
.footer-inner {
229299
display: flex;
230300
flex-wrap: wrap;
@@ -238,6 +308,9 @@ input, textarea {
238308
text-decoration: none;
239309
position: relative;
240310
}
311+
body.light-theme .footer .dev-link {
312+
color: var(--accent-blue);
313+
}
241314
.footer .dev-link:hover {
242315
color: var(--accent-blue);
243316
}
@@ -246,6 +319,9 @@ input, textarea {
246319
margin-left: 12px;
247320
text-decoration: none;
248321
}
322+
body.light-theme .social-links a {
323+
color: var(--accent-blue);
324+
}
249325
.social-links a:hover {
250326
color: var(--accent-blue);
251327
}
@@ -267,13 +343,14 @@ input, textarea {
267343
justify-content: center;
268344
font-size: 1.3rem;
269345
box-shadow: 0 0 15px var(--neon-green);
346+
transition: all 0.3s ease;
270347
}
271348
#topBtn:hover {
272349
background: var(--accent-blue);
273350
color: var(--white);
274351
}
275352

276-
/* Reveal */
353+
/* Reveal animations */
277354
.reveal {
278355
opacity: 0;
279356
transform: translateY(18px);
@@ -294,3 +371,19 @@ input, textarea {
294371
text-align: center;
295372
}
296373
}
374+
@media (max-width: 480px) {
375+
.social-links {
376+
margin-top: 10px;
377+
}
378+
.social-links a {
379+
margin-left: 0;
380+
margin-right: 12px;
381+
}
382+
.hero-logo {
383+
width: 100px;
384+
height: 100px;
385+
}
386+
.name {
387+
font-size: 2rem;
388+
}
389+
}

0 commit comments

Comments
 (0)