/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 578px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    * {
        animation: none;
        transition: none;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.80rem;
    }
    
    h2 {
        font-size: 1.64rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    #hero .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Navbar mobile */
    .navbar-brand {
        font-size: 1.20rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem;
    }
    
    /* Cards mobile */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Sections mobile */
    section {
        padding: 2rem 0;
    }
    
    /* Team images mobile */
    .rounded-circle {
        width: 80px;
        height: 80px;
    }
    
    /* Gallery mobile */
    #gallery .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Form mobile */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Button mobile */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.90rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Process steps mobile */
    .bg-primary.text-white {
        width: 50px;
        height: 50px;
        font-size: 1.12rem;
    }
    
    /* Footer mobile */
    #footer {
        text-align: center;
    }
    
    #footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable scroll animations on mobile */
    @media (max-width: 767.98px) {
        * {
            animation-duration: 0s;
        }
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.93rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 80vh;
    }
    
    /* Cards */
    .card-body {
        padding: 1.75rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Team images */
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 {
        font-size: 2.38rem;
    }
    
    h2 {
        font-size: 2.07rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 2rem;
    }
    
    /* Team images */
    .rounded-circle {
        width: 110px;
        height: 110px;
    }
    
    /* Services grid */
    #services .card-img-top {
        height: 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Typography */
    h1 {
        font-size: 2.56rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 100vh;
    }
    
    /* Sections */
    section {
        padding: 5rem 0;
    }
    
    /* Team images */
    .rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Services grid */
    #services .card-img-top {
        height: 200px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Typography */
    h1 {
        font-size: 2.60rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 100vh;
    }
    
    /* Container max-width */
    .container {
        max-width: 1140px;
    }
    
    /* Sections */
    section {
        padding: 6rem 0;
    }
    
    /* Services grid */
    #services .card-img-top {
        height: 220px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    #hero h1 {
        font-size: 1.60rem;
    }
    
    #hero .lead {
        font-size: 1.00rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #footer,
    .breadcrumb {
        display: none;
    }
    
    /* Adjust colors for print */
    * {
        color: #000;
        background: transparent;
    }
    
    /* Ensure text is readable */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    /* Remove hover effects for reduced motion */
    .card:hover {
        transform: none;
        box-shadow: 0 6px 6px rgba(0,0,0,0.1);
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Dark mode support */

/* Focus states for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Container responsive adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Team section responsive */
@media (max-width: 767.98px) {
    #team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    #team .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

/* Gallery responsive */
@media (max-width: 575.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Form responsive */
@media (max-width: 767.98px) {
    #contact .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Navbar responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #fdfdfd;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
} 