/* Navigation Specific Styles */

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    padding: 60px 0;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu nav ul li {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}

.mobile-menu nav ul li a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    padding: 12px 0;
    width: 80%;
    text-align: center;
}

/* Mobile Submenu Styles */
.mobile-menu .submenu {
    text-align: center;
    width: 80%;
    margin: 5px 0;
    padding: 10px 0;
    background-color: rgba(255,255,255,0.05);
    border-radius: 4px;
    border-left: none !important;
    display: none;
    transition: all 0.3s ease;
    overflow: visible !important;
    position: static !important;
}

.mobile-menu .has-submenu.active .submenu {
    display: block;
    max-height: none !important;
    border-left: none !important;
    padding-left: 0;
    margin-left: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    position: static !important;
    overflow: visible !important;
}

.mobile-menu .submenu li {
    margin: 5px 0;
    border-bottom: none;
    padding: 0;
}

.mobile-menu .submenu li a {
    width: 80%;
    padding: 8px 0;
    font-size: 0.95em;
}

/* Improve "What We Do" button on mobile */
.mobile-menu .has-submenu > a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    padding: 12px 0;
}

.mobile-menu .has-submenu > a:after {
    content: '▼';
    font-size: 0.6em;
    transition: transform 0.3s ease;
    margin-left: 8px;
    display: inline-block;
}

.mobile-menu .has-submenu.active > a:after {
    transform: rotate(180deg);
}

/* Desktop Navigation Styles */
.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navigation ul li {
    margin: 0 15px;
    position: relative;
}

.navigation ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    display: block;
}

.navigation ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D7FF0E;
    transition: width 0.3s ease;
}

.navigation ul li a:hover:after {
    width: 100%;
}

/* Desktop Submenu Styling */
.navigation .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #151515;
    min-width: 250px;
    padding: 15px 0;
    border-radius: 4px;
    border-top: 3px solid #D7FF0E;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-height: 80vh;
    overflow-y: auto; /* Add scroll for long submenus */
}

.navigation .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.navigation .submenu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.navigation .submenu li a {
    padding: 8px 20px;
    display: block;
    white-space: nowrap;
    font-size: 14px;
}

.navigation .submenu li a:hover {
    background-color: rgba(215, 255, 14, 0.1);
}

.navigation .submenu li a:after {
    display: none;
}

/* Submenu indicator for desktop */
.navigation .has-submenu > a:after {
    content: '▼';
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Navigation Toggle Button */
.nav-toggler {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1000;
}

.nav-toggler div {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.nav-toggler .toggler-one {
    top: 0;
}

.nav-toggler .toggler-two {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggler .toggler-three {
    bottom: 0;
}

body.mobile-menu-active .nav-toggler .toggler-one {
    transform: rotate(45deg) translate(5px, 5px);
}

body.mobile-menu-active .nav-toggler .toggler-two {
    opacity: 0;
}

body.mobile-menu-active .nav-toggler .toggler-three {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive rules */
@media (max-width: 768px) {
    .navigation {
        display: none;
    }
    
    .nav-toggler {
        display: block;
    }
    
    .emergency-contact-fixed {
        display: none;
    }
    
    /* Mobile menu active state */
    body.mobile-menu-active {
        overflow: hidden;
    }

    .mobile-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Base mobile menu styling */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background-color: #151515;
        z-index: 9999;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    /* Mobile submenu */
    .mobile-menu .submenu {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Fix for z-index and overflow issues */
.home-header {
    position: relative;
    z-index: 100;
    overflow: visible !important;
}

.top-section {
    position: relative;
    z-index: 2000;
    overflow: visible !important;
}

.home-banner {
    position: relative;
    z-index: 1;
}

/* Navbar resize on scroll */
.home-header {
    transition: padding 0.3s ease;
}

.home-header.large-nav {
    padding-top: 15px;
    padding-bottom: 15px;
}

.home-header .logo-container img.logo-base {
    transition: width 0.3s ease;
}

.home-header.large-nav .logo-container img.logo-base {
    width: auto;
}

/* Mobile menu submenu indicator */
@media (max-width: 768px) {
    .mobile-menu .has-submenu > a {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        padding: 12px 0;
    }
    
    .mobile-menu .has-submenu > a:after {
        content: '▼';
        font-size: 0.6em;
        transition: transform 0.3s ease;
        margin-left: 8px;
        display: inline-block;
    }
    
    .mobile-menu .has-submenu.active > a:after {
        transform: rotate(180deg);
    }
}

/* WhatsApp widget styling */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
}

.whatsapp-widget svg {
    width: 35px;
    height: 35px;
}

/* Emergency Contact Styling */
.emergency-contact-fixed {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

.emergency-button {
    background-color: #D7FF0E;
    color: black;
    padding: 10px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.emergency-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.emergency-label {
    margin-right: 10px;
    font-weight: bold;
}

.emergency-number {
    font-weight: bold;
}

/* Mobile Emergency Contact */
.mobile-menu .emergency-contact a {
    background-color: #D7FF0E;
    color: black;
    border-radius: 4px;
    padding: 10px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu .emergency-label {
    font-size: 12px;
    margin-bottom: 5px;
}

.mobile-menu .emergency-number {
    font-size: 16px;
    font-weight: bold;
}

/* Fix for scrolling issues */
html, body {
    overflow-x: hidden;
}

/* Fixes for mobile navigation behavior */
body.mobile-menu-active {
    overflow: hidden;
} 