/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        padding-top: 80px;
    }
    
    #hero .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Team member images */
    .team-member-img {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps mobile layout */
    .process-step::after {
        display: none;
    }
    
    /* Contact form mobile */
    .btn-lg {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    /* Footer mobile */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile spacing */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* Remove animations on mobile for better performance */
    .fade-in,
    .slide-in-left,
    .slide-in-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.625rem;
    }
    
    .display-4 {
        font-size: 2.25rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 85vh;
    }
    
    /* Team member spacing */
    .team-member-img {
        width: 130px;
        height: 130px;
    }
    
    /* Service cards */
    .card-img-top {
        height: 180px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Services grid adjustment */
    .card-img-top {
        height: 200px;
    }
    
    /* Team member images */
    .team-member-img {
        width: 140px;
        height: 140px;
    }
    
    /* Process steps tablet layout */
    .process-step::after {
        right: -25%;
        width: 50%;
    }
    
    /* Blog grid tablet */
    #blog_grid .card-img-top {
        height: 220px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Larger text for desktop */
    .display-4 {
        font-size: 2.5rem;
    }
    
    /* Service cards desktop */
    .card-img-top {
        height: 220px;
    }
    
    /* Team member images desktop */
    .team-member-img {
        width: 150px;
        height: 150px;
    }
    
    /* Process steps desktop layout */
    .process-step::after {
        right: -40%;
        width: 80%;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Maximum container width */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 100vh;
    }
    
    .display-4 {
        font-size: 2.75rem;
    }
    
    /* Larger cards for desktop */
    .card-img-top {
        height: 240px;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding: 4rem 0;
    }
    
    /* Team member images large desktop */
    .team-member-img {
        width: 160px;
        height: 160px;
    }
    
    /* Process steps full desktop layout */
    .process-step::after {
        right: -50%;
        width: 100%;
    }
}

/* XXL Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .py-5 {
        padding: 5rem 0;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* High DPI Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .team-member-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (Future Enhancement) */

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .team-member-img:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    /* Disable all animations on mobile */
    @media (max-width: 767.98px) {
        * {
            animation: none;
            transition: none;
        }
    }
}

/* Focus Management for Keyboard Navigation */
@media (min-width: 768px) {
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .btn:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Container Breakpoint Adjustments */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
} 