/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    /* Header Responsive */
    .logo-text {
        font-size: 1.3rem;
    }
    .logo {
        height: 35px;
    }

    /* Show Mobile Menu Toggle Button */
    #mobile-menu-toggle {
        display: block;
    }
     /* Show Mobile Menu Close Button (inside panel) */
    #mobile-menu-close {
        display: block; 
    }

    /* Mobile Navigation Panel - Slide-in from left */
    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--menu-width);
        height: 100vh;
        background-color: var(--background-color);
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
        padding-top: 60px; /* Space for close button or logo */
        padding-bottom: 20px;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000; 
        display: flex; 
        flex-direction: column;
        overflow-y: auto; 
    }
    #main-nav.active {
        transform: translateX(0);
    }

    #main-nav ul {
        flex-direction: column;
        align-items: flex-start; 
        width: 100%;
        padding: 0; 
        display: flex; /* Ensure flex context for column direction */
    }

    #main-nav ul li {
        margin: 0; 
        width: 100%;
        text-align: left; 
    }
    #main-nav ul li a {
        display: block;
        padding: 15px 20px; 
        width: 100%;
        color: var(--primary-color);
        font-weight: 500;
        border-bottom: 1px solid var(--light-accent-color); 
    }
    #main-nav ul li:last-child a {
        border-bottom: none;
    }

    #main-nav ul li a::after { /* From header.css, specifically for desktop */
        display: none; /* Remove underline for mobile slide-in menu */
    }
    #main-nav ul li a:hover, 
    #main-nav ul li a.active { /* From header.css, specifically for desktop hover */
        background-color: var(--light-accent-color); /* Mobile specific active/hover style */
        color: var(--secondary-color);
    }
    /* End Mobile Navigation Panel */


    /* Hero Responsive */
    #hero {
        height: auto;
        min-height: 80vh;
        padding: 120px 0 60px 0;
    }
    #hero h1 {
        font-size: 2.2rem;
    }
    #hero p {
        font-size: 1.1rem;
    }
    
    /* CTA Button Responsive */
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Sections Responsive */
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }

    .services-grid, .products-grid, .about-grid {
        grid-template-columns: 1fr; /* Stack items on smaller screens */
    }
    
    /* Footer Responsive */
    footer .container {
        flex-direction: column; /* Already default, but explicit */
    }

    /* Logo Grid Responsive */
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    .logo-item img {
        max-height: 50px;
    }

    /* Contact Section Responsive */
    .map-container iframe {
        height: 250px;
    }

    .contact-details-wrapper {
        padding: 0 10px; 
    }
    
    #contact {
        padding-bottom: 100px; /* More space for FABs on mobile */
    }

    /* Floating Action Buttons Responsive */
    #floating-action-buttons {
        bottom: 15px;
        right: 15px;
    }
    .fab-button {
        width: 45px;
        height: 45px;
    }
    .fab-button img {
        width: 20px;
        height: 20px;
    }
}