/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Top Bar - NOT STICKY ON MOBILE */
.header-top-bar {
    background: #1a365d;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e0;
}

.contact-info i {
    color: #4299e1;
}

.top-links {
    display: flex;
    gap: 15px;
}

.top-links a {
    color: #cbd5e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.top-links a:hover {
    color: #fff;
}

.store-link {
    background: #4299e1;
    padding: 6px 12px;
    border-radius: 4px;
    color: white !important;
}

/* Main Header - STICKY ON BOTH DESKTOP & MOBILE */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
}

/* Logo */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2px;
}

.tagline {
    font-size: 12px;
    color: #718096;
    display: block;
}

/* Desktop Navigation */
.desktop-nav {
    flex: 1;
    margin-left: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 15px 15px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.nav-link:hover {
    background: #f7fafc;
    color: #2d3748;
}

.nav-link i {
    font-size: 10px;
    transition: transform 0.3s;
}

/* Dropdown Content - Optimized */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    width: 800px;
    max-width: 90vw;
    padding: 20px 0;
    z-index: 1001;
    overflow: hidden;
    margin-top: 5px;
}

/* Partners dropdown right alignment */
.partners-dropdown .dropdown-content {
    left: auto;
    right: 0;
}

/* Services dropdown center alignment */
.services-dropdown .dropdown-content {
    left: 50%;
    transform: translateX(-50%);
}

/* Partner dropdown with scroll */
.partners-dropdown .dropdown-content.mega-menu {
    max-height: 80vh;
    overflow-y: auto;
    width: 750px;
}

/* For Resources, Pricing, Knowledge Base (smaller dropdowns) */
.dropdown-content:not(.mega-menu) {
    width: 250px;
    padding: 15px;
}

.resources-menu,
.pricing-menu,
.knowledge-menu {
    padding: 5px 0;
}

.nav-item.dropdown:hover .dropdown-content,
.nav-item.dropdown.active .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mega Menu Grid - OPTIMIZED SIZE */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.mega-menu-column h4 {
    color: #2d3748;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* Platform Mega Menu */
.mega-menu-list li {
    margin-bottom: 8px;
}

.mega-menu-list a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: #4a5568;
    border-radius: 6px;
    transition: all 0.3s;
}

.mega-menu-list a:hover {
    background: #f7fafc;
    transform: translateX(5px);
}

.icon-circle {
    width: 36px;
    height: 36px;
    background: #edf2f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle i {
    color: #4299e1;
    font-size: 16px;
}

.mega-menu-list strong {
    display: block;
    color: #2d3748;
    margin-bottom: 3px;
    font-size: 14px;
}

.mega-menu-list p {
    font-size: 12px;
    color: #718096;
    line-height: 1.4;
}

/* Vertical Lists for Solutions, Products, Services */
.vertical-list {
    list-style: none;
}

.vertical-list li {
    margin-bottom: 8px;
}

.vertical-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: #4a5568;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.vertical-list a:hover {
    background: #f7fafc;
    color: #2d3748;
}

.vertical-list i {
    color: #4299e1;
    width: 18px;
    font-size: 14px;
}

/* Teams List for Solutions */
.teams-list {
    list-style: none;
}

.teams-list li {
    margin-bottom: 10px;
}

.teams-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    text-decoration: none;
    color: #4a5568;
    border-radius: 6px;
    transition: all 0.3s;
}

.teams-list a:hover {
    background: #f7fafc;
}

.team-icon {
    width: 36px;
    height: 36px;
    background: #4299e1;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.teams-list strong {
    display: block;
    color: #2d3748;
    margin-bottom: 2px;
    font-size: 14px;
}

.teams-list small {
    color: #718096;
    font-size: 11px;
}

/* Partner & Customer Cards */
.partner-card, .customer-card {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.partner-card h5, .customer-card h5 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.partner-card p, .customer-card p {
    color: #718096;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* CTA Column */
.cta-column {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
}

.cta-column h4 {
    color: white;
    border-bottom: none;
    font-size: 18px;
    margin-bottom: 12px;
}

.mega-description {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.mega-cta {
    margin-top: 15px;
}

.mega-note {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #4299e1;
    border: 2px solid #4299e1;
}

.btn-outline:hover {
    background: #4299e1;
    color: white;
}

.btn-large {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.search-input {
    padding: 8px 15px 8px 35px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 180px;
    font-size: 13px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #4299e1;
    width: 200px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #4a5568;
    cursor: pointer;
    padding: 8px;
}

/* WhatsApp Chat Bubble */
.whatsapp-chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    cursor: pointer;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
}

/* WhatsApp Image Support */
.whatsapp-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
}

.whatsapp-chat-bubble:hover .whatsapp-icon,
.whatsapp-chat-bubble:hover .whatsapp-image {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.whatsapp-chat-bubble:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #4a5568;
    cursor: pointer;
}

/* Mobile Navigation - With Dropdowns */
.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav-pages {
    list-style: none;
}

.mobile-nav-pages li {
    margin-bottom: 8px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.mobile-nav-link:hover {
    background: #f7fafc;
    color: #2d3748;
}

/* Mobile dropdown styles */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-dropdown.active .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 0;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 1000px;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px 10px 35px;
    text-decoration: none;
    color: #4a5568;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 5px;
    background: #f7fafc;
}

.mobile-submenu-link i {
    color: #4299e1;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.mobile-cta {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mobile menu icons */
.mobile-nav-link i {
    color: #4299e1;
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.mobile-dropdown-toggle i.mobile-dropdown-icon {
    margin-right: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .dropdown-content {
        width: 700px;
        left: -150px;
    }
    
    .partners-dropdown .dropdown-content {
        left: -250px;
        right: auto;
    }
    
    .services-dropdown .dropdown-content {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .mega-menu-grid {
        gap: 15px;
        padding: 0 15px;
    }
    
    .nav-link {
        padding: 15px 12px;
        font-size: 13px;
    }
    
    .partners-dropdown .dropdown-content.mega-menu {
        width: 650px;
    }
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    
    .search-container {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    /* Make only main-header sticky on mobile, top-bar is not sticky */
    .header-top-bar {
        position: relative;
        z-index: 1;
    }
    
    .main-header {
        position: sticky;
        top: 0;
    }
}

@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info span {
        display: block;
        margin: 5px 0;
    }
    
    .whatsapp-chat-bubble {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon, .whatsapp-image {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    /* Hide top bar contact info on very small screens */
    @media (max-width: 480px) {
        .contact-info {
            font-size: 12px;
        }
        
        .contact-info span {
            margin-right: 10px;
        }
        
        .top-links {
            gap: 10px;
        }
        
        .mobile-menu {
            width: 280px;
        }
    }
}

/* Bridge Icon Fallback */
.fa-bridge::before {
    content: "🌉";
    font-style: normal;
}