/* Mobile Header Styles */
.mobile-optimized-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.mobile-optimized-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Styles */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    height: 30px;
    margin-right: 10px;
}

/* Main Navigation */
.main-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list > li {
    margin-bottom: 15px;
}

.mobile-menu-list a {
    display: flex;
    align-items: center;
    color: #2c3e50;
    text-decoration: none;
    padding: 10px 0;
    font-weight: 500;
}

.mobile-menu-list a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Mobile Dropdown Styles */
.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-dropdown-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-menu-dropdown.open .mobile-dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
    border-left: 2px solid #eee;
}

.mobile-menu-dropdown.open .mobile-dropdown-content {
    display: block;
}

.mobile-dropdown-content a {
    padding: 8px 0;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Contact Button */
.contact-btn {
    display: none;
    align-items: center;
    background: #3498db;
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.contact-btn i {
    margin-right: 8px;
}

.contact-btn:hover {
    background: #2980b9;
}

/* Desktop Styles */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-menu {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .contact-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: none;
    }
    
    /* Mega Menu Styles */
    .image-tools-mega-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        min-width: 300px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .main-menu li:hover .image-tools-mega-menu {
        opacity: 1;
        visibility: visible;
    }
    
    .image-tools-horizontal {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .image-tool-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        text-decoration: none;
        color: #333;
        border: 1px solid #e0e0e0;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .image-tool-item:hover {
        background: #f8f9fa;
        transform: translateY(-2px);
    }
    
    .image-tool-item i {
        color: #ff6b35;
    }
    
    .image-tool-item i.fa-file-pdf {
        color: #e74c3c;
    }
    
    .image-tool-item i.fa-images {
        color: #17a2b8;
    }
}

/* Body padding to account for fixed header */
body {
    padding-top: 70px;
}

body.menu-open {
    overflow: hidden;
}
