Major mobile navigation system implementation

- Added comprehensive mobile navigation system with hamburger menu
- Created new mobile nav files: gn-mobile-nav.css and gn-mobile-nav.js
- Integrated mobile navigation across all 25+ HTML pages
- Updated all Services and Industries pages with mobile nav
- Enhanced responsive design and mobile-first approach
- Added FOUC prevention and improved loading experience
- Updated theme colors and styling consistency
- Added comprehensive documentation (MOBILE_NAV_README.md)
- Fixed relative paths for subdirectory pages
- Improved accessibility features for mobile navigation
This commit is contained in:
2025-06-06 01:07:36 +05:30
parent 274c5c30f2
commit 885bacdf4a
25 changed files with 4384 additions and 616 deletions

View File

@@ -82,7 +82,7 @@
/* ===== HERO TYPEWRITER SECTION ===== */
.hero-typewriter-section {
margin: 0.2rem 0;
margin: 0.2rem 0 1.2rem 0;
width: 100%; /* Full width */
display: flex;
flex-direction: column;
@@ -117,7 +117,7 @@
font-size: 1.3rem;
color: rgba(255, 255, 255, 0.8);
line-height: 1.8;
margin: 1.5rem auto;
margin: 1.2rem auto;
max-width: 600px;
text-align: center;
}
@@ -151,7 +151,7 @@
gap: 1.2rem;
justify-content: center;
align-items: center;
margin-top: 1.8rem;
margin-top: 1.2rem;
flex-wrap: wrap;
}

View File

@@ -38,11 +38,10 @@
--healthcare-primary: #00c6ff;
--healthcare-primary-rgb: 0, 198, 255;
--healthcare-primary-hover: #0099cc;
/* Retail - Commercial Red */
--retail-primary: #e74c3c;
--retail-primary-rgb: 231, 76, 60;
--retail-primary-hover: #c0392b;
/* Retail - Professional Blue (changed from red to match industry theme) */
--retail-primary: #0ea5e9;
--retail-primary-rgb: 14, 165, 233;
--retail-primary-hover: #0284c7;
/* Manufacturing - Industrial Blue */
--manufacturing-primary: #3498db;
@@ -1027,6 +1026,21 @@ footer {
background-color: rgba(var(--primary-color-rgb), 0.1);
}
/* Override for travel theme to use default purple color for social links */
.theme-travel .footer-col .social-links a {
color: #6d28d9; /* Use default purple instead of travel blue */
}
.theme-travel .footer-col .social-links a:hover {
color: #52eef5; /* Keep the cyan hover effect */
background-color: rgba(109, 40, 217, 0.1); /* Use purple RGB for background */
}
/* Override for travel theme to use default purple color for contact us icons */
.theme-travel .footer-col ul li p i {
color: #6d28d9; /* Use default purple instead of travel blue */
}
.footer-bottom {
text-align: center;
margin-top: 30px;
@@ -1194,10 +1208,6 @@ footer {
text-align: center;
color: #ffffff;
text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9);
letter-spacing: 0.8px;
position: relative;
z-index: 2;
line-height: 1.3;
}
.exp-item .exp-description {

443
css/gn-mobile-nav.css Normal file
View File

@@ -0,0 +1,443 @@
/* ============================================
GN MOBILE NAVIGATION - ISOLATED STYLES
============================================ */
/* Mobile Hamburger Button */
.gn-mobile-hamburger__button {
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
width: 44px;
height: 44px;
background: rgba(82, 238, 245, 0.1);
border: 2px solid rgba(82, 238, 245, 0.3);
border-radius: 8px;
cursor: pointer;
padding: 8px;
transition: all 0.3s ease;
z-index: 10001;
position: relative;
touch-action: manipulation;
}
.gn-mobile-hamburger__button:hover {
transform: scale(1.05);
background: rgba(82, 238, 245, 0.2);
border-color: rgba(82, 238, 245, 0.5);
}
.gn-mobile-hamburger__button:focus {
outline: 2px solid #52eef5;
outline-offset: 2px;
background: rgba(82, 238, 245, 0.15);
}
.gn-mobile-hamburger__button:active {
transform: scale(0.95);
}
.gn-mobile-hamburger__line {
width: 24px;
height: 3px;
background: #52eef5;
margin: 2px 0;
transition: all 0.3s ease;
border-radius: 2px;
}
.gn-mobile-hamburger__button.gn-mobile-hamburger--active .gn-mobile-hamburger__line:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.gn-mobile-hamburger__button.gn-mobile-hamburger--active .gn-mobile-hamburger__line:nth-child(2) {
opacity: 0;
}
.gn-mobile-hamburger__button.gn-mobile-hamburger--active .gn-mobile-hamburger__line:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}
/* Mobile Navigation Overlay */
.gn-mobile-nav__overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(10, 10, 26, 0.98);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
z-index: 10000;
opacity: 0;
visibility: hidden;
transform: translateX(100%);
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.gn-mobile-nav__overlay.gn-mobile-nav--active {
opacity: 1;
visibility: visible;
transform: translateX(0);
}
.gn-mobile-nav__container {
width: 100%;
height: 100%;
padding: 20px;
display: flex;
flex-direction: column;
}
.gn-mobile-nav__header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 30px;
border-bottom: 1px solid rgba(82, 238, 245, 0.2);
margin-bottom: 30px;
}
.gn-mobile-nav__logo {
height: 40px;
width: auto;
}
.gn-mobile-nav__close {
width: 40px;
height: 40px;
background: transparent;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: 0;
}
.gn-mobile-nav__close-line {
position: absolute;
width: 24px;
height: 3px;
background: #52eef5;
border-radius: 2px;
transition: all 0.3s ease;
}
.gn-mobile-nav__close-line:nth-child(1) {
transform: rotate(45deg);
}
.gn-mobile-nav__close-line:nth-child(2) {
transform: rotate(-45deg);
}
.gn-mobile-nav__close:hover .gn-mobile-nav__close-line {
background: #ffffff;
}
/* Mobile Navigation Menu */
.gn-mobile-nav__menu {
flex: 1;
}
.gn-mobile-nav__list {
list-style: none;
margin: 0;
padding: 0;
}
.gn-mobile-nav__item {
margin-bottom: 10px;
}
.gn-mobile-nav__link {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 18px 0;
color: #ffffff;
text-decoration: none;
font-size: 1.4rem;
font-weight: 500;
background: transparent;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
cursor: pointer;
transition: all 0.3s ease;
text-align: left;
}
.gn-mobile-nav__link:hover,
.gn-mobile-nav__link:focus {
color: #52eef5;
border-bottom-color: rgba(82, 238, 245, 0.3);
}
.gn-mobile-nav__arrow {
font-size: 1rem;
transition: transform 0.3s ease;
color: #52eef5;
}
.gn-mobile-nav__dropdown-toggle.gn-mobile-nav--expanded .gn-mobile-nav__arrow {
transform: rotate(180deg);
}
/* Mobile Submenu */
.gn-mobile-nav__submenu {
list-style: none;
margin: 0;
padding: 0;
max-height: 0;
overflow: hidden;
transition: all 0.4s ease;
background: rgba(82, 238, 245, 0.05);
border-radius: 8px;
margin-top: 10px;
}
.gn-mobile-nav__item--dropdown.gn-mobile-nav--expanded .gn-mobile-nav__submenu {
max-height: 500px;
padding: 15px 0;
}
.gn-mobile-nav__sublink {
display: block;
padding: 12px 20px;
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
font-size: 1.1rem;
font-weight: 400;
transition: all 0.3s ease;
border-left: 3px solid transparent;
}
.gn-mobile-nav__sublink:hover,
.gn-mobile-nav__sublink:focus {
color: #52eef5;
background: rgba(82, 238, 245, 0.1);
border-left-color: #52eef5;
}
/* Media Queries - Enhanced specificity */
@media screen and (max-width: 768px) {
.gn-mobile-hamburger__button {
display: flex !important;
visibility: visible !important;
opacity: 1 !important;
pointer-events: auto !important;
}
/* CRITICAL: Hide desktop navigation completely on mobile */
.nav-links {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
position: absolute !important;
left: -9999px !important;
top: -9999px !important;
width: 0 !important;
height: 0 !important;
overflow: hidden !important;
z-index: -1 !important;
}
/* Hide dropdown menus that might still be visible */
.dropdown-menu,
.services-dropdown,
.industries-dropdown,
.education-dropdown {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
position: absolute !important;
left: -9999px !important;
top: -9999px !important;
width: 0 !important;
height: 0 !important;
overflow: hidden !important;
z-index: -1 !important;
}
/* Hide any dropdown items */
.nav-links li,
.nav-links .dropdown,
.nav-links .dropdown-item-content {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
}
/* Force hide hamburger menus that are not our GN mobile system */
.hamburger-menu:not(.gn-mobile-hamburger__button) {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
}
}
/* ============================================
ADDITIONAL DEFENSIVE STYLES - HIGHEST PRIORITY
============================================ */
/* Force hide desktop navigation elements on mobile with maximum specificity */
@media screen and (max-width: 768px) {
/* Target all possible desktop navigation selectors */
.navbar .nav-links,
.site-header .nav-links,
header .nav-links,
nav .nav-links,
.nav-links.active,
.nav-links.show {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
position: absolute !important;
left: -9999px !important;
top: -9999px !important;
z-index: -1 !important;
}
/* Force hide all desktop dropdown menus */
.dropdown-menu,
.services-dropdown,
.industries-dropdown,
.education-dropdown,
.navbar .dropdown-menu,
.site-header .dropdown-menu,
.nav-links .dropdown-menu {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
position: absolute !important;
left: -9999px !important;
top: -9999px !important;
z-index: -1 !important;
}
/* Force hide dropdown arrows and any dropdown-related elements */
.nav-links .dropdown,
.nav-links .dropdown > a,
.nav-links .dropdown-toggle,
.nav-links li.dropdown {
display: none !important;
visibility: hidden !important;
}
/* Ensure no desktop hover effects work on mobile */
.navbar .dropdown:hover .dropdown-menu,
.site-header .dropdown:hover .dropdown-menu,
.nav-links .dropdown:hover .dropdown-menu {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
}
/* Override any inline styles that might conflict */
.nav-links[style*="display"],
.dropdown-menu[style*="display"],
.dropdown[style*="display"] {
display: none !important;
}
}
/* Ensure mobile navigation elements are always visible when needed */
@media screen and (max-width: 768px) {
.gn-mobile-hamburger__button {
display: flex !important;
visibility: visible !important;
opacity: 1 !important;
pointer-events: auto !important;
z-index: 10001 !important;
}
.gn-mobile-nav__overlay.gn-mobile-nav--active {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
pointer-events: auto !important;
z-index: 10000 !important;
}
}
/* Animation Delays for Smooth Entry */
.gn-mobile-nav__overlay.gn-mobile-nav--active .gn-mobile-nav__item {
animation: gnMobileSlideIn 0.5s ease forwards;
}
.gn-mobile-nav__overlay.gn-mobile-nav--active .gn-mobile-nav__item:nth-child(1) {
animation-delay: 0.1s;
}
.gn-mobile-nav__overlay.gn-mobile-nav--active .gn-mobile-nav__item:nth-child(2) {
animation-delay: 0.2s;
}
.gn-mobile-nav__overlay.gn-mobile-nav--active .gn-mobile-nav__item:nth-child(3) {
animation-delay: 0.3s;
}
.gn-mobile-nav__overlay.gn-mobile-nav--active .gn-mobile-nav__item:nth-child(4) {
animation-delay: 0.4s;
}
.gn-mobile-nav__overlay.gn-mobile-nav--active .gn-mobile-nav__item:nth-child(5) {
animation-delay: 0.5s;
}
@keyframes gnMobileSlideIn {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
/* Prevent body scroll when mobile menu is open */
body.gn-mobile-nav--no-scroll {
overflow: hidden;
position: fixed;
width: 100%;
}
/* Additional defensive styles to prevent conflicts */
@media screen and (max-width: 768px) {
/* Ensure no desktop dropdown styles leak through */
.navbar .dropdown:hover .dropdown-menu,
.navbar .dropdown.active .dropdown-menu {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
}
/* Force hide any desktop dropdown animations */
.dropdown-menu * {
display: none !important;
}
/* Ensure mobile hamburger button is always on top */
.gn-mobile-hamburger__button {
z-index: 10001 !important;
position: relative !important;
}
/* Ensure mobile overlay is properly layered */
.gn-mobile-nav__overlay {
z-index: 10000 !important;
position: fixed !important;
}
}

View File

@@ -1064,10 +1064,6 @@ section#transform-cta-section.container {
background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.9) 0%, var(--primary-color) 100%);
}
.course-card .btn-primary:hover::before {
left: 100%;
}
/* Responsive Design for Courses */
@media (max-width: 1024px) {
.courses-grid {
@@ -1661,12 +1657,36 @@ section#transform-cta-section.container {
letter-spacing: 2px !important;
}
/* Expert Advice Card - positioned first with proper bottom margin */
.contact-page-container .widened-contact-info .expert-advice-card {
max-width: 900px !important;
margin: 0 auto 3.5rem auto !important; /* Increased bottom margin for better separation */
padding: 3rem !important;
background: rgba(82, 238, 245, 0.08) !important;
border: 3px solid rgba(82, 238, 245, 0.3) !important;
border-radius: 20px !important;
}
.contact-page-container .widened-contact-info .expert-advice-card h3 {
font-size: 2.4rem !important;
color: #52eef5 !important;
margin-bottom: 1rem !important;
}
.contact-page-container .widened-contact-info .expert-advice-card p {
font-size: 1.3rem !important;
margin-bottom: 2rem !important;
color: rgba(255, 255, 255, 0.9) !important;
line-height: 1.6 !important;
}
/* Contact Details - positioned after expert advice card with top margin reduced */
.contact-page-container .widened-contact-info .contact-details {
display: flex !important;
flex-direction: column !important;
gap: 2rem !important;
max-width: 900px !important;
margin: 0 auto 3rem auto !important;
margin: 0 auto 0 auto !important; /* Removed bottom margin since it's now at the end */
}
.contact-page-container .widened-contact-info .contact-details li {
@@ -1695,66 +1715,6 @@ section#transform-cta-section.container {
min-width: 30px !important;
}
.contact-page-container .widened-contact-info .expert-advice-card {
max-width: 900px !important;
margin: 0 auto !important;
padding: 3rem !important;
background: rgba(82, 238, 245, 0.08) !important;
border: 3px solid rgba(82, 238, 245, 0.3) !important;
border-radius: 20px !important;
}
.contact-page-container .widened-contact-info .expert-advice-card h3 {
font-size: 2.4rem !important;
color: #52eef5 !important;
margin-bottom: 1rem !important;
}
.contact-page-container .widened-contact-info .expert-advice-card p {
font-size: 1.3rem !important;
margin-bottom: 2rem !important;
color: rgba(255, 255, 255, 0.9) !important;
line-height: 1.6 !important;
}
.contact-page-container .widened-contact-info .btn-book-consultation {
padding: 1rem 2.5rem !important;
font-size: 1.2rem !important;
background: linear-gradient(135deg, var(--primary-color), var(--primary-color-hover)) !important;
border: 2px solid rgba(255, 255, 255, 0.2) !important;
border-radius: 12px !important;
color: #ffffff !important;
text-decoration: none !important;
text-transform: uppercase !important;
letter-spacing: 1.5px !important;
transition: all 0.3s ease !important;
box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3) !important;
position: relative !important;
overflow: hidden !important;
}
.contact-page-container .widened-contact-info .btn-book-consultation:before {
content: '' !important;
position: absolute !important;
top: 0 !important;
left: -100% !important;
width: 100% !important;
height: 100% !important;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
transition: all 0.8s ease !important;
z-index: -1 !important;
}
.contact-page-container .widened-contact-info .btn-book-consultation:hover {
transform: translateY(-3px) scale(1.02) !important;
box-shadow: 0 15px 25px -10px rgba(var(--primary-color-rgb), 0.6) !important;
background: linear-gradient(135deg, var(--primary-color-hover), var(--primary-color)) !important;
}
.contact-page-container .widened-contact-info .btn-book-consultation:hover:before {
left: 100% !important;
}
/* Responsive design for widened contact info */
@media (max-width: 1200px) {
.contact-page-container {