Skip to content

Commit 8f1d3f6

Browse files
committed
Improve mobile responsiveness: better text sizing, spacing, and mobile navigation visibility
1 parent 1115383 commit 8f1d3f6

1 file changed

Lines changed: 48 additions & 42 deletions

File tree

src/App.css

Lines changed: 48 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -444,14 +444,15 @@ body::before {
444444

445445
/* Spectacular title animation */
446446
.hero-title {
447-
font-size: clamp(2rem, 8vw, 3.5rem);
447+
font-size: clamp(1.8rem, 6vw, 3.5rem);
448448
font-weight: 800;
449-
line-height: 1.2;
450-
margin-bottom: 1.5rem;
449+
line-height: 1.1;
450+
margin-bottom: 1rem;
451451
perspective: 1000px;
452452
color: white;
453453
word-wrap: break-word;
454454
overflow-wrap: break-word;
455+
text-align: center;
455456
}
456457

457458
.hero-title-word {
@@ -479,19 +480,20 @@ body::before {
479480
}
480481

481482
.hero-subtitle {
482-
font-size: clamp(1rem, 3vw, 1.25rem);
483+
font-size: clamp(0.9rem, 2.5vw, 1.25rem);
483484
color: rgba(255, 255, 255, 0.9);
484-
margin-bottom: 2rem;
485-
line-height: 1.6;
485+
margin-bottom: 1.5rem;
486+
line-height: 1.5;
486487
min-height: auto;
487488
background: rgba(255, 255, 255, 0.1);
488489
backdrop-filter: blur(10px);
489-
padding: 1rem;
490+
padding: 0.8rem;
490491
border-radius: 10px;
491492
border: 1px solid rgba(255, 255, 255, 0.2);
492493
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
493494
border-left: 3px solid rgba(59, 130, 246, 0.8);
494495
word-wrap: break-word;
496+
text-align: center;
495497
}
496498

497499
.hero-features {
@@ -2799,6 +2801,15 @@ section {
27992801

28002802
.mobile-menu-toggle {
28012803
display: flex;
2804+
background: rgba(255, 255, 255, 0.2);
2805+
border: 1px solid rgba(255, 255, 255, 0.3);
2806+
color: white;
2807+
backdrop-filter: blur(10px);
2808+
}
2809+
2810+
.mobile-menu-toggle:hover {
2811+
background: rgba(255, 255, 255, 0.3);
2812+
border-color: rgba(255, 255, 255, 0.5);
28022813
}
28032814

28042815
.mobile-nav {
@@ -2933,49 +2944,42 @@ section {
29332944
}
29342945

29352946
.hero {
2936-
padding: 5rem 0 2rem;
2937-
}
2938-
2939-
.hero-title {
2940-
margin-bottom: 0.8rem;
2941-
}
2942-
2943-
.hero-title-word {
2944-
display: inline-block;
2945-
margin-bottom: 0.3rem;
2946-
margin-right: 0.3rem;
2947-
font-size: 0.95em;
2947+
padding: 4rem 0 2rem;
29482948
}
29492949

2950-
.hero-subtitle {
2951-
padding: 0.8rem;
2952-
margin-bottom: 1rem;
2950+
.hero-content {
2951+
gap: 1.5rem;
29532952
}
29542953

29552954
.hero-features {
29562955
flex-direction: column;
29572956
align-items: center;
29582957
gap: 0.8rem;
2958+
margin-bottom: 1.5rem;
29592959
}
29602960

29612961
.feature {
29622962
width: 100%;
2963-
max-width: 250px;
2963+
max-width: 280px;
29642964
justify-content: center;
29652965
padding: 0.8rem 1rem;
2966+
font-size: 0.9rem;
29662967
}
29672968

29682969
.hero-buttons {
29692970
flex-direction: column;
29702971
width: 100%;
29712972
align-items: center;
2973+
gap: 1rem;
2974+
margin-bottom: 1.5rem;
29722975
}
29732976

29742977
.cta-button {
29752978
width: 100%;
2976-
max-width: 250px;
2979+
max-width: 280px;
29772980
text-align: center;
29782981
padding: 1rem;
2982+
font-size: 1rem;
29792983
}
29802984

29812985
.social-buttons {
@@ -2986,8 +2990,10 @@ section {
29862990

29872991
.social-btn {
29882992
width: 100%;
2989-
max-width: 200px;
2993+
max-width: 250px;
29902994
justify-content: center;
2995+
padding: 0.8rem;
2996+
font-size: 0.9rem;
29912997
}
29922998

29932999
.phone-mockup {
@@ -3008,48 +3014,48 @@ section {
30083014
}
30093015

30103016
.hero {
3011-
padding: 4rem 0 2rem;
3012-
}
3013-
3014-
.hero-title {
3015-
margin-bottom: 0.8rem;
3017+
padding: 3rem 0 1.5rem;
30163018
}
30173019

3018-
.hero-title-word {
3019-
display: inline-block;
3020-
margin-bottom: 0.2rem;
3021-
margin-right: 0.2rem;
3022-
text-align: center;
3023-
width: auto;
3024-
}
3025-
3026-
.hero-subtitle {
3027-
padding: 0.6rem;
3028-
margin-bottom: 1rem;
3020+
.hero-content {
3021+
gap: 1rem;
30293022
}
30303023

30313024
.hero-features {
30323025
gap: 0.6rem;
3026+
margin-bottom: 1rem;
30333027
}
30343028

30353029
.feature {
30363030
padding: 0.6rem 0.8rem;
30373031
font-size: 0.8rem;
3032+
max-width: 240px;
30383033
}
30393034

30403035
.feature-icon {
30413036
width: 16px;
30423037
height: 16px;
30433038
}
30443039

3040+
.hero-buttons {
3041+
gap: 0.8rem;
3042+
margin-bottom: 1rem;
3043+
}
3044+
30453045
.cta-button {
30463046
padding: 0.8rem 1rem;
3047-
font-size: 0.85rem;
3047+
font-size: 0.9rem;
3048+
max-width: 240px;
3049+
}
3050+
3051+
.social-buttons {
3052+
gap: 0.6rem;
30483053
}
30493054

30503055
.social-btn {
30513056
padding: 0.6rem 1rem;
30523057
font-size: 0.8rem;
3058+
max-width: 220px;
30533059
}
30543060

30553061
.phone-mockup {

0 commit comments

Comments
 (0)