/* --- RESPONSIVE STYLE RULES --- */

/* Laptops & Tablets (1024px and below) */
@media screen and (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .footer-newsletter {
        grid-column: span 3;
        margin-top: 20px;
    }
}

/* Mobile Screens (768px and below) */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    /* Navbar Mobile Layout */
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1050;
        transition: var(--transition-smooth);
        padding: 40px;
    }
    
    [data-theme="dark"] .nav-menu {
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .header-actions {
        margin-right: 44px; /* Space for hamburger toggle */
    }
    
    /* Grids to single column */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-newsletter {
        grid-column: span 1;
        margin-top: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Hero Adjustments */
    .hero-content {
        text-align: center;
        padding-top: 40px;
    }
    
    .btn-group {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Modals */
    .portfolio-modal-body {
        padding: 24px;
    }
    
    .portfolio-modal-img {
        height: 220px;
        margin-bottom: 24px;
    }
    
    .portfolio-modal-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Small Devices (480px and below) */
@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}
