/* Responsive Design */

@media (max-width: 1200px) {

    .container {
        width: 95%;
    }

    /* Navbar - Switch to Mobile Menu earlier due to many links */
    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
        color: var(--primary-dark);
    }

    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        /* Start hidden above */
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        display: flex !important;
        /* Override main.css display none */
        max-height: 60vh;
        overflow-y: auto;
        opacity: 0;
        /* Helper for transition visibility */
        pointer-events: none;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-menu a {
        font-size: 1.25rem;
        font-weight: 500;
        color: var(--primary-dark);
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
    }

    /* Bento Grid Adjustment */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .item-large,
    .item-wide {
        grid-column: span 2;
    }
}

/* Consolidate 768px specific adjustments */
@media (max-width: 768px) {


    /* Hero */
    h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-lg {
        width: 100%;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image .img-placeholder {
        height: 300px;
    }

    .scroll-reveal.left,
    .scroll-reveal.right {
        transform: translateY(30px);
    }

    /* Reset to simple up reveal on mobile */

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .item-large,
    .item-wide {
        grid-column: span 1;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Proximity */
    .proximity-list li {
        width: 100%;
        text-align: left;
    }
}