@import url('variables.css');

@media (max-width: 1280px) {
    .hero-visual-wrapper {
        height: 450px;
    }
}

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    
    .hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        width: 100%;
    }
    
    .hero-visual-wrapper {
        position: relative;
        width: 100%;
        max-width: 520px;
        margin: var(--space-10) auto 0;
        height: 400px;
    }
    
    .services-showcase-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-visual-wrapper {
        height: 320px;
        transform: scale(0.85);
        transform-origin: top center;
        margin-top: var(--space-6);
    }
    
    .widget-screens, .widget-efficiency {
        display: none; /* Hide extra widgets to avoid clutter on mobile screens */
    }
    
    .main-dashboard {
        width: 100%;
        left: 0;
        top: 5%;
    }
    
    .widget-orders {
        width: 80%;
        right: 0;
        top: 35%;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }
    
    .cta-section {
        padding: var(--space-10) var(--space-6);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    [dir="rtl"] .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
        align-items: center;
    }
    
    .cta-actions, .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}
