-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
210 lines (180 loc) · 3.71 KB
/
Copy pathstyles.css
File metadata and controls
210 lines (180 loc) · 3.71 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: Arial, Helvetica, sans-serif;
line-height: 1.6;
color: #222;
background-color: #fafafa;
}
/* ---------- Fixed navigation bar ---------- */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #2c3e50;
z-index: 1000;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
nav {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
padding: 15px 10px;
}
nav a {
color: #ffffff;
text-decoration: none;
font-weight: bold;
font-size: 15px;
padding: 8px 14px;
border-radius: 4px;
transition: background-color 0.2s ease-in-out;
}
nav a:hover {
background-color: #34495e;
}
/* ---------- Layout ---------- */
main {
margin-top: 64px; /* compensate for fixed header height */
max-width: 900px;
padding: 20px;
margin-left: auto;
margin-right: auto;
}
section {
min-height: 60vh;
padding: 50px 0;
border-bottom: 1px solid #ddd;
scroll-margin-top: 80px; /* keeps the heading visible below the fixed header on anchor jump */
}
section:last-of-type {
border-bottom: none;
}
section h2 {
font-size: 28px;
margin-bottom: 20px;
color: #2c3e50;
border-left: 5px solid #2c3e50;
padding-left: 12px;
}
section p {
font-size: 16px;
color: #444;
margin-bottom: 12px;
}
/* ---------- About section (photo + text) ---------- */
.about-content {
display: flex;
flex-wrap: wrap;
gap: 25px;
align-items: center;
}
.about-content img {
width: 180px;
height: 180px;
object-fit: cover;
border-radius: 50%;
border: 4px solid #2c3e50;
}
.about-text {
flex: 1;
min-width: 250px;
}
/* ---------- Skills grid with icons ---------- */
.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 20px;
margin-top: 20px;
}
.skill-card {
background: #fff;
border-radius: 8px;
padding: 15px;
text-align: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.skill-card img {
width: 60px;
height: 60px;
object-fit: contain; /* icons keep their proportions instead of stretching */
margin-bottom: 10px;
}
/* ---------- Projects/experience gallery ---------- */
.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
margin-top: 20px;
}
.gallery figure {
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.gallery img {
width: 100%;
height: 150px;
object-fit: contain; /* logos/icons stay proportional, no stretching or cropping */
padding: 20px;
background: #f5f5f5;
display: block;
}
.gallery figcaption {
padding: 10px;
font-size: 14px;
color: #444;
}
/* ---------- Hobbies ---------- */
.hobbies-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 20px;
margin-top: 20px;
}
.hobbies-grid img {
width: 100%;
height: 130px;
object-fit: cover;
border-radius: 8px;
}
/* ---------- Contact ---------- */
.contact-list {
list-style: none;
margin-top: 15px;
}
.contact-list li {
margin-bottom: 10px;
font-size: 16px;
}
.contact-list a {
color: #2c3e50;
text-decoration: none;
font-weight: bold;
}
.contact-list a:hover {
text-decoration: underline;
}
/* ---------- Footer (always at the bottom, NOT fixed) ---------- */
footer {
background-color: #2c3e50;
color: #fff;
text-align: center;
padding: 25px 15px;
}
footer p {
font-size: 14px;
margin: 4px 0;
}
footer a {
color: #ffffff;
}