-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
195 lines (165 loc) · 3.91 KB
/
Copy pathstyles.css
File metadata and controls
195 lines (165 loc) · 3.91 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
/* 1. GLOBAL RESET & VARIABLES */
:root {
/* CSS Variables allow you to change colors in one place */
--primary-color: #2c3e50; /* Dark Blue - Professional */
--accent-color: #3498db; /* Light Blue - For links/buttons */
--bg-light: #f4f4f4; /* Light Gray - For alternate sections */
--text-color: #333; /* Dark Gray - Easy to read text */
--white: #ffffff;
}
/* The 'wildcard' selector (*) resets default browser spacing */
* {
margin: 0;
padding: 0;
box-sizing: border-box; /* Ensures padding doesn't increase element width */
}
body {
font-family: 'Roboto', sans-serif;
line-height: 1.6;
color: var(--text-color);
}
/* 2. REUSABLE UTILITY CLASSES */
.container {
max-width: 1100px; /* Limits width on large screens */
margin: 0 auto; /* Centers content horizontally */
padding: 0 20px;
}
a {
text-decoration: none;
color: var(--accent-color);
}
/* 3. HEADER & NAVIGATION */
header {
background: var(--primary-color);
color: var(--white);
padding: 20px 0;
position: sticky; /* Keeps header at top when scrolling */
top: 0;
z-index: 1000;
}
header .container {
display: flex; /* Places Logo and Nav side-by-side */
justify-content: space-between;
align-items: center;
}
header ul {
list-style: none;
display: flex; /* Places menu items in a horizontal row */
}
header ul li {
margin-left: 20px;
}
header ul li a {
color: var(--white);
font-weight: bold;
}
/* 4. HERO SECTION */
.hero {
background: var(--white);
padding: 100px 0;
text-align: center;
}
.hero h2 {
font-size: 2.5rem;
color: var(--primary-color);
}
.subtitle {
font-size: 1.2rem;
color: #666;
margin-bottom: 20px;
}
.bio {
max-width: 700px;
margin: 0 auto 30px auto; /* Centers the text block */
}
.btn {
background: var(--accent-color);
color: var(--white);
padding: 10px 20px;
border-radius: 5px;
transition: background 0.3s; /* Smooth color change on hover */
}
.btn:hover {
background: var(--primary-color);
}
/* 5. SECTIONS GENERAL STYLING */
section {
padding: 60px 0;
}
.section-gray {
background: var(--bg-light);
}
.section-title {
text-align: center;
font-size: 2rem;
margin-bottom: 40px;
color: var(--primary-color);
}
/* 6. SKILLS GRID (Using CSS Grid) */
.skills-grid {
display: grid;
/* Creates columns that automatically fit the screen width */
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
}
.skill-card {
background: var(--white);
padding: 20px;
text-align: center;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow effect */
font-weight: bold;
}
/* 7. EXPERIENCE TIMELINE */
.timeline-item {
background: var(--white);
padding: 20px;
margin-bottom: 20px;
border-left: 4px solid var(--accent-color); /* The colored line on the left */
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.timeline-item h4 {
font-size: 1.2rem;
}
.timeline-item .date {
font-size: 0.9rem;
color: #777;
display: block; /* Forces date to its own line */
margin-bottom: 10px;
}
.timeline-item .institution {
font-weight: bold;
color: var(--primary-color);
}
/* 8. PUBLICATIONS LIST */
.pub-list {
list-style: none;
max-width: 800px;
margin: 0 auto;
}
.pub-list li {
background: var(--white);
margin-bottom: 15px;
padding: 15px;
border-radius: 5px;
border: 1px solid #ddd;
}
/* 9. FOOTER */
footer {
background: var(--primary-color);
color: var(--white);
text-align: center;
padding: 40px 0;
}
/* 10. MEDIA QUERIES (Mobile Responsiveness) */
@media (max-width: 768px) {
header .container {
flex-direction: column; /* Stack logo and menu on mobile */
}
header ul {
margin-top: 20px;
}
.hero h2 {
font-size: 2rem;
}
}