-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
179 lines (167 loc) · 6.2 KB
/
styles.css
File metadata and controls
179 lines (167 loc) · 6.2 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
/* Typography & base */
:root {
--bg: #ffffff; /* pure white */
--panel: rgba(255,255,255,0.06);
--text: #0f172a;
--muted: #475569;
--accent: #9b87f5; /* pastel purple */
--accent2: #f5a3c7; /* pastel pink */
--border: #1d1f27;
--scroll: 0; /* 0 at top → 1 after intro */
}
@media (prefers-color-scheme: light) {
:root {
--bg: #ffffff;
--panel: rgba(255,255,255,0.06);
--text: #0f172a;
--muted: #475569;
--accent: #9b87f5;
--border: #e7e9f2;
}
}
html { background: var(--bg); }
/* Force pure white when requested */
html, body { background-color: #ffffff !important; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
color: var(--text);
background: transparent; /* allow ::before/after gradient to be visible */
line-height: 1.6;
}
/* Natural sweeping gradient background (pastel purple -> pink -> blue) */
body::before,
body::after {
display: none; /* disable animated overlays for pure white background */
}
/* Large diagonal gradient that slowly moves */
body::before {
background: linear-gradient(115deg, rgba(155,135,245,0.55) 0%, rgba(245,163,199,0.48) 45%, rgba(121,201,255,0.42) 100%);
filter: blur(14px) saturate(130%);
transform: translate3d(0,0,0);
animation: sweep 18s ease-in-out infinite alternate;
}
/* Soft motion streaks overlay, very light */
body::after {
background: repeating-linear-gradient(115deg, rgba(255,255,255,0.08) 0 8px, rgba(255,255,255,0.03) 8px 32px);
filter: blur(36px);
opacity: 0.5;
mix-blend-mode: overlay;
animation: drift 26s linear infinite;
}
@keyframes sweep {
0% { transform: translate3d(-8%, -5%, 0) scale(1.04); }
100% { transform: translate3d(8%, 5%, 0) scale(1.04); }
}
@keyframes drift {
0% { transform: translate3d(0,0,0); }
100% { transform: translate3d(-10%, -10%, 0); }
}
/* Pause animated background after intro */
body.bg-paused::before,
body.bg-paused::after { animation-play-state: paused; }
.container {
max-width: 980px;
padding: 0 20px;
margin: 0 auto;
}
/* Header */
.site-header { display: none; }
.site-header .container {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.avatar-img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; display: block; }
.titles h1 { margin: 0; font-size: 20px; letter-spacing: 0.2px; }
.subtitle { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-weight: 600; }
.nav a:hover { color: var(--text); }
/* Intro split layout */
.intro {
position: relative;
min-height: 100vh;
display: grid;
place-items: center;
padding: 72px 0 32px;
}
.intro-glass { width: min(1200px, 92%); background: transparent; border: none; box-shadow: none; }
.intro.collapsed .intro-glass { transform: translateY(-24px) scale(0.985); opacity: 0.92; }
.intro-inner { display: grid; grid-template-columns: 1fr auto 2fr; align-items: center; gap: 28px; padding: 32px; }
.intro-left { display: flex; justify-content: center; }
.intro-avatar { width: clamp(220px, 28vw, 320px); height: clamp(220px, 28vw, 320px); border-radius: 999px; object-fit: contain; object-position: 50% 40%; background: #ffffff; padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); }
.intro-divider { width: 1px; height: clamp(220px, 34vw, 360px); background: linear-gradient(180deg, transparent, rgba(155,135,245,0.45), transparent); }
.intro-title { margin: 0 0 8px; font-size: clamp(34px, 6vw, 56px); letter-spacing: 0.4px; }
.intro-sub { margin: 0 0 14px; color: var(--muted); font-size: clamp(14px, 2.4vw, 18px); }
.intro-scroll-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: var(--muted); text-decoration: none; font-weight: 600; }
/* Scroll-driven fade/translate for intro elements */
.intro-avatar,
.intro-title,
.intro-sub,
.intro .inline-list,
.intro-divider {
opacity: calc(1 - var(--scroll));
transform: translateY(calc(var(--scroll) * 18px));
transition: opacity 120ms linear, transform 120ms linear;
}
@media (max-width: 900px) {
.intro-inner { grid-template-columns: 1fr; text-align: center; }
.intro-divider { display: none; }
.intro-left { order: -1; }
}
/* Sections */
.card {
background: rgba(255,255,255,0.10);
border: 1px solid rgba(255,255,255,0.22);
border-radius: 16px;
padding: 24px;
margin: 22px 0;
backdrop-filter: blur(8px);
box-shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
}
.card h2, .card h3 { margin-top: 0; }
.pill {
display: inline-block;
padding: 2px 8px;
margin: 0 6px 0 0;
border-radius: 999px;
background: color-mix(in oklab, var(--accent) 16%, transparent);
color: color-mix(in oklab, var(--accent) 80%, var(--text));
font-size: 12px;
}
.inline-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }
.inline-list a.muted { color: var(--muted); text-decoration: none; }
.inline-list a.muted:hover { color: var(--text); text-decoration: underline; }
/* Projects – soft separators */
.projects { margin: 60px 0; }
.projects h2 { margin-bottom: 10px; }
.project { padding: 22px 0; }
.project + .project { border-top: 1px dashed color-mix(in oklab, var(--accent) 22%, var(--border)); }
.project-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.inline-link { color: var(--accent); text-decoration: none; font-weight: 700; }
.inline-link:hover { text-decoration: underline; }
.links { display: flex; gap: 10px; margin-top: 12px; }
.btn {
display: inline-block;
padding: 8px 14px;
border-radius: 10px;
background: var(--accent);
color: white;
text-decoration: none;
font-weight: 700;
box-shadow: 0 6px 18px rgba(37,99,235,0.35);
}
.btn:hover { opacity: 0.95; }
.btn.ghost {
background: transparent;
color: var(--accent);
border: 1px solid color-mix(in oklab, var(--accent) 50%, var(--border));
box-shadow: none;
}
/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 28px; }
.site-footer .container { padding: 20px; color: var(--muted); font-size: 14px; }