Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
166 lines (144 loc) · 9.28 KB
/
Copy pathindex.css
File metadata and controls
166 lines (144 loc) · 9.28 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
/* ========== CSS Reset & Base ==========
A minimal, modern reset and design tokens */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html:focus-within { scroll-behavior: smooth; }
html, body { height: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
:root {
--bg: #0b0d12;
--surface: #12151d;
--text: #e6e9ef;
--muted: #9aa4b2;
--primary: #6ea8fe;
--primary-600: #3d8bfd;
--ring: rgba(110,168,254,.5);
--ok: #21c55d;
--warn: #f59e0b;
--danger: #ef4444;
--card: #141824;
--border: #233043;
--shadow: 0 10px 30px rgba(0,0,0,.35);
}
@media (prefers-color-scheme: light) {
:root {
--bg: #f7f7fb; --surface: #ffffff; --text: #0b1220; --muted: #475569;
--primary: #1e66f5; --primary-600: #1a56d8; --ring: rgba(30,102,245,.25);
--card: #ffffff; --border: #e5e7eb; --shadow: 0 10px 30px rgba(2,6,23,.08);
}
}
/* Theme toggle support */
:root.theme-dark {
--bg: #0b0d12; --surface: #12151d; --text: #e6e9ef; --muted: #9aa4b2;
--primary: #6ea8fe; --primary-600: #3d8bfd; --ring: rgba(110,168,254,.5);
--card: #141824; --border: #233043; --shadow: 0 10px 30px rgba(0,0,0,.35);
}
:root.theme-light {
--bg: #f7f7fb; --surface: #ffffff; --text: #0b1220; --muted: #475569;
--primary: #1e66f5; --primary-600: #1a56d8; --ring: rgba(30,102,245,.25);
--card: #ffffff; --border: #e5e7eb; --shadow: 0 10px 30px rgba(2,6,23,.08);
}
body {
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
background: var(--bg);
color: var(--text);
line-height: 1.6;
}
.container { width: min(1100px, 92%); margin-inline: auto; }
.section { padding: 6rem 0; }
.row { display: flex; align-items: center; }
.row.space-between { justify-content: space-between; }
.row.align-center { align-items: center; }
.row.align-end { align-items: flex-end; }
.row.gap { gap: .75rem; }
.grid { display: grid; gap: 2rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 900px) { .grid.two { grid-template-columns: 1fr; } }
/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--surface), transparent 10%); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.brand { font-weight: 800; letter-spacing: .5px; font-size: 1.25rem; text-decoration: none; color: var(--text); }
.brand span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { display: none; border: none; background: transparent; font-size: 1.25rem; color: var(--text); }
.nav__menu { display: flex; list-style: none; gap: 1rem; }
.nav__menu a { color: var(--muted); text-decoration: none; padding: .75rem .5rem; border-radius: .5rem; }
.nav__menu a:hover { color: var(--text); background: color-mix(in oklab, var(--primary), transparent 88%); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
@media (max-width: 800px) {
.nav__toggle { display: inline-block; }
.nav__menu { position: absolute; right: 1rem; top: 60px; flex-direction: column; background: var(--surface); border: 1px solid var(--border); padding: .5rem; border-radius: .75rem; box-shadow: var(--shadow); display: none; }
.nav__menu.is-open { display: flex; }
}
/* Buttons */
.btn { --_bg: var(--surface); --_color: var(--text); --_border: var(--border); display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border-radius: .65rem; border: 1px solid var(--_border); background: var(--_bg); color: var(--_color); text-decoration: none; cursor: pointer; transition: transform .06s ease, background .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { --_bg: var(--primary); --_border: var(--primary-600); --_color: white; }
.btn--primary:hover { background: var(--primary-600); }
.btn--ghost { background: transparent; }
/* Hero */
.hero { padding-top: 7rem; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin-top: .5rem; }
.subtitle { font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--muted); margin-top: 1rem; }
.hero__cta { margin-top: 1.25rem; display: flex; gap: .75rem; }
.social { display: flex; gap: .75rem; margin-top: 1rem; list-style: none; }
.social a { font-size: 1.25rem; text-decoration: none; }
/* Fun orbit visual */
.hero__visual { display: grid; place-items: center; }
.orbit { position: relative; width: 320px; aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in oklab, var(--primary), transparent 60%); }
.planet { position: absolute; inset: 50% auto auto 50%; width: 18px; height: 18px; margin:-9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 30px var(--ring); }
.satellite { position: absolute; width: 10px; height: 10px; background: color-mix(in oklab, var(--primary), white 15%); border-radius: 50%; animation: orbit 8s linear infinite; transform-origin: -110px -110px; left: 50%; top: 50%; }
@keyframes orbit { to { transform: rotate(360deg); } }
/* About */
.about-card { background: var(--card); border: 1px solid var(--border); padding: 1.25rem; border-radius: .85rem; box-shadow: var(--shadow); }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.badge { background: color-mix(in oklab, var(--primary), transparent 85%); color: var(--text); padding: .35rem .6rem; border-radius: .5rem; border: 1px solid color-mix(in oklab, var(--primary), transparent 65%); font-size: .85rem; }
/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 1.25rem; }
.skill { background: var(--card); border: 1px solid var(--border); padding: 1rem; border-radius: .85rem; box-shadow: var(--shadow); }
@media (max-width: 1000px) { .skills-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .skills-grid { grid-template-columns: 1fr; } }
/* Projects */
.filters { display: flex; gap: .5rem; }
.chip { padding: .4rem .75rem; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; cursor: pointer; color: var(--muted); }
.chip.is-active { color: var(--text); border-color: var(--primary); }
.cards { margin-top: 1rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); padding: 1rem; border-radius: .85rem; box-shadow: var(--shadow); cursor: pointer; outline: none; }
.card:focus { box-shadow: 0 0 0 3px var(--ring); }
.pill { display: inline-block; margin-top: .75rem; padding: .2rem .5rem; font-size: .75rem; border: 1px solid var(--border); border-radius: .5rem; color: var(--muted); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
/* Timeline */
.timeline { list-style: none; margin-top: 1rem; border-left: 2px dashed var(--border); padding-left: 1rem; }
.timeline li { position: relative; padding: .5rem 0 .5rem .5rem; }
.timeline .timestamp { position: absolute; left: -4.3rem; top: .35rem; font-weight: 600; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -10px; top: .7rem; width: 8px; height: 8px; background: var(--primary); border-radius: 999px; box-shadow: 0 0 0 3px var(--ring); }
/* Forms */
form { margin-top: 1rem; }
.form-row { display: grid; gap: .35rem; margin-bottom: .9rem; }
input, textarea { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: .65rem; padding: .65rem .75rem; }
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--ring); border-color: var(--primary); }
.error { color: var(--danger); min-height: 1.1rem; font-size: .85rem; }
.form-status { margin-top: .5rem; font-weight: 600; }
/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; background: color-mix(in oklab, var(--surface), transparent 10%); }
/* Modal */
.modal { position: fixed; inset: 0; display: none; }
.modal[aria-hidden="false"] { display: grid; place-items: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal__dialog { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: .85rem; width: min(720px, 92%); box-shadow: var(--shadow); overflow: hidden; }
.modal__header { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
.modal__body { padding: 1rem; }
.modal__close { border: none; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Utilities */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--primary); color: white; padding: .5rem .75rem; border-radius: .5rem; z-index: 100; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: .75rem; }
/* Back to top */
#backToTop { position: fixed; right: 1rem; bottom: 1rem; display: none; }
#backToTop.is-visible { display: inline-flex; }