/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.84rem;
    }
    
    h2 {
        font-size: 1.57rem;
    }
    
    h3 {
        font-size: 1.34rem;
    }
    
    .navbar-brand {
        font-size: 1.13rem !important;
    }
    
    /* Hero section adjustments */
    #hero {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    #hero .col-lg-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.67rem;
    }
    
    /* Button sizing */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Team member layout */
    .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact form */
    .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Pricing cards */
    .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.69rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 85vh;
    }
    
    /* Grid adjustments */
    .col-sm-6 {
        margin-bottom: 1.67rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Team layout improvements */
    .col-lg-2.col-md-4.col-sm-6 {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Re-enable animations for tablets and up */
    section {
        padding: 3.5rem 0;
    }
    
    /* Team member spacing */
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Services grid */
    .col-lg-4.col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Features layout */
    .col-lg-6.col-md-6 {
        margin-bottom: 1.64rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full animations enabled */
    section {
        padding: 4rem 0;
    }
    
    /* Team member layout */
    .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
        margin-bottom: 1rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 100vh;
    }
    
    /* Card hover effects */
    .card:hover {
        transform: translateY(-5px);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full feature set enabled */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced animations */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
    }
    
    /* Hero section enhancements */
    #hero {
        min-height: 100vh;
    }
    
    /* Team layout perfection */
    .col-lg-2 {
        margin-bottom: 0;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing */
    section {
        padding: 5rem 0;
    }
}

/* Mobile Navigation Specific */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(248, 249, 250, 0.95);
        border-radius: 0.5rem;
        margin-top: 0.64rem;
        padding: 1rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Tablet Landscape Specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    #hero {
        min-height: 80vh;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .col-md-6 {
        margin-bottom: 1.60rem;
    }
}

/* Print Media Queries */
@media print {
    * {
        color: black !important;
        background: white !important;
    }
    
    .container {
        max-width: none !important;
        width: 100% !important;
    }
    
    section {
        padding: 1rem 0 !important;
        page-break-inside: avoid;
    }
    
    .col-lg-12, .col-md-12, .col-sm-12 {
        width: 100% !important;
    }
    
    .col-lg-6, .col-md-6 {
        width: 50% !important;
        float: left;
    }
    
    .col-lg-4, .col-md-4 {
        width: 33.333333% !important;
        float: left;
    }
    
    .col-lg-3, .col-md-3 {
        width: 25% !important;
        float: left;
    }
    
    .col-lg-2 {
        width: 16.666667% !important;
        float: left;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */

/* Specific Mobile Fixes */
@media (max-width: 767.98px) {
    /* Fix for iOS viewport */
    body {
        -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}
    
    /* Touch targets */
    .btn, .nav-link, .card {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Form elements */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Gallery optimizations */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* FAQ layout */
    .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.89rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 100px;
        height: 100px;
    }
} 