/* Navigation Menu Styles */
.navigation-container {
    position: relative;
    z-index: 1000;
}

/* Top Contact Bar Styles */
.top-contact-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    backdrop-filter: blur(10px);
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Header Navigation Styles */
.header-navigation {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-logo {
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* Desktop Navigation Menu */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1d4ed8;
    background-color: rgba(59, 130, 246, 0.05);
}

.nav-link.active {
    color: #1d4ed8;
    font-weight: 700;
}

/* Services Dropdown */
.services-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    min-width: 14rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(229, 231, 235, 0.5);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 20;
}

.services-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #1d4ed8;
    padding-left: 1.25rem;
}

/* Nested Submenu Styles */
.submenu-container {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0.25rem;
    width: 14rem;
    background: white;
    border-radius: 0.375rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(229, 231, 235, 0.5);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.submenu-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-item {
    color: #6b7280;
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.submenu-item:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-left-color: #3b82f6;
    padding-left: 1.25rem;
}

.dropdown-item-with-submenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.dropdown-item-with-submenu .submenu-arrow {
    height: 1rem;
    width: 1rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.dropdown-item-with-submenu:hover .submenu-arrow {
    color: #6b7280;
}

/* Animation for submenu appearance */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.submenu-container {
    animation: slideInFromLeft 0.3s ease-out;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(37, 99, 235, 0.4);
}

/* Mobile Menu Button */
.mobile-menu-button {
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background: rgba(107, 114, 128, 0.1);
}

.mobile-menu-button:hover {
    background: rgba(107, 114, 128, 0.2);
    transform: scale(1.05);
}

.mobile-menu-button svg {
    transition: transform 0.3s ease;
}

.mobile-menu-button:hover svg {
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .top-contact-bar .contact-links {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .top-contact-bar .hidden {
        display: none !important;
    }

    .submenu-container {
        position: static;
        width: 100%;
        margin-left: 1rem;
        margin-top: 0.5rem;
        box-shadow: none;
        border: none;
        border-left: 2px solid #3b82f6;
        background: rgba(59, 130, 246, 0.05);
        border-radius: 0.25rem;
    }
    
    .submenu-item {
        padding: 0.5rem 0.75rem;
        color: #3b82f6;
        font-size: 1rem;
    }
    
    .submenu-item:hover {
        background-color: rgba(59, 130, 246, 0.1);
        border-left-color: transparent;
        padding-left: 0.75rem;
    }
}

/* Navigation Component Styles */

/* Base Navigation Styles */
.navigation-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 40;
}

.navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
}

.navigation-logo {
    height: 2.5rem;
    width: auto;
    transition: transform 0.3s ease;
}

.navigation-logo:hover {
    transform: scale(1.05);
}

.navigation-menu {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .navigation-menu {
        display: flex;
    }
}

.navigation-link {
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.navigation-link:hover {
    color: #1d4ed8;
}

.navigation-link.active {
    color: #1d4ed8;
    font-weight: bold;
}

.navigation-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
    transition: width 0.3s ease;
}

.navigation-link:hover::after,
.navigation-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-container {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-trigger:hover {
    color: #1d4ed8;
}

.dropdown-icon {
    height: 1.25rem;
    width: 1.25rem;
    color: #9ca3af;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.dropdown-container:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    z-index: 10;
    margin-top: 0.5rem;
    width: 14rem;
    border-radius: 0.375rem;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    ring: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-content {
    padding: 0.25rem 0;
}

.dropdown-link {
    color: #374151;
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-link:hover::before {
    left: 100%;
}

.dropdown-link:hover {
    background-color: #f3f4f6;
    color: #1d4ed8;
}

/* CTA Button */
.navigation-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.navigation-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.navigation-cta:hover::before {
    left: 100%;
}

.navigation-cta:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -3px rgba(37, 99, 235, 0.4);
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: block;
    color: #374151;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu-button:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

.mobile-menu-icon {
    height: 1.5rem;
    width: 1.5rem;
}

/* Top Contact Bar */
.top-contact-bar {
    background-color: #1e3a8a;
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.contact-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    gap: 1rem;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #bfdbfe;
}

.contact-icon {
    height: 1rem;
    width: 1rem;
}

.contact-tagline {
    display: none;
}

@media (min-width: 768px) {
    .contact-tagline {
        display: block;
    }
}

/* WhatsApp Floating Button */
.whatsapp-floating {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 50;
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.whatsapp-floating:hover {
    background-color: #059669;
    transform: scale(1.1);
}

.whatsapp-icon {
    height: 2rem;
    width: 2rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .8;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navigation-container {
        padding: 1rem;
    }
    
    .contact-bar-container {
        padding: 0 1rem;
    }
    
    .contact-info {
        gap: 0.5rem;
    }
    
    .contact-link {
        font-size: 0.75rem;
    }
}