Skip to content

Commit 230af3c

Browse files
authored
Update mobile menu
1 parent 078775e commit 230af3c

1 file changed

Lines changed: 55 additions & 2 deletions

File tree

index.html

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,58 @@
162162
.solar-system { transform: scale(0.65); height: 350px; }
163163
.nexus-wrapper { transform: scale(0.75); }
164164
}
165+
/* Fix extra blank space after hero (mobile) */
166+
#home {
167+
overflow-x: hidden;
168+
}
169+
170+
/* ================= MOBILE HERO FIX ================= */
171+
@media (max-width: 768px) {
172+
173+
@media (max-width: 768px) {
174+
175+
#home h1 {
176+
font-size: 2.2rem;
177+
line-height: 1.2;
178+
text-align: center;
179+
}
180+
181+
#home h2 {
182+
font-size: 1.4rem;
183+
text-align: center;
184+
}
185+
186+
#home p {
187+
text-align: center;
188+
font-size: 1rem;
189+
}
190+
191+
#home .flex.gap-4 {
192+
justify-content: center;
193+
}
194+
195+
}
196+
197+
/* Reduce hero animation size */
198+
.solar-system {
199+
transform: scale(0.6);
200+
height: 300px;
201+
margin-top: -40px;
202+
}
203+
204+
/* Reduce orbit sizes */
205+
.orbit-1 { width: 160px; height: 160px; }
206+
.orbit-2 { width: 260px; height: 260px; }
207+
.orbit-3 { width: 360px; height: 360px; }
208+
209+
/* Center animation properly */
210+
#home .solar-system {
211+
justify-content: center;
212+
align-items: center;
213+
}
214+
215+
}
216+
165217
</style>
166218
</head>
167219
<body class="bg-slate-950 text-slate-300">
@@ -194,7 +246,9 @@
194246
</nav>
195247

196248
<!-- Hero -->
197-
<section id="home" class="h-[85vh] flex items-center pt-24 relative overflow-hidden">
249+
<section id="home"
250+
class="min-h-screen md:h-[85vh] flex items-center pt-28 md:pt-24 relative overflow-hidden">
251+
198252

199253
<!-- Background Video -->
200254
<div class="absolute inset-0 -z-20">
@@ -1011,4 +1065,3 @@ <h4 class="text-white font-semibold mb-6 flex items-center gap-2">
10111065
</script>
10121066
</body>
10131067
</html>
1014-

0 commit comments

Comments
 (0)