/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Header and Navigation */
    header {
        padding: 0.8rem;
    }

    .top-nav {
        padding: 0.5rem;
        flex-direction: row;  /* Changed to row */
        position: relative;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-bottom: 0;
        padding: 0;
        display: flex;
        align-items: center;
        flex: 0 0 auto;  /* Prevents logo from growing */
    }

    .logo img {
        height: 35px;
        width: auto;
        margin-right: 10px;
    }

    .logo span {
        font-size: 18px !important;
        text-align: left;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .menu-toggle {
        position: relative;  /* Changed from absolute */
        top: auto;
        right: auto;
        margin-left: auto;  /* Pushes menu toggle to right */
    }

    /* Rest of the mobile styles remain the same */
    .nav-links {
        flex-direction: column;
        gap: 0.8rem;
        width: 250px;  /* Set specific width for menu */
        text-align: center;
        display: none;
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem 0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        right: 0;  /* Changed from left: 0 to right: 0 */
        opacity: 0;
        transform: translateX(20px);  /* Changed from translateY to translateX */
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateX(0);  /* Changed from translateY to translateX */
    }
    
    .nav-links a {
        padding: 0.8rem;
        width: 100%;
        font-size: 16px;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 0;
        background: rgba(255, 255, 255, 0.5);
        border: none;
    }

    .dropdown-content a {
        padding: 0.8rem;
        font-size: 14px !important;
    }

    /* Slider */
    .slider-container {
        height: 40vh;
        margin-top: 60px;
        touch-action: pan-y pinch-zoom;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }

    .slide {
        padding: 10px;
        cursor: grab;
    }

    .slide:active {
        cursor: grabbing;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        pointer-events: none;  /* Prevents image dragging */
        -webkit-user-drag: none;
    }

    .slider-nav button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .prev { left: 10px; }
    .next { right: 10px; }

    /* Feature Products Section */
    .feature-products {
        padding: 2rem 1rem;
    }

    .feature-products h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Feature Products Section */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0.4rem;
    }

    .product-card {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .product-card img {
        height: 160px; /* Increased height */
        width: 100%;
        object-fit: contain;
        margin-bottom: 0.4rem;
    }

    /* Small Mobile Devices */
    @media screen and (max-width: 480px) {
        .product-card img {
            height: 140px; /* Adjusted height for smaller screens */
        }
    }
        .product-card h3 {
            font-size: 0.9rem;
            margin-bottom: 0.4rem;
            line-height: 1.2;
        }

        .product-card p {
            font-size: 0.8rem;
            line-height: 1.3;
            margin-bottom: 0.4rem;
        }
        .product-card p {
            font-size: 0.85rem;
            line-height: 1.4;
            margin-bottom: 0.5rem;
        }

        /* Industries Section */
        .industries-we-work {
            padding: 2rem 0;
        }

        .industries-we-work h2 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }

        .industry-container {
            grid-template-columns: repeat(3, 1fr);
            gap: 1.2rem;
            padding: 0 1rem;
        }

        .circle-icon {
            width: 45px;
            height: 45px;
            font-size: 18px;
        }

        .industry-box p {
            font-size: 0.8rem;
            margin-top: 0.5rem;
        }

        /* Footer */
        .footer {
            padding: 2rem 1rem;
        }

        .footer-content {
            grid-template-columns: 1fr;
            gap: 1.5rem;
            text-align: center;
        }

        .footer-brand h2 {
            font-size: 1.5rem;
        }

        .footer-social {
            justify-content: center;
            gap: 1rem;
        }

        .footer-social a {
            width: 35px;
            height: 35px;
            font-size: 1.2rem;
        }

        .footer-section h3 {
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }

        .footer-links {
            align-items: center;
            gap: 0.5rem;
        }

        .footer-links a {
            font-size: 0.85rem;
        }

        .footer-bottom {
            margin-top: 1.5rem;
            padding-top: 1rem;
            font-size: 0.8rem;
        }

        /* Hamburger Menu */
        .menu-toggle {
            display: block;
            position: absolute;
            top: 1.2rem;
            right: 1rem;
            cursor: pointer;
            z-index: 1000;
            padding: 5px;
        }

        .menu-toggle span {
            display: block;
            width: 22px;
            height: 2px;
            background-color: #1b8a3d;
            margin: 4px 0;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }
}

/* Small Mobile Devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    .logo span {
        font-size: 16px !important;
    }

    .industry-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .slider-container {
        height: 35vh;
    }

    .feature-products h2,
    .industries-we-work h2 {
        font-size: 1.5rem;
    }

    .product-card img {
        height: 180px;
    }

    .footer-social {
        flex-wrap: wrap;
    }

    /* Update small mobile view to maintain 2x2 grid */
    @media screen and (max-width: 480px) {
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 0.8rem;
        }

        .product-card img {
            height: 120px;
        }
    }
}