-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathportfolio.css
More file actions
355 lines (331 loc) · 20.1 KB
/
portfolio.css
File metadata and controls
355 lines (331 loc) · 20.1 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
/* ============================================================
portfolio.css — Dark-mode Bento Box Portfolio
Karthick Jayaraman | Senior Data Engineer / Team Lead
All content is driven from config.json via portfolio.js
============================================================ */
/* ── Custom Properties ─────────────────────────────────────── */
:root {
/* Palette */
--bg-base: #0d1117;
--bg-surface: #161b22;
--bg-elevated: #1c2330;
--border: #30363d;
--accent: #3e6ff4;
--accent-hover: #5a85f7;
--accent-glow: rgba(62, 111, 244, 0.18);
--success: #27ae60;
--warning: #f39c12;
--danger: #e74c3c;
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--text-muted: #484f58;
--science-color: #8e44ad;
--eng-color: #3e6ff4;
--lead-color: #27ae60;
--analytics-color: #f39c12;
/* Typography */
--font-sans: 'Poppins', system-ui, -apple-system, sans-serif;
--font-mono: 'SFMono-Regular', Consolas, monospace;
--fs-xs: 0.75rem;
--fs-sm: 0.875rem;
--fs-base: 1rem;
--fs-lg: 1.125rem;
--fs-xl: 1.25rem;
--fs-2xl: 1.5rem;
--fs-3xl: 1.875rem;
--fs-4xl: 2.25rem;
--fs-5xl: 3rem;
/* Spacing */
--space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
--space-4: 1rem; --space-6: 1.5rem; --space-8: 2rem;
--space-12: 3rem; --space-16: 4rem; --space-24: 6rem;
/* Layout */
--max-width: 1200px;
--nav-height: 64px;
--radius-sm: 6px;
--radius: 12px;
--radius-lg: 20px;
--transition: 200ms ease;
--transition-slow: 400ms ease;
}
/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
background: var(--bg-base);
color: var(--text-primary);
font-family: var(--font-sans);
line-height: 1.65;
min-height: 100vh;
padding-top: var(--nav-height);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-6); }
section { padding-block: var(--space-24); }
.section-title {
font-size: var(--fs-3xl); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-4);
}
.section-title span { color: var(--accent); }
.section-subtitle {
color: var(--text-secondary); font-size: var(--fs-base); margin-bottom: var(--space-12); max-width: 55ch;
}
/* ── Bento Base Card ───────────────────────────────────────── */
.bento-card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: var(--space-8);
transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.bento-card:hover {
border-color: var(--accent);
transform: translateY(-3px);
box-shadow: 0 8px 32px var(--accent-glow);
}
/* ── Buttons ───────────────────────────────────────────────── */
.btn {
display: inline-flex; align-items: center; gap: var(--space-2);
padding: 0.6rem 1.4rem; border-radius: var(--radius-sm);
font-size: var(--fs-sm); font-weight: 600;
border: 2px solid transparent; transition: all var(--transition); white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 0 16px var(--accent-glow); }
.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--outline:hover { background: var(--accent-glow); color: var(--accent-hover); }
.btn--sm { padding: 0.4rem 0.9rem; font-size: var(--fs-xs); }
/* ── Navigation ────────────────────────────────────────────── */
.l-header {
position: fixed; top: 0; left: 0; right: 0;
height: var(--nav-height);
background: rgba(13, 17, 23, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
z-index: 1000;
}
#nav {
display: flex; align-items: center; justify-content: space-between;
height: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-6);
}
.nav__logo img { height: 36px; width: auto; }
.nav__list { display: flex; align-items: center; gap: var(--space-6); }
.nav__link {
color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 500;
position: relative; padding-bottom: 2px; transition: color var(--transition);
}
.nav__link::after {
content: ''; position: absolute; bottom: -2px; left: 0;
width: 0; height: 2px; background: var(--accent); transition: width var(--transition);
}
.nav__link:hover, .nav__link--active { color: var(--text-primary); }
.nav__link:hover::after, .nav__link--active::after { width: 100%; }
.nav__toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: var(--fs-xl); padding: var(--space-2); }
/* ── Hero ──────────────────────────────────────────────────── */
#home { min-height: calc(100vh - var(--nav-height)); display: flex; align-items: center; }
#home > .container {
display: grid; grid-template-columns: 1fr auto; gap: var(--space-16); align-items: center; padding-block: var(--space-16);
}
.hero__eyebrow {
font-size: var(--fs-sm); color: var(--accent); font-weight: 600;
letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-2);
}
.hero__name {
font-size: var(--fs-5xl); font-weight: 800; line-height: 1.1; margin-bottom: var(--space-2);
background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent));
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__role { font-size: var(--fs-xl); color: var(--accent); font-weight: 500; margin-bottom: var(--space-4); }
.hero__headline { font-size: var(--fs-2xl); font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-4); }
.hero__bio { color: var(--text-secondary); font-size: var(--fs-base); max-width: 55ch; margin-bottom: var(--space-8); line-height: 1.75; }
.hero__actions { display: flex; gap: var(--space-4); margin-bottom: var(--space-8); flex-wrap: wrap; }
.hero__social { display: flex; gap: var(--space-4); }
.hero__social a {
display: inline-flex; align-items: center; justify-content: center;
width: 40px; height: 40px; border-radius: 50%;
border: 1px solid var(--border); color: var(--text-secondary); font-size: var(--fs-lg);
transition: all var(--transition);
}
.hero__social a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); transform: translateY(-2px); }
.hero__image { flex-shrink: 0; }
.hero__img-frame {
width: 280px; height: 280px; border-radius: 50%; border: 3px solid var(--accent);
padding: 4px; background: var(--bg-surface); box-shadow: 0 0 40px var(--accent-glow); overflow: hidden;
}
.hero__img-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* ── Core Pillars ──────────────────────────────────────────── */
#pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.pillar-card { text-align: center; }
.pillar-card__icon {
width: 64px; height: 64px; border-radius: 16px; background: var(--accent-glow);
display: flex; align-items: center; justify-content: center;
font-size: var(--fs-2xl); color: var(--accent); margin: 0 auto var(--space-4);
}
#data-architecture .pillar-card__icon { background: rgba(62,111,244,.18); color: var(--eng-color); }
#scientific-context .pillar-card__icon { background: rgba(142,68,173,.18); color: var(--science-color); }
#leadership-strategy .pillar-card__icon { background: rgba(39,174,96,.18); color: var(--lead-color); }
#data-architecture:hover { border-color: var(--eng-color); box-shadow: 0 8px 32px rgba(62,111,244,.2); }
#scientific-context:hover { border-color: var(--science-color); box-shadow: 0 8px 32px rgba(142,68,173,.2); }
#leadership-strategy:hover { border-color: var(--lead-color); box-shadow: 0 8px 32px rgba(39,174,96,.2); }
.pillar-card__title { font-size: var(--fs-xl); font-weight: 700; margin-bottom: var(--space-3); }
.pillar-card__desc { color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: var(--space-6); line-height: 1.7; }
.pillar-card__cta { font-size: var(--fs-sm); font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-2); color: var(--accent); }
.pillar-card__cta:hover { gap: var(--space-3); }
/* ── Skill Matrix ──────────────────────────────────────────── */
#skills .bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.skills-category {
padding: var(--space-6); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.skills-category__label {
font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border);
}
.skills-category--engineering .skills-category__label { color: var(--eng-color); border-color: rgba(62,111,244,.3); }
.skills-category--science .skills-category__label { color: var(--science-color); border-color: rgba(142,68,173,.3); }
.skills-category--leadership .skills-category__label { color: var(--lead-color); border-color: rgba(39,174,96,.3); }
.skill-list { display: flex; flex-direction: column; gap: var(--space-3); }
.skill-item { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); color: var(--text-secondary); transition: color var(--transition); }
.skill-item:hover { color: var(--text-primary); }
.skill-item__icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.skill-img-icon { width: 24px; height: 24px; object-fit: contain; }
/* ── Timeline ──────────────────────────────────────────────── */
#timeline-container { position: relative; max-width: 800px; margin-inline: auto; }
#timeline-container::before {
content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--border);
}
.tl-item {
display: flex; gap: var(--space-6); margin-bottom: var(--space-8); position: relative;
animation: fadeInUp 0.5s ease both; animation-delay: calc(var(--i, 0) * 120ms);
}
.tl-dot {
width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border);
background: var(--bg-surface); display: flex; align-items: center; justify-content: center;
font-size: var(--fs-base); flex-shrink: 0; position: relative; z-index: 1;
}
.tl-item--science .tl-dot { border-color: var(--science-color); color: var(--science-color); }
.tl-item--analytics .tl-dot { border-color: var(--analytics-color); color: var(--analytics-color); }
.tl-item--engineering .tl-dot { border-color: var(--eng-color); color: var(--eng-color); }
.tl-item--target .tl-dot { border-color: var(--success); color: var(--success); box-shadow: 0 0 16px rgba(39,174,96,.35); animation: pulse 2s ease infinite; }
.tl-card { flex: 1; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-6); transition: border-color var(--transition); }
.tl-item:hover .tl-card { border-color: var(--accent); }
.tl-badge {
display: inline-block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
letter-spacing: 0.1em; padding: 2px 8px; border-radius: var(--radius-sm); margin-bottom: var(--space-2);
}
.tl-badge--science { background: rgba(142,68,173,.2); color: var(--science-color); }
.tl-badge--analytics { background: rgba(243,156,18,.2); color: var(--analytics-color); }
.tl-badge--engineering { background: rgba(62,111,244,.2); color: var(--eng-color); }
.tl-badge--target { background: rgba(39,174,96,.2); color: var(--success); }
.tl-period { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--space-1); }
.tl-role { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--space-1); }
.tl-org { font-size: var(--fs-sm); color: var(--accent); margin-bottom: var(--space-3); }
.tl-desc { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }
/* ── Projects ──────────────────────────────────────────────── */
.filter-bar { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-8); }
.filter-btn {
padding: 0.4rem 1rem; border: 1px solid var(--border); border-radius: 999px;
background: transparent; color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 500; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn--active { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
#projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-6); }
.project-card { padding: 0; overflow: hidden; }
.project-card__img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.project-card:hover .project-card__img img { transform: scale(1.05); }
.project-card__overlay {
position: absolute; inset: 0; background: rgba(13,17,23,.75);
display: flex; align-items: center; justify-content: center;
opacity: 0; transition: opacity var(--transition);
}
.project-card:hover .project-card__overlay { opacity: 1; }
.project-card__body { padding: var(--space-6); }
.project-card__title { font-size: var(--fs-base); font-weight: 700; margin-bottom: var(--space-2); }
.project-card__desc {
font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--space-4); line-height: 1.6;
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card__stack { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tech-badge {
background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary);
font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: 999px;
font-family: var(--font-mono); letter-spacing: 0.03em;
}
/* ── Certifications ────────────────────────────────────────── */
#certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-6); }
.cert-card { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; padding: var(--space-6); }
.cert-card img { height: 100px; object-fit: contain; margin-inline: auto; }
.cert-card__title { font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.4; }
/* ── Blog ──────────────────────────────────────────────────── */
#blog-list { display: flex; flex-direction: column; gap: var(--space-6); max-width: 760px; }
.blog-card { padding: var(--space-6); }
.blog-card__header { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.blog-card__status {
font-size: var(--fs-xs); font-weight: 700; padding: 2px 8px; border-radius: var(--radius-sm);
text-transform: uppercase; letter-spacing: 0.08em;
}
.blog-card__status--draft { background: rgba(243,156,18,.2); color: var(--warning); }
.blog-card__status--published { background: rgba(39,174,96,.2); color: var(--success); }
.blog-card__date { font-size: var(--fs-xs); color: var(--text-muted); }
.blog-card__title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--space-3); }
.blog-card__title a { color: var(--text-primary); }
.blog-card__title a:hover { color: var(--accent); }
.blog-card__summary { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-4); }
.blog-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* ── Contact ───────────────────────────────────────────────── */
#contact > .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.contact-item { display: flex; align-items: center; gap: var(--space-4); font-size: var(--fs-base); color: var(--text-secondary); margin-bottom: var(--space-4); }
.contact-item i { color: var(--accent); font-size: var(--fs-lg); width: 24px; }
.contact-item a { color: var(--text-secondary); }
.contact-item a:hover { color: var(--accent); }
.contact-social { margin-top: var(--space-6); }
/* ── Footer ────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding-block: var(--space-8); text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }
/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,.5); }
50% { box-shadow: 0 0 0 10px rgba(39,174,96,0); }
}
/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
#pillars-grid, #skills .bento-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
.nav__list {
position: fixed; top: var(--nav-height); left: 0; right: 0;
background: var(--bg-surface); border-bottom: 1px solid var(--border);
flex-direction: column; align-items: flex-start;
padding: var(--space-4) var(--space-6); gap: var(--space-4); display: none;
}
.nav__list--open { display: flex; }
.nav__toggle { display: block; }
#home > .container { grid-template-columns: 1fr; text-align: center; gap: var(--space-8); }
.hero__bio, .hero__actions, .hero__social { margin-inline: auto; justify-content: center; }
.hero__image { display: flex; justify-content: center; order: -1; }
.hero__img-frame { width: 200px; height: 200px; }
.hero__name { font-size: var(--fs-4xl); }
#pillars-grid, #skills .bento-grid { grid-template-columns: 1fr; }
#contact > .container { grid-template-columns: 1fr; gap: var(--space-8); }
#timeline-container::before { left: 20px; }
.section-title { font-size: var(--fs-2xl); }
}
@media (max-width: 480px) {
.hero__name { font-size: var(--fs-3xl); }
.container { padding-inline: var(--space-4); }
section { padding-block: var(--space-16); }
}