/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.8rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .h4 {
        font-size: 1.1rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        text-align: center;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    #hero .display-4 {
        margin-bottom: 0.75rem;
    }
    
    #hero .lead {
        margin-bottom: 1.5rem;
    }
    
    #hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    #hero .d-flex {
        flex-direction: column;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Contact Form */
    .form-control {
        padding: 0.625rem;
    }
    
    /* Step Icons */
    .step-icon .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
    
    /* Timeline - Mobile Stack */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-item .row {
        margin-left: 50px;
    }
    
    .timeline-item .col-md-4 {
        text-align: left;
        margin-bottom: 0.5rem;
    }
    
    /* Feature Icons */
    .feature-icon i {
        font-size: 2rem;
    }
    
    /* Process Section */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .d-flex {
        justify-content: center;
    }
    
    /* Breadcrumb */
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
    
    /* Sections Padding */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* No animations on mobile when prefer-reduced-motion */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: none;
        }
        
        .btn:hover {
            transform: none;
        }
        
        #gallery img:hover {
            transform: none;
        }
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.75rem;
    }
    
    #hero .btn {
        display: inline-block;
        width: auto;
        margin-right: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .card-img-top {
        height: 190px;
    }
    
    #team img {
        width: 130px;
        height: 130px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    .timeline-item .row {
        margin-left: 60px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .h2 {
        font-size: 1.875rem;
    }
    
    #hero {
        padding-top: 75px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    #team img {
        width: 140px;
        height: 140px;
    }
    
    /* Timeline back to center for tablets */
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item::before {
        left: 50%;
    }
    
    .timeline-item .row {
        margin-left: 0;
    }
    
    .timeline-item .col-md-4 {
        text-align: right;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .card-img-top {
        height: 220px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .card-img-top {
        height: 240px;
    }
}

/* Landscape Mobile Specific */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #team img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Specific */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Dark Mode Support */

/* Print Responsive */
@media print {
    * {
        background: transparent;
        color: black;
        box-shadow: none;
        text-shadow: none;
    }
    
    .container {
        width: auto;
        margin: 0;
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-md-6 {
        width: 100%;
        float: none;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Reduced Motion Specific Responsive */
@media (prefers-reduced-motion: reduce) {
    @media (max-width: 575.98px) {
        .card:hover,
        .btn:hover,
        #gallery img:hover {
            transform: none;
        }
    }
} 

body {
    overflow-x: hidden;
}