/* ═══════════════════════════════════════════════════════════════════════════
   SAFICODE OPTIMIZED CSS - Consolidated & Performance Optimized
   Generated: January 2026
   Combines: nav-fix.css, dropdown-fix.css, menu-bar-fix.css, ladybug-menu.css, mobile-fix.css
   Removes: !important overrides where possible, consolidates redundant rules
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   1. NAVIGATION CORE STYLES (Desktop)
   ═══════════════════════════════════════════════════════════════════════════ */

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 100%;
}

.navbar .container .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
    z-index: 10000;
    justify-content: flex-start;
    margin: 0 0 0 2rem;
    flex: 0 1 auto;
    padding: 0;
    align-items: center;
}

.navbar .container .nav-menu > li {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.navbar .container .nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    text-decoration: none;
    color: #FFFFFF;
    transition: color 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
}

.navbar .container .nav-menu > li > a:hover {
    color: #E63946;
}

/* Logo positioning */
.logo {
    margin-left: 15vw;
    margin-right: 3rem;
    padding-left: 0;
    font-size: 1.5rem;
    position: relative;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
}

.logo-bug {
    width: 40px;
    height: 40px;
}

/* Language switcher */
.lang-switcher {
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 0;
}

.lang-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. DROPDOWN MENU STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.navbar .container .nav-menu > li.dropdown {
    position: relative;
}

.navbar .container .nav-menu > li.dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem;
}

.navbar .container .nav-menu > li.dropdown .caret {
    margin-left: 0.25rem;
    font-size: 0.7rem;
    transition: transform 0.18s ease;
}

.dropdown.open .caret {
    transform: rotate(180deg);
}

/* Dropdown menu base */
.navbar .container .nav-menu > li.dropdown .dropdown-menu {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms cubic-bezier(.2,.9,.3,1), 
                transform 160ms cubic-bezier(.2,.9,.3,1), 
                visibility 0s 160ms;
}

.navbar .container .nav-menu > li.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
    transition: opacity 160ms cubic-bezier(.2,.9,.3,1), 
                transform 160ms cubic-bezier(.2,.9,.3,1), 
                visibility 0s 0s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. LADYBUG THEMED DROPDOWN MENU
   ═══════════════════════════════════════════════════════════════════════════ */

.ladybug-menu {
    min-width: 200px;
    max-width: 240px;
    width: 240px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 10px;
    padding: 0.6rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(230, 57, 70, 0.1) inset;
    z-index: 999999;
}

.dropdown.open .ladybug-menu {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.ladybug-menu > li {
    position: relative;
    z-index: 1;
    margin-bottom: 0.3rem;
    list-style: none;
}

.ladybug-menu > li:last-child {
    margin-bottom: 0;
}

/* Ladybug Menu Item */
.ladybug-item .mega-menu-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    text-decoration: none;
}

.ladybug-item .mega-menu-link:hover {
    transform: translateX(5px);
}

.ladybug-item .mega-menu-link:hover .ladybug-service-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(230, 57, 70, 0.6));
}

/* Ladybug Service Icon */
.ladybug-service-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Wing animations */
.ladybug-service-icon .body-base {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.ladybug-service-icon .wing {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease;
    transform-origin: 20 22;
    transform: rotate(0deg);
    opacity: 0;
}

.ladybug-item .mega-menu-link:hover .ladybug-service-icon .body-base {
    opacity: 0;
}

.ladybug-item .mega-menu-link:hover .ladybug-service-icon .wing {
    opacity: 1;
}

.ladybug-item .mega-menu-link:hover .ladybug-service-icon .wing-left {
    transform: rotate(-45deg) translateX(-4px) translateY(-4px);
}

.ladybug-item .mega-menu-link:hover .ladybug-service-icon .wing-right {
    transform: rotate(45deg) translateX(4px) translateY(-4px);
}

/* Menu Content */
.ladybug-item .mega-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0;
    position: relative;
    z-index: 1;
    margin-left: 0.3rem;
}

.ladybug-item .mega-menu-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.1px;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.ladybug-item .mega-menu-link:hover .mega-menu-title {
    color: #E63946;
}

.ladybug-item .mega-menu-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.ladybug-item .mega-menu-link:hover .mega-menu-subtitle {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.ladybug-item .mega-menu-price {
    display: none;
}

/* Divider */
.ladybug-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 4rem;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(230, 57, 70, 0.15) 30%, 
        rgba(230, 57, 70, 0.15) 70%,
        transparent 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. DESKTOP MEDIA QUERIES
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {
    .nav-menu {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        width: auto;
        min-width: auto;
        max-width: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    
    .navbar .container .nav-menu {
        gap: 2rem;
    }
    
    .navbar .container .nav-menu > li {
        width: auto;
        padding: 0;
        margin: 0;
    }
    
    .navbar .container .nav-menu > li > a {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .navbar .container .nav-menu {
        gap: 2.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. MOBILE STYLES (max-width: 768px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Navbar container */
    .navbar {
        padding: 0.75rem 1rem;
        position: relative;
        z-index: 10000;
    }
    
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0;
        gap: 0.5rem;
    }
    
    /* Logo - smaller on mobile */
    .logo {
        margin-left: 0;
        margin-right: auto;
        flex-shrink: 0;
        font-size: 1.1rem;
        padding: 0;
    }
    
    .logo-bug {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    /* Hamburger menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        padding: 8px;
        z-index: 10001;
        order: 2;
        margin-left: auto;
    }
    
    .hamburger span {
        width: 24px;
        height: 3px;
        background: #FFFFFF;
        border-radius: 2px;
        transition: all 0.3s ease;
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Language switcher mobile */
    .lang-switcher {
        display: flex;
        gap: 0.5rem;
        order: 3;
        margin-left: 0.5rem;
        flex-shrink: 0;
    }
    
    .lang-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        min-width: 45px;
    }
    
    /* Mobile nav menu */
    .navbar .container .nav-menu {
        display: none;
        position: fixed;
        right: 1rem;
        top: 70px;
        left: auto;
        transform: translateY(0) scale(1);
        flex-direction: column;
        background: linear-gradient(135deg, rgba(15, 15, 15, 0.65) 0%, rgba(30, 30, 30, 0.6) 100%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        width: 280px;
        min-width: 280px;
        max-width: calc(100vw - 2rem);
        text-align: left;
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                    visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 
            0 16px 48px rgba(0, 0, 0, 0.6),
            0 6px 24px rgba(230, 57, 70, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        padding: 1.5rem 1.25rem;
        z-index: 9999;
        gap: 0;
        margin: 0;
        border: 1px solid rgba(230, 57, 70, 0.4);
        border-radius: 16px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        height: auto;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    
    .navbar .container .nav-menu.active {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
    
    .nav-menu li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(230, 57, 70, 0.2);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        display: flex;
        align-items: center;
        padding: 0.875rem 1rem;
        color: rgba(255, 255, 255, 0.95);
        font-size: 0.95rem;
        font-weight: 500;
        width: 100%;
        border-radius: 10px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0.2rem 0;
        letter-spacing: 0.01em;
    }
    
    .nav-menu li a:hover {
        color: #FFFFFF;
        background: rgba(230, 57, 70, 0.25);
        transform: translateX(3px);
    }
    
    /* Mobile dropdown */
    .nav-menu li.dropdown {
        position: relative;
    }
    
    .nav-menu li.dropdown .dropdown-menu {
        position: static;
        display: none;
        background: rgba(15, 15, 15, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin: 0.75rem 0 0 1.25rem;
        padding: 0.6rem;
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(230, 57, 70, 0.1) inset;
        border: 1px solid rgba(230, 57, 70, 0.3);
        border-radius: 10px;
        transform: none;
        width: auto;
        min-width: 200px;
        max-width: 240px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu li.dropdown.open .dropdown-menu {
        display: block;
        animation: mobileSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes mobileSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu li.dropdown .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .nav-menu li.dropdown .caret {
        transition: transform 0.3s ease;
    }
    
    .nav-menu li.dropdown.open .caret {
        transform: rotate(180deg);
    }
    
    /* Mobile ladybug menu */
    .ladybug-menu {
        min-width: 200px;
        max-width: 240px;
        width: 240px;
        padding: 0.6rem;
    }
    
    .ladybug-item .mega-menu-link {
        padding: 0.6rem 0.4rem;
        gap: 0.5rem;
        border-radius: 8px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        margin-bottom: 0.25rem;
    }
    
    .ladybug-item .mega-menu-link:hover {
        background: rgba(230, 57, 70, 0.15);
        transform: translateX(3px);
    }
    
    .ladybug-service-icon {
        width: 28px;
        height: 28px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    
    .ladybug-item .mega-menu-title {
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.02em;
    }
    
    .ladybug-item .mega-menu-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }
    
    .ladybug-item:not(:last-child)::after {
        left: 3rem;
        bottom: -0.3rem;
        height: 0.5px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(230, 57, 70, 0.2) 30%, 
            rgba(230, 57, 70, 0.2) 70%,
            transparent 100%);
    }
    
    /* Hero sections mobile */
    .swiss-hero {
        padding: 2rem 1rem;
        min-height: 50vh;
    }
    
    .swiss-hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }
    
    .swiss-hero-tagline {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }
    
    .swiss-hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Pricing grid mobile - Horizontal scroll */
    .swiss-pricing-grid {
        display: flex;
        flex-direction: row;
        gap: 1.25rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1rem 1.5rem 1rem;
        margin: 0 -1rem 0 -1rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(230, 57, 70, 0.5) transparent;
    }
    
    .swiss-pricing-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .swiss-pricing-grid::-webkit-scrollbar-track {
        background: rgba(230, 57, 70, 0.1);
        border-radius: 10px;
    }
    
    .swiss-pricing-grid::-webkit-scrollbar-thumb {
        background: rgba(230, 57, 70, 0.6);
        border-radius: 10px;
    }
    
    .swiss-pricing-grid > * {
        flex: 0 0 calc(85vw - 2rem);
        min-width: calc(85vw - 2rem);
        max-width: calc(85vw - 2rem);
        scroll-snap-align: start;
    }
    
    /* Container for pricing - allow horizontal scroll */
    .swiss-section .swiss-container {
        overflow-x: visible;
    }
    
    /* Cards mobile */
    .swiss-card,
    .swiss-pricing-card {
        padding: 1.25rem;
    }
    
    /* Journey cards mobile - Horizontal scroll */
    .swiss-journey {
        display: flex;
        flex-direction: row;
        gap: 1.25rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1rem 1.5rem 1rem;
        margin: 0 -1rem 0 -1rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(230, 57, 70, 0.5) transparent;
    }
    
    .swiss-journey::-webkit-scrollbar {
        height: 6px;
    }
    
    .swiss-journey::-webkit-scrollbar-track {
        background: rgba(230, 57, 70, 0.1);
        border-radius: 10px;
    }
    
    .swiss-journey::-webkit-scrollbar-thumb {
        background: rgba(230, 57, 70, 0.6);
        border-radius: 10px;
    }
    
    .swiss-journey > * {
        flex: 0 0 calc(85vw - 2rem);
        min-width: calc(85vw - 2rem);
        max-width: calc(85vw - 2rem);
        scroll-snap-align: start;
    }
    
    .swiss-journey-step {
        padding: 1.5rem 1.25rem;
        height: 100%;
    }
    
    /* Container for journey */
    .swiss-section {
        overflow-x: visible;
    }
    
    /* Buttons mobile */
    .swiss-btn,
    .swiss-btn-primary,
    .swiss-btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Testimonials mobile */
    .swiss-testimonials-grid {
        display: flex;
        flex-direction: row;
        gap: 1.25rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1rem 1.5rem 1rem;
        margin: 0 -1rem 0 -1rem;
    }
    
    .swiss-testimonials-grid > * {
        flex: 0 0 calc(85vw - 2rem);
        min-width: calc(85vw - 2rem);
        max-width: calc(85vw - 2rem);
        scroll-snap-align: start;
    }
    
    .swiss-testimonial {
        padding: 1.5rem 1.25rem;
    }
    
    /* Footer mobile */
    .swiss-footer {
        padding: 2.5rem 1rem 1.5rem;
    }
    
    .swiss-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .swiss-footer-col {
        text-align: center;
    }
    
    .swiss-footer-links {
        justify-content: center;
    }
    
    /* Newsletter mobile */
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* About page mobile */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    /* Portfolio mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services page mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Product cards mobile */
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. TABLET STYLES (481px - 768px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 481px) and (max-width: 768px) {
    .swiss-pricing-grid > *,
    .swiss-journey > *,
    .swiss-testimonials-grid > * {
        flex: 0 0 calc(60vw - 2rem);
        min-width: calc(60vw - 2rem);
        max-width: calc(60vw - 2rem);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. ACCESSIBILITY & REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #E63946;
    color: white;
    padding: 1rem;
    z-index: 100000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #E63946;
    outline-offset: 2px;
}

/* FILTER BUTTONS - Same as Homepage Primary Buttons */
.filter-btn {
    background: linear-gradient(180deg, #2a2a2a 0%, #0F0F0F 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 0.875rem 1.75rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    display: inline-block !important;
}

.filter-btn:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(180deg, #E63946 0%, #C72634 100%) !important;
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.5), 0 3px 12px rgba(230, 57, 70, 0.4) !important;
    color: #FFFFFF !important;
}

.filter-btn.active {
    background: linear-gradient(180deg, #E63946 0%, #C72634 100%) !important;
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.5), 0 3px 12px rgba(230, 57, 70, 0.4) !important;
}
