Skip to content

Commit 4f7f2c5

Browse files
committed
mobile view improved
1 parent 0264999 commit 4f7f2c5

File tree

1 file changed

+56
-100
lines changed

1 file changed

+56
-100
lines changed

css/style.css

Lines changed: 56 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ body {
1616
background: #f8fafc;
1717
}
1818

19-
section[id], header[id] {
19+
section[id],
20+
header[id] {
2021
scroll-margin-top: 70px;
2122
}
2223

@@ -32,14 +33,15 @@ section[id], header[id] {
3233
border-bottom: 1px solid rgba(13, 202, 240, 0.2);
3334
transition: all 0.3s ease;
3435
}
36+
3537
.navbar-wrapper.scrolled {
3638
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
3739
}
3840

3941
.navbar {
4042
max-width: 1450px;
4143
margin: 0 auto;
42-
padding:0;
44+
padding: 0;
4345
height: 58px;
4446
display: flex;
4547
align-items: center;
@@ -51,17 +53,21 @@ section[id], header[id] {
5153
.brand {
5254
display: flex;
5355
align-items: center;
54-
gap: 12px; /* smaller gap */
56+
gap: 12px;
57+
/* smaller gap */
5558
}
5659

5760
.lion-logo {
58-
height: 52px; /* Bigger premium */
61+
height: 52px;
62+
/* Bigger premium */
5963
width: 52px;
6064
border-radius: 50%;
6165
object-fit: cover;
6266
flex-shrink: 0;
63-
box-shadow: 0 8px 24px rgba(13, 202, 240, 0.3); /* Cyan glow */
64-
border: 2px solid rgba(252, 211, 77, 0.4); /* Gold border */
67+
box-shadow: 0 8px 24px rgba(13, 202, 240, 0.3);
68+
/* Cyan glow */
69+
border: 2px solid rgba(252, 211, 77, 0.4);
70+
/* Gold border */
6571
}
6672

6773
.brand-text {
@@ -96,15 +102,17 @@ section[id], header[id] {
96102
width: 14px;
97103
height: 14px;
98104
}
105+
99106
/* NAVBAR LINKS - FIXED FOR 58px NAVBAR */
100107
.nav-links {
101108
display: flex;
102-
gap: 24px; /* Reduced gap */
109+
gap: 24px;
110+
/* Reduced gap */
103111
list-style: none;
104112
margin: 0;
105113
padding: 4px 0;
106114
align-items: center;
107-
justify-self:center;
115+
justify-self: center;
108116
}
109117

110118
.nav-links a {
@@ -115,12 +123,14 @@ section[id], header[id] {
115123
font-weight: 600;
116124
letter-spacing: 0.2px;
117125
position: relative;
118-
padding: 6px 12px; /* Compact padding */
126+
padding: 6px 12px;
127+
/* Compact padding */
119128
border-radius: 20px;
120129
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
121130
overflow: hidden;
122131
align-items: center;
123-
white-space: nowrap; /* Prevents text wrap */
132+
white-space: nowrap;
133+
/* Prevents text wrap */
124134
}
125135

126136
.nav-links a::before {
@@ -129,7 +139,8 @@ section[id], header[id] {
129139
bottom: 2px;
130140
left: 50%;
131141
width: 0;
132-
height: 5px; /* Thinner underline */
142+
height: 5px;
143+
/* Thinner underline */
133144
background: linear-gradient(90deg, #fcd34d, #0dcaf0);
134145
border-radius: 1px;
135146
transition: all 0.3s ease;
@@ -151,9 +162,10 @@ section[id], header[id] {
151162

152163
.nav-links a:hover {
153164
color: #ffffff;
154-
transform: translateY(-1px); /* Smaller lift */
165+
transform: translateY(-1px);
166+
/* Smaller lift */
155167
background: rgba(252, 211, 77, 0.1);
156-
box-shadow:
168+
box-shadow:
157169
0 4px 16px rgba(252, 211, 77, 0.2),
158170
0 2px 8px rgba(13, 202, 240, 0.15);
159171
}
@@ -163,9 +175,11 @@ section[id], header[id] {
163175
}
164176

165177
.nav-links a:hover::after {
166-
width: 200px; /* Smaller ripple for compact links */
178+
width: 200px;
179+
/* Smaller ripple for compact links */
167180
height: 200px;
168181
}
182+
169183
/* SCROLL ANIMATIONS */
170184
.navbar-wrapper.scrolled .lion-logo {
171185
height: 44px;
@@ -349,41 +363,6 @@ footer {
349363
color: #64748b;
350364
}
351365

352-
/* RESPONSIVE */
353-
@media(max-width: 1024px) {
354-
.services-grid {
355-
grid-template-columns: repeat(2, 1fr);
356-
}
357-
}
358-
359-
@media(max-width: 768px) {
360-
.navbar {
361-
flex-direction: column;
362-
align-items: flex-start;
363-
height: auto;
364-
padding: 18px 20px;
365-
}
366-
367-
.nav-links {
368-
gap: 20px;
369-
margin-top: 12px;
370-
}
371-
372-
.hero-heading {
373-
font-size: 32px;
374-
}
375-
376-
.hero-subtitle {
377-
font-size: 20px;
378-
}
379-
380-
.brand {
381-
flex-direction: column;
382-
align-items: flex-start;
383-
text-align: left;
384-
}
385-
}
386-
387366
@media(max-width: 640px) {
388367
.services-grid {
389368
grid-template-columns: 1fr;
@@ -393,65 +372,42 @@ footer {
393372
padding: 15px;
394373
}
395374
}
396-
/* TABLET (iPad, large tablets) */
397-
@media (max-width: 1024px) {
398-
.navbar {
399-
padding: 0 20px;
400-
height: 65px;
401-
}
402-
403-
.lion-logo {
404-
height: 44px;
405-
width: 44px;
406-
}
407-
408-
.brand-name { font-size: 18px; }
409-
.nav-links { gap: 24px; }
375+
376+
/* SCROLL EFFECTS */
377+
.navbar-wrapper.scrolled .lion-logo {
378+
height: 44px;
379+
width: 44px;
380+
}
381+
382+
.navbar-wrapper.scrolled .brand-name {
383+
font-size: 18px;
384+
}
385+
386+
.navbar-wrapper.scrolled .navbar {
387+
height: 65px;
410388
}
411389

412-
/* MOBILE (iPhone, Android < 768px) */
413390
@media (max-width: 768px) {
414-
.navbar-wrapper {
415-
border-bottom: none;
416-
background: rgba(15, 23, 42, 0.95);
417-
}
418-
419-
.navbar {
420-
padding: 16px 20px;
421-
height: auto;
422-
position: relative;
423-
}
424-
425391
.brand {
426-
flex: 1;
392+
flex-direction: row; /* keep logo + text side-by-side */
393+
align-items: center;
394+
gap: 10px;
427395
}
428-
429-
.nav-links {
430-
display: none; /* Hide on mobile */
396+
397+
.brand-text {
398+
line-height: 1.05;
431399
}
432-
433400

434-
/* SMALL MOBILE (iPhone SE, small Android) */
435-
@media (max-width: 480px) {
436-
.navbar {
437-
padding: 12px 16px;
401+
.brand-name {
402+
font-size: 15px;
403+
font-weight: 700;
438404
}
439-
440-
.lion-logo {
441-
height: 40px;
442-
width: 40px;
405+
406+
.brand-subtitle {
407+
font-size: 10px;
443408
}
444-
445-
.brand-name { font-size: 16px; }
446-
.brand-subtitle { font-size: 10px; }
447-
.brand-slogan { font-size: 8px; }
448-
}
449409

450-
/* SCROLL EFFECTS */
451-
.navbar-wrapper.scrolled .lion-logo {
452-
height: 44px;
453-
width: 44px;
410+
.brand-slogan {
411+
font-size: 9px;
412+
}
454413
}
455-
456-
.navbar-wrapper.scrolled .brand-name { font-size: 18px; }
457-
.navbar-wrapper.scrolled .navbar { height: 65px; }

0 commit comments

Comments
 (0)