/* Mobile First - Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.82rem;
    }
    
    h2 {
        font-size: 1.61rem;
    }
    
    h3 {
        font-size: 1.28rem;
    }
    
    /* Hero section */
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.83rem;
        margin-bottom: 1rem;
    padding-top: 225px;
}
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.69rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.14rem !important;
    }
    
    /* Cards and content */
    .feature-card,
    .service-card,
    .pricing-card {
        margin-bottom: 1.69rem;
    }
    
    /* Timeline */
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        text-align: left;
    }
    
    .timeline-content::before {
        left: -31px !important;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.26rem;
    }
    
    /* Team members */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Gallery images */
    .gallery-img {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Additional pages */
    .tech-card,
    .management-card,
    .integration-item,
    .metric-card {
        margin-bottom: 1.63rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .feature-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 1.61rem;
    }
    
    /* Emergency contact */
    .emergency-contact h6 {
        font-size: 1.14rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero-section .btn {
        display: inline-block;
        width: auto;
        margin-right: 0.5rem;
        margin-bottom: 0.58rem;
    }
    
    /* Team grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps in pairs */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Timeline adjustments */
    .timeline-content {
        width: 80%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: auto;
        text-align: right;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section {
        padding-top: 120px;
    }
    
    /* Cards in 2 columns */
    .feature-card,
    .service-card {
        height: 100%;
    }
    
    /* Timeline remains centered */
    .timeline-content {
        width: 70%;
    }
    
    /* Contact form spacing */
    .contact-form {
        padding: 2rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* FAQ cards */
    .faq-card {
        margin-bottom: 1rem;
    }
    
    /* Gallery adjustments */
    .gallery-img {
        margin-bottom: 1.62rem;
    }
    
    /* Team members spacing */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Additional pages */
    .efficiency-metric .metric-number {
        font-size: 2.51rem;
    }
    
    .security-feature,
    .experience-feature {
        margin-bottom: 1rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard desktop layout */
    .hero-section {
        padding-top: 120px;
    }
    
    /* Cards maintain spacing */
    .feature-card,
    .service-card,
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Timeline full width */
    .timeline-content {
        width: 45%;
    }
    
    /* Contact section */
    .contact-form {
        padding: 2.5rem;
    }
    
    /* Team layout */
    .team-member {
        margin-bottom: 1.56rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 1.66rem;
    }
    
    /* Gallery spacing */
    .gallery-img {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Optimal desktop experience */
    .hero-section {
        padding-top: 140px;
    }
    
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Larger feature icons */
    .feature-icon {
        font-size: 3rem;
    }
    
    /* Team member grid */
    .team-member {
        margin-bottom: 1rem;
    }
    
    /* Enhanced contact form */
    .contact-form {
        padding: 3rem;
    }
    
    /* Timeline optimal spacing */
    .timeline-content {
        width: 40%;
    }
    
    /* Process steps optimal layout */
    .process-step {
        margin-bottom: 1rem;
    }
    
    /* Gallery optimal spacing */
    .gallery-img {
        margin-bottom: 2rem;
    }
    
    /* Additional pages enhancements */
    .efficiency-metric .metric-number {
        font-size: 3.65rem;
    }
    
    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }
}

/* Ultra Wide Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced hero section */
    .hero-section {
        padding-top: 160px;
    }
    
    /* Larger typography for ultra-wide */
    h1 {
        font-size: 2.36rem;
    }
    
    h2 {
        font-size: 1.96rem;
    }
    
    /* Enhanced feature icons */
    .feature-icon {
        font-size: 3.60rem;
    }
    
    /* Optimal contact form */
    .contact-form {
        padding: 3.5rem;
    }
    
    /* Enhanced metric numbers */
    .efficiency-metric .metric-number {
        font-size: 4rem;
    }
}

/* Landscape Orientation (tablets and phones) */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        padding-top: 100px;
        min-height: 80vh;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .team-member img {
        width: 60px;
        height: 60px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on high DPI displays */
    .feature-icon,
    .step-icon,
    .gallery-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    footer,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    .feature-card,
    .service-card,
    .pricing-card {
        break-inside: avoid;
        border: 1px solid #d0c5c4;
        margin-bottom: 1rem;
    }
    
    .timeline-content {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: left !important;
    }
    
    .timeline-container::before {
        display: none;
    }
}

/* Accessibility Enhancements */
@media (max-width: 767.98px) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
    }
    
    /* Improved focus indicators */
    .btn:focus,
    .form-control:focus,
    .form-select:focus {
        outline: 2px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .case-study-card,
    .info-card,
    .career-card,
    .gallery-img {
        transition: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .info-card:hover,
    .career-card:hover,
    .gallery-img:hover {
        transform: none !important;
    }
}

/* Container Breakpoint Adjustments */
@media (min-width: 1200px) {
    .container-xl {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
}

/* Flexbox Utilities for Responsive Design */
@media (max-width: 767.98px) {
    .d-flex-mobile-column {
        flex-direction: column !important;
    }
    
    .align-items-mobile-center {
        align-items: center !important;
    }
    
    .justify-content-mobile-center {
        justify-content: center !important;
    }
    
    .text-mobile-center {
        text-align: center !important;
    }
}

/* Grid System Enhancements */
@media (max-width: 575.98px) {
    .row > * {
        margin-bottom: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .row > * {
        margin-bottom: 1.65rem;
    }
}

/* Form Responsiveness */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .input-group {
        flex-wrap: wrap;
    }
    
    .input-group .form-control {
        margin-bottom: 0.72rem;
        border-radius: 0.375rem !important;
    }
    
    .input-group .btn {
        width: 100%;
        border-radius: 0.375rem !important;
    }
} 