Skip to content

Commit 1c2dfb5

Browse files
authored
Update styles.css
1 parent 971d5ce commit 1c2dfb5

File tree

1 file changed

+138
-33
lines changed

1 file changed

+138
-33
lines changed

styles.css

Lines changed: 138 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,59 @@
11
/* styles.css */
22

3+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
4+
5+
:root {
6+
--primary-color: #333333;
7+
--secondary-color: #3498db;
8+
--text-color: #000000;
9+
--background-color: #f4f4f4;
10+
--white-color: #ffffff;
11+
--transition-speed: 0.3s;
12+
}
13+
314
body {
4-
font-family: Arial, sans-serif;
15+
font-family: 'Roboto', Arial, sans-serif;
516
line-height: 1.6;
6-
color: #000000;
17+
color: var(--text-color);
18+
background-color: var(--background-color);
19+
margin: 0;
20+
padding: 0;
21+
transition: background-color var(--transition-speed);
22+
}
23+
24+
.container {
725
max-width: 1200px;
826
margin: 0 auto;
9-
padding: 20px;
10-
background-color: #f4f4f4;
27+
padding: 0 20px;
1128
}
1229

1330
header {
14-
background-color: #333333;
15-
color: #ecf0f1;
31+
background-color: var(--primary-color);
32+
color: var(--white-color);
1633
padding: 1rem;
17-
text-align: center;
34+
position: fixed;
35+
width: 100%;
36+
top: 0;
37+
z-index: 1000;
38+
transition: background-color var(--transition-speed);
1839
}
1940

2041
.logo {
2142
max-width: 200px;
2243
height: auto;
44+
transition: transform var(--transition-speed);
45+
}
46+
47+
.logo:hover {
48+
transform: scale(1.05);
2349
}
2450

2551
nav {
26-
background-color: #333333;
52+
background-color: var(--primary-color);
2753
padding: 10px 0;
54+
position: sticky;
55+
top: 70px;
56+
z-index: 999;
2857
}
2958

3059
nav ul {
@@ -33,77 +62,98 @@ nav ul {
3362
margin: 0;
3463
display: flex;
3564
justify-content: center;
65+
flex-wrap: wrap;
3666
}
3767

3868
nav ul li {
39-
margin: 0 10px;
69+
margin: 5px 10px;
4070
}
4171

4272
nav ul li a {
43-
color: #ecf0f1;
73+
color: var(--white-color);
4474
text-decoration: none;
75+
padding: 5px 10px;
76+
border-radius: 5px;
77+
transition: background-color var(--transition-speed);
4578
}
4679

47-
h1 {
48-
color: #ffffff;
80+
nav ul li a:hover {
81+
background-color: var(--secondary-color);
4982
}
5083

51-
h2, h3 {
52-
color: #010101;
84+
.content {
85+
margin-top: 120px;
86+
animation: fadeIn 1s ease-out;
5387
}
5488

55-
.content {
56-
margin-top: 2rem;
89+
@keyframes fadeIn {
90+
from { opacity: 0; transform: translateY(20px); }
91+
to { opacity: 1; transform: translateY(0); }
92+
}
93+
94+
h1 {
95+
color: var(--white-color);
96+
}
97+
98+
h2, h3 {
99+
color: var(--text-color);
57100
}
58101

59102
.case-study {
60-
background-color: #fff;
103+
background-color: var(--white-color);
61104
padding: 1.5rem;
62105
margin-bottom: 2rem;
63-
border-radius: 5px;
64-
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
106+
border-radius: 10px;
107+
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
108+
transition: transform var(--transition-speed), box-shadow var(--transition-speed);
109+
}
110+
111+
.case-study:hover {
112+
transform: translateY(-5px);
113+
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
65114
}
66115

67116
.linkedin-post {
68-
background-color: #333333;
69-
color: white;
117+
background-color: var(--primary-color);
118+
color: var(--white-color);
70119
padding: 1rem;
71120
margin-top: 1rem;
72121
border-left: 4px solid #03a9f4;
122+
border-radius: 0 10px 10px 0;
73123
}
74124

75125
.cta-button {
76126
display: inline-block;
77-
background-color:#333333;
78-
color: white;
127+
background-color: var(--primary-color);
128+
color: var(--white-color);
79129
padding: 10px 20px;
80130
text-decoration: none;
81-
border-radius: 5px;
131+
border-radius: 25px;
82132
margin-top: 1rem;
133+
transition: background-color var(--transition-speed), transform var(--transition-speed);
83134
}
84135

85136
.cta-button:hover {
86-
background-color: #2980b9;
137+
background-color: var(--secondary-color);
138+
transform: scale(1.05);
87139
}
88140

89141
footer {
90142
text-align: center;
91143
margin-top: 2rem;
92144
padding: 1rem;
93-
background-color: #333333;
94-
color: #ecf0f1;
145+
background-color: var(--primary-color);
146+
color: var(--white-color);
95147
}
96148

97149
footer a {
98-
color: #3498db;
150+
color: var(--secondary-color);
99151
}
100152

153+
/* Responsive design */
101154
@media (max-width: 768px) {
102-
body {
103-
padding: 10px;
104-
}
105-
.case-study {
106-
padding: 1rem;
155+
.container {
156+
padding: 0 10px;
107157
}
108158
nav ul {
109159
flex-direction: column;
@@ -112,4 +162,59 @@ footer a {
112162
nav ul li {
113163
margin: 5px 0;
114164
}
165+
.content {
166+
margin-top: 160px;
167+
}
168+
}
169+
170+
/* Dark mode */
171+
@media (prefers-color-scheme: dark) {
172+
:root {
173+
--text-color: #f4f4f4;
174+
--background-color: #1a1a1a;
175+
}
176+
.case-study {
177+
background-color: #2c2c2c;
178+
}
179+
.linkedin-post {
180+
background-color: #1c3f5f;
181+
}
182+
}
183+
184+
/* Menu toggle for mobile */
185+
.menu-toggle {
186+
display: none;
187+
background: none;
188+
border: none;
189+
color: var(--white-color);
190+
font-size: 1.5rem;
191+
cursor: pointer;
192+
}
193+
194+
@media (max-width: 768px) {
195+
.menu-toggle {
196+
display: block;
197+
}
198+
nav ul {
199+
display: none;
200+
}
201+
nav ul.show {
202+
display: flex;
203+
}
204+
}
205+
206+
/* Social icons in footer */
207+
.social-icons {
208+
margin-top: 1rem;
209+
}
210+
211+
.social-icons a {
212+
color: var(--white-color);
213+
font-size: 1.5rem;
214+
margin: 0 10px;
215+
transition: color var(--transition-speed);
216+
}
217+
218+
.social-icons a:hover {
219+
color: var(--secondary-color);
115220
}

0 commit comments

Comments
 (0)