/* Responsive Design for Armstrong Number Checker */

@media (max-width: 992px) {
    .header {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-contact {
        display: none; /* Hide contact in header on mobile */
    }

    .nav {
        display: none; /* Hide nav initially on mobile */
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-container {
        padding: 1rem;
    }

    .app-card {
        padding: 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .app-header h1 {
        font-size: 1.5rem;
    }
    
    .calculation-steps {
        font-size: 1rem;
    }
    
    .result-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        justify-content: center;
    }
}
