/* Mobile & Tablet Overrides */

/* Large Tablets & Small Desktops */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    .reference-hero-content {
        gap: 2rem;
    }
    .reference-info h1 {
        font-size: 2.5rem;
    }
    .news-grid-full {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablets */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column !important;
        gap: 3rem;
    }
    .about-image {
        width: 100% !important;
    }
    .reference-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .reference-image {
        order: 2;
    }
    .reference-info {
        order: 1;
    }
    .reference-details {
        justify-content: center;
    }
    .reference-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .tech-partners, .camera-types, .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .news-hero h1 {
        font-size: 2.8rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-item {
        margin: 1.5rem 0;
    }
    .footer-content {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }
    .cta-button.large {
        width: 100%;
        margin-bottom: 10px;
    }
    .hero-title {
        font-size: 2.2rem !important;
    }
    .section-title {
        font-size: 1.8rem !important;
    }
    .reference-grid {
        grid-template-columns: 1fr !important;
        padding: 1rem;
    }
    .gallery-slide img {
        height: 300px !important;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .tech-partners, .camera-types, .stats-grid {
        grid-template-columns: 1fr;
    }
    .side-gallery {
        grid-template-columns: 1fr 1fr;
    }

    /* News Section Responsive */
    .news-hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    .news-hero h1 {
        font-size: 2rem !important;
    }
    .news-hero p {
        font-size: 1rem !important;
    }
    .filter-buttons {
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    .search-bar {
        width: 100%;
        max-width: 100%;
    }
    .news-grid-full {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .news-card-full .news-image {
        height: 200px;
    }
    .news-card-full .news-content {
        padding: 1.5rem;
    }
    .news-card-full h3 {
        font-size: 1.2rem;
    }
    .pagination {
        flex-wrap: wrap;
        margin-top: 2rem;
    }
    .pagination button {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Mobile Mega Menu Refinement */
    .mega-menu-new {
        width: 100% !important;
        flex-direction: column !important;
        position: relative !important;
        right: 0 !important;
        box-shadow: none !important;
        border: none !important;
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    .services-dropdown.open .mega-menu-new {
        max-height: 80vh;
        overflow-y: auto;
    }

    .mega-sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #eee;
        flex-shrink: 0;
    }

    .mega-content-area {
        display: none !important;
    }

    .mega-main-link {
        padding: 15px !important;
        font-size: 1.1rem !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    .gallery-slide img {
        height: 250px !important;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    .gallery-overlay h3 {
        font-size: 1.2rem;
    }
    .gallery-overlay p {
        font-size: 0.9rem;
    }
    .nav-logo img {
        max-width: 120px;
    }
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
