/* Mobile-first responsive design */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container-sm {
        max-width: 540px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 768px) {
    /* Conservative font sizes for mobile */
    h1, .h1 {
        font-size: 1.875rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-shapes {
        display: none; /* Hide decorative shapes on mobile */
    }
    
    /* Disable animations on mobile to respect reduced motion */
    .shape-blob-1,
    .shape-blob-2 {
        animation: none;
    }
    
    /* Stack hero content vertically */
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Process numbers smaller on mobile */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .timeline-year {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Card image height adjustment */
    .card-img-top {
        height: 150px;
    }
    
    /* Feature icons smaller on mobile */
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Contact info stacking */
    .contact-info .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Services grid adjustment */
    #services .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container-lg {
        max-width: 960px;
    }
    
    /* Enhanced hero section for larger screens */
    #hero {
        min-height: 100vh;
    }
    
    /* Feature icons larger on desktop */
    .feature-icon {
        width: 100px;
        height: 100px;
    }
    
    .feature-icon i {
        font-size: 2.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container-xl {
        max-width: 1140px;
    }
    
    /* Larger containers for better spacing */
    .container {
        max-width: 1140px;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
}

/* Mobile-specific utilities */
@media (max-width: 767px) {
    /* Hide some decorative elements on mobile */
    .d-mobile-none {
        display: none;
    }
    
    /* Full-width mobile elements */
    .mobile-full-width {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Mobile spacing adjustments */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Mobile text alignment */
    .mobile-text-center {
        text-align: center;
    }
    
    /* Mobile card adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Mobile navbar adjustments */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem;
    }
    
    /* Mobile gallery spacing */
    #gallery .row > div {
        margin-bottom: 0.75rem;
    }
    
    /* Mobile blog grid */
    #blog_grid .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile testimonials */
    #reviews .col-lg-4,
    #reviews .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    /* Tablet font sizes */
    h1, .h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.25rem;
    }
    
    /* Tablet card heights */
    .card-img-top {
        height: 180px;
    }
    
    /* Tablet feature icons */
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text rendering on high DPI displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape phone adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-shapes {
        display: none;
    }
}

/* Print styles */
@media print {
    /* Hide unnecessary elements when printing */
    .navbar,
    #footer,
    .btn,
    .hero-shapes {
        display: none;
    }
    
    /* Ensure good print layout */
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better focus indicators on mobile */
    .form-control:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Reduced motion preferences for mobile */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions on mobile for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    .card:hover {
        transform: none;
    }
    
    .category-card:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
} 