/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Card spacing */
    .service-card,
    .feature-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .faq-card {
        margin-bottom: 1.5rem;
    }
    
    /* Remove hover animations on mobile */
    .service-card:hover,
    .feature-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .info-card:hover,
    .contact-info:hover,
    .career-item:hover {
        transform: none;
    }
    
    /* Timeline mobile adjustments */
    .timeline-container {
        padding-left: 1rem;
    }
    
    .timeline-container::before {
        left: 0.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
    
    .timeline-content {
        margin-left: 0.5rem;
    }
    
    /* Process steps mobile */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    /* Gallery mobile */
    #gallery .col-lg-3,
    #gallery .col-md-4,
    #gallery .col-sm-6 {
        margin-bottom: 1rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Reduce padding on mobile */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Hide decorative elements on mobile */
    .hero-shapes::before,
    .hero-shapes::after {
        display: none;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb-nav {
        text-align: center;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    .hero-buttons .btn {
        width: auto;
        margin-right: 1rem;
    }
    
    .team-member img {
        width: 180px;
        height: 180px;
    }
    
    /* Reduce mobile animations */
    .service-card:hover,
    .feature-card:hover,
    .pricing-card:hover {
        transform: translateY(-2px);
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 3rem;
    }
    
    #hero {
        min-height: 90vh;
    }
    
    /* Process steps tablet layout */
    .process-step {
        margin-bottom: 3rem;
    }
    
    /* Timeline tablet adjustments */
    .timeline-content {
        margin-left: 1.5rem;
    }
    
    /* Gallery tablet layout */
    #gallery img {
        margin-bottom: 1rem;
    }
    
    /* Pricing cards tablet spacing */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Contact info tablet layout */
    .contact-info {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full animations restored */
    .hero-shapes::before,
    .hero-shapes::after {
        display: block;
    }
    
    /* Hero section desktop */
    #hero {
        min-height: 100vh;
    }
    
    /* Process steps desktop layout */
    .process-step {
        margin-bottom: 0;
    }
    
    /* Timeline desktop spacing */
    .timeline-content {
        margin-left: 2rem;
    }
}

/* 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: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Enhanced hero section */
    #hero .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Larger team images on desktop */
    .team-member img {
        width: 220px;
        height: 220px;
    }
    
    /* Enhanced card spacing */
    .service-card,
    .feature-card,
    .pricing-card,
    .review-card,
    .case-study-card {
        margin-bottom: 2rem;
    }
}

/* High Resolution Displays */
@media (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .timeline-container::before {
        width: 3px;
    }
    
    .timeline-marker {
        border-width: 4px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    
    /* Adjust section padding for landscape phones */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Print Styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    .hero-buttons,
    .social-links,
    #gallery,
    .contact-form {
        display: none !important;
    }
    
    /* Optimize text for print */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    /* Remove shadows and transitions */
    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
        transition: none !important;
    }
    
    /* Ensure proper page breaks */
    .service-card,
    .feature-card,
    .pricing-card,
    .review-card,
    .case-study-card {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Print-friendly links */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .service-card:hover,
    .feature-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .info-card:hover,
    .contact-info:hover,
    .career-item:hover,
    .team-member:hover img,
    .process-step:hover .step-number {
        transform: none !important;
    }
}

/* Dark Mode Support (if browser supports it) */

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .btn-primary {
        border: 2px solid;
    }
    
    .card,
    .feature-card,
    .service-card {
        border: 2px solid var(--primary-green);
    }
    
    /* Ensure sufficient contrast */
    .text-muted {
        color: var(--charcoal) !important;
    }
}

/* Focus Management for Keyboard Navigation */
@media (any-hover: none) {
    /* Touch device specific styles */
    .btn:hover,
    .card:hover,
    .feature-card:hover,
    .service-card:hover {
        transform: none;
    }
    
    /* Ensure touch targets are large enough */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
}

/* Container Fluid Adjustments */
@media (max-width: 1399.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ultra-wide Screen Support */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for ultra-wide screens */
    .row.g-4 > * {
        padding-bottom: 2rem;
    }
    
    /* Optimal content width */
    .col-lg-8.mx-auto {
        max-width: 66.666667%;
    }
} 