/* GTAIScience - Responsive Breakpoints */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --content-padding: var(--space-5);
    }
    
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .product-sidebar {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    :root {
        --content-padding: var(--space-4);
        --header-height: 60px;
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    .header-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: var(--color-bg-primary);
        padding: var(--space-8);
        gap: var(--space-6);
        z-index: var(--z-fixed);
    }
    
    .header-nav.mobile-open {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-8);
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    
    .lang-switcher {
        order: -1;
    }
    
    .toast-container {
        right: var(--space-3);
        left: var(--space-3);
    }
    
    .toast {
        max-width: 100%;
    }
    
    .modal {
        width: 95%;
        padding: var(--space-6);
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        width: 100%;
    }
}

/* Wide Screen (>= 1440px) */
@media (min-width: 1440px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ultra Wide (>= 1920px) */
@media (min-width: 1920px) {
    :root {
        --container-max: 1600px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
