/* ================= RESPONSIVE DESIGN UPDATE ================= */
@media (max-width: 991px) {
    .section-padding {
        padding-top: 100px; /* Adds space so header doesn't cover content */
    }

    .sus-images {
        /* Ensure they try to stay in a row unless very small */
        flex-wrap: nowrap; 
        overflow-x: auto; /* Adds scroll if absolutely necessary, prevents breaking */
    }
    
    .sus-images img {
        /* Scale down the max-height slightly for tablet screens */
        max-height: 150px; 
    }
}

@media screen and (max-width: 1200px) {

    /* --- 1. NAVIGATION BAR FIXES --- */
    /* Hide the text links */
    .nav-links {
        display: none !important;
    }

    /* Full Screen Mobile Menu */
    .nav-links-overlay {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        
        background-color: var(--color-primary);
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        
        /* FIX: Increased padding to ensure "About" isn't hidden behind the header */
        padding-top: 140px; 
        
        z-index: 999;
        overflow-y: auto; 
    }

    .nav-links-overlay.active {
        left: 0;
    }

    .nav-links-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 100%;
        padding-bottom: 60px; /* Extra space at bottom for scrolling */
    }

    .nav-links-inner a {
        font-size: 1.5rem;
        margin: 15px 0;
        color: var(--color-text-primary);
        font-weight: 500;
        text-transform: uppercase;
        opacity: 0; /* Prepare for animation */
        transform: translateY(20px);
        transition: 0.3s;
    }

    /* Animation: When menu is active, slide links in */
    .nav-links-overlay.active .nav-links-inner a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger the animation for a nicer effect */
    .nav-links-overlay.active .nav-links-inner a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links-overlay.active .nav-links-inner a:nth-child(2) { transition-delay: 0.15s; }
    .nav-links-overlay.active .nav-links-inner a:nth-child(3) { transition-delay: 0.2s; }
    .nav-links-overlay.active .nav-links-inner a:nth-child(4) { transition-delay: 0.25s; }
    .nav-links-overlay.active .nav-links-inner a:nth-child(5) { transition-delay: 0.3s; }
    .nav-links-overlay.active .nav-links-inner a:nth-child(6) { transition-delay: 0.35s; }
    .nav-links-overlay.active .nav-links-inner a:nth-child(7) { transition-delay: 0.4s; }

    /* Show the hamburger button */
    .hamburger {
        display: block !important;
        background-color: transparent !important; /* Ensures transparent background */
        border: none !important;
        cursor: pointer;
        z-index: 1001;
        margin-left: auto; /* Pushes it to the right */
        padding: 10px;
    }

    /* Style the lines inside the hamburger */
    .hamburger .bar {
        display: block;
        width: 25px;
        height: 2px;
        margin: 5px auto;
        background-color: #ffffff; /* White lines */
        transition: all 0.3s ease-in-out;
    }

    /* --- 3. GENERAL LAYOUT ADJUSTMENTS --- */
    .container {
        padding: 0 20px;
    }
    
    /* Adjust grid for smaller screens */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}