/* Mobile-first responsive design */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.81rem;
        line-height: 1.3;
    }
    
    .h2 {
        font-size: 1.64rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.34rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 100px;
        min-height: 80vh;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        padding: 12px 20px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 20px;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Team photos */
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Icons */
    .fa-3x {
        font-size: 2rem;
    }
    
    .fa-2x {
        font-size: 1.51rem;
    }
    
    /* Gallery */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 15px;
    }
    
    /* Contact form */
    .form-control {
        padding: 10px 12px;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 30px;
    }
    
    /* Timeline adjustments */
    .timeline .row {
        text-align: center;
    }
    
    .timeline .col-lg-2 {
        margin-bottom: 15px;
    }
    
    /* Process steps */
    .bg-primary.rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem;
    }
    
    /* Disable animations on mobile for performance */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: none;
        }
        
        .rounded-circle:hover {
            transform: none;
        }
        
        #gallery img:hover {
            transform: none;
        }
        
        .btn:hover {
            transform: none;
        }
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    #hero {
        padding-top: 90px;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .rounded-circle {
        width: 130px !important;
        height: 130px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.31rem;
    }
    
    #hero {
        padding-top: 80px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .card-img-top {
        height: 190px;
    }
    
    .rounded-circle {
        width: 140px !important;
        height: 140px !important;
    }
    
    /* Services grid adjustments */
    .col-md-6 {
        margin-bottom: 25px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .display-4 {
        font-size: 2.43rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .rounded-circle {
        width: 150px !important;
        height: 150px !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 2.63rem;
    }
    
    section {
        padding: 80px 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-buttons {
        margin-top: 20px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .img-fluid {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .fa,
    .fas {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #d8d0ce;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        color: #000;
        border-color: #000;
    }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions on mobile */
    @media (max-width: 767.98px) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    .form-control {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    .rounded-circle:hover,
    #gallery img:hover {
        transform: none;
        box-shadow: inherit;
    }
} 