/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    [data-sal] {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    h1, .display-4 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 90vh;
        padding-top: 100px;
        text-align: center;
    }
    
    #hero .container {
        padding: 0 20px;
    }
    
    /* Navigation mobile */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
    
    /* Cards mobile layout */
    .card {
        margin-bottom: 1.5rem;
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    /* Services mobile */
    .services .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Team mobile */
    .team img {
        width: 100px;
        height: 100px;
        transform: none !important;
    }
    
    .team img:hover {
        transform: none !important;
    }
    
    /* Process mobile */
    .process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Contact form mobile */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 1rem;
    }
    
    .btn {
        padding: 1rem;
        font-size: 1.1rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Gallery mobile */
    .gallery img {
        margin-bottom: 1rem;
        transform: none !important;
    }
    
    .gallery img:hover {
        transform: none !important;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Timeline mobile */
    .timeline-item {
        padding-left: 0;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }
    
    /* Spacing mobile */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable animations on mobile */
    @media (max-width: 768px) {
        * {
            animation: none !important;
            transition: none !important;
        }
        
        [data-sal] {
            animation: none !important;
            transition: none !important;
        }
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Cards small screen */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Services grid */
    .services .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Process small */
    .process .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    /* Hero tablet */
    #hero {
        padding-top: 120px;
    }
    
    /* Cards medium screen */
    .card-img-top {
        height: 180px;
    }
    
    /* Services tablet */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team tablet */
    .team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Contact tablet */
    .contact .row {
        justify-content: center;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    /* Hero desktop */
    #hero {
        padding-top: 100px;
    }
    
    /* Services desktop */
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Hero large desktop */
    #hero {
        padding-top: 120px;
    }
    
    /* Cards large screen */
    .card-img-top {
        height: 220px;
    }
}

/* Print Styles */
@media print {
    * {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066CC;
        --primary-dark: #004499;
        --neutral-dark: #000000;
        --neutral-light: #FFFFFF;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn {
        border: 2px solid;
    }
}

/* Dark Mode Support */

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 568px) {
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Container Responsive Adjustments */
@media (max-width: 1400px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Font Size Accessibility */
@media (min-resolution: 2dppx) {
    body {
        font-size: 1.1rem;
    }
    
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 1rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    .btn:focus-visible,
    .nav-link:focus-visible,
    .form-control:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 