/* Mobile-first responsive design */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 70px;
        min-height: auto;
    }
    
    .hero-section .col-lg-6:first-child {
        order: 2;
        margin-top: 2rem;
    }
    
    .hero-section .col-lg-6:last-child {
        order: 1;
    }
    
    /* Service cards */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Team members */
    .team-member img {
        width: 70px;
        height: 70px;
    }
    
    /* Process steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Timeline */
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.875rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    #footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Grid adjustments */
    .col-lg-2.col-md-4.col-sm-6 {
        margin-bottom: 1.5rem;
    }
    
    /* No animations on mobile for performance */
    .feature-card:hover, .service-card:hover, .review-card:hover, 
    .case-study-card:hover, .blog-card:hover, .price-card:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding-top: 75px;
    }
    
    .service-card .card-img-top {
        height: 190px;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .service-card .card-img-top {
        height: 200px;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    /* Adjust grid for tablets */
    .col-lg-2.col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .navbar-brand, .btn, .card {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .hero-shapes, footer {
        display: none;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    * {
        color: black;
        background: white;
    }
    
    .container {
        max-width: none;
        width: 100%;
    }
}

/* Accessibility - Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    /* Disable all hover effects */
    .feature-card:hover, .service-card:hover, .review-card:hover, 
    .case-study-card:hover, .blog-card:hover, .price-card:hover,
    .gallery img:hover {
        transform: none;
        box-shadow: inherit;
    }
}

/* Dark mode support (if user prefers) */

body {
    overflow-x: hidden;
}

.hero-section h1 {
    padding-top: 250px;
}