/*
   GlobalTechVibers Responsive Layout Adjustments
   Handles transitions from widescreen monitors down to small mobile devices.
*/

/* --- Tablet / Large Mobile (Max Width: 992px) --- */
@media (max-width: 992px) {
    /* Fonts & Typography scaling */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.85rem;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }

    /* Grids scaling down */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Responsive Mobile Menu Drawer */
    .mobile-nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-bg);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
        gap: var(--spacing-md);
        transition: right var(--transition-normal);
        z-index: 1000;
        border-left: 1px solid var(--color-border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        font-size: 1.1rem;
        padding: 0.75rem 0;
        width: 100%;
        border-bottom: 1px solid var(--color-section-bg);
    }
    
    .nav-links a::after {
        display: none;
    }

    /* Footer Grid adaptation */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* --- Mobile Portrait & Landscape (Max Width: 768px) --- */
@media (max-width: 768px) {
    /* Typographic adjustments */
    h1 {
        font-size: 2.15rem;
    }
    
    h2 {
        font-size: 1.65rem;
    }

    /* Grid conversion to single column stack */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Hero layout configuration */
    .hero-container {
        display: flex;
        flex-direction: column-reverse;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Footer adjustment */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* --- Extra Small Mobile Devices (Max Width: 480px) --- */
@media (max-width: 480px) {
    h1 {
        font-size: 1.85rem;
    }
    
    .btn {
        width: 100%; /* Make buttons full-width for comfortable mobile taping */
    }
    
    .hero-buttons .btn {
        margin-bottom: var(--spacing-xs);
    }
}
