From 09541f03f77478f32aac7faa5527199a7c3d086d Mon Sep 17 00:00:00 2001 From: ectasy663 Date: Fri, 6 Jun 2025 14:49:12 +0530 Subject: [PATCH] Fix mobile navigation and improve homepage layout - Fixed mobile navigation dropdown functionality - Improved homepage responsive design and styling - Enhanced CSS components for better mobile experience - Optimized page loading and performance --- css/components.css | 11 +++++------ index.html | 27 ++------------------------- 2 files changed, 7 insertions(+), 31 deletions(-) diff --git a/css/components.css b/css/components.css index 43f1864..e153565 100644 --- a/css/components.css +++ b/css/components.css @@ -53,7 +53,7 @@ .hero-content h1 { font-size: 4rem; line-height: 1.1; - margin-bottom: 1rem; + margin-bottom: 0.0005rem; letter-spacing: 1.5px; font-weight: 100; position: relative; @@ -83,7 +83,7 @@ /* ===== HERO TYPEWRITER SECTION ===== */ .hero-typewriter-section { - margin: 0.2rem 0 1.2rem 0; + margin: 0.0005rem 0; width: 100%; /* Full width */ display: flex; flex-direction: column; @@ -93,7 +93,7 @@ .hero-subheading { font-size: 1.4rem; color: rgba(255, 255, 255, 0.9); - margin-bottom: 0.6rem; + margin-bottom: 0.0005rem; font-weight: 100; text-align: center; } @@ -108,8 +108,7 @@ max-width: 100%; /* Ensure it doesn't exceed viewport width */ display: flex; align-items: center; - justify-content: center; - margin-bottom: 0.4rem; + justify-content: center; margin-bottom: 0.0005rem; padding: 0.2rem 0; /* Reduced horizontal padding */ line-height: 1.0; } @@ -118,7 +117,7 @@ font-size: 1.3rem; color: rgba(255, 255, 255, 0.8); line-height: 1.8; - margin: 1.2rem auto; + margin: 0.0005rem auto 0 auto; max-width: 600px; text-align: center; } diff --git a/index.html b/index.html index bb3d9fc..06c3d55 100644 --- a/index.html +++ b/index.html @@ -22,29 +22,7 @@ padding: 0; opacity: 0; transition: opacity 0.3s ease; - overflow-x: hidden; - line-height: 1.6; - } - - /* Custom styles for hero section font sizes */ - #hero .hero-content h1 { - font-size: 4rem; - margin-bottom: 0.4rem; - line-height: 1.0; - font-weight: 100; - } - - #hero .hero-subheading { - font-size: 1.8rem; - font-weight: 100; - margin-bottom: 0.4rem; - line-height: 1.0; - color: #52eef5; - } - - #hero .hero-supporting-text { - margin-top: 0rem; - line-height: 1.0; + overflow-x: hidden; line-height: 1.6; } /* Preloader styles */ @@ -480,10 +458,9 @@ -