Skip to content

Commit 0264999

Browse files
committed
Navbar improved.
1 parent 0ac059e commit 0264999

File tree

1 file changed

+62
-38
lines changed

1 file changed

+62
-38
lines changed

css/style.css

Lines changed: 62 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ section[id], header[id] {
2626
position: sticky;
2727
top: 0;
2828
z-index: 1000;
29-
background: rgba(15, 23, 42, 0.98);
29+
align-items: center;
30+
background: linear-gradient(135deg, #0f172a, #0dcaf0);
3031
backdrop-filter: blur(20px);
3132
border-bottom: 1px solid rgba(13, 202, 240, 0.2);
3233
transition: all 0.3s ease;
@@ -39,7 +40,7 @@ section[id], header[id] {
3940
max-width: 1450px;
4041
margin: 0 auto;
4142
padding:0;
42-
height: 70px;
43+
height: 58px;
4344
display: flex;
4445
align-items: center;
4546
justify-content: space-between;
@@ -95,26 +96,76 @@ section[id], header[id] {
9596
width: 14px;
9697
height: 14px;
9798
}
98-
99-
/* NAVBAR LINKS - RIGHT ALIGNED */
99+
/* NAVBAR LINKS - FIXED FOR 58px NAVBAR */
100100
.nav-links {
101101
display: flex;
102-
gap: 28px;
102+
gap: 24px; /* Reduced gap */
103103
list-style: none;
104104
margin: 0;
105+
padding: 4px 0;
106+
align-items: center;
107+
justify-self:center;
105108
}
106109

107110
.nav-links a {
108-
color: #ffffff;
111+
color: #e2e8f0;
109112
text-decoration: none;
110-
font-weight: 500;
111-
transition: 0.3s;
113+
font-family: 'Inter', sans-serif;
114+
font-size: 16px;
115+
font-weight: 600;
116+
letter-spacing: 0.2px;
117+
position: relative;
118+
padding: 6px 12px; /* Compact padding */
119+
border-radius: 20px;
120+
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
121+
overflow: hidden;
122+
align-items: center;
123+
white-space: nowrap; /* Prevents text wrap */
124+
}
125+
126+
.nav-links a::before {
127+
content: '';
128+
position: absolute;
129+
bottom: 2px;
130+
left: 50%;
131+
width: 0;
132+
height: 5px; /* Thinner underline */
133+
background: linear-gradient(90deg, #fcd34d, #0dcaf0);
134+
border-radius: 1px;
135+
transition: all 0.3s ease;
136+
transform: translateX(-50%);
137+
}
138+
139+
.nav-links a::after {
140+
content: '';
141+
position: absolute;
142+
top: 50%;
143+
left: 50%;
144+
width: 0;
145+
height: 0;
146+
background: radial-gradient(circle, rgba(252, 211, 77, 0.25) 0%, transparent 70%);
147+
border-radius: 50%;
148+
transform: translate(-50%, -50%);
149+
transition: all 0.5s ease;
112150
}
113151

114152
.nav-links a:hover {
115-
color: #fcd34d;
153+
color: #ffffff;
154+
transform: translateY(-1px); /* Smaller lift */
155+
background: rgba(252, 211, 77, 0.1);
156+
box-shadow:
157+
0 4px 16px rgba(252, 211, 77, 0.2),
158+
0 2px 8px rgba(13, 202, 240, 0.15);
159+
}
160+
161+
.nav-links a:hover::before {
162+
width: 75%;
116163
}
117164

165+
.nav-links a:hover::after {
166+
width: 200px; /* Smaller ripple for compact links */
167+
height: 200px;
168+
}
118169
/* SCROLL ANIMATIONS */
119170
.navbar-wrapper.scrolled .lion-logo {
120171
height: 44px;
@@ -218,16 +269,6 @@ section {
218269
/* HEADINGS */
219270
h2 {
220271
font-size: 28px;
221-
color: #0f172a;
222-
margin-bottom: 20px;
223-
position: relative;
224-
}
225-
226-
h3 {
227-
font-size: 28px;
228-
color: #0f172a;
229-
margin-bottom: 20px;
230-
position: relative;
231272
}
232273

233274
h2::after {
@@ -249,11 +290,11 @@ h3 {
249290
/* LISTS */
250291
ul {
251292
margin-left: 20px;
252-
margin-top: 12px;
293+
margin-top: 20px;
253294
}
254295

255296
ul li {
256-
margin-bottom: 10px;
297+
margin-bottom: 3px;
257298
}
258299

259300
/* SERVICES GRID */
@@ -389,23 +430,6 @@ footer {
389430
display: none; /* Hide on mobile */
390431
}
391432

392-
/* HAMBURGER BUTTON */
393-
.hamburger {
394-
display: flex;
395-
flex-direction: column;
396-
gap: 4px;
397-
cursor: pointer;
398-
padding: 8px;
399-
}
400-
401-
.hamburger span {
402-
width: 24px;
403-
height: 2px;
404-
background: #ffffff;
405-
transition: 0.3s ease;
406-
border-radius: 2px;
407-
}
408-
}
409433

410434
/* SMALL MOBILE (iPhone SE, small Android) */
411435
@media (max-width: 480px) {

0 commit comments

Comments
 (0)