/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile as per requirements */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    
    /* Section padding */
    .section {
        padding: 40px 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 80vh;
        text-align: center;
        padding: 60px 0;
    }
    
    #hero .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.3rem;
        width: 100%;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .price-card,
    .team-card,
    .review-card,
    .case-card,
    .career-card,
    .info-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1.5rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    /* Contact form */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Footer */
    #footer {
        text-align: center;
        padding: 40px 0 20px;
    }
    
    #footer .col-md-3,
    #footer .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Gallery adjustments */
    .gallery-image {
        height: 200px;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        padding-left: 2rem;
    }
    
    /* Price cards */
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    /* Team photos */
    .team-photo {
        height: 200px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.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.7rem; }
    
    .section {
        padding: 50px 0;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.7rem 1.8rem;
        margin: 0.2rem;
        width: auto;
    }
    
    .price-card.featured {
        transform: scale(1.02);
    }
    
    .gallery-image {
        height: 220px;
    }
    
    .team-photo {
        height: 220px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .section {
        padding: 60px 0;
    }
    
    #hero {
        min-height: 90vh;
    }
    
    .hero-content h1 {
        font-size: 2.1rem;
    }
    
    /* Adjust columns for medium screens */
    .col-md-6.col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .price-card.featured {
        transform: scale(1.03);
    }
    
    .gallery-image {
        height: 240px;
    }
    
    .team-photo {
        height: 240px;
    }
    
    /* Contact section layout */
    .contact-form {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .section {
        padding: 70px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .gallery-image {
        height: 250px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .section {
        padding: 80px 0;
    }
    
    /* Full desktop experience */
    .container {
        max-width: 1140px;
    }
    
    .gallery-image {
        height: 250px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* High resolution displays */
@media (min-resolution: 192dpi) {
    /* Ensure images and graphics look crisp on high-DPI displays */
    .gallery-image,
    .team-photo,
    .blog-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide non-essential elements for printing */
    #header,
    #footer,
    .btn,
    .navbar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    .card,
    .feature-card,
    .service-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-high-contrast: high) {
    :root {
        --color-primary: #0066cc;
        --color-secondary: #cc0066;
        --color-accent: #009900;
        --color-warning: #cc6600;
        --color-info: #0099cc;
        --color-dark: #000000;
        --color-gray: #666666;
        --color-white: #ffffff;
    }
}

/* Focus indicators for accessibility */
@media (any-hover: none) {
    /* Touch device specific styles */
    .btn:hover,
    .card:hover,
    .feature-card:hover,
    .service-card:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Dark mode support */