/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.82rem;
    }
    
    .navbar-brand {
        font-size: 1.36rem;
    }
    
    /* Hero section */
    #hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
        min-height: 70vh;
    }
    
    #hero .display-4 {
        font-size: 1.89rem;
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 1.00rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2.60rem !important;
        padding-bottom: 2.75rem !important;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Team section */
    .col-lg-2-4 {
        width: 100%;
        margin-bottom: 1.73rem;
    }
    
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact form */
    .form-control {
        padding: 10px 15px;
        font-size: 0.94rem;
    }
    
    /* Process steps - remove connecting lines on mobile */
    .process-step::after {
        display: none;
    }
    
    /* Services cards */
    #services .card-img-top {
        height: 180px;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for performance */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }
    
    /* Remove hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #team img:hover {
        border-color: var(--light-color);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    /* Team grid */
    .col-lg-2-4 {
        width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Services grid */
    #services .col-md-6 {
        margin-bottom: 1.66rem;
    }
    
    /* Gallery grid */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 85vh;
    }
    
    /* Typography */
    h1, .display-4 {
        font-size: 2.39rem;
    }
    
    /* Team section */
    .col-lg-2-4 {
        width: 33.333%;
        margin-bottom: 2rem;
    }
    
    /* Services section */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Process section */
    .process-step::after {
        display: none;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Team grid - 5 columns */
    .col-lg-2-4 {
        width: 20%;
    }
    
    /* Process steps with connecting lines */
    .process-step {
        position: relative;
    }
    
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 30px;
        left: 100%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), transparent);
        z-index: 1;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Typography enhancements */
    h1, .display-4 {
        font-size: 2.79rem;
    }
    
    h2, .h2 {
        font-size: 2.38rem;
    }
    
    .lead {
        font-size: 1.18rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    #hero h1 {
        font-size: 1.77rem;
        margin-bottom: 0.71rem;
    }
    
    #hero .lead {
        font-size: 0.92rem;
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    #footer,
    .btn,
    .navbar,
    .breadcrumb-section {
        display: none !important;
    }
    
    /* Adjust colors for print */
    * {
        color: #000 !important;
        background: #fff !important;
    }
    
    /* Ensure good contrast */
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .text-muted {
        color: #000 !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
} 