/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    #hero {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    /* Navbar brand */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Service cards */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Team member images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Timeline adjustments */
    .timeline-year {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    /* Disable animations on mobile for reduced motion */
    .feature-card,
    .pricing-card,
    .job-card,
    .value-card,
    .education-card {
        animation: none;
        transition: none;
    }
    
    .feature-card:hover,
    .pricing-card:hover,
    .job-card:hover,
    .value-card:hover,
    .education-card:hover {
        transform: none;
    }
    
    /* Gallery hover effects disabled on mobile */
    #gallery img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    /* Service cards in 2 columns */
    .services .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team grid adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        min-height: 90vh;
    }
    
    /* Services grid - 2 columns */
    #services .row .col-md-6:nth-child(odd) {
        clear: left;
    }
    
    /* Reviews in 2 columns */
    #reviews .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* FAQ in single column */
    #faq .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Gallery responsive grid */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container max width adjustment */
    .container {
        max-width: 960px;
    }
    
    /* Services grid optimization */
    #services .col-lg-4:nth-child(3n+1) {
        clear: left;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Larger hero text */
    .display-4 {
        font-size: 3rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero height on landscape phones */
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    /* Compact navbar */
    .navbar {
        padding: 0.25rem 1rem;
    }
    
    /* Reduce section padding */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .step-number,
    .timeline-year {
        border: 1px solid rgba(255,255,255,0.1);
    }
}

/* Print optimizations */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    .hero-shapes,
    #gallery {
        display: none;
    }
    
    /* Optimize text for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    /* Ensure cards don't break across pages */
    .card,
    .pricing-card,
    .review-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    /* Simplify colors for print */
    .text-primary {
        color: #000;
    }
    
    .bg-light {
        background: #f8f9fa;
    }
}

/* Dark mode preferences */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    .navbar-toggler {
        padding: 8px 12px;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .pricing-card:hover,
    .job-card:hover,
    .value-card:hover,
    .education-card:hover,
    #gallery img:hover {
        transform: none;
    }
    
    /* Larger form controls */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
} 