html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

*, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767.98px) {
    .container, .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col, [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        touch-action: manipulation;
    }
    
    .form-control, .form-select, textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"] {
        font-size: 16px !important;
        min-height: 44px;
        padding: 0.75rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .table-responsive {
        border: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 1rem !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .container, .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .card-header {
        padding: 0.875rem !important;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 0.875rem !important;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .modal-dialog {
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none !important;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .service-card:hover {
        transform: none !important;
    }
}
