Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
364 lines (280 loc) · 5.82 KB
/
Copy pathstyle.css
File metadata and controls
364 lines (280 loc) · 5.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
/* body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: #f5f5f5;
color: #333;
}
header {
background: #222;
color: #fff;
padding: 1rem;
text-align: center;
}
nav button {
margin: 0 0.5rem;
}
button {
background: #0077cc;
color: #fff;
border: none;
padding: 0.5rem 1rem;
margin: 0.5rem;
border-radius: 8px;
cursor: pointer;
transition: transform 0.2s ease, background 0.3s ease;
}
button:hover {
background: #005fa3;
}
button:active {
transform: scale(1.1);
}
.modal {
display: none;
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0,0,0,0.7);
justify-content: center;
align-items: center;
}
.modal-content {
background: #fff;
padding: 2rem;
border-radius: 10px;
max-width: 600px;
width: 90%;
animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.8); }
to { opacity: 1; transform: scale(1); }
}
.close {
float: right;
cursor: pointer;
font-size: 1.5rem;
}
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
}
.project-card {
background: #fafafa;
padding: 1rem;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
text-align: center;
}
.project-card img {
max-width: 100%;
border-radius: 6px;
} */
/* Popup bounce animation on hover */
/* @keyframes pop {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1.5); }
}
button, .btn, .cta {
transition: transform 0.2s ease;
}
button:hover, .btn:hover, .cta:hover {
animation: pop 0.3s ease;
} */
.typing-wrapper {
display: inline-block;
width: 20ch; /* reserve space for longest text */
white-space: nowrap; /* prevent wrapping */
overflow: hidden; /* hide extra text while typing */
vertical-align: bottom;
}
.typing {
display: inline-block;
}
/* */
/* button, .btn, .cta {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover, .btn:hover, .cta:hover {
transform: scale(1.1);
box-shadow: 0 6px 18px rgba(0,0,0,0.25);
} */
.btn, .cta {
padding: 10px 14px;
border-radius: 100px;
background: linear-gradient(90deg,#7b61ff,#00e0ff);
border: none;
color: #07101a;
font-weight: 800;
cursor: pointer;
transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.btn:hover, .cta:hover {
transform: scale(1.08); /* smooth pop */
box-shadow: 0 8px 20px rgba(124, 90, 255, 0.3);
}
.btn:active, .cta:active {
transform: scale(0.97); /* slight click press */
box-shadow: 0 4px 10px rgba(124, 90, 255, 0.2);
}
/* */
/* .modal-backdrop {
position: fixed;
inset: 0; /* top:0; right:0; bottom:0; left:0; */
background: rgba(255, 1, 1, 0.6); /* semi-transparent dark background */
display: none; /* hidden by default */
align-items: center;
justify-content: center;
z-index: 999; /* above everything */
transition: opacity 0.3s ease;
opacity: 0;
}
.modal-backdrop.show {
display: flex;
opacity: 1; /* fade in */
} */
/* */
/* ----------------------------- */
/* 📱 RESPONSIVE DESIGN FIXES */
/* ----------------------------- */
/* Tablets */
@media (max-width: 1024px) {
.container {
padding: 28px;
}
.hero {
flex-direction: column;
align-items: flex-start;
}
.hero-right {
width: 100%;
}
.projects {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.modal {
width: 90%;
}
}
/* Mobile */
@media (max-width: 768px) {
body {
padding-bottom: 60px;
}
header nav {
flex-direction: column;
gap: 8px;
}
.container {
width: 100%;
padding: 20px;
}
h1, h2, h3 {
font-size: 1.2rem;
}
p {
font-size: 0.95rem;
}
.hero {
flex-direction: column;
text-align: center;
}
.hero-left, .hero-right {
width: 100%;
}
.skills {
justify-content: center;
}
.project {
height: auto;
min-height: 160px;
}
.modal {
width: 95%;
padding: 12px;
}
.modal-body {
grid-template-columns: 1fr;
}
}
/* Small phones */
@media (max-width: 480px) {
.container {
padding: 16px;
}
h1 {
font-size: 1.4rem;
}
h2 {
font-size: 1.1rem;
}
.btn, .cta {
font-size: 0.85rem;
padding: 8px 12px;
}
.skills {
gap: 8px;
}
.skill {
font-size: 0.85rem;
padding: 6px 10px;
}
.project {
font-size: 0.9rem;
}
footer {
font-size: 0.85rem;
padding: 12px;
}
}
/* === FORCE-RESPONSIVE RULES FOR CONTACT BUTTON === */
/* High-specificity / !important used only to override earlier fixed rules */
@media (max-width: 768px) {
/* target likely selectors used in your file */
header .cta,
.nav-links .cta,
a.cta,
.btn-contact,
.contact-btn,
.contact-button,
#contactBtn,
.cta-button,
.btn.cta {
position: static !important;
right: auto !important;
top: auto !important;
margin: 14px auto !important;
display: inline-block !important;
width: auto !important;
transform: none !important;
float: none !important;
box-sizing: border-box !important;
text-align: center !important;
}
/* Ensure nav links stack and the contact button can sit below them */
header nav, .nav-links {
flex-direction: column !important;
align-items: center !important;
gap: 10px !important;
}
/* If contact is an <a>, make it look like a button on mobile */
header .cta, .nav-links .cta {
padding: 10px 16px !important;
border-radius: 10px !important;
}
}
/* Extra small phones */
@media (max-width: 480px) {
header .cta,
.nav-links .cta,
.btn-contact,
.contact-btn {
padding: 8px 12px !important;
font-size: 0.9rem !important;
margin: 10px auto !important;
width: auto !important;
}
}