-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
399 lines (322 loc) · 10.7 KB
/
index.css
File metadata and controls
399 lines (322 loc) · 10.7 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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@300;400;600;800&display=swap');
@import 'tailwindcss';
@theme {
--color-accent-primary: #00d4ff;
--color-accent-secondary: #0072ff;
--color-accent-deep: #003366;
--color-bg-color: #040404;
--color-text-main: #f8f8f8;
--color-text-dim: rgba(255, 255, 255, 0.75);
--color-card-bg: rgba(255, 255, 255, 0.02);
--color-glass-border: rgba(255, 255, 255, 0.08);
--font-inter: 'Inter', sans-serif;
--font-outfit: 'Outfit', sans-serif;
--spacing-section-gap: clamp(6rem, 10vw, 10rem);
@keyframes float {
0% {
transform: translate(0, 0) scale(1);
}
50% {
transform: translate(5%, 5%) scale(1.1);
}
100% {
transform: translate(-2%, 8%) scale(0.9);
}
}
--animate-float: float 20s infinite alternate ease-in-out;
--animate-float-reverse: float 25s infinite alternate-reverse ease-in-out;
--transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
--transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Base Styles */
@layer base {
html {
@apply scroll-smooth;
scroll-padding-top: var(--spacing-navbar-height, 40px);
}
body {
@apply bg-bg-color text-text-main font-inter antialiased;
letter-spacing: -0.011em;
overflow-x: hidden;
}
h1,
h2,
h3 {
@apply font-outfit font-extrabold;
letter-spacing: -0.03em;
}
section h2 {
@apply mt-16 mb-8 text-left text-[clamp(2rem,8vw,3rem)];
letter-spacing: -0.02em;
line-height: 1.1;
}
/* Accessibility: High-contrast focus state */
:focus-visible {
@apply ring-accent-primary ring-2 ring-offset-4 ring-offset-black transition-all outline-none;
}
}
/* Background Elements */
@layer components {
.bg-gradient {
@apply fixed inset-0 -z-20;
background: radial-gradient(circle at 50% 50%, #080808 0%, #000 100%);
}
.bg-gradient::after {
content: '';
@apply pointer-events-none fixed inset-0 -z-10;
background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
opacity: 0.08;
}
.bg-blur-1 {
@apply bg-accent-primary animate-float fixed -top-[10%] -right-[10%] -z-10 h-1/2 w-1/2 opacity-10 blur-[150px];
}
.bg-blur-2 {
@apply bg-accent-secondary animate-float-reverse fixed -bottom-[10%] -left-[10%] -z-10 h-1/2 w-1/2 opacity-10 blur-[150px];
}
.glass-card {
@apply bg-card-bg border-glass-border relative overflow-hidden rounded-3xl border p-10 transition-[var(--transition-slow)];
backdrop-filter: saturate(180%) blur(20px);
}
@supports (animation-timeline: view()) {
.glass-card {
animation:
fadeIn linear,
fadeOut linear;
animation-timeline: view(), view();
animation-range: entry, exit;
}
}
.glass-card h3 {
@apply mb-4;
}
.glass-card h3:has(.emoji) {
@apply flex items-start gap-3;
}
.glass-card::before {
content: '';
@apply absolute top-0 right-0 left-0 z-10 h-px;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}
.glass-card:hover {
@apply z-10 -translate-y-2 scale-[1.02] bg-[rgba(255,255,255,0.04)];
transition-duration: 300ms;
border-color: rgba(0, 212, 255, 0.3);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.6),
0 0 40px rgba(0, 212, 255, 0.15);
}
.glass-card:hover .tech-tag {
@apply border-[rgba(0,212,255,0.4)] bg-[rgba(0,212,255,0.05)] text-white shadow-[0_0_10px_rgba(0,212,255,0.1)];
}
.btn {
@apply inline-block rounded-full px-8 py-4 font-semibold transition-all duration-300;
}
.btn-primary {
@apply text-white hover:-translate-y-1;
background: linear-gradient(
135deg,
var(--color-accent-primary),
var(--color-accent-secondary)
);
box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}
.btn-primary:hover {
box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}
.btn-outline {
@apply border-glass-border text-text-main hover:border-accent-primary border bg-transparent backdrop-blur-sm hover:-translate-y-1 hover:bg-white/5;
}
.gradient-text {
@apply inline-block bg-clip-text text-transparent;
background-image: linear-gradient(
135deg,
var(--color-accent-primary),
var(--color-accent-secondary)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.emoji {
@apply inline-block shrink-0 text-[1.5em] transition-[var(--transition-slow)];
line-height: 1.1;
filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.3));
}
.glass-card:hover .emoji {
@apply -translate-y-1 scale-125;
transition-duration: 300ms;
filter: drop-shadow(0 5px 25px rgba(0, 212, 255, 0.7));
}
.tech-tags {
@apply mt-2 flex flex-wrap gap-2;
}
.tech-tag {
@apply border-glass-border text-text-main rounded-md border bg-white/10 px-3 py-1 text-[0.8rem] whitespace-nowrap;
}
/* Skip link for keyboard accessibility */
.skip-link {
@apply bg-accent-primary absolute top-4 left-4 z-[100] -translate-y-[200%] rounded-md px-4 py-2 font-bold text-black transition-transform duration-300;
}
.skip-link:focus {
@apply translate-y-0;
}
.sub-roles {
@apply border-accent-deep my-2 flex flex-col gap-6 border-l-2 pl-4;
}
.sub-role-title {
@apply text-text-main mb-1 block text-[0.95rem] font-semibold;
}
.sub-role p {
@apply text-[0.9rem] leading-relaxed;
}
/* Experience Cards Layout */
.experience-grid {
@apply flex flex-col gap-8;
}
.experience-card {
@apply flex flex-col gap-2;
}
.experience-header {
@apply mb-0 flex flex-col justify-between sm:flex-row sm:items-baseline;
}
.experience-card h3 {
@apply m-0 text-2xl font-bold md:text-3xl;
}
.experience-card p {
@apply mb-2;
}
.experience-date {
@apply text-accent-primary text-[1rem] font-semibold tracking-wide;
}
.experience-company {
@apply text-text-dim mb-2 text-lg font-medium;
}
/* Hero Section */
.hero {
@apply relative flex min-h-[100svh] flex-col items-center justify-center pt-[100px] pb-20 lg:pt-[120px];
}
.hero h1 {
@apply mb-8 text-center text-5xl md:text-6xl lg:mb-8 lg:text-left lg:text-7xl;
}
.hero p {
@apply text-text-dim mx-auto max-w-[800px] text-center text-lg lg:mx-0 lg:text-left lg:text-2xl;
text-wrap: balance;
}
.role-badge {
@apply bg-card-bg border-glass-border text-accent-primary mb-8 inline-block rounded-full border px-6 py-2 text-center text-[0.9rem] font-semibold tracking-widest uppercase;
}
.hero-btns {
@apply mt-10 flex flex-col justify-center gap-4 sm:flex-row sm:gap-6 lg:mt-16 lg:justify-start;
}
.hero-image-wrapper {
@apply relative mx-auto h-56 w-56 shrink-0 md:h-72 md:w-72 lg:mx-0 lg:h-[260px] lg:w-[260px];
}
.profile-frame {
@apply border-glass-border bg-card-bg relative h-full w-full rounded-full border-[1px] p-2 backdrop-blur-md transition-[var(--transition-slow)];
box-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}
.profile-frame:hover {
@apply border-accent-primary/40 -translate-y-2 scale-[1.03];
box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}
.profile-image {
@apply relative z-10 h-full w-full rounded-full object-cover;
}
/* Scroll Indicator */
.scroll-indicator {
@apply absolute bottom-8 left-1/2 flex -translate-x-1/2 flex-col items-center gap-4 opacity-50;
}
.mouse {
@apply border-text-dim relative h-10 w-6 rounded-xl border-2;
}
.mouse::before {
content: '';
@apply bg-accent-primary absolute top-2 left-1/2 h-2 w-1 -translate-x-1/2 animate-[scrollWheel_2s_infinite] rounded-sm;
}
@keyframes scrollWheel {
0% {
opacity: 1;
transform: translate(-50%, 0);
}
100% {
opacity: 0;
transform: translate(-50%, 20px);
}
}
/* Grids */
.focus-grid,
.interests-grid,
.education-grid {
@apply grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-8;
}
/* Navigation */
nav {
@apply fixed top-0 z-50 w-full py-4 transition-all duration-300 md:py-6;
}
nav.scrolled {
@apply border-glass-border border-b bg-[rgba(10,10,10,0.8)] backdrop-blur-md;
}
.nav-container {
@apply mx-auto flex max-w-[1100px] flex-col items-center justify-between gap-4 px-6 sm:flex-row sm:gap-0 sm:px-8;
}
.logo {
@apply text-text-main text-xl font-extrabold no-underline sm:text-2xl;
}
.nav-links {
@apply flex flex-wrap justify-center gap-4 text-[0.8rem] sm:gap-8 sm:text-base;
}
.nav-links a {
@apply text-text-dim hover:text-accent-primary font-medium no-underline transition-colors duration-300;
}
footer {
@apply bg-gradient-to-t from-black/50 to-transparent py-24;
}
.footer-content {
@apply flex flex-col items-center gap-8 text-center;
}
.footer-logo {
@apply text-[2rem] font-extrabold;
}
.social-links {
@apply flex gap-8;
}
.social-links a {
@apply text-text-dim transition-all duration-300;
}
.social-links a:hover {
@apply text-accent-primary -translate-y-1;
filter: drop-shadow(0 0 10px var(--color-accent-primary));
}
}
/* Animations */
[data-reveal] {
@apply opacity-0 transition-[var(--transition-slow)];
transition-delay: var(--delay, 0ms);
}
[data-reveal='fade-up'] {
@apply translate-y-10;
}
[data-reveal].active {
@apply translate-y-0 opacity-100;
}
@supports (animation-timeline: view()) {
@keyframes fadeIn {
from {
opacity: 0;
translate: 0 40px;
}
to {
opacity: 1;
translate: 0 0;
}
}
@keyframes fadeOut {
from {
opacity: 1;
translate: 0 0;
}
to {
opacity: 0;
translate: 0 -40px;
}
}
}